/* ════════════════════════════════════════════════════════════
   ARKHIVE FX v2 — art-direction layer
   Syne display, JetBrains Mono readouts, oscilloscope waveform,
   outlined editorial type, sparse signal-orange accent.
   Degrades to static under prefers-reduced-motion.
   ════════════════════════════════════════════════════════════ */

:root {
  --fx-glow:    #6478a6;
  --fx-glow-2:  #8fb4d9;
  --fx-signal:  #ff6a3d;   /* used in milligrams only */
  --fx-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  --fx-display: 'Syne', 'Inter', system-ui, sans-serif;
}

/* ── Hero headline: editorial scale ────────────────────────── */
.lp-hero-head {
  font-family: var(--fx-display) !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  font-size: clamp(40px, 6.6vw, 108px) !important;
  line-height: 0.94 !important;
  letter-spacing: -0.015em !important;
}
.lp-hero-head .fx-dot { color: var(--fx-signal); }
.lp-hero-head .fx-l3 {
  display: inline-block;
  font-size: clamp(15px, 1.6vw, 24px);
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  margin-top: 26px;
}
.lp-hero-head .fx-outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(221, 226, 234, 0.55);
}
.lp-hero-head .accent {
  background: linear-gradient(100deg, var(--fx-glow) 10%, var(--fx-glow-2) 38%, #dde2ea 50%, var(--fx-glow-2) 62%, var(--fx-glow) 90%);
  background-size: 240% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: fx-shimmer 7s ease-in-out infinite;
}
@keyframes fx-shimmer { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }

/* ── Oscilloscope waveform — the signature ─────────────────── */
.fx-wave {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 150px; z-index: 4; pointer-events: none;
  opacity: 0.85;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

/* ── Aurora pools (kept, but quieter and cooler) ───────────── */
.fx-aurora {
  position: absolute; inset: -20%;
  z-index: 2; pointer-events: none;
  mix-blend-mode: screen; opacity: 0.4;
}
.fx-aurora::before, .fx-aurora::after {
  content: ""; position: absolute;
  width: 58vmax; height: 58vmax; border-radius: 50%;
  filter: blur(90px); will-change: transform;
}
.fx-aurora::before {
  left: -12%; top: 4%;
  background: radial-gradient(circle at 38% 42%, rgba(100,120,166,0.28), rgba(100,120,166,0.04) 52%, transparent 70%);
  animation: fx-drift-a 26s ease-in-out infinite alternate;
}
.fx-aurora::after {
  right: -16%; bottom: -8%;
  background: radial-gradient(circle at 60% 58%, rgba(143,180,217,0.16), rgba(74,90,130,0.05) 55%, transparent 72%);
  animation: fx-drift-b 34s ease-in-out infinite alternate;
}
@keyframes fx-drift-a { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(9%,6%,0) scale(1.12); } }
@keyframes fx-drift-b { from { transform: translate3d(0,0,0) scale(1.08); } to { transform: translate3d(-7%,-5%,0) scale(0.96); } }

/* ── Filmic grain ──────────────────────────────────────────── */
.fx-grain {
  position: absolute; inset: 0; z-index: 3; 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.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
}

/* ── Headline entrance ─────────────────────────────────────── */
.fx-ready .lp-hero-head .fx-line {
  display: inline-block;
  animation: fx-rise 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.fx-ready .lp-hero-head .fx-line:nth-of-type(2) { animation-delay: 120ms; }
.fx-ready .lp-hero-head .fx-line:nth-of-type(3) { animation-delay: 240ms; }
@keyframes fx-rise {
  from { transform: translateY(34px); opacity: 0; filter: blur(8px); }
  to   { transform: translateY(0);    opacity: 1; filter: blur(0); }
}

/* ── Live-status: mono + ping ──────────────────────────────── */
.lp-hero-status { font-family: var(--fx-mono) !important; letter-spacing: 0.2em; }
.lp-hero-status .dot { position: relative; }
.lp-hero-status .dot::before {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid var(--fx-signal);
  animation: fx-ping 2.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes fx-ping { 0% { transform: scale(0.4); opacity: 0.8; } 80%, 100% { transform: scale(1.7); opacity: 0; } }

/* ── Scroll reveals ────────────────────────────────────────── */
.fx-reveal {
  opacity: 0; transform: translateY(28px); filter: blur(6px);
  transition: opacity 800ms cubic-bezier(0.16,1,0.3,1),
              transform 800ms cubic-bezier(0.16,1,0.3,1),
              filter 800ms cubic-bezier(0.16,1,0.3,1);
  transition-delay: var(--fx-delay, 0ms);
}
.fx-reveal.fx-in { opacity: 1; transform: none; filter: blur(0); }

/* ── Marquee: giant outlined editorial type ────────────────── */
.fx-marquee {
  overflow: hidden; white-space: nowrap;
  padding: 44px 0; margin: 8px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.fx-marquee-track {
  display: inline-block;
  animation: fx-marquee 60s linear infinite;
  font-family: var(--fx-display);
  font-weight: 800;
  font-size: clamp(44px, 6vw, 96px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(221,226,234,0.30);
}
.fx-marquee-track .glyph {
  -webkit-text-stroke: 0; color: var(--fx-signal);
  font-size: 0.32em; vertical-align: 0.5em; margin: 0 34px;
}
@keyframes fx-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Section eyebrows & shell brand pick up the mono/display ─ */
.lp-section-eyebrow { font-family: var(--fx-mono) !important; }
.ark-brand-word, .ark-brand { font-family: var(--fx-display) !important; letter-spacing: 0.18em; }

/* ── Buttons: glow + sheen sweep ───────────────────────────── */
.ark-btn { position: relative; overflow: hidden; transition: box-shadow 320ms ease, transform 220ms cubic-bezier(0.16,1,0.3,1), border-color 320ms ease; }
.ark-btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -80%;
  width: 50%; transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(221,226,234,0.14), transparent);
  transition: left 600ms ease; pointer-events: none;
}
.ark-btn:hover::after { left: 130%; }
.ark-btn:hover { box-shadow: 0 0 0 1px rgba(143,180,217,0.25), 0 0 28px rgba(100,120,166,0.20); }

/* ── Cards: lift + glow border + cursor sheen ──────────────── */
.fx-tilt {
  transform-style: preserve-3d;
  transition: transform 380ms cubic-bezier(0.16,1,0.3,1), box-shadow 380ms ease;
  will-change: transform;
}
.fx-tilt:hover { box-shadow: 0 18px 50px rgba(0,0,0,0.55), 0 0 0 1px rgba(143,180,217,0.16), 0 0 36px rgba(100,120,166,0.10); }
.fx-tilt .fx-sheen {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  opacity: 0; transition: opacity 300ms ease;
  background: radial-gradient(420px circle at var(--fx-mx, 50%) var(--fx-my, 50%), rgba(143,180,217,0.10), transparent 60%);
}
.fx-tilt:hover .fx-sheen { opacity: 1; }

/* ── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .fx-aurora::before, .fx-aurora::after,
  .lp-hero-status .dot::before,
  .fx-marquee-track { animation: none !important; }
  .fx-reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .fx-ready .lp-hero-head .fx-line { animation: none; }
  .fx-tilt { transition: none; }
}
