/* HP Express Ltd: premium visual effects layer (preview). Loaded after styles.css.
   Brand kept: Inter, ink #0A1324–#1B2B48, primary accent bright blue #2563EB (orange removed 27 Nov 2026). No text changes. */

/* ---------- Hero 3D canvas ---------- */
.hero-3d { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; pointer-events: none;
  opacity: 0; transition: opacity 1.4s cubic-bezier(.22,.61,.36,1);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 28%, #000 52%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 28%, #000 52%); }
.hero-3d.is-ready { opacity: calc(1 - var(--hero-p, 0) * .6); }
.fx-3d .hero-media .ph-img.is-loaded { filter: brightness(.36) saturate(.55) blur(1.5px); transform: scale(calc(1.04 + var(--hero-p, 0) * .08)); transform-origin: 60% 40%; }
.fx-3d .hero-overlay { background:
  radial-gradient(60% 70% at 72% 52%, rgba(207,227,245,.05), transparent 70%),
  linear-gradient(90deg, rgba(10,19,36,.94) 0%, rgba(10,19,36,.74) 42%, rgba(10,19,36,.38) 100%),
  linear-gradient(0deg, rgba(10,19,36,.75), transparent 45%); }
.fx .hero-inner { transform: translate3d(0, calc(var(--hero-p, 0) * 90px), 0); opacity: calc(1 - var(--hero-p, 0) * 1.1); will-change: transform; }

/* WebGL unavailable or reduced motion before load: soft static glow instead of the 3D scene */
.fx-nogl .hero-3d { display: none; }
.fx-nogl .hero-overlay::after, .fx-reduce:not(.fx-3d) .hero-overlay::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(40% 50% at 74% 50%, rgba(207,227,245,.07), transparent 70%),
              repeating-linear-gradient(90deg, rgba(207,227,245,.05) 0 1px, transparent 1px 64px),
              repeating-linear-gradient(0deg, rgba(207,227,245,.05) 0 1px, transparent 1px 64px);
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 60%); mask-image: linear-gradient(90deg, transparent 20%, #000 60%); }

/* ---------- Header + scroll progress ---------- */
.fx-progress { position: fixed; left: 0; top: 0; right: 0; height: 2px; z-index: 150; pointer-events: none; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, rgba(37,99,235,0), #2563EB 30%, #7DD3FC); box-shadow: 0 0 12px rgba(37,99,235,.6); }
.fx .header-bar { box-shadow: 0 10px 30px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.06); }
.fx .site-nav ul a:hover { text-shadow: 0 0 18px rgba(37,99,235,.55); }

/* ---------- Scroll reveals: fade + rise + de-blur ---------- */
.js.fx .reveal { filter: blur(6px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); }
.js.fx .reveal.is-in { filter: none; }
.js.fx h1.reveal, .js.fx h2.reveal { transform: translateY(26px) scale(.985); }
.js.fx h1.reveal.is-in, .js.fx h2.reveal.is-in { transform: none; }

/* ---------- Hover glows ---------- */
.fx .btn { transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .3s var(--ease), translate .35s var(--ease); }
.fx .btn-accent { position: relative; isolation: isolate; box-shadow: 0 0 0 0 rgba(37,99,235,0); }
.fx .btn-accent:hover { box-shadow: 0 0 0 1px rgba(125,211,252,.55), 0 10px 34px rgba(37,99,235,.45), 0 0 60px rgba(37,99,235,.25); }
.fx .btn-accent::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(120px 60px at var(--gx, 50%) 50%, rgba(255,255,255,.45), transparent 70%); }
.fx .btn-accent:hover::before { opacity: 1; }
.fx .btn-ghost:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 8px 30px rgba(207,227,245,.12); }
.fx .btn-dark:hover { box-shadow: 0 10px 30px rgba(10,19,36,.3), 0 0 0 1px rgba(37,99,235,.35); }
.fx .img-card { transition: box-shadow .4s var(--ease); }
.fx .img-card:hover { box-shadow: 0 30px 60px rgba(10,19,36,.28), 0 0 0 1px rgba(37,99,235,.35), 0 0 40px rgba(37,99,235,.18); }
.fx .step { position: relative; overflow: hidden; }
.fx .step:hover { border-color: rgba(37,99,235,.45); box-shadow: 0 24px 50px rgba(10,19,36,.12), 0 0 0 1px rgba(37,99,235,.18); }
.fx .step:hover .step-num, .fx .num-list > li:hover .num { box-shadow: 0 0 0 4px rgba(37,99,235,.15), 0 0 24px rgba(37,99,235,.45); }
.fx .step-num { transition: box-shadow .3s var(--ease); }
.fx .num-list > li .num { transition: color .3s, text-shadow .3s; }
.fx .num-list > li:hover .num { text-shadow: 0 0 14px rgba(37,99,235,.6); box-shadow: none; }
.fx .step-shot img { transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.fx .step-shot img:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(10,19,36,.16), 0 0 0 1px rgba(37,99,235,.3); }

/* ---------- 3D tilt + light sheen (pointer devices only, added by fx.js) ---------- */
.fx .card-grid, .fx .steps, .fx .stats-wrap .container, .fx .two-col { perspective: 1200px; }
.fx-tilt { transform-style: preserve-3d; transition: rotate .5s var(--ease), box-shadow .4s var(--ease), transform .3s var(--ease); will-change: rotate; }
.fx-tilt.is-tilting { transition: rotate .08s linear, box-shadow .4s var(--ease), transform .3s var(--ease); }
.fx-tilt:not(.img-card):not(.ph) { position: relative; }
.fx-sheen { position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .35s var(--ease);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.22), rgba(255,255,255,.06) 35%, transparent 60%);
  mix-blend-mode: soft-light; }
.step .fx-sheen, .stats-card .fx-sheen { mix-blend-mode: normal; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(37,99,235,.10), transparent 60%); }
.fx-tilt.is-tilting .fx-sheen { opacity: 1; }
.img-card .card-num { transform: translateZ(30px); }

/* ---------- Image parallax inside tall photos ---------- */
.fx-par.ph .ph-img { inset: -7% 0; height: 114%; transform: translate3d(0, calc(var(--par, 0) * -5%), 0); will-change: transform; }
.fx-par.director-photo img { transform: translate3d(0, calc(var(--par, 0) * -14px), 0); transition: box-shadow .4s var(--ease); }
.fx-par.director-photo:hover img { box-shadow: 0 30px 60px rgba(10,19,36,.22), 0 0 0 1px rgba(37,99,235,.3); }

/* ---------- Cursor spotlight on dark bands ---------- */
.fx-spot { position: relative; }
.cta-band.fx-spot, .site-footer.fx-spot { isolation: isolate; }
.cta-band.fx-spot::before, .site-footer.fx-spot::before, .page-hero.fx-spot::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(520px circle at var(--sx, 50%) var(--sy, 50%), rgba(37,99,235,.13), transparent 60%); }
.page-hero.fx-spot::after { z-index: 0; }
.cta-band.fx-spot:hover::before, .site-footer.fx-spot:hover::before, .page-hero.fx-spot:hover::after { opacity: 1; }
.fx .cta-band { position: relative; isolation: isolate; overflow: hidden; }
.fx .cta-band::after { content: ""; position: absolute; inset: auto -10% -60% auto; width: 60%; aspect-ratio: 1; border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(37,99,235,.14), transparent); animation: fx-breathe 9s ease-in-out infinite; }
@keyframes fx-breathe { 50% { transform: scale(1.12) translate(-4%, -4%); opacity: .7; } }

/* ---------- Inner page heroes: animated perspective route grid (CSS only) ---------- */
.page-hero > .container { position: relative; z-index: 1; }
.fx-routes { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 15%, #000 70%); mask-image: linear-gradient(90deg, transparent 15%, #000 70%); }
.fx-routes-grid { position: absolute; left: -20%; right: -20%; bottom: -40%; height: 140%; transform: perspective(600px) rotateX(62deg); transform-origin: 50% 100%;
  background-image: linear-gradient(rgba(207,227,245,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(207,227,245,.16) 1px, transparent 1px);
  background-size: 56px 56px; animation: fx-grid 6s linear infinite;
  -webkit-mask-image: linear-gradient(0deg, #000 10%, transparent 85%); mask-image: linear-gradient(0deg, #000 10%, transparent 85%); }
@keyframes fx-grid { to { background-position: 0 56px, 0 0; } }
.fx-routes i { position: absolute; height: 2px; width: 180px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(37,99,235,.9), #7DD3FC); box-shadow: 0 0 12px rgba(37,99,235,.7);
  animation: fx-streak 5.5s cubic-bezier(.5,0,.3,1) infinite; }
.fx-routes i:nth-of-type(1) { top: 30%; animation-delay: .2s; }
.fx-routes i:nth-of-type(2) { top: 52%; animation-delay: 1.6s; width: 120px; }
.fx-routes i:nth-of-type(3) { top: 68%; animation-delay: 2.9s; }
.fx-routes i:nth-of-type(4) { top: 42%; animation-delay: 3.8s; width: 90px; }
.fx-routes i:nth-of-type(5) { top: 82%; animation-delay: 4.6s; width: 150px; }
@keyframes fx-streak { 0% { left: 30%; opacity: 0; } 15% { opacity: 1; } 70% { opacity: 1; } 100% { left: 105%; opacity: 0; } }

/* ---------- Lighter version on small screens ---------- */
@media (max-width: 720px) {
  .hero-3d { -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.5) 45%, #000 100%); mask-image: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.5) 45%, #000 100%); }
  .hero-3d.is-ready { opacity: calc(1 - var(--hero-p, 0) * .5); }
  .fx-routes i:nth-of-type(n+4) { display: none; }
  .js.fx .reveal { filter: none; }
}

/* ---------- Reduced motion: everything static ---------- */
@media (prefers-reduced-motion: reduce) {
  .fx .hero-inner, .fx-par.ph .ph-img, .fx-par.director-photo img { transform: none !important; opacity: 1 !important; }
  .fx-3d .hero-media .ph-img.is-loaded { transform: none; }
  .js.fx .reveal { filter: none; }
  .fx-routes-grid, .fx-routes i, .cta-band::after { animation: none !important; }
  .fx-routes i { display: none; }
  .fx-tilt { rotate: none !important; }
}
