/* ============================================================
   Portfolio Redesign — May 2026
   Brand palette: #ec9ebd · #ffcdde · #e9deca · #fcf0b2
   Scoped under #portofoliu.pfo-redesign so it cleanly overrides
   the legacy "portfolio-lab" rules without touching them.
   ============================================================ */

/* Reusable "warm pink → ink" gradient text for hero/section titles.
   Static three-stop gradient — sweeps naturally across the phrase. */
.text-gradient {
  font-style: normal;
  background: linear-gradient(180deg, var(--pink) 0%, #b06782 45%, var(--ink) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
  transition: transform .4s var(--ease), filter .4s ease, letter-spacing .4s var(--ease);
  display: inline;
}
.text-gradient:hover {
  transform: scale(1.025);
  filter: drop-shadow(0 8px 24px rgba(236, 158, 189, .42));
  letter-spacing: -.038em;
}

/* ============================================================
   Contact channel buttons
   ============================================================ */
.contact-links {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.contact-links .contact-btn {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 20px 14px 14px;
  border-radius: 18px;
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(236, 158, 189, .22);
  box-shadow: 0 12px 30px rgba(80, 50, 70, .06);
  isolation: isolate;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s ease, background .35s ease;
}
.contact-links .contact-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, var(--accent, var(--pink-soft)) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .35s ease;
}
.contact-links .contact-btn:hover,
.contact-links .contact-btn:focus-visible {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: 0 24px 50px rgba(80, 50, 70, .14), 0 14px 30px rgba(236, 158, 189, .22);
  background: rgba(255, 255, 255, .92);
}
.contact-links .contact-btn:hover::before,
.contact-links .contact-btn:focus-visible::before { opacity: .65; }

.contact-links .contact-btn-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--accent, linear-gradient(135deg, var(--pink), var(--butter)));
  box-shadow: 0 10px 24px rgba(80, 50, 70, .14), inset 0 0 0 1px rgba(255, 255, 255, .25);
  flex-shrink: 0;
  transition: transform .42s var(--ease);
}
.contact-links .contact-btn-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}
.contact-links .contact-btn:hover .contact-btn-icon {
  transform: rotate(-4deg) scale(1.05);
}
.contact-links .contact-btn-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.contact-links .contact-btn-text small {
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8b465f;
  opacity: .82;
}
.contact-links .contact-btn-text strong {
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -.01em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.contact-links .contact-btn-arrow {
  font-size: 18px;
  font-weight: 950;
  color: var(--ink);
  opacity: .42;
  transition: transform .35s var(--ease), opacity .25s ease, color .25s ease;
}
.contact-links .contact-btn:hover .contact-btn-arrow {
  transform: translateX(4px);
  opacity: 1;
}

/* Channel accents — color goes into --accent so icon bg + hover wash use it */
.contact-links .contact-btn--email    { --accent: linear-gradient(135deg, #ec9ebd, #b06782); }
.contact-links .contact-btn--email:hover    { --accent: rgba(236,158,189,.22); }
.contact-links .contact-btn--email .contact-btn-icon    { background: linear-gradient(135deg, #ec9ebd, #b06782); }

.contact-links .contact-btn--whatsapp { --accent: linear-gradient(135deg, #25D366, #128C7E); }
.contact-links .contact-btn--whatsapp:hover { --accent: rgba(37,211,102,.18); }
.contact-links .contact-btn--whatsapp .contact-btn-icon { background: linear-gradient(135deg, #25D366, #128C7E); }

.contact-links .contact-btn--facebook { --accent: linear-gradient(135deg, #1877F2, #0a4ea8); }
.contact-links .contact-btn--facebook:hover { --accent: rgba(24,119,242,.14); }
.contact-links .contact-btn--facebook .contact-btn-icon { background: linear-gradient(135deg, #1877F2, #0a4ea8); }

.contact-links .contact-btn--instagram { --accent: linear-gradient(135deg, #fcaf45 0%, #e1306c 40%, #833ab4 80%); }
.contact-links .contact-btn--instagram:hover { --accent: rgba(225,48,108,.16); }
.contact-links .contact-btn--instagram .contact-btn-icon { background: linear-gradient(135deg, #fcaf45 0%, #e1306c 50%, #833ab4 100%); }

.contact-links .contact-btn--tiktok    { --accent: linear-gradient(135deg, #ff0050, #00f2ea); }
.contact-links .contact-btn--tiktok:hover    { --accent: rgba(0,0,0,.06); }
.contact-links .contact-btn--tiktok .contact-btn-icon {
  background: #111;
}

@media (max-width: 520px) {
  .contact-btn { padding: 12px 16px 12px 12px; gap: 12px; grid-template-columns: 42px 1fr auto; }
  .contact-btn-icon { width: 42px; height: 42px; border-radius: 12px; }
  .contact-btn-text strong { font-size: 14px; }
}

/* ============================================================
   Modal content stagger-reveal — runs once the app-open launcher
   hands off to the modal panel (modal gets .is-app-settled).
   ============================================================ */
@keyframes pfoModalContentIn {
  0%   { opacity: 0; transform: translateY(18px); filter: blur(6px); }
  60%  { filter: blur(0); }
  100% { opacity: 1; transform: translateY(0);  filter: blur(0); }
}
@keyframes pfoModalVisualIn {
  0%   { opacity: 0; transform: scale(.96); }
  100% { opacity: 1; transform: scale(1); }
}

/* Text column children + each main section animate in with stagger */
.modal.is-app-settled .modal-head > div:first-child > *,
.modal.is-app-settled .modal-content > .modal-section {
  animation: pfoModalContentIn .5s cubic-bezier(.22, 1, .36, 1) both;
  will-change: opacity, transform, filter;
}

/* Visuals column gets a softer scale-in so the launcher hand-off feels
   like a continuation rather than a second pop. */
.modal.is-app-settled .modal-head .modal-visuals {
  animation: pfoModalVisualIn .8s cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: 80ms;
  transform-origin: top center;
}

/* Stagger ladder for the left text column — kept tight so the copy is
   readable while the panel is still finishing its slow grow. */
.modal.is-app-settled .modal-head > div:first-child > *:nth-child(1) { animation-delay: 180ms; }
.modal.is-app-settled .modal-head > div:first-child > *:nth-child(2) { animation-delay: 240ms; }
.modal.is-app-settled .modal-head > div:first-child > *:nth-child(3) { animation-delay: 300ms; }
.modal.is-app-settled .modal-head > div:first-child > *:nth-child(4) { animation-delay: 360ms; }
.modal.is-app-settled .modal-head > div:first-child > *:nth-child(5) { animation-delay: 420ms; }

/* Subsequent sections continue the cascade */
.modal.is-app-settled .modal-content > .modal-section:nth-of-type(1) { animation-delay: 460ms; }
.modal.is-app-settled .modal-content > .modal-section:nth-of-type(2) { animation-delay: 540ms; }
.modal.is-app-settled .modal-content > .modal-section:nth-of-type(3) { animation-delay: 620ms; }

/* List items inside "Livrabile și direcție" pop in last for a punch */
.modal.is-app-settled .modal-list li {
  animation: pfoModalContentIn .42s cubic-bezier(.22, 1, .36, 1) both;
}
.modal.is-app-settled .modal-list li:nth-child(1) { animation-delay: 560ms; }
.modal.is-app-settled .modal-list li:nth-child(2) { animation-delay: 620ms; }
.modal.is-app-settled .modal-list li:nth-child(3) { animation-delay: 680ms; }
.modal.is-app-settled .modal-list li:nth-child(4) { animation-delay: 740ms; }
.modal.is-app-settled .modal-list li:nth-child(5) { animation-delay: 800ms; }
.modal.is-app-settled .modal-list li:nth-child(6) { animation-delay: 860ms; }

/* Close button slides in last */
.modal.is-app-settled .modal-close {
  animation: pfoModalContentIn .4s cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: 720ms;
}

@media (prefers-reduced-motion: reduce) {
  .modal.is-app-settled .modal-head > div:first-child > *,
  .modal.is-app-settled .modal-head .modal-visuals,
  .modal.is-app-settled .modal-content > .modal-section,
  .modal.is-app-settled .modal-list li,
  .modal.is-app-settled .modal-close {
    animation: none !important;
  }
}

/* ============================================================
   Branded scrollbars — page + modal panel
   ============================================================ */
:root {
  scrollbar-color: var(--pink) rgba(236, 158, 189, .14);
  scrollbar-width: thin;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
}
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--pink), #b06782);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
  min-height: 40px;
}
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #b06782, var(--ink));
  background-clip: padding-box;
  border: 2px solid transparent;
}
html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner {
  background: transparent;
}

/* Modal scrollbar — slim & inset so it doesn't kiss the rounded corners.
   The panel itself stops scrolling; the inner .modal-content scrolls, with
   inner padding pushing the scrollbar away from the rounded edges. */
.modal-panel {
  overflow: hidden !important;
}
.modal-content {
  max-height: min(88svh, 820px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 34px 28px 34px 34px;
  scrollbar-color: rgba(236, 158, 189, .55) transparent;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
}
.modal-content::-webkit-scrollbar {
  width: 6px;
}
.modal-content::-webkit-scrollbar-button,
.modal-content::-webkit-scrollbar-button:single-button,
.modal-content::-webkit-scrollbar-button:start,
.modal-content::-webkit-scrollbar-button:end {
  display: none !important;
  height: 0 !important;
  width: 0 !important;
  background: transparent;
}
.modal-content::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track-piece {
  background: transparent;
  border: 0;
  margin-block: 28px;
}
.modal-content::-webkit-scrollbar-thumb {
  background: rgba(236, 158, 189, .55);
  border-radius: 999px;
  border: 0;
  min-height: 60px;
  transition: background .25s ease;
}
.modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(176, 103, 130, .85);
}
.modal-content::-webkit-scrollbar-corner {
  background: transparent;
}

/* Compact close button, snug in the top-right corner — clears the rounded edge. */
.modal-panel .modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  float: none;
  margin: 0;
  width: 34px;
  height: 34px;
  font-size: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(42, 32, 38, .88);
  color: var(--white);
  border: 0;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 8px 22px rgba(80, 50, 70, .26);
  transition: transform .25s var(--ease), background .2s ease;
}
.modal-panel .modal-close:hover {
  transform: scale(1.08) rotate(90deg);
  background: var(--ink);
}

@media (max-width: 720px) {
  .modal-content { padding: 24px 14px 22px 18px; }
}

/* ============================================================
   Spotlight launch — match the image rendering across the morph
   so the picture doesn't visually jump from contain → cover.
   ============================================================ */
.project-launcher.pfo-launcher-spot {
  background:
    radial-gradient(circle at 22% 20%, rgba(252,240,178,.4), transparent 42%),
    linear-gradient(135deg, var(--pink-soft), var(--butter)) !important;
}
.project-launcher.pfo-launcher-spot img {
  object-fit: contain !important;
  padding: clamp(14px, 2vw, 22px);
  filter: drop-shadow(0 18px 36px rgba(80,50,70,.22));
  box-sizing: border-box;
  background: transparent;
}
.project-launcher.pfo-launcher-spot .project-launcher-icon,
.project-launcher.pfo-launcher-spot::before,
.project-launcher.pfo-launcher-spot::after {
  display: none !important;
}
.project-launcher.pfo-launcher-spot .project-launcher-overlay {
  display: none !important;
}

/* Make the modal's preview slide match (contain on brand bg) when the
   modal was launched from the spotlight. Cleared on close. */
body.pfo-spot-modal #projectModal .project-showcase {
  background:
    radial-gradient(circle at 22% 20%, rgba(252,240,178,.4), transparent 42%),
    linear-gradient(135deg, var(--pink-soft), var(--butter)) !important;
}
body.pfo-spot-modal #projectModal .project-slide {
  object-fit: contain !important;
  padding: clamp(14px, 2vw, 22px);
  box-sizing: border-box;
  filter: drop-shadow(0 18px 36px rgba(80,50,70,.18));
}

/* The default .project-showcase-info overlay (white "PREVIEW PROIECT /
   title / vizual principal" text) doesn't match the refined modal — the
   title is already in modal-head and the text crowds the image. Replace
   it with a clean glass chip that just carries the image counter, and
   restyle the dots to feel like part of the modal design. */
body.pfo-spot-modal #projectModal .project-showcase-info {
  top: 18px;
  left: auto;
  right: 18px;
  bottom: auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(80, 50, 70, .14);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
body.pfo-spot-modal #projectModal .project-showcase-info span {
  display: none;
}
body.pfo-spot-modal #projectModal .project-showcase-info strong {
  display: none;
}
body.pfo-spot-modal #projectModal .project-showcase-info small {
  display: inline-block;
  margin: 0;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: .82;
}
body.pfo-spot-modal #projectModal .project-showcase-info::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 3px rgba(236, 158, 189, .26);
}

/* Restyle dots to be subtle white pills inside the showcase. */
body.pfo-spot-modal #projectModal .project-dots {
  bottom: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(42, 32, 38, .42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
body.pfo-spot-modal #projectModal .project-dot {
  background: rgba(255, 255, 255, .5);
}
body.pfo-spot-modal #projectModal .project-dot.is-active {
  background: linear-gradient(90deg, var(--pink), var(--butter));
}

/* ============================================================
   Modal left-column "side card" — fills the blank space below the
   description with a soft brand-tinted pull-quote.
   ============================================================ */
.modal-side-card {
  position: relative;
  margin-top: 26px;
  padding: 22px 24px 22px 30px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 14% 22%, rgba(252, 240, 178, .42), transparent 46%),
    linear-gradient(135deg, rgba(255, 205, 222, .42), rgba(233, 222, 202, .32));
  border: 1px solid rgba(236, 158, 189, .26);
  box-shadow: 0 18px 40px rgba(80, 50, 70, .08);
  overflow: hidden;
  isolation: isolate;
}
.modal-side-card::before {
  content: """;
  position: absolute;
  top: -34px;
  left: 14px;
  font-size: 120px;
  line-height: 1;
  font-family: "Georgia", serif;
  color: rgba(236, 158, 189, .42);
  font-weight: 900;
  pointer-events: none;
  user-select: none;
}
.modal-side-card-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8b465f;
}
.modal-side-card-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--pink), var(--ink));
  border-radius: 2px;
}
.modal-side-card p {
  margin: 12px 0 0;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.55;
  color: var(--ink);
  font-weight: 700;
  text-wrap: pretty;
  position: relative;
  z-index: 1;
}

/* Hide the duplicate "Exemplu de abordare" section at the bottom of the
   modal once we're carrying the same line as a callout in the left col. */
.modal-content > .modal-section:has(.modal-quote) {
  display: none;
}

/* ============================================================
   Decorative section dividers — small SVG glyphs between sections
   ============================================================ */
.pfo-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: clamp(8px, 1.5vw, 24px) auto;
  padding: 0 24px;
  pointer-events: none;
  position: relative;
  z-index: 1;
}
.pfo-divider svg {
  display: block;
  width: 100%;
  height: auto;
}
.pfo-div-wave svg { max-width: 360px; }
.pfo-div-dots svg { max-width: 220px; }
.pfo-div-sparkle svg { max-width: 200px; }
.pfo-div-flower svg { max-width: 280px; }
.pfo-div-trio svg { max-width: 320px; }
.pfo-div-trail svg { max-width: 280px; }

/* Continuous gentle motion */
.pfo-div-wave   { animation: pfoDivBob 5s ease-in-out infinite alternate; }
.pfo-div-dots   { animation: pfoDivBob 6s ease-in-out -1.5s infinite alternate; }
.pfo-div-sparkle{ animation: pfoDivBob 7s ease-in-out -3s infinite alternate; }
.pfo-div-flower { animation: pfoDivBob 6.5s ease-in-out -2s infinite alternate; }
.pfo-div-trio   { animation: pfoDivBob 5.5s ease-in-out -3.5s infinite alternate; }
.pfo-div-trail  { animation: pfoDivBob 6s ease-in-out -4s infinite alternate; }

.pfo-div-sparkle svg path:last-child {
  transform-origin: 110px 22px;
  animation: pfoSparkleSpin 9s linear infinite;
}
.pfo-div-flower .pfo-petals {
  transform-origin: center;
  animation: pfoSparkleSpin 16s linear infinite;
}
.pfo-div-trio .pfo-trio-mid {
  transform-origin: 160px 20px;
  animation: pfoSparkleSpin 12s linear infinite reverse;
}
.pfo-div-trail .pfo-trail-path {
  stroke-dasharray: 4 8;
  animation: pfoTrailDash 4s linear infinite;
}
@keyframes pfoTrailDash {
  0%   { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -36; }
}
@keyframes pfoDivBob {
  0%   { transform: translateY(-2px); }
  100% { transform: translateY(2px); }
}
@keyframes pfoSparkleSpin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .pfo-divider,
  .pfo-div-sparkle svg path:last-child,
  .pfo-div-flower .pfo-petals,
  .pfo-div-trio .pfo-trio-mid,
  .pfo-div-trail .pfo-trail-path {
    animation: none !important;
  }
}

/* ============================================================
   Device & form-factor optimizations
   - iOS notch / Dynamic Island safe-area insets
   - Samsung One UI gesture bar bottom padding
   - Tablet & foldable layout tuning
   - Touch-target sizes
   - Dynamic viewport units to handle mobile URL bar
   ============================================================ */

/* Smoother text on hi-DPI Apple + Samsung AMOLED displays */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Safe-area insets for iOS notch + Samsung gesture bar */
@supports (padding: max(0px)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  .whatsapp-float {
    right: max(22px, env(safe-area-inset-right) + 14px) !important;
    bottom: max(22px, env(safe-area-inset-bottom) + 14px) !important;
  }
  .whatsapp-tip {
    right: max(90px, env(safe-area-inset-right) + 80px) !important;
    bottom: max(28px, env(safe-area-inset-bottom) + 20px) !important;
  }
  .site-header {
    padding-top: env(safe-area-inset-top);
  }
  .modal {
    padding-top: max(22px, env(safe-area-inset-top));
    padding-bottom: max(22px, env(safe-area-inset-bottom));
    padding-left: max(22px, env(safe-area-inset-left));
    padding-right: max(22px, env(safe-area-inset-right));
  }
}

/* iOS Safari 100vh fix — use dynamic / small viewport units where supported */
@supports (height: 100dvh) {
  .modal-panel {
    max-height: min(88dvh, 820px) !important;
  }
  .modal-content {
    max-height: min(88dvh, 820px) !important;
  }
}
@supports (height: 100svh) {
  .hero.section {
    min-height: 100svh;
  }
}

/* Bigger tap targets on touch — keep visual size but extend hit area */
@media (hover: none) and (pointer: coarse) {
  .btn, .filter-btn, .pfo-chip, .pfo-spot-arrow, .pfo-spot-play,
  .modal-close, .nav-toggle, .main-nav a, .contact-btn,
  .price-card .btn, .card-button {
    min-height: 44px;
  }
  .pfo-spot-dot { min-width: 16px; min-height: 16px; padding: 4px; box-sizing: content-box; }
  /* Hide hover-driven decorations on touch */
  .pfo-cursor-orb { display: none !important; }
  .whatsapp-tip { display: none !important; }
}

/* Prevent any horizontal scroll on small screens */
html, body { max-width: 100%; overflow-x: hidden; }

/* iPhone SE / very small (≤375px) */
@media (max-width: 380px) {
  :root { --container: 100%; }
  .container { width: min(100% - 24px, var(--container)); }
  .hero-copy h1 { font-size: clamp(36px, 11vw, 48px) !important; }
  .hero-stats { gap: 14px !important; }
  .hero-stats strong { font-size: 26px !important; }
  .modal-content { padding: 22px 14px 22px 16px !important; }
  .modal-head { grid-template-columns: 1fr !important; gap: 18px !important; }
  .modal-list { grid-template-columns: 1fr !important; }
  #portofoliu.pfo-redesign .pfo-spot-info h3 { font-size: 26px !important; }
  #portofoliu.pfo-redesign .pfo-spot-cta { padding: 12px 18px !important; font-size: 13px !important; }
}

/* Samsung Galaxy S series & Z Flip cover screen (360–414px) */
@media (min-width: 381px) and (max-width: 414px) {
  .hero-copy h1 { font-size: clamp(40px, 9.4vw, 52px) !important; }
  #portofoliu.pfo-redesign .pfo-title { font-size: clamp(34px, 9vw, 46px) !important; }
}

/* Galaxy Z Fold (folded ~280px wide) */
@media (max-width: 320px) {
  .container { width: min(100% - 16px, var(--container)); }
  .hero-copy h1 { font-size: 32px !important; line-height: 1.05; }
  .btn { padding: 12px 18px !important; font-size: 13px !important; }
}

/* Standard tablets — iPad Mini, iPad 10.x, Galaxy Tab (768–1024) */
@media (min-width: 768px) and (max-width: 1024px) {
  .container { width: min(100% - 44px, var(--container)); }
  .hero { padding-top: clamp(60px, 8vw, 100px); }
  #portofoliu.pfo-redesign .pfo-spot-stage {
    aspect-ratio: 16 / 10;
  }
  .modal-panel {
    width: min(960px, calc(100% - 28px)) !important;
  }
  /* Stack hero on iPad portrait so the image doesn't crowd copy */
  .hero-grid { grid-template-columns: 1fr 1fr !important; }
}

/* iPad Pro 11"/12.9" (≥1024px in portrait/landscape) */
@media (min-width: 1024px) and (max-width: 1366px) and (hover: none) {
  /* Disable cursor orb + hover-magnetics on iPad even though pointer-fine reports as hover */
  .pfo-cursor-orb { display: none !important; }
}

/* Landscape orientation — short screens (phone landscape) */
@media (max-height: 500px) and (orientation: landscape) {
  .hero.section { min-height: auto; padding-top: 80px; padding-bottom: 40px; }
  .modal-panel { max-height: 92dvh !important; }
}

/* Large desktops — keep things from getting too wide */
@media (min-width: 1600px) {
  :root { --container: 1280px; }
}

/* Prevent iOS auto-zoom on form inputs (fonts ≥16px) */
input, textarea, select {
  font-size: max(16px, 1em);
}

/* Disable any sub-pixel jitter on transformed elements (common on AMOLED) */
.pfo-card,
.modal-panel,
.btn,
.price-card,
.service-card,
.pfo-spot-slide,
.contact-btn {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Smooth focus rings — visible on every device, brand-tinted */
:focus-visible {
  outline: 3px solid rgba(236, 158, 189, .68);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================
   Language toggle (RO / EN)
   ============================================================ */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(236, 158, 189, .12);
  border: 1px solid rgba(236, 158, 189, .28);
  margin: 0 6px;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .25s var(--ease);
  line-height: 1;
}
.lang-btn:hover {
  color: var(--ink);
  transform: translateY(-1px);
}
.lang-btn.is-active {
  background: linear-gradient(135deg, var(--pink), var(--pink-soft) 55%, var(--butter));
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(236, 158, 189, .34);
}
.lang-flag {
  display: inline-block;
  width: 16px;
  height: 11px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06);
  flex-shrink: 0;
}
/* Romania: blue, yellow, red vertical tricolor */
.lang-flag-ro {
  background: linear-gradient(90deg, #002B7F 0 33.33%, #FCD116 33.33% 66.66%, #CE1126 66.66% 100%);
}
/* UK flag (compact representation: blue background + white/red cross overlays) */
.lang-flag-en {
  background:
    /* red diagonals on top */
    linear-gradient(45deg, transparent 44%, #C8102E 44% 56%, transparent 56%) no-repeat,
    linear-gradient(-45deg, transparent 44%, #C8102E 44% 56%, transparent 56%) no-repeat,
    /* white diagonals beneath the red */
    linear-gradient(45deg, transparent 40%, #ffffff 40% 60%, transparent 60%) no-repeat,
    linear-gradient(-45deg, transparent 40%, #ffffff 40% 60%, transparent 60%) no-repeat,
    /* white cross */
    linear-gradient(90deg, transparent 42%, #ffffff 42% 58%, transparent 58%) no-repeat,
    linear-gradient(0deg, transparent 38%, #ffffff 38% 62%, transparent 62%) no-repeat,
    /* red cross on top */
    linear-gradient(90deg, transparent 45%, #C8102E 45% 55%, transparent 55%) no-repeat,
    linear-gradient(0deg, transparent 42%, #C8102E 42% 58%, transparent 58%) no-repeat,
    /* blue base */
    #012169;
  background-size: 100% 100%;
}

/* Mobile drawer: stack the language toggle as its own row */
@media (max-width: 1024px) {
  .main-nav .lang-toggle {
    align-self: flex-start;
    margin: 12px 0 0;
    padding: 6px;
  }
  .main-nav .lang-btn {
    padding: 10px 16px;
    font-size: 14px;
  }
  .main-nav .lang-btn::after { display: none; }
}
   Hamburger kicks in earlier (≤1024px) and the open menu becomes a
   branded full-screen drawer with backdrop blur, large tap targets,
   and a contextual hero feel.
   ============================================================ */
@media (max-width: 1024px) {
  .nav-toggle { display: block !important; }
  .main-nav {
    position: fixed !important;
    inset: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100dvh;
    padding: clamp(96px, 14vh, 140px) clamp(24px, 6vw, 60px) clamp(60px, 8vh, 100px) !important;
    background:
      radial-gradient(circle at 18% 12%, rgba(252, 240, 178, .42), transparent 38%),
      radial-gradient(circle at 86% 88%, rgba(236, 158, 189, .42), transparent 42%),
      linear-gradient(180deg, rgba(255, 248, 251, .96), rgba(255, 244, 235, .96));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: none !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .42s var(--ease), transform .5s var(--ease), visibility .42s ease;
    z-index: 1100;
    overflow-y: auto;
  }
  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .main-nav::before {
    content: "Meniu";
    position: absolute;
    top: clamp(32px, 6vh, 56px);
    left: clamp(28px, 6vw, 60px);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: #8b465f;
  }
  .main-nav a {
    padding: 18px 6px !important;
    border-radius: 0 !important;
    border-bottom: 1px solid rgba(236, 158, 189, .22);
    background: transparent !important;
    color: var(--ink);
    font-size: clamp(26px, 4.6vw, 36px) !important;
    font-weight: 950 !important;
    letter-spacing: -.035em !important;
    text-align: left;
    transition: transform .3s var(--ease), color .25s ease, padding-left .3s var(--ease);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }
  .main-nav a::after {
    content: "→";
    font-size: 22px;
    color: var(--pink);
    transform: translateX(-4px);
    opacity: 0;
    transition: transform .3s var(--ease), opacity .3s ease;
  }
  .main-nav a:hover,
  .main-nav a:focus-visible {
    background: transparent !important;
    color: var(--ink);
    padding-left: 14px !important;
  }
  .main-nav a:hover::after,
  .main-nav a:focus-visible::after {
    transform: translateX(0);
    opacity: 1;
  }
  .main-nav .nav-cta {
    margin-top: 24px;
    padding: 18px 24px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, var(--pink), var(--pink-soft) 56%, var(--butter)) !important;
    box-shadow: 0 18px 44px rgba(236, 158, 189, .32);
    text-align: center;
    justify-content: center;
    color: var(--ink);
    border-bottom: 0;
    font-size: 16px !important;
  }
  .main-nav .nav-cta::after { display: none; }

  /* Stagger nav items into view */
  .main-nav.is-open a {
    animation: pfoNavItemIn .55s cubic-bezier(.22, 1, .36, 1) both;
  }
  .main-nav.is-open a:nth-child(1) { animation-delay: 140ms; }
  .main-nav.is-open a:nth-child(2) { animation-delay: 200ms; }
  .main-nav.is-open a:nth-child(3) { animation-delay: 260ms; }
  .main-nav.is-open a:nth-child(4) { animation-delay: 320ms; }
  .main-nav.is-open a:nth-child(5) { animation-delay: 380ms; }
  .main-nav.is-open a:nth-child(6) { animation-delay: 440ms; }
  .main-nav.is-open a:nth-child(7) { animation-delay: 500ms; }
  @keyframes pfoNavItemIn {
    0%   { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
  }

  /* Pin the hamburger above the open drawer */
  .nav-toggle { position: relative; z-index: 1200; }

  /* Lock background scroll when the drawer is open */
  body:has(.main-nav.is-open) { overflow: hidden; }
}

@media (max-width: 1024px) and (prefers-reduced-motion: reduce) {
  .main-nav, .main-nav.is-open a { animation: none !important; transition: opacity .2s linear !important; }
}

/* The legacy panel-reveal animation + the visuals scale-in would fight
   our custom JS "grow from spotlight" animation. Disable both when
   the modal was launched from the spotlight. */
body.pfo-spot-modal .modal.is-open:not(.is-preparing):not(.is-app-launching) .modal-panel {
  animation: none !important;
}
body.pfo-spot-modal .modal.is-app-settled .modal-head .modal-visuals {
  animation: none !important;
}

#portofoliu.pfo-redesign {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0 clamp(70px, 8vw, 110px);
  overflow: hidden;
  isolation: isolate;
}

/* Remove all legacy backgrounds/blobs from this section */
#portofoliu.pfo-redesign .portfolio-lab-bg { display: none; }

/* ---------- Ambient background ---------- */
#portofoliu.pfo-redesign .pfo-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
#portofoliu.pfo-redesign .pfo-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
#portofoliu.pfo-redesign .pfo-blob-a {
  width: 560px; height: 560px;
  background: var(--pink-soft);
  top: -160px; left: -200px;
  opacity: .58;
  animation: pfoFloat 18s ease-in-out infinite alternate;
}
#portofoliu.pfo-redesign .pfo-blob-b {
  width: 520px; height: 520px;
  background: var(--butter);
  top: 36%; right: -180px;
  opacity: .54;
  animation: pfoFloat 22s ease-in-out -6s infinite alternate;
}
#portofoliu.pfo-redesign .pfo-blob-c {
  width: 420px; height: 420px;
  background: var(--pink);
  bottom: -140px; left: 32%;
  opacity: .28;
  animation: pfoFloat 26s ease-in-out -10s infinite alternate;
}
@keyframes pfoFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.08); }
}
#portofoliu.pfo-redesign .pfo-grid-glow {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(236,158,189,.12) 1px, transparent 1.6px);
  background-size: 36px 36px;
  mask: radial-gradient(ellipse at center, black 0%, transparent 70%);
  opacity: .65;
}

/* ---------- Header ---------- */
#portofoliu.pfo-redesign .pfo-head {
  max-width: 900px;
  margin: 0 auto clamp(48px, 6vw, 72px);
  text-align: center;
}
#portofoliu.pfo-redesign .pfo-head-meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
#portofoliu.pfo-redesign .pfo-eyebrow {
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #8b465f;
}
#portofoliu.pfo-redesign .pfo-head-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--butter));
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .03em;
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(236,158,189,.32);
}
#portofoliu.pfo-redesign .pfo-head-pill::before {
  content: "✦";
  font-size: 12px;
}
#portofoliu.pfo-redesign .pfo-title {
  margin: 0;
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.03;
  letter-spacing: -.045em;
  color: var(--ink);
  text-wrap: balance;
}
#portofoliu.pfo-redesign .pfo-title em {
  font-style: normal;
  background: linear-gradient(110deg, var(--pink) 0%, #b06782 38%, var(--ink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
#portofoliu.pfo-redesign .pfo-lede {
  margin: 24px auto 0;
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
  text-wrap: pretty;
}

/* ---------- Spotlight ---------- */
#portofoliu.pfo-redesign .pfo-spotlight {
  position: relative;
  margin-bottom: clamp(40px, 5vw, 56px);
}
#portofoliu.pfo-redesign .pfo-spot-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8.2;
  min-height: 380px;
  border-radius: clamp(28px, 3vw, 40px);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 24%, rgba(252,240,178,.5), transparent 38%),
    linear-gradient(135deg, var(--pink-soft), var(--sand));
  box-shadow: 0 50px 120px rgba(80,50,70,.20), 0 18px 48px rgba(236,158,189,.16);
  isolation: isolate;
}
#portofoliu.pfo-redesign .pfo-spot-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity .55s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
#portofoliu.pfo-redesign .pfo-spot-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  z-index: 2;
}
/* :not(.is-active) so that if a class race ever leaves a slide carrying both
   is-active and is-leaving, the active state wins and the slide stays visible
   instead of blanking out. */
#portofoliu.pfo-redesign .pfo-spot-slide.is-leaving:not(.is-active) {
  opacity: 0;
  transform: translateY(-22px);
  transition-duration: .42s;
  z-index: 1;
}
/* The active slide is always fully visible, no matter what other state
   classes linger from an interrupted transition. */
#portofoliu.pfo-redesign .pfo-spot-slide.is-active {
  opacity: 1 !important;
}
#portofoliu.pfo-redesign .pfo-spot-info {
  padding: clamp(28px, 4vw, 54px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,250,246,.88));
  position: relative;
  z-index: 2;
}
#portofoliu.pfo-redesign .pfo-spot-info > div { min-width: 0; }
#portofoliu.pfo-redesign .pfo-spot-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8b465f;
}
#portofoliu.pfo-redesign .pfo-spot-kicker::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--pink), var(--ink));
  border-radius: 2px;
}
#portofoliu.pfo-redesign .pfo-spot-slide h3 {
  margin: 14px 0 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -.045em;
  color: var(--ink);
  text-wrap: balance;
}
#portofoliu.pfo-redesign .pfo-spot-industry {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 850;
  color: var(--muted);
}
#portofoliu.pfo-redesign .pfo-spot-desc {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.6;
  text-wrap: pretty;
}
#portofoliu.pfo-redesign .pfo-spot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
#portofoliu.pfo-redesign .pfo-spot-tags span {
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(236,158,189,.14);
  border: 1px solid rgba(236,158,189,.32);
  color: #8b465f;
  font-size: 12px;
  font-weight: 900;
}
#portofoliu.pfo-redesign .pfo-spot-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  padding: 14px 24px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, var(--ink), #5d3a48 70%, var(--pink));
  color: white;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  box-shadow: 0 16px 40px rgba(80,50,70,.26);
}
#portofoliu.pfo-redesign .pfo-spot-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 56px rgba(80,50,70,.32);
}
#portofoliu.pfo-redesign .pfo-spot-cta .pfo-arrow {
  display: inline-block;
  transition: transform .3s var(--ease);
}
#portofoliu.pfo-redesign .pfo-spot-cta:hover .pfo-arrow { transform: translateX(5px); }

#portofoliu.pfo-redesign .pfo-spot-art {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 22%, rgba(252,240,178,.5), transparent 42%),
    linear-gradient(135deg, var(--pink-soft), var(--butter));
  padding: clamp(16px, 2vw, 28px);
}
#portofoliu.pfo-redesign .pfo-spot-art img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 18px 40px rgba(80,50,70,.22));
  transform: scale(1);
  transition: transform 8s ease-out;
}
#portofoliu.pfo-redesign .pfo-spot-slide.is-active .pfo-spot-art img {
  animation: pfoKenBurns 14s ease-in-out infinite alternate;
}
@keyframes pfoKenBurns {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.06) translate(-1.4%, -1.4%); }
}
#portofoliu.pfo-redesign .pfo-spot-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(255,255,255,.42) 0%, transparent 32%),
    linear-gradient(290deg, rgba(236,158,189,.22) 0%, transparent 38%);
  pointer-events: none;
  z-index: 1;
}
#portofoliu.pfo-redesign .pfo-spot-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 3;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  color: var(--ink);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
  box-shadow: 0 10px 26px rgba(80,50,70,.15);
}

/* Spotlight controls */
#portofoliu.pfo-redesign .pfo-spot-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 22px;
  flex-wrap: wrap;
}
#portofoliu.pfo-redesign .pfo-spot-arrow,
#portofoliu.pfo-redesign .pfo-spot-play {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(236,158,189,.36);
  background: rgba(255,255,255,.78);
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .25s var(--ease), background .25s ease, border-color .25s ease, box-shadow .25s ease;
  backdrop-filter: blur(8px);
}
#portofoliu.pfo-redesign .pfo-spot-arrow:hover,
#portofoliu.pfo-redesign .pfo-spot-play:hover {
  background: linear-gradient(135deg, var(--pink-soft), var(--butter));
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(236,158,189,.34);
}
#portofoliu.pfo-redesign .pfo-spot-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
}
#portofoliu.pfo-redesign .pfo-spot-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(236,158,189,.4);
  cursor: pointer;
  transition: width .42s var(--ease), background .25s ease;
}
#portofoliu.pfo-redesign .pfo-spot-dot:hover { background: var(--pink); }
#portofoliu.pfo-redesign .pfo-spot-dot.is-active {
  width: 34px;
  background: linear-gradient(90deg, var(--pink), var(--ink));
}
#portofoliu.pfo-redesign .pfo-spot-play { font-size: 12px; }

/* ---------- Toolbar (filters + search) ---------- */
#portofoliu.pfo-redesign .pfo-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin: 0 0 22px;
  padding: 14px;
  border-radius: 28px;
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(255,255,255,.82);
  box-shadow: 0 20px 50px rgba(80,50,70,.08);
  backdrop-filter: blur(14px);
  position: relative;
  z-index: 4;
}
#portofoliu.pfo-redesign .pfo-chips {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
#portofoliu.pfo-redesign .pfo-chips-pill {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, var(--pink), var(--pink-soft) 55%, var(--butter));
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(236,158,189,.4);
  transition: transform .48s cubic-bezier(.65,.05,.36,1), width .48s cubic-bezier(.65,.05,.36,1), height .25s ease, opacity .2s ease;
  will-change: transform, width;
  pointer-events: none;
  opacity: 0;
}
#portofoliu.pfo-redesign .pfo-chip {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 850;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .3s ease, transform .25s var(--ease);
}
#portofoliu.pfo-redesign .pfo-chip:hover { color: var(--ink); transform: translateY(-1px); }
#portofoliu.pfo-redesign .pfo-chip.is-active { color: var(--ink); }
#portofoliu.pfo-redesign .pfo-chip small {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(42,32,38,.08);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .01em;
}
#portofoliu.pfo-redesign .pfo-chip.is-active small {
  background: rgba(255,255,255,.6);
  color: var(--ink);
}

#portofoliu.pfo-redesign .pfo-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 40px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(236,158,189,.24);
  min-width: 280px;
  transition: border-color .25s ease, box-shadow .25s ease;
}
#portofoliu.pfo-redesign .pfo-search:focus-within {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(236,158,189,.18);
}
#portofoliu.pfo-redesign .pfo-search-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--muted);
}
#portofoliu.pfo-redesign .pfo-search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
}
#portofoliu.pfo-redesign .pfo-search input::placeholder { color: rgba(42,32,38,.42); font-weight: 700; }
#portofoliu.pfo-redesign .pfo-search-clear {
  border: 0;
  background: rgba(42,32,38,.08);
  width: 24px;
  height: 24px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  color: var(--ink);
  display: grid;
  place-items: center;
  line-height: 1;
  transition: background .2s ease;
}
#portofoliu.pfo-redesign .pfo-search-clear:hover { background: rgba(42,32,38,.16); }

/* Result bar */
#portofoliu.pfo-redesign .pfo-result-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  padding: 0 6px;
  font-size: 14px;
  color: var(--muted);
}
#portofoliu.pfo-redesign .pfo-result-bar strong {
  font-weight: 950;
  color: var(--ink);
  font-size: 16px;
}
#portofoliu.pfo-redesign .pfo-result-sep { color: rgba(42,32,38,.32); }

/* ---------- Grid ---------- */
#portofoliu.pfo-redesign .pfo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: auto;
  gap: 20px;
  margin-bottom: 44px;
  position: relative;
}
#portofoliu.pfo-redesign .pfo-grid.is-filtering .pfo-card:not(.is-hidden) {
  animation: pfoCardRefresh .6s var(--ease) both;
  animation-delay: calc(var(--pfo-idx, 0) * 36ms);
}
@keyframes pfoCardRefresh {
  0%   { opacity: 0; transform: translateY(16px) scale(.96); filter: blur(2px); }
  100% { opacity: 1; transform: translateY(0)   scale(1);    filter: blur(0); }
}

#portofoliu.pfo-redesign .pfo-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.92);
  box-shadow: 0 18px 44px rgba(80,50,70,.08);
  transition: transform .42s var(--ease), box-shadow .42s var(--ease), opacity .25s ease, border-color .25s ease;
  isolation: isolate;
  transform-origin: center bottom;
  outline: none;
}
#portofoliu.pfo-redesign .pfo-card.is-hidden { display: none; }
#portofoliu.pfo-redesign .pfo-card.is-featured { grid-column: span 3; }
#portofoliu.pfo-redesign .pfo-card.is-wide     { grid-column: span 4; }
#portofoliu.pfo-redesign .pfo-card:hover,
#portofoliu.pfo-redesign .pfo-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(236,158,189,.42);
  box-shadow: 0 36px 80px rgba(80,50,70,.18), 0 16px 40px rgba(236,158,189,.18);
}
#portofoliu.pfo-redesign .pfo-card:focus-visible {
  box-shadow: 0 0 0 3px var(--pink), 0 36px 80px rgba(80,50,70,.18);
}

/* MEDIA panel — top portion of card, image "contain"ed on brand bg */
#portofoliu.pfo-redesign .pfo-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 22% 18%, rgba(252,240,178,.5), transparent 42%),
    linear-gradient(135deg, var(--pink-soft), var(--sand));
  overflow: hidden;
  flex: 0 0 auto;
}
#portofoliu.pfo-redesign .pfo-card.is-featured .pfo-card-media { aspect-ratio: 16 / 10; }
#portofoliu.pfo-redesign .pfo-card.is-wide     .pfo-card-media { aspect-ratio: 16 / 9; }

/* Subtle film grain / sheen overlay */
#portofoliu.pfo-redesign .pfo-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(255,255,255,.42) 0%, transparent 32%),
    linear-gradient(340deg, rgba(236,158,189,.18) 0%, transparent 36%);
  pointer-events: none;
  z-index: 2;
  opacity: .7;
  transition: opacity .4s ease;
}
#portofoliu.pfo-redesign .pfo-card:hover .pfo-card-media::after { opacity: 1; }

/* Override legacy .portfolio-media inside the card-media wrapper */
#portofoliu.pfo-redesign .pfo-card .portfolio-media {
  position: absolute !important;
  inset: clamp(14px, 2vw, 22px) !important;
  width: auto !important;
  height: auto !important;
  aspect-ratio: auto !important;
  border-radius: 18px !important;
  background: transparent !important;
  margin: 0 !important;
  z-index: 1;
  overflow: visible !important;
}
#portofoliu.pfo-redesign .pfo-card .portfolio-media::before,
#portofoliu.pfo-redesign .pfo-card .portfolio-media::after { content: none !important; display: none !important; }
#portofoliu.pfo-redesign .pfo-card .portfolio-preview-stack {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}
#portofoliu.pfo-redesign .pfo-card .portfolio-preview-image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: scale(1);
  transition: transform .9s var(--ease), filter .5s ease;
  animation: none !important;
  opacity: 1 !important;
  filter: drop-shadow(0 14px 28px rgba(80,50,70,.18));
}
#portofoliu.pfo-redesign .pfo-card:hover .portfolio-preview-image {
  transform: scale(1.045);
}

/* Floating chrome on the media panel */
#portofoliu.pfo-redesign .pfo-card .portfolio-app-icon {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--pink), var(--butter));
  color: var(--ink);
  font-weight: 950;
  font-size: 13px;
  letter-spacing: -.04em;
  box-shadow: 0 8px 22px rgba(80,50,70,.18), inset 0 0 0 1px rgba(255,255,255,.5);
  transition: transform .35s var(--ease);
  margin: 0;
}
#portofoliu.pfo-redesign .pfo-card:hover .portfolio-app-icon {
  transform: translateY(-2px) rotate(-4deg);
}
#portofoliu.pfo-redesign .pfo-card-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(80,50,70,.12);
}

/* INFO panel — always visible, anchors bottom of card */
#portofoliu.pfo-redesign .pfo-card-info {
  position: relative;
  padding: 18px 20px 20px;
  background: rgba(255,255,255,.96);
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
  min-height: 0;
}
#portofoliu.pfo-redesign .pfo-card-industry {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8b465f;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#portofoliu.pfo-redesign .pfo-card-info h3 {
  margin: 6px 0 0;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.15;
  letter-spacing: -.035em;
  color: var(--ink);
  text-wrap: balance;
}
#portofoliu.pfo-redesign .pfo-card.is-featured .pfo-card-info h3,
#portofoliu.pfo-redesign .pfo-card.is-wide .pfo-card-info h3 {
  font-size: clamp(22px, 2vw, 28px);
}
#portofoliu.pfo-redesign .pfo-card-short {
  margin: 8px 0 0;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#portofoliu.pfo-redesign .pfo-card.is-featured .pfo-card-short,
#portofoliu.pfo-redesign .pfo-card.is-wide .pfo-card-short {
  -webkit-line-clamp: 3;
}
#portofoliu.pfo-redesign .pfo-card-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 0;
  font-size: 11.5px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8b465f;
  opacity: .82;
  transition: opacity .3s ease, gap .3s var(--ease);
}
#portofoliu.pfo-redesign .pfo-card-open-arrow {
  display: inline-block;
  transition: transform .3s var(--ease);
}
#portofoliu.pfo-redesign .pfo-card:hover .pfo-card-open {
  opacity: 1;
  gap: 10px;
}
#portofoliu.pfo-redesign .pfo-card:hover .pfo-card-open-arrow {
  transform: translateX(3px);
}

#portofoliu.pfo-redesign .pfo-empty {
  grid-column: 1 / -1;
  margin: 8px 0 40px;
  padding: 50px 28px;
  text-align: center;
  border-radius: 32px;
  background: rgba(255,255,255,.6);
  border: 1px dashed rgba(236,158,189,.42);
  color: var(--muted);
  font-weight: 800;
}

/* ---------- Marquee ---------- */
#portofoliu.pfo-redesign .pfo-marquee {
  position: relative;
  margin: clamp(20px, 3vw, 36px) 0 clamp(36px, 5vw, 60px);
  padding: 18px 0;
  border-radius: 999px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.7) 12%, rgba(255,255,255,.7) 88%, rgba(255,255,255,0) 100%);
  mask: linear-gradient(90deg, transparent 0, black 6%, black 94%, transparent 100%);
  -webkit-mask: linear-gradient(90deg, transparent 0, black 6%, black 94%, transparent 100%);
}
#portofoliu.pfo-redesign .pfo-marquee-track {
  display: flex;
  align-items: center;
  gap: 30px;
  white-space: nowrap;
  animation: pfoMarquee 38s linear infinite;
  width: max-content;
}
#portofoliu.pfo-redesign .pfo-marquee-track span:not(.pfo-mark-dot) {
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 950;
  letter-spacing: -.035em;
  color: var(--ink);
}
#portofoliu.pfo-redesign .pfo-marquee-track .pfo-mark-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--pink);
  box-shadow: 0 0 16px rgba(236,158,189,.6);
}
@keyframes pfoMarquee {
  to { transform: translateX(-50%); }
}

/* ---------- PDF CTA ---------- */
#portofoliu.pfo-redesign .pfo-pdf-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  margin-top: clamp(36px, 5vw, 56px);
  padding: clamp(22px, 3vw, 32px) clamp(24px, 4vw, 40px);
  border-radius: clamp(28px, 3vw, 40px);
  background:
    radial-gradient(circle at 14% 24%, rgba(252,240,178,.32), transparent 38%),
    linear-gradient(135deg, var(--ink) 0%, #5d3a48 36%, var(--pink) 100%);
  color: white;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  box-shadow: 0 36px 90px rgba(80,50,70,.28), 0 16px 40px rgba(236,158,189,.2);
}
#portofoliu.pfo-redesign .pfo-pdf-cta::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -18%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(252,240,178,.62), transparent 62%);
  z-index: -1;
  animation: pfoBlobDrift 14s ease-in-out infinite alternate;
}
@keyframes pfoBlobDrift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, 26px) scale(1.12); }
}
#portofoliu.pfo-redesign .pfo-pdf-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 46px 110px rgba(80,50,70,.34);
}
#portofoliu.pfo-redesign .pfo-pdf-icon {
  width: 84px;
  height: 100px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--butter), #fff7c9);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 950;
  position: relative;
  text-align: center;
  box-shadow: 0 14px 32px rgba(0,0,0,.18);
}
#portofoliu.pfo-redesign .pfo-pdf-icon span {
  font-size: 22px;
  letter-spacing: -.04em;
  display: block;
  margin-top: 6px;
}
#portofoliu.pfo-redesign .pfo-pdf-icon small {
  position: absolute;
  bottom: 10px;
  left: 0; right: 0;
  font-size: 10px;
  letter-spacing: .14em;
  opacity: .68;
  text-transform: uppercase;
}
#portofoliu.pfo-redesign .pfo-pdf-icon::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 18px; height: 18px;
  background: linear-gradient(225deg, var(--pink-soft) 0%, var(--pink-soft) 50%, transparent 50%);
  border-radius: 0 14px 0 14px;
}
#portofoliu.pfo-redesign .pfo-pdf-copy { min-width: 0; }
#portofoliu.pfo-redesign .pfo-pdf-copy small {
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .72;
}
#portofoliu.pfo-redesign .pfo-pdf-copy strong {
  display: block;
  margin: 6px 0 8px;
  font-size: clamp(22px, 2.5vw, 30px);
  letter-spacing: -.03em;
  font-weight: 950;
  line-height: 1.1;
  text-wrap: balance;
}
#portofoliu.pfo-redesign .pfo-pdf-copy p {
  margin: 0;
  opacity: .82;
  font-size: 14px;
  line-height: 1.5;
}
#portofoliu.pfo-redesign .pfo-pdf-arrow {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: grid;
  place-items: center;
  font-size: 22px;
  transition: transform .3s var(--ease), background .25s ease;
  flex-shrink: 0;
  position: relative;
  /* Continuous "ready-to-click" nudge */
  animation: pfoArrowNudge 2.4s ease-in-out infinite;
}
#portofoliu.pfo-redesign .pfo-pdf-arrow::before,
#portofoliu.pfo-redesign .pfo-pdf-arrow::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.55);
  animation: pfoArrowRing 2.4s cubic-bezier(.22, 1, .36, 1) infinite;
  pointer-events: none;
  opacity: 0;
}
#portofoliu.pfo-redesign .pfo-pdf-arrow::after { animation-delay: 1.2s; }
@keyframes pfoArrowRing {
  0%   { transform: scale(.95); opacity: .7; border-width: 2px; }
  80%  { opacity: 0; border-width: 1px; }
  100% { transform: scale(2.1); opacity: 0; border-width: 1px; }
}
@keyframes pfoArrowNudge {
  0%, 100% { transform: translate(0, 0); }
  18%      { transform: translate(3px, -3px); }
  32%      { transform: translate(0, 0); }
  50%      { transform: translate(3px, -3px); }
  64%      { transform: translate(0, 0); }
}
#portofoliu.pfo-redesign .pfo-pdf-cta:hover .pfo-pdf-arrow {
  transform: translate(4px, -4px);
  background: rgba(255,255,255,.30);
  animation: none;
}
#portofoliu.pfo-redesign .pfo-pdf-cta:hover .pfo-pdf-arrow::before,
#portofoliu.pfo-redesign .pfo-pdf-cta:hover .pfo-pdf-arrow::after {
  animation-play-state: paused;
  opacity: 0;
}

/* PDF tile gentle wave — drawing the eye to the source */
#portofoliu.pfo-redesign .pfo-pdf-icon {
  animation: pfoPdfBob 3.6s ease-in-out infinite;
  transform-origin: 50% 86%;
}
@keyframes pfoPdfBob {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50%      { transform: rotate(2deg)  translateY(-3px); }
}
#portofoliu.pfo-redesign .pfo-pdf-cta:hover .pfo-pdf-icon {
  animation-play-state: paused;
}

/* Diagonal shimmer sweep across the whole card every 5.5s */
#portofoliu.pfo-redesign .pfo-pdf-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  margin-top: clamp(36px, 5vw, 56px);
  padding: clamp(22px, 3vw, 32px) clamp(24px, 4vw, 40px);
  border-radius: clamp(28px, 3vw, 40px);
  background:
    radial-gradient(circle at 14% 24%, rgba(252,240,178,.32), transparent 38%),
    linear-gradient(135deg, var(--ink) 0%, #5d3a48 36%, var(--pink) 100%);
  color: white;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  box-shadow: 0 36px 90px rgba(80,50,70,.28), 0 16px 40px rgba(236,158,189,.2);
}
#portofoliu.pfo-redesign .pfo-pdf-cta::after {
  content: "";
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: -25%;
  width: 22%;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.18) 38%, rgba(252,240,178,.32) 50%, rgba(255,255,255,.18) 62%, transparent 100%);
  transform: skewX(-18deg);
  animation: pfoCtaSweep 5.5s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 0;
}
@keyframes pfoCtaSweep {
  0%, 22%  { transform: translateX(0) skewX(-18deg); opacity: 0; }
  28%      { opacity: 1; }
  72%      { opacity: 1; }
  78%, 100% { transform: translateX(620%) skewX(-18deg); opacity: 0; }
}
#portofoliu.pfo-redesign .pfo-pdf-cta:hover::after {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  #portofoliu.pfo-redesign .pfo-pdf-arrow,
  #portofoliu.pfo-redesign .pfo-pdf-arrow::before,
  #portofoliu.pfo-redesign .pfo-pdf-arrow::after,
  #portofoliu.pfo-redesign .pfo-pdf-icon,
  #portofoliu.pfo-redesign .pfo-pdf-cta::after {
    animation: none !important;
  }
}

/* ============================================================
   Hover marker-stroke on big titles — a hand-drawn pink scribble
   draws under each word as the cursor passes over it.
   ============================================================ */
.hover-word {
  position: relative;
  display: inline-block;
  cursor: default;
  transition: color .25s ease, transform .25s var(--ease);
  z-index: 0;
}
.hover-word::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -.12em;
  height: .42em;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 16' preserveAspectRatio='none'><path d='M3 9 Q 12 3, 22 8 T 42 8 T 62 7 T 82 9 T 100 8 T 117 8' stroke='%23ec9ebd' stroke-width='3.4' fill='none' stroke-linecap='round'/><path d='M5 11 Q 14 6, 24 10 T 44 10 T 64 9 T 84 11 T 102 10 T 115 10' stroke='%23fcf0b2' stroke-width='2' fill='none' stroke-linecap='round' opacity='.78'/></svg>");
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: left center;
  transition: background-size .42s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
  z-index: -1;
  opacity: .92;
}
.hover-word:hover::after,
.hover-word:focus-visible::after {
  background-size: 105% 100%;
}
.hover-word:hover {
  transform: translateY(-1px);
}
@media (hover: none) {
  /* Auto-reveal on touch devices so the effect is discoverable */
  .hover-word::after { background-size: 0% 100%; }
}

/* ============================================================
   Title scroll-reveal cascade — words fade-up sequentially when
   a title enters the viewport.
   ============================================================ */
.hover-cascade-pending .hover-word {
  opacity: 0;
  transform: translateY(14px);
}
.hover-cascade-in .hover-word {
  animation: pfoWordRise .68s cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: calc(var(--cascade-i, 0) * 60ms + 80ms);
}
@keyframes pfoWordRise {
  0%   { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0);    }
}
.hover-cascade-pending .text-gradient,
.hover-cascade-in .text-gradient {
  /* gradient phrases aren't split — give them their own subtle reveal */
  display: inline-block;
  transform: translateY(0);
}
.hover-cascade-pending .text-gradient {
  opacity: 0;
  transform: translateY(14px);
}
.hover-cascade-in .text-gradient {
  animation: pfoWordRise .8s cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: 240ms;
}

/* ============================================================
   Cursor-follow soft pink wash on the spotlight stage
   ============================================================ */
#portofoliu.pfo-redesign .pfo-spot-stage-glow {
  --mx: 50%;
  --my: 120%;
}
#portofoliu.pfo-redesign .pfo-spot-stage-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 260px at var(--mx) var(--my),
    rgba(255, 205, 222, .42) 0%,
    rgba(252, 240, 178, .14) 38%,
    transparent 68%);
  mix-blend-mode: screen;
  z-index: 5;
  transition: background .25s linear;
}

@media (prefers-reduced-motion: reduce) {
  .hover-cascade-in .hover-word,
  .hover-cascade-in .text-gradient {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   Soft pink cursor orb — lazily trails the pointer, grows over
   interactive elements. Disabled on touch/reduced-motion via JS.
   ============================================================ */
.pfo-cursor-orb {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  background: radial-gradient(circle, rgba(236, 158, 189, .82), rgba(252, 240, 178, .22) 60%, transparent 75%);
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity .25s ease, width .28s var(--ease), height .28s var(--ease), margin .28s var(--ease), background .28s ease;
  will-change: transform;
}
.pfo-cursor-orb.is-active { opacity: .85; }
.pfo-cursor-orb.is-hover {
  width: 64px;
  height: 64px;
  margin: -16px 0 0 -16px;
  background: radial-gradient(circle, rgba(236, 158, 189, .65), rgba(252, 240, 178, .26) 55%, transparent 78%);
}

/* Bigger viewports get the orb; cramped screens don't need extra chrome. */
@media (max-width: 720px), (hover: none) {
  .pfo-cursor-orb { display: none !important; }
}

/* ============================================================
   WhatsApp float — friendly tooltip on hover
   ============================================================ */
.whatsapp-float::before {
  /* (rings already exist on ::before; tooltip goes on a separate attr) */
}
.whatsapp-float {
  /* Tooltip lives via a data-attribute so it doesn't fight the existing pseudo-element rings. */
}
.whatsapp-float[data-tip]::after {
  /* base ring kept by earlier rule — extend with tooltip via title-style */
}
.whatsapp-tip {
  position: fixed;
  right: 90px;
  bottom: 28px;
  z-index: 998;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: -.01em;
  white-space: nowrap;
  box-shadow: 0 14px 38px rgba(80, 50, 70, .28);
  opacity: 0;
  transform: translateX(8px) scale(.92);
  transition: opacity .28s var(--ease), transform .35s var(--ease);
  pointer-events: none;
}
.whatsapp-tip::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--ink);
  border-radius: 2px;
}
.whatsapp-float:hover ~ .whatsapp-tip,
.whatsapp-tip.is-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}
@media (max-width: 720px), (hover: none) {
  .whatsapp-tip { display: none !important; }
}

/* ============================================================
   Eyebrow shimmer — one-shot light sweep on viewport enter
   ============================================================ */
.eyebrow {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-block;
}
.eyebrow::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -100%;
  width: 90%;
  background: linear-gradient(110deg, transparent 0%, rgba(236, 158, 189, .42) 50%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.eyebrow.eyebrow-shimmer::before {
  animation: pfoEyebrowSweep 1.4s cubic-bezier(.22, 1, .36, 1) both;
}
.eyebrow > * { position: relative; z-index: 1; }
@keyframes pfoEyebrowSweep {
  0%   { left: -100%; }
  100% { left: 110%; }
}
@media (prefers-reduced-motion: reduce) {
  .eyebrow::before { animation: none !important; }
}

/* ============================================================
   Site-wide attention loops — subtle, scoped to existing elements
   ============================================================ */

/* WhatsApp floating button: continuous pulse rings + soft bob */
.whatsapp-float {
  position: fixed; /* re-declared to anchor the pseudo rings */
  animation: pfoFloatBob 3.2s ease-in-out infinite;
}
.whatsapp-float::before,
.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, .6);
  animation: pfoArrowRing 2.8s cubic-bezier(.22, 1, .36, 1) infinite;
  pointer-events: none;
  opacity: 0;
}
.whatsapp-float::after { animation-delay: 1.4s; }
.whatsapp-float:hover {
  animation-play-state: paused;
}
.whatsapp-float:hover::before,
.whatsapp-float:hover::after {
  animation-play-state: paused;
  opacity: 0;
}
@keyframes pfoFloatBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* Hero primary CTA gets the same diagonal shimmer sweep as the PDF card */
.btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: -30%;
  width: 22%;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.42) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: pfoCtaSweep 4.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover::after { animation-play-state: paused; }

/* Service cards: gentle icon bobble that draws the eye, paused on hover */
.service-card > .service-icon,
.service-card .service-icon {
  animation: pfoIconWave 4.4s ease-in-out infinite;
  transform-origin: 50% 100%;
}
.service-card:hover .service-icon { animation-play-state: paused; }
@keyframes pfoIconWave {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50%      { transform: rotate(2deg)  translateY(-2px); }
}

/* Pricing featured card: soft pulsing brand-pink glow ring */
.price-card.featured {
  position: relative;
  isolation: isolate;
}
.price-card.featured::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--pink), var(--butter), var(--pink));
  background-size: 200% 200%;
  z-index: -1;
  opacity: 0;
  animation: pfoFeaturedGlow 3.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pfoFeaturedGlow {
  0%, 100% { opacity: .35; background-position: 0% 0%; }
  50%      { opacity: .75; background-position: 100% 100%; }
}
.price-card.featured:hover::before { animation-play-state: paused; opacity: .8; }

/* Process step number badges: subtle pulse halo so the steps feel alive */
.process-step > .step-number,
.process-step .step-num,
.process-step span:first-child {
  position: relative;
}
.process-step .step-num::after,
.process-step > .step-number::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 2px solid var(--pink);
  opacity: 0;
  animation: pfoArrowRing 3s cubic-bezier(.22, 1, .36, 1) infinite;
  pointer-events: none;
}

/* Spotlight CTA: same kind of continuous shimmer & nudge as PDF cta */
#portofoliu.pfo-redesign .pfo-spot-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
#portofoliu.pfo-redesign .pfo-spot-cta::before {
  content: "";
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: -30%;
  width: 24%;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.32) 50%, transparent 100%);
  transform: skewX(-18deg);
  animation: pfoCtaSweep 4.4s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
#portofoliu.pfo-redesign .pfo-spot-cta > * { position: relative; z-index: 1; }
#portofoliu.pfo-redesign .pfo-spot-cta:hover::before { animation-play-state: paused; }

/* Hero stats numbers: gentle twinkle on the big numerals */
.hero-stats strong {
  position: relative;
  display: inline-block;
}
.hero-stats strong::after {
  content: "✦";
  position: absolute;
  top: -6px;
  right: -14px;
  font-size: 12px;
  color: var(--pink);
  opacity: 0;
  animation: pfoSparkle 4.6s ease-in-out infinite;
  pointer-events: none;
}
.hero-stats > :nth-child(2) strong::after { animation-delay: 1.4s; }
.hero-stats > :nth-child(3) strong::after { animation-delay: 2.8s; }
@keyframes pfoSparkle {
  0%, 85%, 100% { opacity: 0; transform: scale(.6) rotate(0deg); }
  92%           { opacity: 1; transform: scale(1.1) rotate(40deg); }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float,
  .whatsapp-float::before,
  .whatsapp-float::after,
  .btn-primary::after,
  .service-card .service-icon,
  .price-card.featured::before,
  .process-step .step-num::after,
  #portofoliu.pfo-redesign .pfo-spot-cta::before,
  .hero-stats strong::after {
    animation: none !important;
  }
  .hover-word::after { transition: none !important; }
}

/* ============================================================
   Keep the pricing-card text colors stable on hover.
   The original styles shift several inner texts to #8b465f when the
   card is hovered — override every variant so font color stays put.
   ============================================================ */
.pricing-grid .price-card:hover .price-top h3,
.pricing-grid .price-card:hover .price-top strong,
.pricing-grid .price-card:hover .price-top span,
.pricing-grid .price-card:hover .price-amount strong,
.pricing-grid .price-card:hover .price-amount span,
.pricing-grid .price-card.featured:hover .price-top h3,
.pricing-grid .price-card.featured:hover .price-top strong,
.pricing-grid .price-card.featured:hover .price-top span,
.pricing-grid .price-card.featured:hover .price-amount strong,
.pricing-grid .price-card.featured:hover .price-amount span,
.pricing-grid .price-card:focus-within .price-amount strong,
.pricing-grid .price-card:focus-within .price-amount span,
.pricing-grid .price-card:hover .price-card-title,
.pricing-grid .price-card:hover h3,
.pricing-grid .price-card:hover li,
.pricing-grid .price-card:hover .price-note {
  color: inherit !important;
  text-shadow: none !important;
}
/* Specific tokens use --ink / --muted as their baseline */
.pricing-grid .price-card:hover .price-top h3,
.pricing-grid .price-card.featured:hover .price-top h3,
.pricing-grid .price-card:hover .price-amount strong,
.pricing-grid .price-card.featured:hover .price-amount strong,
.pricing-grid .price-card:focus-within .price-amount strong {
  color: var(--ink) !important;
}
.pricing-grid .price-card:hover .price-top span,
.pricing-grid .price-card.featured:hover .price-top span,
.pricing-grid .price-card:hover .price-amount span,
.pricing-grid .price-card.featured:hover .price-amount span,
.pricing-grid .price-card:focus-within .price-amount span {
  color: var(--muted) !important;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  #portofoliu.pfo-redesign .pfo-blob,
  #portofoliu.pfo-redesign .pfo-marquee-track,
  #portofoliu.pfo-redesign .pfo-spot-art img,
  #portofoliu.pfo-redesign .pfo-pdf-cta::before {
    animation: none !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  #portofoliu.pfo-redesign .pfo-grid { grid-template-columns: repeat(4, 1fr); }
  #portofoliu.pfo-redesign .pfo-card { grid-column: span 2; }
  #portofoliu.pfo-redesign .pfo-card.is-featured { grid-column: span 4; }
  #portofoliu.pfo-redesign .pfo-card.is-featured .pfo-card-media { aspect-ratio: 16 / 9; }
  #portofoliu.pfo-redesign .pfo-card.is-wide { grid-column: span 4; }
  #portofoliu.pfo-redesign .pfo-card.is-wide .pfo-card-media { aspect-ratio: 16 / 8; }
}
@media (max-width: 880px) {
  #portofoliu.pfo-redesign .pfo-toolbar { grid-template-columns: 1fr; }
  #portofoliu.pfo-redesign .pfo-search { min-width: 0; width: 100%; }
  #portofoliu.pfo-redesign .pfo-spot-stage {
    aspect-ratio: auto;
    min-height: 620px;
  }
  #portofoliu.pfo-redesign .pfo-spot-slide { grid-template-columns: 1fr; grid-template-rows: 280px 1fr; }
  #portofoliu.pfo-redesign .pfo-spot-art { order: -1; min-height: 280px; }
  #portofoliu.pfo-redesign .pfo-spot-info { padding: 24px; }
  #portofoliu.pfo-redesign .pfo-pdf-cta { grid-template-columns: auto 1fr; gap: 18px; padding: 22px; }
  #portofoliu.pfo-redesign .pfo-pdf-arrow { grid-column: 1 / -1; justify-self: flex-end; width: 48px; height: 48px; }
}
@media (max-width: 620px) {
  #portofoliu.pfo-redesign .pfo-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  #portofoliu.pfo-redesign .pfo-card { grid-column: span 1; }
  #portofoliu.pfo-redesign .pfo-card.is-featured,
  #portofoliu.pfo-redesign .pfo-card.is-wide { grid-column: span 2; }
  #portofoliu.pfo-redesign .pfo-card.is-featured .pfo-card-media,
  #portofoliu.pfo-redesign .pfo-card.is-wide     .pfo-card-media { aspect-ratio: 16 / 10; }
  #portofoliu.pfo-redesign .pfo-card-info h3 { font-size: 17px; }
  #portofoliu.pfo-redesign .pfo-card .portfolio-app-icon { width: 32px; height: 32px; font-size: 12px; border-radius: 10px; }
  #portofoliu.pfo-redesign .pfo-spot-info h3 { font-size: 28px; }
  #portofoliu.pfo-redesign .pfo-spot-cta { padding: 12px 18px; font-size: 13px; }
}

/* ============================================================
   MOBILE SPOTLIGHT TRANSITION FIX
   On phones the slides stack as identical full-width blocks, so the
   default opacity crossfade (both leaving AND entering slide animating
   opacity at once) produced a muddy double-exposure — two project
   titles + two "Deschide" buttons ghosting through each other mid-swap.
   Fix: the outgoing slide stays fully opaque UNDERNEATH while the
   incoming slide (opaque background, higher z-index) fades in over the
   top of it — so there is never a phase where both are semi-transparent.
   ============================================================ */
@media (max-width: 880px) {
  /* Mobile WebViews: do not crossfade stacked full-slide panels. Opacity on
     the whole slide makes the previous title/button show through the new one.
     Keep only one slide paintable at a time and let JS switch atomically. */
  #portofoliu.pfo-redesign .pfo-spot-slide {
    transform: none !important;
    transition: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: 0 !important;
  }
  #portofoliu.pfo-redesign .pfo-spot-slide.is-leaving:not(.is-active) {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: none !important;
    z-index: 0 !important;
  }
  #portofoliu.pfo-redesign .pfo-spot-slide.is-active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    z-index: 3 !important;
  }
  #portofoliu.pfo-redesign .pfo-spot-info {
    background: linear-gradient(135deg, #ffffff, #fffaf6) !important;
  }
  #portofoliu.pfo-redesign .pfo-spot-art {
    background:
      radial-gradient(circle at 22% 22%, rgba(252,240,178,1), transparent 42%),
      linear-gradient(135deg, var(--pink-soft), var(--butter)) !important;
  }
}

/* ============================================================
   MOBILE PROJECT MODAL — compositing-safe rebuild
   ------------------------------------------------------------
   The desktop modal layers (a) a blurred backdrop-filter overlay,
   (b) a shared-element "grow from the spotlight" launch that animates
   transform: scale() + filter: blur() on the FIXED panel, and (c) an
   animated backdrop-filter "bloom". In mobile in-app WebViews
   (Messenger / Facebook browser) that stack re-rasterizes badly — the
   panel paints as a blurry blank white card and the text smears.

   On mobile we drop ALL of it (the JS also skips the scale/blur
   launches): two clean sibling layers — a solid translucent overlay
   (no blur) UNDER a plain white scrollable sheet — with an
   opacity + translateY entrance only. Desktop is left untouched.
   ============================================================ */
@media (max-width: 880px), (hover: none) and (pointer: coarse) {
  /* Wrapper = full dynamic-viewport flex box; carries NO filter itself */
  #projectModal.modal {
    inset: 0 0 auto 0;
    height: 100dvh;
    min-height: 100dvh;
    padding: 16px;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  /* Overlay layer — solid translucent dark, sits BELOW the card, no blur */
  #projectModal .modal-backdrop {
    z-index: 1;
    background: rgba(28, 20, 25, .74) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    animation: pfoModalBackdropIn .28s ease both !important;
    opacity: 1;
  }
  #projectModal.modal.is-preparing .modal-backdrop {
    opacity: 1 !important;
  }

  /* Card layer — real white scrollable sheet ABOVE the overlay.
     Every launch transform / filter / blur is forced off. */
  #projectModal .modal-panel {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 560px;
    max-height: calc(100dvh - 32px) !important;
    margin: 0;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    background: #ffffff !important;
    border-radius: 24px;
    filter: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    will-change: auto !important;
    animation: pfoModalCardIn .34s var(--ease) both !important;
  }
  /* Defuse the brief is-preparing frame so the card never flashes
     hidden / scaled before the entrance. */
  #projectModal.modal.is-preparing .modal-panel,
  #projectModal.modal.is-app-launching .modal-panel {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: pfoModalCardIn .34s var(--ease) both !important;
  }

  /* Scroll lives on the card itself now — let the inner content size
     naturally instead of nesting a second scroll container. */
  #projectModal .modal-content {
    max-height: none !important;
    overflow: visible !important;
    padding: 22px 16px 28px;
  }

  /* No blur/scale content staggers on mobile — show everything plainly
     so nothing depends on the (now-skipped) launch sequence. */
  #projectModal .modal.is-app-settled .modal-head > div:first-child > *,
  #projectModal .modal.is-app-settled .modal-content > .modal-section,
  #projectModal .modal.is-app-settled .modal-list li,
  #projectModal .modal.is-app-settled .modal-close,
  #projectModal .modal.is-app-settled .modal-head .modal-visuals {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  /* Belt & suspenders: kill the shared-element launcher node on mobile */
  .project-launcher,
  .project-launcher-from-icon { display: none !important; }

  /* Close button stays above the scrolling content */
  #projectModal .modal-panel .modal-close { z-index: 6; }

  @keyframes pfoModalCardIn {
    0%   { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
  }
  @keyframes pfoModalBackdropIn {
    0%   { opacity: 0; }
    100% { opacity: 1; }
  }
}

/* ============================================================
   SPOTLIGHT CAROUSEL — re-entrancy / rapid-tap hardening
   While a slide transition is in flight the JS holds a lock that
   ignores further navigation; this also stops the nav buttons, dots
   and "Deschide" CTA from registering taps at all, so spam-tapping
   can never queue overlapping transitions. touch-action: manipulation
   kills the 300ms double-tap-zoom delay so taps register crisply.
   ============================================================ */
#portofoliu.pfo-redesign .pfo-spot-arrow,
#portofoliu.pfo-redesign .pfo-spot-dot,
#portofoliu.pfo-redesign .pfo-spot-play,
#portofoliu.pfo-redesign .pfo-spot-cta {
  touch-action: manipulation;
}
.pfo-spotlight.is-spot-busy .pfo-spot-arrow,
.pfo-spotlight.is-spot-busy .pfo-spot-dot,
.pfo-spotlight.is-spot-busy .pfo-spot-play,
.pfo-spotlight.is-spot-busy .pfo-spot-cta {
  pointer-events: none;
}
#portofoliu.pfo-redesign .pfo-spot-arrow:disabled,
#portofoliu.pfo-redesign .pfo-spot-dot:disabled,
#portofoliu.pfo-redesign .pfo-spot-play:disabled,
#portofoliu.pfo-redesign .pfo-spot-cta:disabled {
  cursor: default;
}
