/* Experimental motion layer — LUC RP
 * Preserves the existing LAM-aligned identity: colors, logos and typography.
 * This file adds motion/depth only and can be removed without touching the base design.
 */

:root {
  --tech-x: 72%;
  --tech-y: 34%;
}

/* Very subtle display texture. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 97;
  pointer-events: none;
  opacity: .045;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, .08) 0,
    rgba(255, 255, 255, .08) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: screen;
  animation: luc-scan-drift 12s linear infinite;
}

/* A moving signal on the existing header border. */
.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 18vw;
  min-width: 120px;
  height: 1px;
  pointer-events: none;
  opacity: .9;
  background: linear-gradient(90deg, transparent, var(--red), rgba(255,255,255,.55), transparent);
  transform: translateX(-120%);
  animation: luc-header-signal 6.5s ease-in-out infinite;
}

/* The existing grid now drifts instead of staying completely static. */
.grid {
  animation: luc-grid-drift 24s linear infinite;
  will-change: background-position;
}

/* Mouse-reactive ambient light. No palette changes. */
.hero::after {
  content: "";
  position: absolute;
  inset: 68px -20vw 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--tech-x) var(--tech-y),
    rgba(255, 0, 55, .095),
    rgba(255, 0, 55, .025) 18%,
    transparent 36%
  );
  transition: background-position .12s linear;
}

/* Hero boot sequence: same typography and layout, just staged entrance. */
.hero-copy > * {
  animation: luc-hero-boot .72s cubic-bezier(.2,.72,.2,1) both;
}
.hero-copy > *:nth-child(1) { animation-delay: .04s; }
.hero-copy > *:nth-child(2) { animation-delay: .10s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .22s; }
.hero-copy > *:nth-child(5) { animation-delay: .28s; }
.hero-copy > *:nth-child(6) { animation-delay: .34s; }

.chip i {
  animation: luc-signal-pulse 1.8s steps(2, end) infinite;
}

.hero h1 em {
  text-shadow: 0 0 0 rgba(255, 0, 55, 0);
  animation: luc-brand-breathe 4.8s ease-in-out infinite;
}

/* Terminal feels active, without changing its structure. */
.terminal {
  position: relative;
  isolation: isolate;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.terminal:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 0, 55, .42);
  box-shadow: 0 28px 78px rgba(0, 0, 0, .38), 0 0 0 1px rgba(255, 0, 55, .04);
}

.terminal::before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: -20%;
  height: 22%;
  z-index: 5;
  pointer-events: none;
  opacity: .28;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 0, 55, .05) 45%,
    rgba(255, 255, 255, .16) 52%,
    rgba(255, 0, 55, .04) 58%,
    transparent
  );
  animation: luc-terminal-scan 6.2s cubic-bezier(.42,0,.58,1) infinite;
}

.terminal::after {
  content: "";
  position: absolute;
  top: 0;
  left: -45%;
  z-index: 6;
  width: 38%;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--red), #fff, transparent);
  box-shadow: 0 0 14px rgba(255, 0, 55, .32);
  animation: luc-terminal-edge 4.6s ease-in-out infinite;
}

/* Buttons receive a technical sweep only on interaction. */
.btn {
  position: relative;
  overflow: hidden;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.16) 48%, transparent 66%);
  transform: translateX(-135%);
  transition: transform .48s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:hover::after {
  transform: translateX(135%);
}

.btn.primary:hover {
  box-shadow: 0 10px 34px rgba(255, 0, 55, .22);
}

/* Cards gain depth and a small red edge, not a new visual system. */
.cards article {
  overflow: hidden;
  transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.cards article::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 28px;
  width: 2px;
  height: 44px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .22s ease;
  box-shadow: 0 0 16px rgba(255,0,55,.28);
}

.cards article:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 46px rgba(0,0,0,.22);
}

.cards article:hover::before {
  transform: scaleY(1);
}

/* Status rows react like a system console. */
.board > div {
  position: relative;
  overflow: hidden;
  transition: background .2s ease, border-color .2s ease;
}

.board > div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 2px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform .2s ease;
}

.board > div:hover {
  background: linear-gradient(90deg, rgba(255,0,55,.035), transparent 42%);
  border-color: rgba(255,0,55,.22);
}

.board > div:hover::before {
  transform: scaleY(1);
}

.tags span {
  transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}

.tags span:hover {
  transform: translateY(-2px);
  color: #fff;
  border-color: rgba(255,0,55,.5);
  background: rgba(255,0,55,.035);
}

/* Reveal remains the same interaction, but with a little more polish. */
.reveal {
  filter: blur(2px);
  transition: opacity .62s ease, transform .62s cubic-bezier(.2,.72,.2,1), filter .62s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.in {
  filter: blur(0);
}

/* Footer social controls get a restrained signal glow. */
footer nav a {
  transition: border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

footer nav a:hover {
  transform: translateY(-2px);
  border-color: rgba(255,0,55,.6) !important;
  box-shadow: 0 0 18px rgba(255,0,55,.12);
}

@keyframes luc-scan-drift {
  from { transform: translateY(0); }
  to { transform: translateY(4px); }
}

@keyframes luc-header-signal {
  0%, 10% { transform: translateX(-120%); opacity: 0; }
  18% { opacity: .9; }
  68% { opacity: .9; }
  78%, 100% { transform: translateX(650%); opacity: 0; }
}

@keyframes luc-grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 58px 58px, 58px 58px; }
}

@keyframes luc-hero-boot {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes luc-signal-pulse {
  0%, 44% { opacity: 1; box-shadow: 0 0 12px rgba(255,0,55,.38); }
  45%, 58% { opacity: .3; box-shadow: 0 0 2px rgba(255,0,55,.12); }
  59%, 100% { opacity: 1; box-shadow: 0 0 12px rgba(255,0,55,.38); }
}

@keyframes luc-brand-breathe {
  0%, 100% { text-shadow: 0 0 0 rgba(255,0,55,0); }
  50% { text-shadow: 0 0 24px rgba(255,0,55,.16); }
}

@keyframes luc-terminal-scan {
  0%, 18% { transform: translateY(-120%); opacity: 0; }
  26% { opacity: .28; }
  72% { opacity: .28; }
  84%, 100% { transform: translateY(560%); opacity: 0; }
}

@keyframes luc-terminal-edge {
  0%, 12% { transform: translateX(0); opacity: 0; }
  20% { opacity: .95; }
  70% { opacity: .95; }
  82%, 100% { transform: translateX(380%); opacity: 0; }
}

@media (max-width: 900px) {
  body::before { opacity: .025; }
  .hero::after { inset-inline: -10vw; }
  .terminal:hover,
  .cards article:hover { transform: none; }
}

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

  body::before,
  .topbar::after,
  .grid,
  .hero-copy > *,
  .chip i,
  .hero h1 em,
  .terminal::before,
  .terminal::after {
    animation: none !important;
  }

  .reveal,
  .reveal.in {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}
