/* ============================================================
   TPX CUSTOMER JOURNEY – MAIN STYLESHEET
   Design canvas: 1920×1080 inside a centered 16:9 stage (pillarbox
   on ultrawide, letterbox if needed). rem = :root font-size (0.052086vw).
   Only border stroke widths use px; everything else is rem.
   ============================================================ */

:root {
  /* rem scale: ~1px per rem at 1920px viewport width */
  font-size: 0.052086vw;

  --color-navy:       #001E60;
  --color-blue:       #004C97;
  --color-blue-deep:  #091d91;
  --color-blue-dark:  #0B1A37;
  --color-blue-mid:   #0072CE;
  --color-orange:     #E05C1A;
  --color-orange-2:   #ff6621;
  --color-orange-end: #f5b836;
  --color-slate:      #9DA4D3;
  --color-slate-dim:  rgba(157, 164, 211, 0.9);
  --color-white:      #ffffff;
  --color-w60:        rgba(255,255,255,0.6);
  --color-w40:        rgba(255,255,255,0.4);
  --color-w10:        rgba(255,255,255,0.1);
  --color-preloader:  #ffffff;

  --font-primary: 'Onest', 'Helvetica Neue', Arial, sans-serif;

  --ease-panel: cubic-bezier(0.34, 1.05, 0.64, 1);
  --ease-fast:  cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================ RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  height: 100%;
  overflow: hidden;
}

body.app-body {
  font-family: var(--font-primary);
  color: var(--color-white);
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  overflow: hidden;
  background: #060f2a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background 0.75s ease;
}

/* Centered 16:9 frame — side gutters on wide screens, full fit, no crop */
.app-viewport {
  position: relative;
  flex: 0 0 auto;
  width: min(100vw, calc(100vh * 16 / 9));
  height: min(100vh, calc(100vw * 9 / 16));
  max-width: 100vw;
  max-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@supports (height: 100dvh) {
  .app-viewport {
    width: min(100vw, calc(100dvh * 16 / 9));
    height: min(100dvh, calc(100vw * 9 / 16));
    max-height: 100dvh;
  }
}

img  { display: block; max-width: 100%; }
ul   { list-style: none; padding: 0; }
button { font-family: var(--font-primary); cursor: pointer; border: none; background: none; }

/* ============================================================
   HEADER
   ============================================================ */
.app-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 70rem;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 40rem;
  pointer-events: none;
}
.app-header > * { pointer-events: auto; }
.hdr-left, .hdr-right { display: flex; align-items: center; }

.home-icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 50rem;
  height: 50rem;
  border-radius: 50%;
  color: var(--color-white);
  text-decoration: none;
  transition: background 0.2s ease;
}
.home-icon-btn:hover { background: rgba(255,255,255,0.12); }
.home-icon-btn svg { width: 30rem; height: 30rem; }

.logo-tpx { height: 38rem; width: auto; object-fit: contain; }

/* ============================================================
   MAIN / PAGE
   ============================================================ */
.app-main {
  flex: 1 1 auto;
  position: relative;
  min-height: 0;
  overflow: hidden;
}
.page {
  display: none;
  position: absolute;
  inset: 0;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}
.page.active { display: block; }

/* ============================================================
   BACKGROUND LAYER STACK  (crossfade per step)
   ============================================================ */
.home-bg-stack {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Full-viewport layer; overflow clips SVG when slice scales past edges */
.bg-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.75s ease;
  overflow: hidden;
}

.bg-layer.active { opacity: 1; }

/* Per-step background colors that match each SVG's dominant palette */
.bg-layer[data-bg="home"]  { background: #060f2a; }
.bg-layer[data-bg="1"]     { background: #091d91; }
.bg-layer[data-bg="2"]     { background: linear-gradient(160deg, #c5d8f8 0%, #9db7ef 100%); }
.bg-layer[data-bg="3"]     { background: linear-gradient(160deg, #6b77bd 0%, #4a5aa8 100%); }
.bg-layer[data-bg="4"]     { background: linear-gradient(160deg, #1e2d8a 0%, #091d91 100%); }
.bg-layer[data-bg="5"]     { background: linear-gradient(160deg, #c8cff0 0%, #aab4e2 100%); }
.bg-layer[data-bg="6"]     { background: linear-gradient(160deg, #d6bda3 0%, #c0a48a 100%); }
.bg-layer[data-bg="7"]     { background: linear-gradient(160deg, #6b77bd 0%, #8b9fe8 100%); }
.bg-layer[data-bg="8"]     { background: linear-gradient(160deg, #091d91 0%, #0a4fa8 100%); }

/*
  Full-bg mode + top alignment:
  preserveAspectRatio xMidYMin slice is set in JS (like object-fit: cover + object-position: top center).
*/
.bg-layer svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================================
   HOME HERO CONTENT (left side)
   ============================================================ */
.home-content {
  position: absolute;
  top: 37%; left: 60rem;
  transform: translateY(-58%);
  z-index: 10;
  max-width: 760rem;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.home-content.dimmed {
  opacity: 0;
  transform: translateY(-58%) translateX(-28rem);
  pointer-events: none;
}

.home-title {
  font-size: 46rem; font-weight: 800;
  line-height: 1.1; letter-spacing: -0.5rem;
  color: var(--color-white);
  margin-bottom: 20rem;
}

.home-subtitle {
  font-size: 20rem; font-weight: 400; line-height: 1.5;
  color: var(--color-slate);
  margin-bottom: 20rem;
  max-width: 680rem;
}

.home-bullets { display: flex; flex-direction: column; gap: 10rem; margin-bottom: 40rem; }
.home-bullet  { display: flex; align-items: center; gap: 12rem; font-size: 19rem; font-weight: 600; color: var(--color-slate); }
.bullet-dot   { flex-shrink: 0; width: 8rem; height: 8rem; border-radius: 50%; background: var(--color-orange-2); }

.cta-btn {
  display: flex;
  width: 300rem;
  height: 58rem;
  padding: 13rem 36rem 14rem 34rem;
  align-items: center;
  gap: 19rem;
  background:
    radial-gradient(132% 118% at 101% 0%, #FFCDB7 3%, rgba(255, 205, 183, 0) 34%),
    linear-gradient(96deg, #FF7D45 0%, #F96423 56%, #F35715 100%);
  color: var(--color-white);
  font-size: 20rem; font-weight: 600;
  border-radius: 12rem;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.cta-btn:hover {
  border-radius: 12rem;
  background:
    radial-gradient(186% 136% at -2% 100%, #FFCDB7 0%, rgba(255, 205, 183, 0) 28%),
    linear-gradient(96deg, #FF7D45 0%, #F96423 58%, #F35715 100%);
  box-shadow: 0 0 18.8rem 0 rgba(255, 190, 69, 0.46);
  transform: translateY(-1rem);
}

.cta-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
.cta-btn:hover .cta-arrow { transform: translateX(4rem); }
.cta-arrow-img {
  width: 35rem;
  height: 20rem;
  display: block;
  object-fit: contain;
}

/* ============================================================
   STEP PANEL CARD  (right side, slides in)
   ============================================================ */
.step-panel {
  position: absolute;
  top: 70rem; right: 0;
  bottom: 174rem;
  width: 525rem;
  z-index: 50;
  transform: translateX(110%);
  display: flex;
  align-items: center;
  padding: 24rem 40rem 24rem 0;
  pointer-events: none;
  /* CSS transform only — GSAP handles the animation */
}

.step-panel.open {
  transform: translateX(0);
  pointer-events: auto;
}

.step-panel-card {
  width: 100%;
  min-height: 0;
  border-radius: 12rem;
  border: 1rem solid rgba(255, 255, 255, 0.5);
  background: linear-gradient(25deg, #091D91 15.66%, #000352 68.55%);
  backdrop-filter: blur(35rem);
  -webkit-backdrop-filter: blur(35rem);
  box-shadow: 50rem 60rem 100rem 0 rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 18rem;
  padding: 30rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  position: relative;
}

/* Top edge highlight sheen */
.step-panel-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
}

/* --- Header --- */
.spc-header {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10rem;
}

.spc-title {
  font-size: 28rem; font-weight: 700; line-height: 1.15;
  color: var(--color-white);
}
.spc-subtitle {
  font-size: 16rem; font-weight: 400; line-height: 1.4;
  color: var(--color-w60);
}

/* --- Highlight box --- */
.spc-highlight-box {
  min-height: 0;
  background: var(--color-w10);
  border-radius: 6rem;
  padding: 18rem 20rem;
  display: flex;
  flex-direction: column;
  gap: 14rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.spc-highlight-heading {
  font-size: 16rem; font-weight: 500; line-height: 1.5;
  color: var(--color-white);
}

.spc-bullets { display: flex; flex-direction: column; gap: 9rem; }

.spc-bullet {
  display: flex; align-items: flex-start; gap: 10rem;
  font-size: 14rem; font-weight: 400; line-height: 1.5;
  color: var(--color-white);
}

.spc-bullet-check {
  flex-shrink: 0;
  width: 24rem;
  height: 24rem;
  margin-top: 0;
  object-fit: contain;
}

/* --- Callout --- */
.spc-callout {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  gap: 14rem;
}

.spc-callout-icon {
  flex-shrink: 0;
  width: 54rem;
  height: 54rem;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.spc-callout-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.spc-callout-text {
  font-size: 16rem; font-weight: 500; line-height: 1.55;
  color: var(--color-white);
  padding-top: 6rem;
}

/* --- Nav row --- */
.spc-nav {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12rem;
}

.spc-nav-arrow {
  flex-shrink: 0;
  width: 56rem; height: 56rem;
  border-radius: 7rem;
  border: 2rem solid var(--color-w40);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-white);
  transition: background 0.2s ease, border-color 0.2s ease, border-radius 0.2s ease;
}
.spc-nav-arrow:hover {
  border-radius: 8rem;
  border: 2rem solid rgba(255, 255, 255, 0.4);
  background: #0B24BC;
}
.spc-nav-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
.spc-nav-arrow-icon {
  display: block;
  flex-shrink: 0;
}
.spc-nav-arrow-icon--sm {
  width: 11rem;
  height: 20rem;
}
.spc-nav-arrow-icon--lg {
  width: 36rem;
  height: 36rem;
}

.spc-nav-cta {
  flex: 1; height: 56rem;
  border-radius: 8rem;
  background: radial-gradient(316.73% 133.37% at 100% 5.97%, #FFE1A2 0%, #F5B836 16.1%, #FF6621 48.94%, #FF6621 100%);
  color: var(--color-white);
  font-size: 17rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8rem;
  position: relative; overflow: hidden;
  transition: background 0.25s ease, filter 0.2s ease;
}
/* Hover: light highlight moves to the left (mirror of default) */
.spc-nav-cta:hover {
  border-radius: 8rem;
  background: radial-gradient(345.18% 151.78% at 0% 5.97%, #FFE1A2 0%, #F5B836 16.1%, #FF6621 48.94%, #FF6621 100%);
  filter: brightness(1.04);
}

/* Light sheen — default anchors right; hover mirrors to left */
.spc-nav-cta::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 80rem; height: 100%;
  background: radial-gradient(circle at 80% 50%, rgba(255,255,255,0.14) 0%, transparent 70%);
  pointer-events: none;
  transition: left 0.25s ease, right 0.25s ease;
}
.spc-nav-cta:hover::after {
  right: auto;
  left: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.14) 0%, transparent 70%);
}

.spc-nav-cta-lead {
  display: flex;
  align-items: center;
  justify-content: center;
}
.spc-nav-cta-lead img {
  width: 26rem;
  height: 26rem;
  object-fit: contain;
  display: block;
}
/* Chevron only on final step primary CTA (Figma) */
.spc-nav-cta-arrow {
  display: none;
  align-items: center;
  justify-content: center;
}
.spc-nav-cta-arrow-svg {
  width: 36rem;
  height: 36rem;
  display: block;
  flex-shrink: 0;
}

/* Final journey step (Figma): full-width primary, no side arrows; trailing chevron shown */
.spc-nav--final {
  flex-direction: column;
  align-items: stretch;
  gap: 16rem;
  width: 100%;
}
.spc-nav--final .spc-nav-arrow {
  display: none !important;
}
.spc-nav--final .spc-nav-cta {
  flex: none;
  width: 100%;
  height: 56rem;
}
.spc-nav--final .spc-nav-cta-arrow {
  display: flex;
}

.step-panel-card.is-final-step .spc-secondary-btn {
  width: 100%;
}

/* --- Secondary button --- */
.spc-secondary-btn {
  flex-shrink: 0;
  width: 100%;
  height: 56rem;
  border-radius: 7rem;
  border: 2rem solid var(--color-w40);
  color: var(--color-white);
  font-size: 17rem; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 10rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.spc-secondary-btn:hover { background: var(--color-w10); border-color: var(--color-white); }

/* Evaluation + final-step expert: full-width white hover, blue label (Figma) */
.spc-secondary-btn--evaluation:hover,
.spc-secondary-btn--expert:hover {
  width: 100%;
  height: 56rem;
  padding: 0;
  align-self: stretch;
  background: #ffffff;
  color: #0B24BC;
  border-color: transparent;
  border-radius: 8rem;
}

/* Expert icon is <img> with white strokes — tint to brand blue on white hover */
.spc-secondary-btn--expert:hover .spc-secondary-icon-img {
  filter: brightness(0) saturate(100%) invert(12%) sepia(85%) saturate(4000%) hue-rotate(218deg) brightness(0.95);
}
.spc-secondary-icon { display: flex; align-items: center; }
.spc-secondary-icon img,
.spc-secondary-icon-svg {
  width: 26rem;
  height: 26rem;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

/* Last step: secondary button is the only action — give it more prominence */
.spc-secondary-btn.standalone {
  height: 64rem;
  font-size: 19rem;
  font-weight: 600;
  border-color: var(--color-orange);
  color: var(--color-orange);
}
.spc-secondary-btn.standalone:hover {
  width: 100%;
  height: 64rem;
  padding: 0;
  align-self: stretch;
  background: #ffffff;
  color: #0B24BC;
  border-color: transparent;
  border-radius: 8rem;
}
.spc-secondary-btn.standalone:hover .spc-secondary-icon-img {
  filter: brightness(0) saturate(100%) invert(12%) sepia(85%) saturate(4000%) hue-rotate(218deg) brightness(0.95);
}

/* ============================================================
   TIMELINE BAR
   Exact Figma dimensions: 1920×174, line at y=120 from top
   ============================================================ */
.timeline-wrap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 160rem;
  z-index: 200;
  overflow: visible;
}

/* Glass layer 1 — main bg */
.tl-glass-1 {
  position: absolute; inset: 0;
  background: linear-gradient(167.92deg, rgba(11,26,55,0.9) 3.51%, rgba(11,26,55,0.3) 111.71%);
  backdrop-filter: blur(35rem);
  -webkit-backdrop-filter: blur(35rem);
  border-top: 3px solid var(--color-blue-deep);
  box-shadow: 50rem 60rem 100rem rgba(0,0,0,0.05);
}

/* Glass layer 2 — multiply dark tint */
.tl-glass-2 {
  position: absolute; inset: 0 0 3rem 0;
  background: linear-gradient(-20.62deg, rgb(1,5,15) 18.46%, rgba(11,26,55,0.3) 81.97%);
  mix-blend-mode: multiply;
  opacity: 0.5;
  pointer-events: none;
}

/* Inner container — matches Figma: left:34, right:34 → padding 34rem */
.tl-inner {
  position: absolute;
  inset: 0;
  padding: 0 34rem;
  display: flex;
  align-items: flex-start;
  /* Line is at 120rem from top of bar (1026-906=120) */
  padding-top: 0;
}

/* ---- Rail: inactive base (blue soft ends) + orange fill that grows with progress ---- */
.tl-rail {
  position: absolute;
  left: 34rem;
  right: 34rem;
  top: 110rem;
  height: 0;
  z-index: 0;
  pointer-events: none;
}

/* Inactive / default track — SVG stroke 14 → 14rem, fades in/out at rail ends */
.tl-rail-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 14rem;
  transform: translateY(-50%);
  border-radius: 999rem;
  background-image: url('../images/timeline-rail-inactive.svg');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
}

/* Progress: grows from left; matches Figma gradient stroke (transparent → #FF6621 left→right) */
.tl-rail-fill {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 0;
  min-width: 0;
  max-width: 100%;
  height: 14rem;
  transform: translateY(-50%);
  border-radius: 999rem;
  /* Softer ramp at the start so the left edge isn’t harsh orange */
  background: linear-gradient(
    90deg,
    rgba(255, 102, 33, 0) 0%,
    rgba(255, 130, 100, 0.22) 22%,
    rgba(255, 110, 70, 0.55) 52%,
    #FF6621 92%,
    #F45A1E 100%
  );
  /* Glow: peach-forward near the bar, full orange only in outer halos */
  box-shadow:
    0 0 14rem rgba(255, 200, 180, 0.2),
    0 0 28rem rgba(255, 130, 90, 0.22),
    0 0 48rem rgba(255, 95, 45, 0.14);
  transition: width 0.55s var(--ease-fast);
}

/* ---- Steps container ---- */
.tl-steps {
  position: absolute;
  left: 34rem;
  right: 34rem;
  top: 0;
  bottom: 0;
  z-index: 2;
}

/* ---- Individual step ---- */
.tl-step {
  position: absolute;
  top: 0; bottom: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  /* Label above rail (top), node on rail */
  justify-content: flex-start;
  align-items: center;
  cursor: pointer;
}

/* Label sits above the node, ~22px from top of bar at y=947-906=41rem */
.tl-label {
  position: absolute;
  top: 30rem;
  left: 50%; transform: translateX(-50%);
  font-size: 15rem; font-weight: 600;
  color: var(--color-slate-dim);
  text-align: center;
  white-space: nowrap;
  line-height: 1.3;
  transition: color 0.25s ease, font-size 0.25s ease;
  pointer-events: none;
}

/* Active step has white bold label at slightly larger size */
.tl-step.active .tl-label {
  color: var(--color-white);
  font-size: 16rem;
  font-weight: 600;
}

/* Hover */
.tl-step:not(.active):hover .tl-label { color: var(--color-white); }

/* ---- Default node (32×32, dark bg, border, number text) ---- */
.tl-node {
  position: absolute;
  top: 110rem; /* line y from bar top */
  transform: translateY(-50%);
  width: 32rem; height: 32rem;
  border-radius: 50%;
  border: 1.5px solid rgba(9,29,145,0.9);
  background: #091D91;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.25s ease, background 0.25s ease, width 0.3s ease, height 0.3s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.tl-step:not(.active):hover .tl-node {
  border-color: var(--color-orange);
  background: rgba(224,92,26,0.15);
}

/* Completed steps before current: orange nodes + white numbers (Figma) */
.tl-step.complete .tl-node {
  background: #FF6621;
  border-color: #FF6621;
}
.tl-step.complete .tl-num {
  color: #fff;
  font-weight: 700;
}
.tl-step.complete:not(.active):hover .tl-node {
  background: #ff7733;
  border-color: #ff7733;
}

/* Number shown on default nodes */
.tl-num {
  font-size: 14rem; font-weight: 500;
  color: var(--color-slate);
  line-height: 1;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.tl-step:not(.active):hover .tl-num { color: var(--color-white); }

/* Icon hidden on default nodes, shown on active */
.tl-node-icon {
  position: absolute;
  width: 16rem;
  height: 16rem;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s ease, transform 0.2s ease;
  object-fit: contain;
  pointer-events: none;
}
.tl-step.active .tl-node {
  width: 56rem;
  height: 56rem;
}

/* ---- Active node (62×62, white ring + orange icon — Figma) ---- */

.tl-step.active .tl-num { opacity: 0; }

.tl-step.active .tl-node-icon {
  opacity: 1;
  transform: scale(1.1);
  width: 62rem;
  height: 62rem;
}

/* ============================================================
   TIMELINE PULSE (CTA click)
   ============================================================ */
@keyframes tlPulse {
  0%   { box-shadow: inset 0 2rem 0 0 rgba(224,92,26,0); }
  40%  { box-shadow: inset 0 2rem 20rem 0 rgba(224,92,26,0.18); }
  100% { box-shadow: inset 0 2rem 0 0 rgba(224,92,26,0); }
}
.timeline-wrap.highlight .tl-glass-1 { animation: tlPulse 0.85s ease-out forwards; }

/* ── LOADER ─────────────────────────────────────────────────── */
.tpx-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.tpx-loader.is-loading {
  opacity: 1;
  pointer-events: auto;
}

.tpx-loader .tpx-preloader-gif {
  /* px — not rem: this renders before syncFontScale() sets the
     rem base, so rem would produce a huge image that snaps on load */
  width: 408.5rem;
  object-fit: contain;
}

/* ── FULL-PAGE PRELOADER ────────────────────────────────────── */
/* Covers the entire viewport until dismissPreloader() fades it */
#tpxPreloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-preloader);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Start with opacity transition ready so is-hiding kicks in cleanly */
  opacity: 1;
  transition: opacity 0.5s ease;
}

#tpxPreloader .tpx-preloader-gif {
  /* px — not rem: must not scale with syncFontScale() rem changes */
  width: 300px;
  object-fit: contain;
}

#tpxPreloader.is-hiding {
  opacity: 0;
  pointer-events: none;
}

#tpxPreloader.is-hidden {
  display: none;
}
