/* ==========================================================================
   Portfolio page — uses the home page UI (home-3d.css: showcase + reels) plus
   the hero, masonry grid, lightbox and CTA below. Scoped to .twk-portfolio.
   ========================================================================== */
.twk-portfolio {
  --pfx-ink: #0b2a4a;
  --pfx-text: #4b5563;
  --pfx-muted: #6b7280;
  --pfx-blue: #169ef5;
  --pfx-yellow: #ffd749;
  --pfx-grey: #f5f8ff;
  --pfx-border: #e8ecf2;
  color: var(--pfx-text);
}
.twk-portfolio main { overflow-x: clip; }

/* ---------- buttons ---------- */
.pfx-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 28px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 17.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.pfx-btn--dark { background: var(--pfx-ink); color: #fff; box-shadow: 0 14px 30px -16px rgba(11, 42, 74, .8); }
.pfx-btn--dark:hover, .pfx-btn--dark:focus-visible { background: var(--pfx-blue); color: #fff; transform: translateY(-2px); }
.pfx-btn--ghost { border-color: var(--pfx-ink); color: var(--pfx-ink); background: transparent; }
.pfx-btn--ghost:hover, .pfx-btn--ghost:focus-visible { background: var(--pfx-ink); color: #fff; }

/* ---------- hero ---------- */
.pfx-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(46px, 5.5vw, 120px) 0 clamp(60px, 6vw, 130px);
  background: #fff;
}
.pfx-hero__glow { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.pfx-hero__glow--a { top: -18%; right: -6%; width: 46vw; height: 46vw; background: radial-gradient(circle, rgba(22, 158, 245, .2), transparent 65%); animation: pfxDrift 18s ease-in-out infinite alternate; }
.pfx-hero__glow--b { bottom: -30%; left: -10%; width: 40vw; height: 40vw; background: radial-gradient(circle, rgba(255, 215, 73, .4), transparent 65%); animation: pfxDrift 22s ease-in-out infinite alternate-reverse; }
@keyframes pfxDrift { to { translate: 5vw 4vh; scale: 1.12; } }
.pfx-hero .container { position: relative; z-index: 1; }
.pfx-hero__grid { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 5vw, 120px); align-items: center; }
@media (min-width: 992px) { .pfx-hero__grid { grid-template-columns: 6fr 5fr; } }
.pfx-crumb { display: flex; gap: 10px; margin-bottom: 20px; font-size: 15.5px; color: var(--pfx-muted); }
.pfx-crumb a { color: var(--pfx-ink); font-weight: 600; text-decoration: none; }
.pfx-crumb a:hover { color: var(--pfx-blue); }
.pfx-hero__title {
  margin: 0 0 18px;
  color: var(--pfx-ink);
  font-size: clamp(38px, 5vw, 76px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
}
.pfx-hero__lead { max-width: 560px; margin: 0 0 30px; font-size: clamp(17.5px, 1.15vw, 23px); line-height: 1.75; }
/* stats: one card, three columns split by hairlines */
.pfx-stats {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  margin: 0 0 34px;
  padding: 18px 6px;
  border: 1px solid var(--pfx-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  box-shadow: 0 20px 44px -30px rgba(10, 50, 110, .45);
}
.pfx-stats > div { position: relative; padding: 0 clamp(18px, 2vw, 34px); }
.pfx-stats > div + div::before {
  content: "";
  position: absolute;
  left: 0; top: 10%; bottom: 10%;
  width: 1px;
  background: var(--pfx-border);
}
.pfx-stats dt { color: var(--pfx-ink); font-size: clamp(28px, 2.3vw, 46px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.pfx-stats dd { margin: 4px 0 0; color: var(--pfx-muted); font-size: 15px; font-weight: 600; white-space: nowrap; }
@media (max-width: 479.98px) {
  .pfx-stats { display: grid; width: 100%; }
  .pfx-stats > div { padding: 0 12px; }
  .pfx-stats dd { white-space: normal; }
}
.pfx-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- hero: pure-CSS 3D scene (no photos) ---------- */
.pfx-3d {
  --rx: 12deg;
  --ry: -18deg;
  position: relative;
  width: 100%;
  max-width: 580px;
  aspect-ratio: 1 / .9;
  margin: 0 auto;
  perspective: 1400px;
}
.pfx-3d__scene {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .8s cubic-bezier(.2, .8, .2, 1);
  animation: pfxSway 10s ease-in-out infinite alternate;
}
.pfx-3d.is-pointer .pfx-3d__scene { transition-duration: .25s; animation-play-state: paused; }
@keyframes pfxSway { from { rotate: y -4deg; } to { rotate: y 6deg; } }
.pfx-3d__scene > * { position: absolute; transform-style: preserve-3d; }

/* back plate */
.pfx-3d__floor {
  inset: 8% 4% 6% 8%;
  border-radius: 36px;
  background-color: rgba(255, 215, 73, .45);
  background-image: radial-gradient(rgba(11, 42, 74, .16) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  transform: translateZ(-70px);
  box-shadow: 0 60px 90px -50px rgba(10, 50, 110, .45);
}

/* glass cards */
.pfx-3d__card {
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px -28px rgba(10, 50, 110, .45), inset 0 1px 0 #fff;
}

/* website card */
.pfx-3d__web { left: 6%; top: 14%; width: 64%; padding: 0 0 14px; overflow: hidden; transform: translateZ(30px); }
.pfx-w__bar { display: flex; align-items: center; gap: 5px; padding: 9px 12px; border-bottom: 1px solid #eef1f6; background: #f7f9fc; }
.pfx-w__bar i { width: 8px; height: 8px; border-radius: 50%; background: #ff6159; }
.pfx-w__bar i:nth-child(2) { background: #ffbd2e; }
.pfx-w__bar i:nth-child(3) { background: #28c840; }
.pfx-w__bar span { flex: 1; height: 10px; margin-left: 8px; border-radius: 99px; background: #e8ecf2; }
.pfx-w__nav { display: flex; align-items: center; gap: 8px; padding: 10px 14px; }
.pfx-w__nav b { width: 26px; height: 10px; border-radius: 4px; background: #0b2a4a; }
.pfx-w__nav span { width: 22px; height: 6px; border-radius: 99px; background: #dfe5ee; }
.pfx-w__nav em { width: 34px; height: 14px; margin-left: auto; border-radius: 99px; background: #169ef5; }
.pfx-w__hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px; align-items: center; padding: 6px 14px 12px; }
.pfx-w__hero span { display: block; height: 9px; margin-bottom: 7px; border-radius: 99px; background: #0b2a4a; }
.pfx-w__hero span:nth-child(2) { width: 80%; }
.pfx-w__hero span.short { width: 55%; height: 6px; background: #c9d3e1; }
.pfx-w__hero em { display: block; width: 52px; height: 16px; margin-top: 10px; border-radius: 99px; background: #ffd749; }
.pfx-w__art {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: #169ef5;
  overflow: hidden;
}
.pfx-w__art::before { content: ""; position: absolute; width: 60%; aspect-ratio: 1; right: -12%; bottom: -18%; border-radius: 50%; background: #ffd749; }
.pfx-w__art::after { content: ""; position: absolute; width: 26%; aspect-ratio: 1; left: 14%; top: 18%; border-radius: 50%; background: rgba(255, 255, 255, .85); }
.pfx-w__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 14px; }
.pfx-w__tiles span { height: 34px; border-radius: 8px; background: #f1f4f9; border-top: 4px solid #1ee2cf; }
.pfx-w__tiles span:nth-child(2) { border-top-color: #fd346e; }
.pfx-w__tiles span:nth-child(3) { border-top-color: #ffd749; }

/* design card */
.pfx-3d__design { right: 2%; top: 2%; width: 30%; padding: 14px; transform: translateZ(95px); animation: pfxBob 7s ease-in-out -1s infinite; }
.pfx-d__aa { display: block; color: #0b2a4a; font-size: clamp(23px, 2.4vw, 40px); font-weight: 800; line-height: 1; margin-bottom: 10px; }
.pfx-d__swatches { display: flex; gap: 6px; margin-bottom: 10px; }
.pfx-d__swatches i { flex: 1; aspect-ratio: 1; border-radius: 50%; background: #169ef5; }
.pfx-d__swatches i:nth-child(2) { background: #ffd749; }
.pfx-d__swatches i:nth-child(3) { background: #fd346e; }
.pfx-d__swatches i:nth-child(4) { background: #1ee2cf; }
.pfx-d__line { display: block; height: 6px; margin-top: 6px; border-radius: 99px; background: #dfe5ee; }
.pfx-d__line.short { width: 60%; }

/* phone card */
.pfx-3d__phone {
  right: 6%;
  bottom: 6%;
  width: 22%;
  aspect-ratio: 9 / 18;
  border: 5px solid #0b1422;
  border-radius: 26px;
  background: #0b2a4a;
  overflow: hidden;
  transform: translateZ(135px);
  animation: pfxBob 8s ease-in-out -3s infinite;
}
.pfx-3d__phone::before {          /* screen: simple colour blocks */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 26%, #ffd749 0 18%, transparent 19%),
    linear-gradient(#169ef5 0 0) 0 100% / 100% 46% no-repeat,
    #0b2a4a;
}
.pfx-p__notch { position: absolute; z-index: 1; top: 5px; left: 50%; width: 34%; height: 8px; border-radius: 99px; background: #0b1422; transform: translateX(-50%); }
.pfx-p__play {
  position: absolute; z-index: 1; top: 48%; left: 50%;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #fff;
  color: #e1306c;
  font-size: 21px;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .25);
  animation: pfxPulse 2.4s ease-out infinite;
}
@keyframes pfxPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .5); } 100% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); } }
.pfx-p__heart { position: absolute; z-index: 1; right: 8px; bottom: 26px; color: #fd346e; font-size: 17.5px; animation: pfxBeat 1.6s ease-in-out infinite; }
@keyframes pfxBeat { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.3); } }
.pfx-p__progress { position: absolute; z-index: 1; left: 8px; right: 8px; bottom: 12px; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.pfx-p__progress i { display: block; height: 100%; width: 0; background: #fff; animation: pfxProgress 5s linear infinite; }
@keyframes pfxProgress { to { width: 100%; } }

/* growth card */
.pfx-3d__chart { left: 0; bottom: 4%; width: 36%; padding: 14px 14px 12px; transform: translateZ(110px); animation: pfxBob 9s ease-in-out -5s infinite; }
.pfx-c__label { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; color: #0b2a4a; font-size: 15px; font-weight: 700; }
.pfx-c__label i { color: #22a06b; }
.pfx-c__bars { display: flex; align-items: flex-end; gap: 6px; height: 70px; }
.pfx-c__bars i { flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px; background: #169ef5; transform-origin: bottom; animation: pfxBars 3.2s cubic-bezier(.2, .8, .2, 1) infinite alternate; }
.pfx-c__bars i:last-child { background: #ffd749; }
.pfx-c__bars i:nth-child(2) { animation-delay: .15s; }
.pfx-c__bars i:nth-child(3) { animation-delay: .3s; }
.pfx-c__bars i:nth-child(4) { animation-delay: .45s; }
.pfx-c__bars i:nth-child(5) { animation-delay: .6s; }
@keyframes pfxBars { from { transform: scaleY(.35); } to { transform: scaleY(1); } }

/* spinning cube */
.pfx-cube { --s: clamp(54px, 5vw, 80px); left: 2%; top: 0; width: var(--s); height: var(--s); transform: translateZ(170px); }
.pfx-cube { animation: pfxCube 14s linear infinite; }
@keyframes pfxCube { from { transform: translateZ(170px) rotateX(-20deg) rotateY(0); } to { transform: translateZ(170px) rotateX(-20deg) rotateY(360deg); } }
.pfx-cube__f {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 12px;
  color: #fff;
  font-size: calc(var(--s) * .4);
  backface-visibility: visible;
}
.pfx-cube__f--front  { background: #169ef5; transform: translateZ(calc(var(--s) / 2)); }
.pfx-cube__f--back   { background: #0b2a4a; transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.pfx-cube__f--right  { background: #fd346e; transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.pfx-cube__f--left   { background: #12b8a6; transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.pfx-cube__f--top    { background: #ffd749; color: #0b2a4a; transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.pfx-cube__f--bottom { background: #6a4cff; transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }

/* floating spheres (radial shading gives the 3D look) */
.pfx-3d__ball { border-radius: 50%; animation: pfxBob 6s ease-in-out infinite; }
.pfx-3d__ball--a { width: 34px; height: 34px; right: 38%; top: 4%; background: radial-gradient(circle at 32% 30%, #fff 0 8%, #ff7aa0 30%, #fd346e 70%); transform: translateZ(60px); }
.pfx-3d__ball--b { width: 22px; height: 22px; left: 46%; bottom: 2%; background: radial-gradient(circle at 32% 30%, #fff 0 8%, #7fd8ff 30%, #169ef5 72%); transform: translateZ(150px); animation-delay: -2s; }
.pfx-3d__ball--c { width: 16px; height: 16px; right: 0; top: 36%; background: radial-gradient(circle at 32% 30%, #fff 0 8%, #ffe58a 30%, #f5b800 72%); transform: translateZ(200px); animation-delay: -4s; }
@keyframes pfxBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* chips with real counts, in front of everything */
.pfx-chip {
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 40px -18px rgba(10, 50, 110, .5);
  white-space: nowrap;
  animation: pfxBob 6s ease-in-out infinite;
}
.pfx-chip strong { display: block; color: var(--pfx-ink); font-size: 16.5px; line-height: 1.2; }
.pfx-chip small { display: block; color: var(--pfx-muted); font-size: 14px; }
.pfx-chip__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font-size: 18.5px; }
.pfx-chip--sites { left: 34%; bottom: -4%; transform: translateZ(190px); animation-delay: -2s; }
.pfx-chip--sites .pfx-chip__icon { background: rgba(22, 158, 245, .12); color: var(--pfx-blue); }
.pfx-chip--reels { right: -2%; top: 38%; transform: translateZ(220px); animation-delay: -4s; }
.pfx-chip--reels .pfx-chip__icon { background: rgba(225, 48, 108, .12); color: #e1306c; }

@media (max-width: 991.98px) {
  .pfx-3d { max-width: 500px; margin-top: 10px; }
}
@media (max-width: 479.98px) {
  .pfx-3d { --rx: 8deg; --ry: -10deg; }
  .pfx-chip { padding: 7px 10px 7px 7px; }
  .pfx-chip__icon { width: 30px; height: 30px; font-size: 15.5px; }
  .pfx-chip strong { font-size: 14px; }
  .pfx-chip small { display: none; }
  .pfx-chip--reels { right: 0; }
  .pfx-c__bars { height: 46px; }
}
/* the showcase follows the hero directly */
.twk-portfolio .twk-pf { padding-top: clamp(60px, 6vw, 150px); }

/* ---------- all work: filters + masonry ---------- */
.pfx-all { position: relative; padding: clamp(70px, 7vw, 170px) 0; background: #fff; }
.pfx-all__head { max-width: 760px; margin: 0 auto 26px; text-align: center; }
.pfx-all__intro { margin: 0; color: var(--pfx-text); font-size: clamp(16.5px, 1.05vw, 21px); line-height: 1.75; }
.pfx-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: clamp(30px, 3vw, 60px); }
.pfx-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--pfx-border);
  border-radius: 999px;
  background: #fff;
  color: var(--pfx-ink);
  font-size: 16.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.pfx-filter span {
  min-width: 26px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--pfx-grey);
  color: var(--pfx-muted);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.pfx-filter:hover { border-color: rgba(22, 158, 245, .4); transform: translateY(-2px); }
.pfx-filter.is-active { border-color: var(--pfx-ink); background: var(--pfx-ink); color: #fff; }
.pfx-filter.is-active span { background: var(--pfx-yellow); color: var(--pfx-ink); }

.pfx-grid { column-count: 1; column-gap: 24px; }
@media (min-width: 576px) { .pfx-grid { column-count: 2; } }
@media (min-width: 992px) { .pfx-grid { column-count: 3; } }
@media (min-width: 1600px) { .pfx-grid { column-count: 4; } }
.pfx-card {
  break-inside: avoid;
  margin: 0 0 24px;
  animation: pfxIn .6s cubic-bezier(.2, .8, .2, 1) both;
}
.pfx-card[hidden] { display: none; }
@keyframes pfxIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.pfx-card__link {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--pfx-border);
  border-radius: 20px;
  background: #fff;
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 34px -28px rgba(10, 50, 110, .45);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s ease, border-color .45s ease;
}
.pfx-card__link:hover,
.pfx-card__link:focus-visible {
  transform: translateY(-8px);
  border-color: rgba(22, 158, 245, .2);
  box-shadow: 0 34px 60px -30px rgba(10, 50, 110, .5);
}
.pfx-card__link:focus-visible { outline: 3px solid var(--pfx-blue); outline-offset: 3px; }
.pfx-card__media { position: relative; display: block; overflow: hidden; background: var(--pfx-grey); }
.pfx-card__media img { display: block; width: 100%; height: auto; transition: transform 1.1s cubic-bezier(.2, .8, .2, 1); }
.pfx-card__link:hover .pfx-card__media img { transform: scale(1.06); }
.pfx-card__media::after {          /* soft ink veil on hover */
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 42, 74, .35);
  opacity: 0;
  transition: opacity .45s ease;
}
.pfx-card__link:hover .pfx-card__media::after { opacity: 1; }
.pfx-card__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;          /* reserves space until the video's own size is known */
  object-fit: cover;
  background: var(--pfx-ink);
  transition: transform 1.1s cubic-bezier(.2, .8, .2, 1);
}
.pfx-card__video.is-loaded { aspect-ratio: auto; height: auto; }
.pfx-card__link:hover .pfx-card__video { transform: scale(1.04); }
.pfx-card__placeholder {
  display: grid;
  place-items: center;
  gap: 6px;
  aspect-ratio: 4 / 3;
  background: var(--pfx-ink);
  color: rgba(255, 255, 255, .85);
  font-size: 54px;
  font-weight: 800;
}
.pfx-card__placeholder i { font-size: 28px; color: var(--pfx-yellow); }
.pfx-card__badge {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--pfx-yellow);
  color: var(--pfx-ink);
  font-size: 23px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.6);
  transition: opacity .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
}
.pfx-card__link:hover .pfx-card__badge,
.pfx-card__link:focus-visible .pfx-card__badge { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.pfx-card--video .pfx-card__badge,
.pfx-card--reel .pfx-card__badge { opacity: .95; transform: translate(-50%, -50%) scale(.85); }
.pfx-card--reel .pfx-card__badge { background: #e1306c; color: #fff; }
.pfx-card__body { display: block; padding: 18px 20px 20px; }
.pfx-card__tag { display: block; margin-bottom: 4px; color: var(--pfx-blue); font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pfx-card__title { display: block; margin-bottom: 10px; color: var(--pfx-ink); font-size: 19px; font-weight: 700; line-height: 1.35; }
.pfx-card__cta { display: inline-flex; align-items: center; gap: 6px; color: var(--pfx-ink); font-size: 15.5px; font-weight: 700; border-bottom: 2px solid var(--pfx-yellow); }
.pfx-card__cta i { transition: transform .3s ease; }
.pfx-card__link:hover .pfx-card__cta i { transform: translate(3px, -1px); }

.pfx-more { margin-top: clamp(16px, 2vw, 40px); text-align: center; }
.pfx-more__count { opacity: .7; font-weight: 600; }

/* ---------- lightbox ---------- */
.pfx-lightbox { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 16px; }
.pfx-lightbox[hidden] { display: none; }
.pfx-lightbox__backdrop { position: absolute; inset: 0; background: rgba(6, 14, 28, .86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: pfxFade .3s ease both; }
.pfx-lightbox__box {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: min(1100px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .6);
  animation: pfxPop .45s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes pfxFade { from { opacity: 0; } }
@keyframes pfxPop { from { opacity: 0; transform: translateY(24px) scale(.95); } }
.pfx-lightbox__media { display: grid; place-items: center; min-height: 200px; background: #0b1422; }
.pfx-lightbox__media img,
.pfx-lightbox__media video { display: block; max-width: 100%; max-height: calc(100dvh - 110px); object-fit: contain; }
.pfx-lightbox__bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid #eef0f4; }
.pfx-lightbox__title { flex: 1; min-width: 0; margin: 0; overflow: hidden; color: var(--pfx-ink); font-size: 17.5px; font-weight: 700; text-align: center; white-space: nowrap; text-overflow: ellipsis; }
.pfx-lightbox__btn {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f1f3f7;
  color: var(--pfx-ink);
  font-size: 17.5px;
  cursor: pointer;
  transition: background-color .2s ease;
}
.pfx-lightbox__btn:hover, .pfx-lightbox__btn:focus-visible { background: var(--pfx-yellow); }
html.pfx-lightbox-open { overflow: hidden; }

/* ---------- CTA ---------- */
.pfx-cta { padding: 0 0 clamp(70px, 7vw, 170px); }
.pfx-cta__box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; }
.pfx-cta__box > * { position: relative; z-index: 1; }
.pfx-cta__box h2 { margin: 0 0 8px; color: var(--pfx-ink); font-size: clamp(26px, 2.6vw, 56px); font-weight: 800; letter-spacing: -0.02em; }
.pfx-cta__box p { margin: 0; font-size: clamp(16.5px, 1.05vw, 23px); }
.pfx-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (prefers-reduced-motion: reduce) {
  .pfx-hero__glow, .pfx-3d__scene, .pfx-3d__scene *, .pfx-card, .pfx-lightbox__backdrop, .pfx-lightbox__box { animation: none !important; }
  .pfx-card__link, .pfx-card__media img, .pfx-3d__scene { transition: none; }
}
