/* ── AuditLM landing page ─────────────────────────────────────────────── */

:root {
  --bg: #05060f;
  --indigo: #4f46e5;
  --cyan: #22d3ee;
  --violet: #a855f7;
  --iris: #6366f1;
  --text: #e6e8f2;
  --text-dim: #9aa0b5;
  --text-faint: #6b7089;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.09);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── Aurora background ────────────────────────────────────────────────── */

.aurora {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: var(--bg);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
  will-change: transform;
}

.blob-1 {
  width: 55vw; height: 55vw;
  top: -18vw; left: -12vw;
  background: radial-gradient(circle at center, var(--indigo), transparent 65%);
  animation: drift-1 26s ease-in-out infinite alternate;
}

.blob-2 {
  width: 45vw; height: 45vw;
  top: 30vh; right: -15vw;
  background: radial-gradient(circle at center, var(--cyan), transparent 65%);
  opacity: 0.35;
  animation: drift-2 32s ease-in-out infinite alternate;
}

.blob-3 {
  width: 50vw; height: 50vw;
  bottom: -20vw; left: 15vw;
  background: radial-gradient(circle at center, var(--violet), transparent 65%);
  opacity: 0.4;
  animation: drift-3 38s ease-in-out infinite alternate;
}

.blob-4 {
  width: 30vw; height: 30vw;
  top: 55vh; left: 40vw;
  background: radial-gradient(circle at center, #1e3a8a, transparent 65%);
  opacity: 0.5;
  animation: drift-1 30s ease-in-out infinite alternate-reverse;
}

@keyframes drift-1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(9vw, 7vh) scale(1.15); }
}
@keyframes drift-2 {
  from { transform: translate(0, 0) scale(1.1); }
  to   { transform: translate(-8vw, -6vh) scale(0.95); }
}
@keyframes drift-3 {
  from { transform: translate(0, 0) scale(0.95); }
  to   { transform: translate(6vw, -8vh) scale(1.12); }
}

/* Subtle SVG-noise grain over the aurora */
.grain {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* ── Top navigation ───────────────────────────────────────────────────── */

.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 4.5rem;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s cubic-bezier(0.22, 0.9, 0.3, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease,
              backdrop-filter 0.4s ease;
}

/* Solid glass panel once the page is scrolled */
.topnav.scrolled {
  background: rgba(5, 6, 15, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03),
              0 8px 32px -12px rgba(0, 0, 0, 0.9);
}

.topnav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.topnav-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--indigo) 0%, #6366f1 50%, var(--cyan) 100%);
  box-shadow: 0 2px 8px -2px rgba(79, 70, 229, 0.5),
              0 8px 24px -8px rgba(34, 211, 238, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease;
}

/* Soft halo behind the logo */
.topnav-logo::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  filter: blur(14px);
  opacity: 0.4;
  z-index: -1;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.topnav-brand:hover .topnav-logo {
  transform: rotate(-6deg) scale(1.1);
  box-shadow: 0 4px 12px -4px rgba(79, 70, 229, 0.6),
              0 12px 32px -8px rgba(34, 211, 238, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.topnav-brand:hover .topnav-logo::after {
  opacity: 0.7;
  transform: scale(1.1);
}

.topnav-brand-text {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, #e0e7ff 50%, #c7d2fe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: opacity 0.3s ease;
}

.topnav-brand:hover .topnav-brand-text {
  opacity: 0.9;
}

/* Centered link cluster — refined floating container */
.topnav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02),
              0 2px 8px -4px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Sliding indicator that highlights the active link */
.topnav-pill {
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.35), rgba(99, 102, 241, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 12px -4px rgba(79, 70, 229, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 0.9, 0.3, 1),
              width 0.45s cubic-bezier(0.22, 0.9, 0.3, 1),
              opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}

.topnav-pill.show { opacity: 1; }

.topnav-link {
  position: relative;
  z-index: 1;
  color: var(--text-faint);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: color 0.3s ease, transform 0.3s ease;
}

.topnav-link:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.topnav-link.active {
  color: #fff;
  text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

/* Primary CTA button */
.topnav-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--indigo) 0%, #6366f1 50%, var(--violet) 100%);
  box-shadow: 0 2px 8px -2px rgba(79, 70, 229, 0.5),
              0 8px 24px -8px rgba(168, 85, 247, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  overflow: hidden;
  letter-spacing: 0.02em;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease,
              filter 0.3s ease;
}

/* Sheen sweep on hover */
.topnav-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.25) 45%, rgba(255, 255, 255, 0.1) 55%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.7s cubic-bezier(0.22, 0.9, 0.3, 1);
}

.topnav-cta:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.1);
  box-shadow: 0 4px 12px -4px rgba(79, 70, 229, 0.6),
              0 16px 40px -12px rgba(168, 85, 247, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.topnav-cta:hover::before { transform: translateX(120%); }

.topnav-cta > span { position: relative; z-index: 1; }

.topnav-cta .arrow {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 1.1em;
}
.topnav-cta:hover .arrow { transform: translateX(4px); }

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

@media (max-width: 640px) {
  .topnav { height: 4rem; padding: 0 1rem; gap: 0.75rem; }
  .topnav-brand-text { display: none; }
  .topnav-links { gap: 0.1rem; padding: 0.25rem; }
  .topnav-link { font-size: 0.78rem; padding: 0.45rem 0.55rem; }
}

/* Offset anchored sections so the fixed nav doesn't cover them */
#top, #frameworks, #about-frameworks, #about,
#publications, #auditlm { scroll-margin-top: 5.5rem; }

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.6rem;
  padding: 0.5rem 1.2rem;
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.12);
  border-radius: 999px;
  /* Hero entrance is deliberately quick. The stagger below still reads as a
     sequence, but the last line lands at 0.63s rather than 1.26s — past about
     a second the delay stops looking like choreography and starts looking
     like the page is still loading. */
  animation: fade-up 0.45s ease both;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}

.title {
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  background: linear-gradient(110deg,
    #c7d2fe 0%, var(--indigo) 22%, var(--cyan) 45%,
    var(--violet) 68%, #c7d2fe 90%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 7s linear infinite, fade-up 0.45s 0.06s ease both;
}

@keyframes shimmer {
  to { background-position: -220% center; }
}

.tagline {
  margin-top: 1.6rem;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 500;
  color: var(--text);
  animation: fade-up 0.45s 0.12s ease both;
}

.subline {
  margin-top: 0.9rem;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-dim);
  animation: fade-up 0.45s 0.18s ease both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.scroll-cue {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  padding: 0.6rem;
  transition: color 0.25s ease;
  animation: bob 2.2s ease-in-out infinite;
}

.scroll-cue:hover { color: var(--cyan); }

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 9px); }
}

/* ── Frameworks section ───────────────────────────────────────────────── */

.frameworks {
  position: relative;
  max-width: 101rem;
  margin: 0 auto;
  padding: 6rem 1.5rem 8rem;
}

/* Subtle gradient divider at top */
.frameworks::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(80%, 600px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.3), rgba(34, 211, 238, 0.3), transparent);
}

.section-heading {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 3.5rem;
  color: var(--text);
  position: relative;
}

/* Small mono label above a section heading */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  margin: 0 auto 1.2rem;
  padding: 0.5rem 1.2rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cyan);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(99, 102, 241, 0.05));
  border: 1px solid rgba(34, 211, 238, 0.15);
  box-shadow: 0 2px 12px -4px rgba(34, 211, 238, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Decorative dot before eyebrow text */
.section-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}

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

/* Gradient underline accent for section headings */
.section-heading.has-accent {
  margin-bottom: 2rem;
}

.section-heading.has-accent::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 3px;
  margin: 1.3rem auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--indigo), var(--cyan), var(--violet));
  background-size: 200% auto;
  animation: shimmer 6s linear infinite;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
}

/* Flex rather than grid, specifically so a wrapped row centres itself.
   Grid places items into fixed tracks, so with three cards over two columns
   the third one lands in column 1 and sits left-aligned under the first —
   justify-content centres the track group, not the orphan inside it. Flex
   lays each row out independently, so a lone third card centres on its row.

   Sizing is kept identical to the old grid on purpose: 26rem basis, 28rem
   cap, 2rem gap. The 88rem max-width on .pipeline / .thread-flow below is
   derived from those numbers (3 x 28 + 2 x 2) and assumes they hold. */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

/* flex-shrink stays at 1 so a single card can drop below the 26rem basis on
   phones narrower than that, which is what min(100%, 26rem) did before. */
.cards > .card {
  flex: 1 1 26rem;
  max-width: 28rem;
}

/* Access notice — amber rather than the page's indigo/cyan so it reads as a
   notice and not as another card. */
.access-note {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  /* Shrink-to-fit so the sentence stays on one line on desktop, but still
     wraps once the viewport is narrower than the text. */
  width: fit-content;
  max-width: 100%;
  margin: -1.5rem auto 3rem;
  padding: 1rem 1.4rem;
  border-radius: 16px;
  background: rgba(251, 191, 36, 0.05);
  border: 1px solid rgba(251, 191, 36, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.access-note-icon {
  display: flex;
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: #fbbf24;
}

.access-note p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-dim);
}

.access-note a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 500;
  transition: text-shadow 0.3s ease;
}

.access-note a:hover {
  text-decoration: underline;
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
}

/* ── Demo video ───────────────────────────────────────────────────────── */

/* Lives inside the "Choose Your Lens" section, below the cards. */
.demo {
  position: relative;
  max-width: 62rem;
  margin: 0 auto;
  padding: 5rem 0 0;
}

.demo::before {
  content: "";
  position: absolute;
  top: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(80%, 600px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.3), rgba(34, 211, 238, 0.3), transparent);
}

.demo-heading {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--text);
  margin-bottom: 1.8rem;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 17, 35, 0.8), rgba(10, 12, 25, 0.9));
  border: 1px solid var(--card-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px -8px rgba(79, 70, 229, 0.3),
              0 32px 80px -24px rgba(34, 211, 238, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* Shimmering top border, matching .profile-card */
.video-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--indigo) 20%,
    var(--cyan) 50%,
    var(--violet) 80%,
    transparent 100%);
  background-size: 200% auto;
  animation: shimmer 8s linear infinite;
  z-index: 2;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  border: 1px dashed rgba(255, 255, 255, 0.07);
}

.video-placeholder p {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.play-badge {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  padding-left: 0.2rem;
  border-radius: 50%;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.18);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.25);
  animation: play-pulse 2.6s ease-in-out infinite;
}

@keyframes play-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.22); }
  50%      { box-shadow: 0 0 0 14px rgba(34, 211, 238, 0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.9, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}

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

/* Glassmorphism cards.

   Each card carries the accent of the tool it opens, so the color a visitor
   clicks is the color that greets them on the other side. The hue is set once
   per card as a variable — the mark and the CTA read from it. `-rgb` is the
   same hue unwrapped, because rgba() needs the channels loose to vary alpha.

   `--card-ambient-rgb` is the wash behind the card (cursor glow, hover shadow).
   It follows the accent by default, but stays separate so a card can carry a
   hue that only works as a mark and not as a full-card tint. */
.card {
  --card-accent: var(--cyan);
  --card-accent-rgb: 34, 211, 238;
  --card-ambient-rgb: var(--card-accent-rgb);
  position: relative;
  display: block;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(15, 17, 35, 0.8), rgba(10, 12, 25, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transform-style: preserve-3d;
  box-shadow: 0 2px 12px -4px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: transform 0.45s cubic-bezier(0.22, 0.9, 0.3, 1),
              border-color 0.4s ease,
              box-shadow 0.45s ease,
              opacity 0.7s ease;
}

.card-lea { --card-accent: var(--violet); --card-accent-rgb: 168, 85, 247; }

/* TAD sits between ProveRAG's cyan and LEA's violet, so the three cards walk
   the same arc as the hero gradient. */
.card-tad { --card-accent: var(--iris); --card-accent-rgb: 99, 102, 241; }

.card.visible:hover {
  transform: translateY(-10px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 16px -6px rgba(var(--card-ambient-rgb), 0.25),
              0 28px 70px -20px rgba(var(--card-ambient-rgb), 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Cursor-following glow */
.card-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%),
    rgba(var(--card-ambient-rgb), 0.14), transparent 70%);
}

.card:hover .card-glow { opacity: 1; }

.card-body {
  position: relative;
  padding: 2.4rem 2.2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-icon {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--card-accent);
  background: linear-gradient(135deg, rgba(var(--card-accent-rgb), 0.1), rgba(var(--card-accent-rgb), 0.05));
  border: 1px solid rgba(var(--card-accent-rgb), 0.2);
  box-shadow: 0 4px 16px -6px rgba(var(--card-accent-rgb), 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease;
}

.card:hover .card-icon {
  transform: scale(1.05) rotate(-3deg);
  box-shadow: 0 6px 20px -6px rgba(var(--card-accent-rgb), 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.card-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, #e0e7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.card-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-dim);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.4rem;
}

.badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.card:hover .badge {
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.card-cta {
  margin-top: 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--card-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.card-cta .arrow {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 1.1em;
}
.card:hover .card-cta .arrow { transform: translateX(6px); }
.card:hover .card-cta { gap: 0.6rem; }

/* Coming-soon card (no link yet) */
.card-soon { cursor: default; }
.card-soon.visible:hover { transform: none; }
.card-soon .card-cta { color: var(--text-faint); }

/* ── About the frameworks ─────────────────────────────────────────────── */

.about-frameworks {
  position: relative;
  max-width: 101rem;
  margin: 0 auto;
  padding: 6rem 1.5rem 8rem;
}

/* Subtle gradient divider at top */
.about-frameworks::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(80%, 600px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), rgba(34, 211, 238, 0.3), transparent);
}

.section-intro {
  max-width: 52rem;
  margin: 0 auto 4rem;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-dim);
  position: relative;
}

/* Decorative quotes around intro */
.section-intro::before,
.section-intro::after {
  font-family: Georgia, serif;
  font-size: 4rem;
  color: rgba(99, 102, 241, 0.15);
  position: absolute;
  line-height: 1;
}

.section-intro::before {
  content: "\201C";
  top: -1.5rem;
  left: -0.5rem;
}

.section-intro::after {
  content: "\201D";
  bottom: -2.5rem;
  right: -0.5rem;
}

.section-intro em {
  color: var(--cyan);
  font-style: normal;
  font-weight: 600;
  text-shadow: 0 0 30px rgba(34, 211, 238, 0.3);
}

/* ── About us ─────────────────────────────────────────────────────────── */

.about-us {
  position: relative;
  max-width: 68rem;
  margin: 0 auto;
  padding: 6rem 1.5rem 8rem;
}

/* Subtle gradient divider at top */
.about-us::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(80%, 600px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.3), rgba(34, 211, 238, 0.3), transparent);
}

/* Profile styled as an elegant glass card. On the landing page the whole card
   is a link to /reza, so it also has to reset anchor styling. */
.profile-card {
  --card-accent: var(--cyan);
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(15, 17, 35, 0.9), rgba(10, 12, 25, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.22, 0.9, 0.3, 1),
              border-color 0.4s ease,
              box-shadow 0.5s ease,
              opacity 0.7s ease;
}

/* Animated gradient border effect */
.profile-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--indigo) 20%,
    var(--cyan) 50%,
    var(--violet) 80%,
    transparent 100%);
  background-size: 200% auto;
  animation: shimmer 8s linear infinite;
  z-index: 2;
}

/* Ambient glow behind the card */
.profile-card::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(ellipse at 30% 20%, rgba(79, 70, 229, 0.08), transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(168, 85, 247, 0.06), transparent 50%);
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.profile-card:hover::after {
  opacity: 1.5;
}

.profile-card .card-glow {
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%),
    rgba(99, 102, 241, 0.12), transparent 60%);
}

.profile-card:hover .card-glow { opacity: 1; }

.profile-card.visible:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px -8px rgba(79, 70, 229, 0.3),
              0 32px 80px -24px rgba(79, 70, 229, 0.25),
              0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.profile-card-body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 14rem) 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem;
}

.profile-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  padding: 3px;
  background: linear-gradient(135deg, var(--indigo), #6366f1, var(--cyan), var(--violet));
  background-size: 300% 300%;
  animation: gradient-shift 8s ease infinite;
  box-shadow: 0 8px 32px -12px rgba(79, 70, 229, 0.5),
              0 20px 50px -20px rgba(34, 211, 238, 0.3);
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Soft glow bloom behind the framed photo */
.profile-photo::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--indigo), var(--cyan), var(--violet));
  filter: blur(28px);
  opacity: 0.3;
  z-index: -1;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.profile-card:hover .profile-photo::after {
  opacity: 0.5;
  transform: scale(1.05);
}

.profile-photo img,
.profile-photo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 19px;
  object-fit: cover;
  display: block;
}

.profile-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--text-faint);
  background: linear-gradient(135deg, #0d0f1f, #0a0c1a);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.profile-photo-placeholder svg {
  opacity: 0.5;
}

.profile-info {
  position: relative;
}

.profile-eyebrow {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.8rem;
  padding: 0.35rem 0.8rem;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: 999px;
}

.profile-name {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
  background: linear-gradient(135deg, #fff 0%, #e0e7ff 40%, var(--cyan) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 10s linear infinite;
}

.profile-bio {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-dim);
  max-width: 38rem;
}

.profile-bio::first-line {
  color: var(--text);
}

.profile-card .card-cta {
  display: inline-flex;
  margin-top: 1.8rem;
}

.profile-card:hover .card-cta { gap: 0.6rem; }
.profile-card:hover .card-cta .arrow { transform: translateX(6px); }

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.profile-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.22, 0.9, 0.3, 1);
}

.profile-links a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(34, 211, 238, 0.1));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.profile-links a:hover {
  color: #fff;
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px -8px rgba(99, 102, 241, 0.4);
}

.profile-links a:hover::before {
  opacity: 1;
}

.profile-links a span {
  position: relative;
  z-index: 1;
}

/* Different colors for each social link */
.profile-links a:nth-child(1):hover { border-color: rgba(66, 133, 244, 0.5); }
.profile-links a:nth-child(2):hover { border-color: rgba(110, 84, 148, 0.5); }
.profile-links a:nth-child(3):hover { border-color: rgba(10, 102, 194, 0.5); }

@media (max-width: 720px) {
  .profile-card-body {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    padding: 2.5rem 2rem;
  }
  .profile-photo {
    width: 12rem;
    margin: 0 auto;
  }
  .profile-name {
    font-size: 2rem;
  }
  .profile-bio {
    font-size: 1rem;
  }
  .profile-links { justify-content: center; }
  .profile-eyebrow { margin-left: auto; margin-right: auto; }
}

/* ── Flow diagrams (converging threads, AuditLM pipeline) ─────────────── */

/* Shared by the landing page and the personal page, so they live here rather
   than in reza.css.

   Shared connector rail. The SVG is stretched with preserveAspectRatio="none"
   so it always spans whatever gap the grid leaves; paths are orthogonal and
   carry vector-effect="non-scaling-stroke" so the stretch cannot smear them.
   pathLength="100" normalises every path so one dash length fits all. */
.flow-rail { position: relative; }

/* Absolute rather than height:100% so the SVG never participates in sizing the
   rail — the rail's height comes from the grid row, and the art just fills it. */
.flow-rail svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.flow-line {
  fill: none;
  stroke: rgba(148, 163, 214, 0.42);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.3s;
}

.visible .flow-line { stroke-dashoffset: 0; }

/* Nodes cascade in behind the line that leads to them. */
.thread,
.pipeline-stage,
.lens {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.9, 0.3, 1);
}

.visible .thread,
.visible .pipeline-stage,
.visible .lens {
  opacity: 1;
  transform: translateY(0);
}

.visible .thread:nth-child(2), .visible .pipeline-stage:nth-child(2) { transition-delay: 0.1s; }
.visible .thread:nth-child(3), .visible .pipeline-stage:nth-child(3) { transition-delay: 0.2s; }
.visible .lens:nth-child(1) { transition-delay: 1.15s; }
.visible .lens:nth-child(2) { transition-delay: 1.25s; }
.visible .lens:nth-child(3) { transition-delay: 1.35s; }

/* ── Three threads converging ─────────────────────────────────────────── */

/* 88rem is the widest .cards ever gets (3 × 28rem + 2 × 2rem gap), so on the
   landing page — whose section is a much wider 101rem — the diagrams line up
   with the card grid above instead of overhanging it. On the personal page the
   section is narrower than this, so the cap never bites. */
.pipeline,
.thread-flow {
  max-width: 88rem;
  margin-inline: auto;
}

.thread-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6.5rem minmax(0, 15rem);
  align-items: center;
  gap: 0;
  margin-top: 2.5rem;
}

.thread-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  list-style: none;
}

.thread {
  --thread-accent: var(--cyan);
  --thread-accent-rgb: 34, 211, 238;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.95rem;
  align-items: start;
  padding: 1.05rem 1.25rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  /* Accent hairline on the edge the thread leaves from. */
  border-left: 2px solid rgba(var(--thread-accent-rgb), 0.55);
}

.thread-attr { --thread-accent: var(--violet); --thread-accent-rgb: 168, 85, 247; }
.thread-infl { --thread-accent: var(--iris); --thread-accent-rgb: 99, 102, 241; }

.thread-icon {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 11px;
  color: var(--thread-accent);
  background: rgba(var(--thread-accent-rgb), 0.1);
  border: 1px solid rgba(var(--thread-accent-rgb), 0.22);
}

.thread-text { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }

.thread-text strong {
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.thread-name { color: var(--thread-accent); }

.thread-text span {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-faint);
}

/* Stretch to the thread list's height so the branch points stay level with the
   first and third cards no matter how their text wraps. */
.thread-merge { align-self: stretch; }

.thread-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 1.6rem 1.4rem;
  text-align: center;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(15, 17, 35, 0.85), rgba(10, 12, 25, 0.92));
  border: 1px solid rgba(99, 102, 241, 0.3);
  box-shadow: 0 20px 55px -30px rgba(99, 102, 241, 0.8);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s ease 1.15s, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.15s;
}

.visible .thread-hub { opacity: 1; transform: scale(1); }

.thread-hub-mark {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--indigo) 0%, #6366f1 50%, var(--cyan) 100%);
  box-shadow: 0 8px 24px -8px rgba(34, 211, 238, 0.5);
}

.thread-hub strong {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.thread-hub span:last-child {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

/* ── The pipeline: one RAG round-trip, three audits ───────────────────── */

/* Neutral on purpose. Cyan, purple and indigo each already name a tool
   (ProveRAG, LEA, TAD), so a single hue here would read as "this section is
   that tool's" — wrong, the pipeline covers all three. The distinction comes
   from the underline instead, which carries all three colors at once. */
.pipeline-heading {
  margin-top: 4rem;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* Scaled-down sibling of .section-heading.has-accent::after — narrower and
   thinner, so an h3 does not shout as loud as an h2. */
.pipeline-heading::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 2px;
  margin: 0.75rem auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--indigo), var(--cyan), var(--violet));
  background-size: 200% auto;
  animation: shimmer 6s linear infinite;
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.25);
}

.pipeline { margin-top: 2.6rem; }

.pipeline-stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  list-style: none;
}

.pipeline-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.15rem 1.3rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
}

/* Chevron in the gap between stages. */
.pipeline-stage + .pipeline-stage::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -0.62rem;
  width: 0.42rem;
  height: 0.42rem;
  border-top: 1.5px solid rgba(148, 163, 214, 0.55);
  border-right: 1.5px solid rgba(148, 163, 214, 0.55);
  transform: translateY(-50%) rotate(45deg);
}

/* The response is what everything downstream is auditing, so it carries the accent. */
.pipeline-stage.is-output {
  border-color: rgba(99, 102, 241, 0.32);
  background: rgba(99, 102, 241, 0.06);
}

.pipeline-stage-kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.pipeline-stage strong {
  font-size: 0.99rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.pipeline-stage > span:last-child {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-faint);
}

.pipeline-fan { height: 4rem; }

.pipeline-lenses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  list-style: none;
}

.lens {
  --lens-accent: var(--cyan);
  --lens-accent-rgb: 34, 211, 238;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.15rem 1.3rem;
  border-radius: 16px;
  text-align: center;
  background: linear-gradient(180deg, rgba(var(--lens-accent-rgb), 0.09), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(var(--lens-accent-rgb), 0.28);
}

.lens-attr { --lens-accent: var(--violet); --lens-accent-rgb: 168, 85, 247; }
.lens-infl { --lens-accent: var(--iris); --lens-accent-rgb: 99, 102, 241; }

.lens-name {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--lens-accent);
}

.lens-role {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.lens-q {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-dim);
}

/* Both diagrams stack. The stretched SVG connectors only read as a merge or a
   fan when the nodes sit side by side, so swap them for a plain vertical stem
   that still draws itself in. */
@media (max-width: 720px) {
  .thread-flow,
  .pipeline-stages,
  .pipeline-lenses { grid-template-columns: 1fr; }

  .thread-flow { display: flex; flex-direction: column; }
  .thread-hub { width: 100%; }

  .flow-rail svg { display: none; }

  .flow-rail {
    position: relative;
    height: 2.4rem;
  }

  .flow-rail::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1.5px;
    margin-left: -0.75px;
    background: linear-gradient(180deg, rgba(148, 163, 214, 0.12), rgba(148, 163, 214, 0.5));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1) 0.3s;
  }

  .visible .flow-rail::before { transform: scaleY(1); }

  /* Chevron moves from between columns to between rows. */
  .pipeline-stage + .pipeline-stage::before {
    top: -0.62rem;
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
  }

  .lens { text-align: left; }
}

/* ── Footer ───────────────────────────────────────────────────────────── */

.footer {
  position: relative;
  text-align: center;
  padding: 3.5rem 1.5rem 4rem;
  color: var(--text-faint);
  font-size: 0.85rem;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.06em;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(60%, 400px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.footer p {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.footer p::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.4);
}

/* ── Reduced motion ───────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob, .title, .eyebrow, .tagline, .subline, .scroll-cue,
  .section-heading.has-accent::after, .pipeline-heading::after,
  .subsection-heading::after, .profile-card::before,
  .video-frame::before, .play-badge, .profile-photo, .profile-name {
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .flow-line,
  .thread,
  .pipeline-stage,
  .lens,
  .thread-hub,
  .flow-rail::before {
    opacity: 1;
    transform: none;
    stroke-dashoffset: 0;
    transition: none;
  }
  #particles { display: none; }
}
