/* ============================================================
   FBRN-WatchDog — Fabeeo Breen personal site
   Cyber / dark-tech aesthetic. Static, no build step.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg: #04070b;
  --bg-soft: #080d14;
  --panel: #0b111b;
  --panel-2: #0e1622;
  --line: #17212f;
  --line-strong: #243247;

  --text: #e8eef5;
  --text-dim: #8b98a8;
  --text-faint: #55616f;

  --accent: #2fe6c8;      /* electric teal/cyan */
  --accent-soft: rgba(47, 230, 200, 0.12);
  --accent-2: #8b5cf6;    /* violet secondary */

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.85rem;
  --text-base: 0.95rem;
  --text-md: 1.05rem;
  --text-lg: clamp(1.05rem, 1.45vw, 1.2rem);

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 600ms;
  --speed: var(--dur);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  background: #04070b;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: var(--bg); }

/* ---------- Ambient background ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  overflow: hidden;
}
.bg__grain {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256' viewBox='0 0 256 256'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  mix-blend-mode: screen;
  opacity: 0.035;
  contain: strict;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.bg__glow {
  position: absolute;
  top: -20%; left: 50%;
  transform: translateX(-50%);
  width: 80vw; height: 60vh;
  background: radial-gradient(ellipse at center,
    rgba(47, 230, 200, 0.12) 0%,
    rgba(139, 92, 246, 0.06) 45%,
    transparent 70%);
  opacity: 0.8;
  z-index: -2;
  pointer-events: none;
}
.bg__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.35) 100%);
}

/* ---------- Typography ---------- */
.kicker {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
h1, h2 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }
h3 { font-family: var(--font-body); font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px var(--gutter);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(4, 7, 11, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav__brand {
  justify-self: start;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  font-weight: 600;
}
.flip-word-swap {
  display: inline-grid;
  align-items: baseline;
  border-radius: 2px;
  perspective: 800px;
}
.flip-word-swap:focus-visible {
  outline: 1px solid rgba(47, 230, 200, 0.65);
  outline-offset: 5px;
}
.flip-word-swap__viewport {
  display: inline-grid;
  overflow: hidden;
  perspective: 800px;
}
.flip-word-swap__word {
  grid-column: 1;
  grid-row: 1;
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.012em;
  white-space: pre;
}
.flip-word-swap__word--second { color: var(--accent); }
.flip-word-swap__char {
  display: inline-block;
  white-space: pre;
  backface-visibility: hidden;
  will-change: transform, opacity;
}
.nav__links { display: flex; justify-self: center; gap: 28px; }
.nav__links a {
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: color var(--speed);
}
.nav__links a:hover { color: var(--text); }
.nav__status {
  justify-self: end;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 0;
  isolation: isolate;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--gutter) 80px;
  max-width: var(--maxw);
  margin: 0 auto;
}
/* Prism gradient WebGL backdrop (full-bleed behind hero content) */
.hero__prism {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 100vh;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  opacity: 0.9;
}
.hero__content { position: relative; z-index: 1; }
/* Text-repel letters (splintered by JS) */
.repel-letter {
  display: inline-block;
  white-space: pre;
  will-change: transform;
}
.hero__kicker { margin-bottom: 28px; }
.text-morph {
  position: relative;
  display: inline-block;
  max-width: 100%;
  vertical-align: baseline;
}
.text-morph svg {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}
.text-morph__stage {
  position: relative;
  display: inline-block;
  min-width: 0;
  max-width: 100%;
  user-select: none;
  vertical-align: baseline;
}
.text-morph__layer {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: max-content;
  white-space: pre;
  transform: scale(1);
  transform-origin: center;
}
.hero__title {
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.85;
  margin-bottom: 28px;
}
.hero__accent { color: var(--accent); }
.hero__sub {
  max-width: 620px;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-dim);
  margin-bottom: 40px;
}
.hero__sub em { color: var(--text); font-style: normal; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero__meta {
  display: flex; gap: 32px; flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--text-faint);
}
.hero__meta-item { position: relative; padding-left: 14px; }
.hero__meta-item::before {
  content: "▸";
  position: absolute; left: 0;
  color: var(--accent);
}
.hero__scroll {
  position: absolute;
  bottom: 32px; left: var(--gutter);
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--text-faint);
}
.hero__scroll-line {
  display: block;
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--speed);
}
.btn--primary {
  background: var(--accent);
  color: var(--bg);
  font-weight: 500;
}
.btn--primary:hover {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(47, 230, 200, 0.35);
}
.btn--ghost {
  color: var(--text-dim);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  color: var(--text);
  border-color: var(--accent);
}
.btn--lg { padding: 18px 34px; font-size: 0.85rem; }

/* ---------- Sections ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 150px var(--gutter);
  position: relative;
  isolation: isolate;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #04070b;
}
#agile,
#journey,
#contact { background: #060a10; }
.section::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  z-index: -2;
  width: 100vw;
  transform: translateX(-50%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #04070b;
  pointer-events: none;
}
#agile::after,
#journey::after,
#contact::after { background: #060a10; }
#work::before,
#agile::before,
#xnode::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(47, 230, 200, 0.10) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}
#work > *, #agile > *, #xnode > * { position: relative; z-index: 1; }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__title {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  margin-top: 18px;
}
.section__title span { color: var(--text-dim); }
.section__lede { margin-top: 16px; color: var(--text-dim); max-width: 560px; font-size: var(--text-lg); }

/* ---------- Services / connected responsive panels ---------- */
.services {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 5.5rem;
  row-gap: 1.5rem;
}
.card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 220px;
  padding: clamp(26px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(47, 230, 200, 0.10), transparent 48%),
    var(--panel);
  transition: background var(--speed), transform 0.4s ease;
}
.services__net {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.services .card:hover,
.services .card.is-net-active {
  transform: none;
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}
.services__line,
.services__hub-ring,
.services__hub-tick,
.services__node-halo,
.services__pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.services__spine { opacity: 0.45; }
.services__stub {
  opacity: 0.4;
  transition: opacity 300ms ease;
}
.services__junction {
  fill: var(--accent);
  opacity: 0.65;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 300ms ease;
}
.services__node {
  fill: var(--accent);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 300ms ease, transform 300ms ease;
}
.services__node-halo {
  opacity: 0;
  transition: opacity 300ms ease;
}
.services__hub-glow {
  fill: url(#services-hub-glow);
}
.services__hub-glow-start {
  stop-color: var(--accent);
  stop-opacity: 0.12;
}
.services__hub-glow-end {
  stop-color: var(--accent);
  stop-opacity: 0;
}
.services__hub {
  opacity: 0;
}
.services__hub-ring,
.services__hub-tick { stroke-width: 1.25; }
.services__hub-ring { opacity: 0.78; }
.services__hub-ring--outer { opacity: 0.5; }
.services__hub-tick { opacity: 0.9; }
.services__stub.is-active,
.services__junction.is-active,
.services__node.is-active {
  opacity: 1;
  filter: drop-shadow(0 0 6px var(--accent));
}
.services__stub.is-active { stroke-width: 1.5; }
.services__junction.is-active,
.services__node.is-active { stroke: var(--accent); stroke-width: 1.5; }
.services__node.is-active {
  transform: scale(1.2);
}
.services__node.is-pulsed { transform: scale(1.6); }
.services__node-halo.is-active,
.services__node-halo.is-pulsed { opacity: 0.85; }
.services__pulse {
  opacity: 1;
  stroke-width: 1.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px var(--accent));
}
@media (min-width: 768px) {
  .services__hub-rotor {
    transform-box: fill-box;
    transform-origin: center;
    animation: servicesHubSpin 20s linear infinite;
    animation-play-state: paused;
  }
  #work.is-ambient-active .services__hub-rotor { animation-play-state: running; }
  .services__hub-ring--outer { stroke-dasharray: 11 6; }
  .services__net.is-hovering .services__hub-rotor {
    animation-duration: 10s;
  }
}
@keyframes servicesHubSpin {
  to { transform: rotate(360deg); }
}
.card:hover { background-color: var(--panel-2); }
.card__num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  letter-spacing: 0.08em;
}
.card__title {
  margin: 14px 0 10px;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.18;
}
.card__body {
  max-width: 500px;
  color: var(--text-dim);
  font-size: var(--text-base);
  line-height: 1.6;
}

/* ---------- Specialised capabilities ---------- */
.capabilities {
  margin-top: 4rem;
}
.capabilities__kicker {
  margin-bottom: 1.25rem;
}
.capabilities__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 0.875rem;
}
.cap {
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.cap__tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  letter-spacing: 0.08em;
}
.cap__title {
  margin: 0.875rem 0 0.625rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
}
.cap__body {
  color: var(--text-dim);
  font-size: var(--text-base);
  line-height: 1.6;
}

/* ---------- Chatbot / agent contrast ---------- */
.contrast {
  width: min(100%, calc(960px + (var(--gutter) * 2)));
  margin: 0 auto;
  padding: 5rem var(--gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.contrast__title {
  margin-bottom: 2.25rem;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
}
.contrast__title span { color: var(--accent); }
.contrast__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 5vw, 4rem);
}
.contrast__col {
  padding-left: 1.25rem;
  border-left: 1px solid var(--line-strong);
}
.contrast__col--chatbot { color: color-mix(in srgb, var(--text) 60%, transparent); }
.contrast__col--agent {
  border-color: var(--accent);
  color: var(--text);
}
.contrast__label {
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
}
.contrast__col--agent .contrast__label { color: var(--accent); }
.contrast__col ul { list-style: none; }
.contrast__col li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.1rem;
  line-height: 1.45;
}
.contrast__col li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: currentColor;
}
.contrast__col--agent li:last-child { color: var(--accent); }
.contrast__note {
  margin-top: 2.5rem;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0;
  text-align: center;
}

/* ---------- Agile operating model / Componentry Circuit Board port ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.agile__head { max-width: 980px; }
.agile {
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  gap: 4rem;
  align-items: stretch;
}
.agile__copy {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--text-dim);
  font-size: var(--text-base);
}
.agile__copy::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: -24px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), rgba(47, 230, 200, 0.04));
}
.agile__lead {
  color: var(--text);
  font-size: var(--text-md);
  line-height: 1.55;
}
.agile__lead em { color: var(--accent); font-style: normal; }
.agile__principle {
  margin-top: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}
.agile__principle span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.agile__principle strong {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.35;
}
.agile-board {
  position: relative;
  aspect-ratio: 1000 / 620;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(47, 230, 200, 0.035), transparent 42%),
    rgba(6, 11, 17, 0.78);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.42), 0 32px 90px rgba(0, 0, 0, 0.20);
  isolation: isolate;
}
.agile__board-cell {
  min-width: 0;
  align-self: stretch;
}
.agile__board-cell > .agile-board {
  position: sticky;
  top: calc(var(--nav-height, 72px) + 24px);
  align-self: start;
}
.agile-board::before,
.agile-board::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  z-index: 4;
  pointer-events: none;
}
.agile-board::before {
  top: 10px;
  left: 10px;
  border-top: 1px solid rgba(47, 230, 200, 0.4);
  border-left: 1px solid rgba(47, 230, 200, 0.4);
}
.agile-board::after {
  right: 10px;
  bottom: 10px;
  border-right: 1px solid rgba(47, 230, 200, 0.4);
  border-bottom: 1px solid rgba(47, 230, 200, 0.4);
}
.agile-board__status {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
}
.agile-board__status .dot { width: 6px; height: 6px; }
.agile-board__traces {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: visible;
}
.agile-board__traces--mobile { display: none; }
.agile-mobile-trace {
  fill: none;
  stroke: rgba(47, 230, 200, 0.46);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  transition: stroke-dashoffset var(--dur) var(--ease) var(--draw-delay, 0ms);
}
.agile-mobile-trace--branch { stroke: rgba(47, 230, 200, 0.58); }
.agile-mobile-via {
  fill: var(--accent);
  opacity: 0;
  filter: drop-shadow(0 0 4px var(--accent));
  transition: opacity var(--dur) var(--ease) 560ms;
}
.agile-board__traces--mobile.is-entered .agile-mobile-trace { stroke-dashoffset: 0 !important; }
.agile-board__traces--mobile.is-entered .agile-mobile-via { opacity: 0.82; }
.agile-trace {
  fill: none;
  stroke: rgba(47, 230, 200, 0.22);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition: stroke 220ms ease, opacity 220ms ease;
}
.agile-trace--pulse {
  stroke: rgba(47, 230, 200, 0.92);
  stroke-width: 3;
  stroke-dasharray: 54 646;
  stroke-dashoffset: 700;
  filter: url(#agile-glow);
  opacity: 0.64;
  animation: agileCurrent var(--pulse-duration, 3.4s) linear var(--pulse-delay, 0s) infinite;
  animation-play-state: paused;
}
#agile.is-ambient-active .agile-trace--pulse { animation-play-state: running; }
.agile-trace--reverse { animation-direction: reverse; opacity: 0.34; }
.agile-connection.is-active .agile-trace {
  stroke: var(--accent);
  opacity: 1;
}
.agile-connection.is-active .agile-trace--pulse { stroke-width: 5; }
.agile-node {
  position: absolute;
  z-index: 2;
  width: clamp(112px, 10vw, 142px);
  min-height: 58px;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 10px 13px;
  border: 1px solid rgba(47, 230, 200, 0.34);
  border-radius: 4px;
  background: rgba(8, 15, 22, 0.96);
  color: var(--text);
  font-family: var(--font-body);
  text-align: left;
  cursor: default;
  box-shadow: 0 0 0 rgba(47, 230, 200, 0);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.agile-board__nodes { display: contents; }
.agile-node--human { border-style: solid; }
.agile-node--agent { border-style: dashed; }
.agile-node--system { border-style: dotted; }
.agile-node::before {
  content: "";
  position: absolute;
  top: -3px;
  right: 8px;
  width: 18px;
  height: 5px;
  background: var(--accent);
  opacity: 0.55;
}
.agile-node span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
}
.agile-node strong { font-size: 0.78rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.agile-node:hover,
.agile-node:focus-visible,
.agile-node.is-active {
  outline: none;
  border-color: var(--accent);
  background: rgba(12, 27, 34, 0.98);
  box-shadow: 0 0 24px rgba(47, 230, 200, 0.18), inset 0 0 16px rgba(47, 230, 200, 0.06);
  transform: translate(-50%, -50%) scale(1.045);
}
.agile-node:focus-visible { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.agile-node--strategy { left: 14.5%; top: 15.3%; }
.agile-node--creative { left: 86.5%; top: 28.1%; }
.agile-node--expertise { left: 17%; top: 70.3%; }
.agile-node--research { left: 83%; top: 61.6%; }
.agile-node--production { left: 47%; top: 12%; }
.agile-node--operations { left: 57%; top: 88%; }
.agile-board__decor path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0.15;
  vector-effect: non-scaling-stroke;
}
.agile-board__decor circle,
.agile-board__vias circle {
  fill: var(--accent);
  opacity: 0.22;
}
.agile-board__vias circle { opacity: 0.58; }
.agile-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: clamp(120px, 10vw, 142px);
  height: clamp(120px, 10vw, 142px);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(47, 230, 200, 0.13), rgba(139, 92, 246, 0.05)),
    #081019;
  text-align: center;
  box-shadow: 0 0 38px rgba(47, 230, 200, 0.20), inset 0 0 28px rgba(47, 230, 200, 0.08);
  animation: agileCore 3.2s ease-in-out infinite;
  animation-play-state: paused;
}
#agile.is-ambient-active .agile-core { animation-play-state: running; }
.agile-core::before,
.agile-core::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(47, 230, 200, 0.18);
  border-radius: 8px;
}
.agile-core::after {
  inset: -28px;
  z-index: -1;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 230, 200, 0.18), transparent 68%);
  animation: agileCoreGlow 3.2s ease-in-out infinite;
  animation-play-state: paused;
}
#agile.is-ambient-active .agile-core::after { animation-play-state: running; }
.agile-core__eyebrow,
.agile-core__state {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
}
.agile-core strong { margin: 9px 0; font-size: 1.35rem; line-height: 0.88; letter-spacing: -0.03em; }
.agile-core__state { color: var(--text-faint); font-size: var(--text-xs); }
@keyframes agileCurrent { to { stroke-dashoffset: -700; } }
@keyframes agileCore {
  0%, 100% { box-shadow: 0 0 28px rgba(47, 230, 200, 0.16), inset 0 0 22px rgba(47, 230, 200, 0.06); }
  50% { box-shadow: 0 0 48px rgba(47, 230, 200, 0.28), inset 0 0 34px rgba(47, 230, 200, 0.11); }
}
@keyframes agileCoreGlow {
  0%, 100% { opacity: 0.45; transform: scale(0.92); }
  50% { opacity: 0.82; transform: scale(1.08); }
}

/* ---------- Xnode use-case switcher ---------- */
.xnode-method {
  max-width: 100%;
  margin: 0 0 3rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.xnode-method__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-width: 680px;
  margin: 0;
  padding: 4px 0 0;
  list-style: none;
}
.xnode-method__steps::before {
  content: "";
  position: absolute;
  inset: 4px 0 auto;
  height: 1px;
  background: var(--line);
}
.xnode-method__steps li {
  position: relative;
  min-width: 0;
  padding: 1rem 1.25rem 0 0;
}
.xnode-method__steps li::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  box-sizing: border-box;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
}
.xnode-method__step,
.xnode-method__detail { display: block; }
.xnode-method__step {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
}
.xnode-method__detail {
  margin-top: 0.4rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.45;
  opacity: 0.6;
}
.xnode-switcher {
  display: grid;
  grid-template-columns: minmax(0, 34fr) minmax(0, 66fr);
  grid-template-areas:
    "tabs media"
    "caption media";
  grid-template-rows: auto 1fr;
  column-gap: 3rem;
  align-items: start;
}
.xnode-tabs {
  grid-area: tabs;
  display: flex;
  flex-direction: column;
}
.xnode-tab {
  position: relative;
  width: 100%;
  padding: 1rem 0 1rem 1.125rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.xnode-tab::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--accent);
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity 180ms ease, transform 180ms ease;
}
.xnode-tab__tag {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  transition: color 180ms ease;
}
.xnode-tab__label {
  display: block;
  font-size: 1.15rem;
  opacity: 0.55;
  transition: opacity 180ms ease;
}
.xnode-tab:hover .xnode-tab__label { opacity: 0.8; }
.xnode-tab[aria-selected="true"]::before { opacity: 1; transform: scaleY(1); }
.xnode-tab[aria-selected="true"] .xnode-tab__tag { color: var(--accent); }
.xnode-tab[aria-selected="true"] .xnode-tab__label { opacity: 1; }
.xnode-tab:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
.xnode-caption {
  grid-area: caption;
  min-height: 3.2em;
  margin-top: 1.5rem;
  color: color-mix(in srgb, var(--text) 65%, transparent);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.6;
  transition: opacity var(--dur) var(--ease);
}
.xnode-caption[aria-hidden="true"] { visibility: hidden; }
.xnode-caption.is-changing { opacity: 0; }
.xnode-media-frame {
  position: relative;
  grid-area: media;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at center, rgba(47,230,200,0.08), transparent 65%),
    var(--panel);
  touch-action: pan-y;
}
.xnode-media-frame::before,
.xnode-media-frame::after {
  content: "";
  position: absolute;
  z-index: 4;
  width: 12px;
  height: 12px;
  pointer-events: none;
}
.xnode-media-frame::before {
  top: 10px;
  left: 10px;
  border-top: 1px solid rgba(47, 230, 200, 0.4);
  border-left: 1px solid rgba(47, 230, 200, 0.4);
}
.xnode-media-frame::after {
  right: 10px;
  bottom: 10px;
  border-right: 1px solid rgba(47, 230, 200, 0.4);
  border-bottom: 1px solid rgba(47, 230, 200, 0.4);
}
.xnode-media-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.xnode-media-layer.is-active { z-index: 1; opacity: 1; }
.xnode-media-layer img,
.xnode-media-layer video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}
.xnode-media-open {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.xnode-media-open:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.xnode-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 0.875rem;
  margin-top: 4rem;
}
.xnode-feature {
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: transparent;
}
.xnode-feature__tag {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
}
.xnode-feature h3 {
  margin: 0.875rem 0 0.625rem;
  font-size: 1rem;
  line-height: 1.25;
}
.xnode-feature p {
  color: var(--text-dim);
  font-size: var(--text-base);
  line-height: 1.55;
}
.xnode-closing {
  max-width: 640px;
  margin-top: 2.5rem;
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.55;
  text-align: left;
}
.xnode-closing span { color: var(--accent); }
.xnode-cta { display: flex; justify-content: flex-end; margin-top: 2rem; }
.xnode-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 4rem);
  background: rgba(2, 5, 8, 0.94);
  backdrop-filter: blur(12px);
}
.xnode-lightbox[hidden] { display: none; }
.xnode-lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  cursor: pointer;
}
.xnode-lightbox__media {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
.xnode-lightbox__media img,
.xnode-lightbox__media video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
body.has-xnode-lightbox { overflow: hidden; }

/* ---------- Journey / timeline ---------- */
.timeline {
  list-style: none;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  overflow: visible;
}
.timeline::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 28px;
  left: calc((100% - 48px) / 8);
  right: calc((100% - 48px) / 8);
  height: 1px;
  background: rgba(47, 230, 200, 0.3);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.timeline.is-drawn::before { transform: scaleX(1); }
.journey-act {
  position: relative;
  display: grid;
  grid-template-rows: 72px 1fr;
  min-width: 0;
}
.journey-act__connector {
  position: relative;
  z-index: 1;
}
.journey-node {
  position: absolute;
  top: 14px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1;
  transform: translateX(-50%) scale(0.7);
  opacity: 0;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease,
    color 180ms ease, opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: calc(var(--act-index) * 60ms);
}
.journey-stub {
  position: absolute;
  top: 42px;
  bottom: 0;
  left: calc(50% - 0.5px);
  width: 1px;
  background: rgba(47, 230, 200, 0.28);
  transform: scaleY(0);
  transform-origin: top;
  transition: background 180ms ease, box-shadow 180ms ease,
    transform var(--dur) var(--ease);
  transition-delay: calc(180ms + var(--act-index) * 60ms);
}
.journey-via {
  position: absolute;
  z-index: 2;
  bottom: -3px;
  left: calc(50% - 3px);
  width: 6px;
  height: 6px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
  opacity: 0;
  transform: scale(0.6);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease,
    opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: calc(460ms + var(--act-index) * 60ms);
}
.timeline.is-drawn .journey-node,
.timeline.is-drawn .journey-via {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}
.timeline.is-drawn .journey-via { transform: scale(1); }
.timeline.is-drawn .journey-stub { transform: scaleY(1); }
.stage {
  position: relative;
  height: 100%;
  min-height: 240px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: background var(--speed), border-color 180ms ease, box-shadow 180ms ease;
  outline: none;
}
.stage:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}
.stage__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  column-gap: 12px;
  row-gap: 4px;
}
.stage:hover { background: var(--panel-2); }
.stage__era {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
}
.act__tag { white-space: nowrap; }
.stage__years {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  opacity: 0.5;
  text-align: right;
}
.stage__title { font-size: 1.15rem; margin: 14px 0 10px; }
.stage__body { color: var(--text-dim); font-size: var(--text-base); }
.journey-act:is(:hover, :focus-within, .is-active) .stage {
  border-color: rgba(47, 230, 200, 0.4);
  box-shadow: inset 0 0 0 1px rgba(47, 230, 200, 0.08);
}
.journey-act:is(:hover, :focus-within, .is-active) .journey-node {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 14px rgba(47, 230, 200, 0.24);
}
.journey-act:is(:hover, :focus-within, .is-active) .journey-stub {
  background: rgba(47, 230, 200, 0.7);
  box-shadow: 0 0 8px rgba(47, 230, 200, 0.35);
}
.journey-act:is(:hover, :focus-within, .is-active) .journey-via {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(47, 230, 200, 0.45);
}
.journey-closing {
  max-width: 640px;
  margin-top: 32px;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.6;
}

/* ---------- Archive ---------- */
#archive .section__head { margin-bottom: 0; }
.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 2.5rem;
  padding: 0;
  list-style: none;
}
.tools li {
  padding: 0.35em 0.75em;
  border: 1px solid rgba(47, 230, 200, 0.25);
  border-radius: 999px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
}
.archive { display: flex; flex-direction: column; gap: 36px; }
.archive__highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.archive__item {
  background: var(--panel);
  padding: 28px 24px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background var(--speed);
}
.archive__item:hover { background: var(--panel-2); }
.archive__tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--accent-2);
}
.archive__label { font-size: 1.1rem; font-weight: 500; }

/* ---------- Contact ---------- */
.section--contact { text-align: center; }
.section--contact .section__head { margin-left: auto; margin-right: auto; }
.contact { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.contact__primary {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 600;
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  transition: color var(--speed);
}
.contact__primary:hover { color: var(--accent); }
.contact__socials {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 24px;
}
.contact__socials a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  transition: color var(--speed);
}
.contact__socials a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 32px var(--gutter);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--text-faint);
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
  isolation: isolate;
  background: #030508;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  z-index: -1;
  width: 100vw;
  transform: translateX(-50%);
  background: #030508;
  pointer-events: none;
}
.footer__top:hover { color: var(--accent); }

/* ---------- Animations ---------- */
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes scrollLine {
  0%, 100% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
}

/* ---------- Responsive ---------- */
@media (max-width: 899px) {
  .xnode-method { margin-bottom: 2.25rem; }
  .xnode-method__steps {
    grid-template-columns: repeat(5, minmax(108px, 1fr));
    min-width: 600px;
  }
  .xnode-method__steps li { padding-top: 0.9rem; }
  .xnode-switcher {
    grid-template-columns: 1fr;
    grid-template-areas:
      "tabs"
      "media"
      "caption";
    gap: 1.25rem;
  }
  .xnode-tabs {
    flex-direction: row;
    gap: 0.625rem;
    overflow-x: auto;
    padding: 0 1px 0.5rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .xnode-tabs::-webkit-scrollbar { display: none; }
  .xnode-tab {
    flex: 0 0 auto;
    width: auto;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    scroll-snap-align: start;
  }
  .xnode-tab::before { display: none; }
  .xnode-tab__tag { margin-bottom: 0.18rem; font-size: var(--text-xs); }
  .xnode-tab__label { font-size: 0.82rem; white-space: nowrap; }
  .xnode-tab[aria-selected="true"] { border-color: var(--accent); }
  .xnode-media-frame { aspect-ratio: 4 / 3; }
  .xnode-caption { margin-top: 0; min-height: 3.2em; }
  .xnode-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xnode-cta .btn { width: 100%; text-align: center; }
  .agile { grid-template-columns: 1fr; }
  .agile__copy { max-width: 680px; }
  .agile__board-cell { align-self: auto; }
  .agile__board-cell > .agile-board {
    position: relative;
    top: auto;
  }
  .agile-board {
    min-height: 0;
    aspect-ratio: auto;
    padding: 72px 18px 22px;
    background:
      radial-gradient(circle at 1px 1px, rgba(47, 230, 200, 0.08) 1px, transparent 1.2px) 0 0 / 28px 28px,
      linear-gradient(135deg, rgba(47, 230, 200, 0.035), transparent 42%),
      rgba(6, 11, 17, 0.78);
  }
  .agile-board__traces--desktop { display: none; }
  .agile-board__traces--desktop .agile-trace--pulse { animation: none; }
  .agile-board__traces--mobile { display: block; }
  .agile-core {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: 112px;
    transform: none;
  }
  .agile-board__nodes {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 36px;
  }
  .agile-node {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    min-width: 0;
    min-height: 56px;
    transform: none;
    cursor: pointer;
  }
  .agile-node:hover,
  .agile-node:focus-visible,
  .agile-node.is-active { transform: scale(1.025); }
  .timeline {
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
    margin-left: 16px;
  }
  .timeline::before { display: none; }
  .journey-act {
    display: block;
    min-width: 0;
  }
  .journey-act::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 32px;
    left: -20px;
    width: 1px;
    height: calc(100% + 24px);
    background: rgba(47, 230, 200, 0.26);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform var(--dur) var(--ease);
    transition-delay: calc(240ms + var(--act-index) * 60ms);
  }
  .journey-act:last-child::before { display: none; }
  .timeline.is-drawn .journey-act::before { transform: scaleY(1); }
  .journey-act__connector {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
  }
  .journey-node {
    top: 20px;
    left: -32px;
    width: 24px;
    height: 24px;
    border-radius: 5px;
    transform: scale(0.7);
  }
  .timeline.is-drawn .journey-node { transform: scale(1); }
  .journey-stub {
    top: 31.5px;
    bottom: auto;
    left: -8px;
    width: 8px;
    height: 1px;
    transform: scaleX(0);
    transform-origin: left;
  }
  .timeline.is-drawn .journey-stub { transform: scaleX(1); }
  .journey-via {
    top: 29px;
    bottom: auto;
    left: -3px;
  }
  .stage { min-height: 0; }
  .journey-closing { margin-left: 16px; }
}
@media (max-width: 767px) {
  .section { padding-top: 96px; padding-bottom: 96px; }
  .contrast {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  .contrast__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .contrast__title { margin-bottom: 1.75rem; }
  .contrast__note { text-align: left; }
  .services {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-inline: 0;
  }
  .capabilities__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav__links { display: none; }
  .card { min-height: 200px; }
  .hero__meta { gap: 16px; }
  .agile-node { padding: 8px 10px; }
  .agile-node strong { font-size: var(--text-xs); }
  .agile-core { height: 108px; }
  .agile-core strong { font-size: 1.15rem; }
  .agile__copy::before { left: -12px; }
  .xnode-method { overflow-x: visible; }
  .xnode-method__steps {
    display: flex;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
  }
  .xnode-method__steps li { flex: 0 0 auto; padding-right: 0; }
  .xnode-method__detail { display: none; }
  .tilt-grid { gap: 16px 20px; }
  .tilt-tile:nth-child(even) { padding-top: 28px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .flip-word-swap__char { will-change: auto; }
  .services__hub-rotor { animation: none !important; }
  .agile-trace--pulse,
  .agile-core,
  .agile-core::after { animation: none !important; }
  .agile-mobile-trace { stroke-dashoffset: 0 !important; }
  .agile-mobile-via { opacity: 0.82; }
  .timeline::before,
  .journey-act::before,
  .journey-node,
  .journey-stub,
  .journey-via { transition: none !important; }
}

/* ============================================================
   Premium motion additions
   ============================================================ */

/* ---------- Scroll progress bar ---------- */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 70;
  pointer-events: none;
}
.progress__bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

/* ---------- Hero line masks (masked reveal) ---------- */
.hero__line { display: block; overflow: hidden; }
.hero__line-inner { display: inline-block; will-change: transform; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  background: rgba(8, 13, 20, 0.5);
}
.marquee__inner { position: relative; display: flex; width: max-content; animation: marquee var(--marquee-duration, 38s) linear infinite; }
.marquee__group {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.45s ease;
}
.marquee__group span {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  padding: 0 22px;
  white-space: nowrap;
}
.marquee__group i { color: var(--accent); font-style: normal; font-size: var(--text-xs); }
.marquee__particles {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 2;
  display: block;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.96;
  mix-blend-mode: screen;
}
.marquee--particles .marquee__group { opacity: 0.42; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Card / stage / archive: beam glow + lift ---------- */
.card, .stage, .archive__item { position: relative; overflow: hidden; }
.card::after, .stage::after, .archive__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(47, 230, 200, 0.10), transparent 45%);
  opacity: 0;
  transition: opacity 0.45s;
  pointer-events: none;
}
.card:hover::after, .stage:hover::after, .archive__item:hover::after { opacity: 1; }
.card, .archive__item { transition: background var(--speed), transform 0.4s ease; }
.services .card { transition: background var(--speed), transform 0.4s ease, border-color 300ms ease; }
.card:hover, .archive__item:hover { transform: translateY(-4px); }

/* ---------- Reduced motion: stop marquee ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee__inner { animation: none; }
  .marquee__particles { display: none; }
  .marquee--particles .marquee__group { opacity: 1; }
}

/* ---------- Archive: scroll-tilted grid ---------- */
.tilt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 32px;
  align-items: start;
  max-width: 880px;
  margin: 0 auto;
  padding: 16px 0 44px;
}
.tilt-tile { perspective: 1000px; }
.tilt-tile:nth-child(even) { padding-top: 44px; } /* staggered right column */
.tilt-tile__card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--panel);
  transform-style: preserve-3d;
  transform: var(--tile-transform, translate3d(0, 0, 0));
  filter: blur(var(--tile-blur, 0px)) brightness(var(--tile-brightness, 1)) saturate(var(--tile-saturation, 1));
  will-change: transform, filter;
  transition: border-color var(--speed);
}
.tilt-tile__card:hover { border-color: var(--accent); }
.tilt-tile__card img,
.tilt-tile__card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(var(--tile-image-scale, 1.03));
}
.tilt-tile__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.04), transparent 32%, rgba(0, 0, 0, 0.14));
  pointer-events: none;
}
.archive__cta { display: flex; justify-content: center; margin-top: 8px; }

/* Buttons stay architectural; only software tool chips remain pill-shaped. */
.btn,
.xnode-tab,
.xnode-media-open,
.xnode-lightbox__close { border-radius: 4px; }
