/* Portfolio Displays — Startup screen. Every selector lives under .pfd-boot.
   PFD_Boot prints this file inline, directly before the overlay, so the overlay
   is fully styled in the first frame wherever the stylesheet link ends up.
   It depends on nothing else: no tokens, no reset. */

.pfd-boot {
  --pfd-boot-bg: #000;
  --pfd-boot-bar: #fff;
  --pfd-boot-logo: 84px;
  --pfd-boot-dur: 2200ms;
  /* Above the dock (900), the phone sheet, child windows and the page viewer (2147483000 – 2147483400). */
  position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 2147483600;
  display: flex; align-items: center; justify-content: center;
  margin: 0; padding: 24px; box-sizing: border-box;
  background: var(--pfd-boot-bg); color: var(--pfd-boot-bar);
  font-family: var(--pfd-font-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif); /* the site font when the Desk knows it */
  cursor: default; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
  /* The whole life of the screen is this one timeline: hold while the bar fills, then fade away.
     It runs without any script, so a blocked script can never leave the page covered. */
  animation: pfd-boot-out 420ms ease var(--pfd-boot-dur) forwards;
}
.pfd-boot *, .pfd-boot *::before, .pfd-boot *::after { box-sizing: border-box; }
.pfd-boot.is-skip { animation: pfd-boot-skip 180ms ease forwards; }
/* A returning visitor: the script printed before the overlay has already said so. */
html[data-pfd-boot="seen"] .pfd-boot, html[data-pfd-boot="done"] .pfd-boot { display: none !important; }
/* No scrolling behind it. The class is set and cleared by the script. */
html.pfd-boot-lock, html.pfd-boot-lock body { overflow: hidden !important; }

.pfd-boot__in { display: flex; flex-direction: column; align-items: center; gap: 30px; max-width: 100%; }
.pfd-boot__logo { display: flex; align-items: center; justify-content: center; max-width: 100%; }
.pfd-boot__logo img { display: block; width: var(--pfd-boot-logo); height: auto; max-width: 70vw; max-height: 46vh; object-fit: contain; border: 0; }
.pfd-boot__name { max-width: 86vw; text-align: center; font-weight: 600; font-size: clamp(22px, calc(var(--pfd-boot-logo) * .36), 44px); line-height: 1.15; letter-spacing: -.01em; }
.pfd-boot__bar { position: relative; width: min(var(--pfd-boot-bar-w, 200px), 56vw); height: var(--pfd-boot-bar-h, 5px); border-radius: var(--pfd-boot-bar-r, 3px); overflow: hidden; }
.pfd-boot__bar::before { content: ""; position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: currentColor; opacity: .24; }
.pfd-boot__fill { position: absolute; left: 0; top: 0; right: 0; bottom: 0; border-radius: inherit; background: currentColor; transform-origin: 0 50%; transform: scaleX(0); animation: pfd-boot-fill var(--pfd-boot-dur) linear forwards; }
.pfd-boot__text { margin-top: -12px; max-width: 86vw; text-align: center; font-size: 13px; line-height: 1.4; opacity: .7; }

/* A start-up bar never moves evenly: it surges, waits, and finishes. */
@keyframes pfd-boot-fill {
  0% { transform: scaleX(0); }
  14% { transform: scaleX(.1); }
  38% { transform: scaleX(.46); }
  55% { transform: scaleX(.54); }
  82% { transform: scaleX(.9); }
  100% { transform: scaleX(1); }
}
@keyframes pfd-boot-out { to { opacity: 0; visibility: hidden; } }
@keyframes pfd-boot-skip { to { opacity: 0; visibility: hidden; } }

@media (prefers-reduced-motion: reduce) {
  /* No filling bar: the screen shows briefly, then a short fade. */
  .pfd-boot { animation: pfd-boot-out 240ms ease 600ms forwards; }
  .pfd-boot.is-skip { animation: pfd-boot-skip 120ms ease forwards; }
  .pfd-boot__fill { animation: none; transform: none; }
}

/* On the live page the widget takes no room: the overlay is the only thing it draws. */
body:not(.elementor-editor-active) .pfd-boot-host { position: absolute; left: 0; top: 0; width: 0 !important; height: 0; margin: 0 !important; padding: 0 !important; overflow: visible; }

/* ---------- In the Elementor editor: a small card instead of the full screen ---------- */
.pfd-boot-preview {
  --pfd-boot-bg: #000; --pfd-boot-bar: #fff; --pfd-boot-logo: 84px;
  display: flex; align-items: center; gap: 16px; width: 100%; max-width: 440px; margin: 12px; padding: 12px; box-sizing: border-box;
  border-radius: 14px; background: #fff; color: #111; box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 10px 24px -10px rgba(0, 0, 0, .25), 0 0 0 1px rgba(0, 0, 0, .08);
  font: 400 13px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; text-align: left;
}
.pfd-boot-preview * { box-sizing: border-box; }
.pfd-boot-preview__screen { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 168px; height: 108px; padding: 10px; border-radius: 8px; overflow: hidden; background: var(--pfd-boot-bg); color: var(--pfd-boot-bar); }
.pfd-boot-preview__screen img { display: block; width: calc(var(--pfd-boot-logo) * .42); height: auto; max-width: 96px; max-height: 52px; object-fit: contain; }
.pfd-boot-preview__name { max-width: 100%; font-weight: 600; font-size: 12px; line-height: 1.2; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pfd-boot-preview__bar { position: relative; flex: none; width: 64px; height: 3px; border-radius: 2px; overflow: hidden; }
.pfd-boot-preview__bar::before { content: ""; position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: currentColor; opacity: .24; }
.pfd-boot-preview__bar::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 58%; border-radius: inherit; background: currentColor; }
.pfd-boot-preview__text { margin-top: -6px; font-size: 9px; line-height: 1.2; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pfd-boot-preview__note { min-width: 0; }
.pfd-boot-preview__title { display: block; margin: 0 0 3px; font-weight: 600; font-size: 14px; line-height: 1.25; color: #111; }
.pfd-boot-preview__when { display: block; color: rgba(0, 0, 0, .62); }
