/* ==========================================================================
   fx.css — the polish layer (25 Aug 2026, Ashley's ask).
   Cinematic touches on top of the family pages: hero parallax and a pointer
   glow (driven by fx.js), a sheen that crosses the primary buttons, staggered
   chips, device tilt, card lift, and a slow light sweep over the ribbon.
   Same contract as everything else: transform / opacity / filter only, the
   house easings, nothing meaningful lives in the motion, and every effect
   sits behind prefers-reduced-motion. No dependencies.
   ========================================================================== */

/* --- The pointer glow. fx.js creates and moves it; CSS owns its look. ----- */

.fxglow {
  position: absolute;
  top: -260px;
  left: -260px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.16), transparent 72%);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.8s var(--ease-state);
  will-change: transform;
}
.fxglow.is-on { opacity: 1; }

/* Parallax containers get their movement from fx.js — transform only. The
   ghost's own drift animation lives on the span inside, so the two compose. */
.bghost, .bwash { will-change: transform, opacity; }

@media (prefers-reduced-motion: no-preference) {

  /* --- A sheen crosses the primary buttons, once, on hover. --------------- */
  .btn { position: relative; overflow: hidden; }
  .btn::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 36%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    transform: skewX(-20deg) translateX(-160%);
    pointer-events: none;
  }
  .btn:hover::after,
  .btn:focus-visible::after {
    transition: transform 0.9s var(--ease-enter);
    transform: skewX(-20deg) translateX(440%);
  }

  /* --- The chips arrive one at a time, after their door reveals. ---------- */
  .door .chips li {
    opacity: 0;
    transform: translateY(9px);
    transition:
      opacity 0.6s var(--ease-enter),
      transform 0.6s var(--ease-enter);
  }
  .door.is-in .chips li { opacity: 1; transform: none; }
  .door.is-in .chips li:nth-child(1) { transition-delay: 0.30s; }
  .door.is-in .chips li:nth-child(2) { transition-delay: 0.36s; }
  .door.is-in .chips li:nth-child(3) { transition-delay: 0.42s; }
  .door.is-in .chips li:nth-child(4) { transition-delay: 0.48s; }
  .door.is-in .chips li:nth-child(5) { transition-delay: 0.54s; }
  .door.is-in .chips li:nth-child(6) { transition-delay: 0.60s; }
  .door.is-in .chips li:nth-child(7) { transition-delay: 0.66s; }
  .door.is-in .chips li:nth-child(8) { transition-delay: 0.72s; }

  /* --- The devices answer the pointer with a gentle tilt (fx.js). --------- */
  .dev-mac, .dev-ph {
    transition: transform 0.6s var(--ease-enter);
    will-change: transform;
  }

  /* --- A slow light crosses the migration ribbon, forever. ---------------- */
  .ribbon { position: relative; overflow: hidden; }
  .ribbon::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 30%;
    background: linear-gradient(105deg, transparent, rgba(183, 155, 255, 0.06), transparent);
    transform: skewX(-18deg) translateX(-140%);
    animation: ribbon-sweep 7s var(--ease-state) 2s infinite;
    pointer-events: none;
  }

  /* --- The tuxedo figure settles in with a touch more presence. ----------- */
  .phero__dean[data-reveal]:not(.is-in) { transform: translateY(2rem) scale(0.98); filter: blur(4px); }
}

@keyframes ribbon-sweep {
  0%   { transform: skewX(-18deg) translateX(-140%); }
  55%  { transform: skewX(-18deg) translateX(480%); }
  100% { transform: skewX(-18deg) translateX(480%); }
}

/* --- Cards answer the pointer: a quiet physical lift. --------------------- */

.vcard {
  transition:
    transform 0.5s var(--ease-enter),
    border-color 0.5s var(--ease-state);
}
.vcard:hover { transform: translateY(-4px); border-color: var(--hair-strong); }

.sibs b { display: inline-block; transition: transform 0.5s var(--ease-enter); }
.sibs a:hover b { transform: translateX(8px); }

.desk247__facts li {
  transition:
    transform 0.45s var(--ease-enter),
    border-color 0.45s var(--ease-state);
}
.desk247__facts li:hover { transform: translateX(6px); border-top-color: var(--hair-strong); }

/* ==========================================================================
   Round 2 of the polish layer (25 Aug, "make it a visual treat").
   Same contract throughout: transform / opacity / filter, house easings,
   everything behind prefers-reduced-motion, nothing meaningful in motion.
   ========================================================================== */

/* --- The module marquee. Constant velocity is the one honest easing for a
       ticker, so this is the contract's single sanctioned `linear`. -------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 1.1rem 0;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
}
.marquee__track span {
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--chalk-faint);
  white-space: nowrap;
}
.marquee__track i { color: rgba(139, 92, 246, 0.4); font-style: normal; }
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: marq-drift 60s linear infinite; }
  .marquee:hover .marquee__track { animation-play-state: paused; }
}
@keyframes marq-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: no-preference) {

  /* --- The page arrives, once. ------------------------------------------- */
  body { animation: page-in 0.7s var(--ease-enter) both; }

  /* --- A breathing violet aura grounds the hero pair. -------------------- */
  .phero__duo { position: relative; }
  .phero__duo::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8%;
    width: 130%;
    aspect-ratio: 1;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(139, 92, 246, 0.20), transparent 70%);
    z-index: -1;
    animation: aura-breathe 7s ease-in-out infinite;
    pointer-events: none;
  }

  /* --- The comparison cascades: rows rise, then Dean's ticks pop. --------- */
  .compare__scroll.is-in tbody tr {
    animation: row-in 0.6s var(--ease-enter) both;
  }
  .compare__scroll.is-in tbody tr:nth-child(1)  { animation-delay: 0.05s; }
  .compare__scroll.is-in tbody tr:nth-child(2)  { animation-delay: 0.10s; }
  .compare__scroll.is-in tbody tr:nth-child(3)  { animation-delay: 0.15s; }
  .compare__scroll.is-in tbody tr:nth-child(4)  { animation-delay: 0.20s; }
  .compare__scroll.is-in tbody tr:nth-child(5)  { animation-delay: 0.25s; }
  .compare__scroll.is-in tbody tr:nth-child(6)  { animation-delay: 0.30s; }
  .compare__scroll.is-in tbody tr:nth-child(7)  { animation-delay: 0.35s; }
  .compare__scroll.is-in tbody tr:nth-child(8)  { animation-delay: 0.40s; }
  .compare__scroll.is-in tbody tr:nth-child(9)  { animation-delay: 0.45s; }
  .compare__scroll.is-in tbody tr:nth-child(10) { animation-delay: 0.50s; }
  .compare__scroll.is-in tbody tr:nth-child(11) { animation-delay: 0.55s; }
  .compare__scroll.is-in tbody tr:nth-child(12) { animation-delay: 0.60s; }
  .compare__scroll.is-in tbody tr:nth-child(13) { animation-delay: 0.65s; }
  .compare__scroll.is-in tbody tr:nth-child(14) { animation-delay: 0.70s; }
  .compare__scroll.is-in tbody tr:nth-child(15) { animation-delay: 0.75s; }
  .compare__scroll:not(.is-in) tbody tr { opacity: 0; }

  .compare__scroll.is-in tbody .compare__dean .tick {
    display: inline-block;
    animation: tick-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }
  .compare__scroll.is-in tbody tr:nth-child(1)  .compare__dean .tick { animation-delay: 0.30s; }
  .compare__scroll.is-in tbody tr:nth-child(2)  .compare__dean .tick { animation-delay: 0.35s; }
  .compare__scroll.is-in tbody tr:nth-child(3)  .compare__dean .tick { animation-delay: 0.40s; }
  .compare__scroll.is-in tbody tr:nth-child(4)  .compare__dean .tick { animation-delay: 0.45s; }
  .compare__scroll.is-in tbody tr:nth-child(5)  .compare__dean .tick { animation-delay: 0.50s; }
  .compare__scroll.is-in tbody tr:nth-child(6)  .compare__dean .tick { animation-delay: 0.55s; }
  .compare__scroll.is-in tbody tr:nth-child(7)  .compare__dean .tick { animation-delay: 0.60s; }
  .compare__scroll.is-in tbody tr:nth-child(8)  .compare__dean .tick { animation-delay: 0.65s; }
  .compare__scroll.is-in tbody tr:nth-child(9)  .compare__dean .tick { animation-delay: 0.70s; }
  .compare__scroll.is-in tbody tr:nth-child(10) .compare__dean .tick { animation-delay: 0.75s; }
  .compare__scroll.is-in tbody tr:nth-child(11) .compare__dean .tick { animation-delay: 0.80s; }
  .compare__scroll.is-in tbody tr:nth-child(12) .compare__dean .tick { animation-delay: 0.85s; }
  .compare__scroll.is-in tbody tr:nth-child(13) .compare__dean .tick { animation-delay: 0.90s; }
  .compare__scroll.is-in tbody tr:nth-child(14) .compare__dean .tick { animation-delay: 0.95s; }
  .compare__scroll.is-in tbody tr:nth-child(15) .compare__dean .tick { animation-delay: 1.00s; }

  /* Same pop for the netsplit ticks, row by row. */
  .netsplit__panel.is-in li .tick {
    display: inline-block;
    animation: tick-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }
  .netsplit__panel.is-in li:nth-child(1) .tick { animation-delay: 0.25s; }
  .netsplit__panel.is-in li:nth-child(2) .tick { animation-delay: 0.35s; }
  .netsplit__panel.is-in li:nth-child(3) .tick { animation-delay: 0.45s; }
  .netsplit__panel.is-in li:nth-child(4) .tick { animation-delay: 0.55s; }
  .netsplit__panel.is-in li:nth-child(5) .tick { animation-delay: 0.65s; }

  /* --- The devices sit in a pool of violet light that slowly breathes. ---- */
  .dev-mac, .dev-ph { animation: dev-glow 8s ease-in-out infinite; }
  .dev--ph .dev-ph { animation-delay: 2s; }

  /* --- Network vignettes drift on their own gentle clocks. ---------------- */
  .vign .vcard:nth-child(1) { animation: card-drift 9s  ease-in-out 0.5s infinite; }
  .vign .vcard:nth-child(2) { animation: card-drift 11s ease-in-out 1.6s infinite; }
  .vign .vcard:nth-child(3) { animation: card-drift 10s ease-in-out 2.4s infinite; }
  .vign .vcard:nth-child(4) { animation: card-drift 12s ease-in-out 0.9s infinite; }
  .vign .vcard:nth-child(5) { animation: card-drift 10.5s ease-in-out 3s infinite; }
  .vign .vcard:nth-child(6) { animation: card-drift 11.5s ease-in-out 1.2s infinite; }

  /* --- The family-flow steps lift as they are read. ----------------------- */
  .famflow__steps li { transition: transform 0.5s var(--ease-enter), background 0.45s var(--ease-state); }
  .famflow__steps li:hover { transform: translateY(-4px); }
  .famflow__steps em { transition: color 0.4s var(--ease-state); }
  .famflow__steps li:hover em { color: var(--violet); }

  /* --- A slow orb drifts behind the closing invitation. ------------------- */
  .ctaband::before { animation: orb-drift 16s ease-in-out infinite alternate; }
}

@keyframes page-in {
  from { opacity: 0; }
}
@keyframes aura-breathe {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.08); }
}
@keyframes row-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes tick-pop {
  from { opacity: 0; transform: scale(0.2) rotate(-12deg); }
  to   { opacity: 1; transform: none; }
}
@keyframes dev-glow {
  0%, 100% { filter: drop-shadow(0 18px 42px rgba(90, 70, 220, 0.16)); }
  50%      { filter: drop-shadow(0 22px 54px rgba(90, 70, 220, 0.30)); }
}
@keyframes card-drift {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes orb-drift {
  from { transform: translateX(-6%); }
  to   { transform: translateX(6%); }
}

/* Without JavaScript nothing adds .is-in, so the rows must simply be there. */
.no-js .compare__scroll tbody tr { opacity: 1 !important; animation: none !important; }
.no-js .door .chips li { opacity: 1 !important; transform: none !important; }
.no-js .replaces s, .no-js .replaces b, .no-js .replaces__arrow { opacity: 1 !important; transform: none !important; }

/* ==========================================================================
   Round 3 — the agentic layer (25 Aug). Dean visibly at work: typed status
   lines, the shift console, and characters with entrances and shadows.
   ========================================================================== */

/* --- The typed status line under each hero. ------------------------------- */

.phero__typed {
  margin: 0.875rem 0 0;
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.08em;
  color: var(--violet-lift);
  min-height: 1.5em;
}
.tcaret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: text-bottom;
  background: var(--violet-lift);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .tcaret { animation: caret-blink 1.1s steps(1) infinite; }
}
@keyframes caret-blink {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: 0; }
}

/* --- The shift console. --------------------------------------------------- */

.console { border-top: 1px solid var(--hair); padding: clamp(4rem, 12vh, 8rem) 0; }
.console__head { margin-bottom: clamp(2rem, 5vh, 3.5rem); max-width: 30ch; }

.console__card {
  max-width: 760px;
  background: var(--ink-raise);
  border: 1px solid var(--hair);
  border-radius: var(--r-panel);
  overflow: hidden;
}
.console__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0.75rem 1.125rem;
  border-bottom: 1px solid var(--hair);
  background: var(--ink-raise-2);
}
.console__bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--hair-strong);
}
.console__bar span {
  margin-left: auto;
  font-family: var(--mono);
  font-size: var(--t-nano);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chalk-mute);
}
.console__log { margin: 0; padding: 1.125rem 1.375rem 1.375rem; }
.console__log li {
  list-style: none;
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 0.4rem 0;
  font-family: var(--mono);
  font-size: var(--t-small);
  line-height: 1.6;
  color: var(--chalk-dim);
}
.console__log em {
  flex: none;
  font-style: normal;
  color: var(--violet-lift);
  font-size: var(--t-micro);
  letter-spacing: 0.08em;
}
@media (prefers-reduced-motion: no-preference) {
  .console__log.is-typing li { opacity: 0; }
  .console__log.is-typing li.is-live,
  .console__log.is-typing li.is-done { opacity: 1; }
  .console__log li.is-live span::after {
    content: '';
    display: inline-block;
    width: 7px;
    height: 1em;
    margin-left: 3px;
    vertical-align: text-bottom;
    background: var(--violet-lift);
    animation: caret-blink 0.9s steps(1) infinite;
  }
}

/* --- Characters, alive. --------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {

  /* The pair makes an entrance: the tuxedo rises, the reveal flies in from
     the left with a little arc, then both settle onto their float clocks. */
  .phero__duo .duo--tux,
  .phero__duo .duo--reveal {
    transition:
      transform 1s var(--ease-enter),
      opacity 0.8s var(--ease-enter),
      filter 1s var(--ease-enter);
  }
  .phero__duo[data-reveal]:not(.is-in) .duo--tux {
    opacity: 0;
    transform: translateY(3.5rem);
    filter: blur(5px);
  }
  .phero__duo[data-reveal]:not(.is-in) .duo--reveal {
    opacity: 0;
    transform: translate(-4rem, 2.5rem) rotate(-6deg);
    filter: blur(5px);
  }
  .phero__duo.is-in .duo--reveal { transition-delay: 0.18s; }

  /* Grounded: a soft shadow pool under the pair, breathing with the aura. */
  .phero__duo::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 92%;
    height: 16px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent 75%);
    z-index: -1;
    animation: shadow-breathe 7s ease-in-out infinite;
    pointer-events: none;
  }

  /* The flying pose actually flies: a slow banked drift by the invitation. */
  .invite__dean {
    animation: dean-fly 9s ease-in-out infinite alternate;
  }
}

@keyframes shadow-breathe {
  0%, 100% { opacity: 0.9; transform: translateX(-50%) scaleX(1); }
  50%      { opacity: 0.55; transform: translateX(-50%) scaleX(0.88); }
}
@keyframes dean-fly {
  0%   { transform: translate(0, 0) rotate(0deg); }
  45%  { transform: translate(-14px, -18px) rotate(-2.5deg); }
  100% { transform: translate(10px, -6px) rotate(1.5deg); }
}
