*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100%;
}

:root {
  --pf-bg: #060608;
  --pf-surface: rgba(255, 255, 255, 0.04);
  --pf-surface-2: rgba(255, 255, 255, 0.07);
  --pf-border: rgba(255, 255, 255, 0.08);
  --pf-text: #fafafa;
  --pf-muted: rgba(255, 255, 255, 0.48);
  --pf-faint: rgba(255, 255, 255, 0.28);
  --pf-accent: #3b82f6;
  --pf-brand: #00379d;
  --pf-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --pf-cinema: 'Cinzel', Georgia, serif;
  --pf-cinema-accent: 'Cormorant Garamond', Georgia, serif;
  --pf-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --pf-radius: 24px;
  --pf-radius-sm: 16px;
  --pf-gap: 5px;
  --pf-dock-h: 0px;
}

.portfolio-page {
  min-height: 100dvh;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  background: var(--pf-bg);
  color: var(--pf-text);
  font-family: var(--pf-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

.pf-aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.12), transparent 60%);
}

/* ——— Header ——— */
.pf-header {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 6, 8, 0.78);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

.pf-icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--pf-text);
  text-decoration: none;
  background: var(--pf-surface);
  border: 1px solid var(--pf-border);
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
  font-family: inherit;
}

.pf-icon-btn:hover {
  background: var(--pf-surface-2);
  border-color: rgba(255, 255, 255, 0.14);
  transform: scale(1.04);
}

.pf-icon-btn--light {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: white;
}

.pf-brand-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  color: var(--pf-text);
  min-width: 0;
}

.pf-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
}

.pf-brand {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.02em;
}

/* ——— Main ——— */
.pf-main {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 16px 28px;
}

/* ——— Hero ——— */
.pf-hero {
  margin: 0 0 20px;
  padding: 8px 0 4px;
}

.pf-hero-copy,
.pf-magic-block {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 0 8px;
}

.pf-hero-aura,
.pf-magic-aura {
  position: absolute;
  inset: -8% -12%;
  pointer-events: none;
  z-index: 0;
}

.pf-hero-glow,
.pf-magic-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(22px);
}

.pf-hero-glow--blue,
.pf-magic-glow--blue {
  width: min(90%, 380px);
  height: 55%;
  background: radial-gradient(ellipse, rgba(96, 165, 250, 0.22) 0%, transparent 70%);
  animation: pf-aura-drift 6s ease-in-out infinite;
}

.pf-hero-glow--violet,
.pf-magic-glow--violet {
  width: min(70%, 300px);
  height: 45%;
  background: radial-gradient(ellipse, rgba(192, 132, 252, 0.18) 0%, transparent 68%);
  animation: pf-aura-drift 7s ease-in-out infinite reverse;
  animation-delay: -2s;
}

.pf-hero-glow--gold,
.pf-magic-glow--gold {
  width: min(50%, 220px);
  height: 30%;
  top: 58%;
  background: radial-gradient(ellipse, rgba(251, 191, 36, 0.12) 0%, transparent 70%);
  animation: pf-aura-pulse 4s ease-in-out infinite;
}

.pf-hero-sparkles,
.pf-magic-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}

.pf-hero-sparkles span,
.pf-magic-sparkles span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.65);
  opacity: 0;
  animation: pf-sparkle 4s ease-in-out infinite;
}

.pf-hero-sparkles span:nth-child(1) { top: 18%; left: 12%; animation-delay: 0s; }
.pf-hero-sparkles span:nth-child(2) { top: 8%; left: 72%; animation-delay: 0.6s; width: 2px; height: 2px; }
.pf-hero-sparkles span:nth-child(3) { top: 42%; left: 6%; animation-delay: 1.2s; }
.pf-hero-sparkles span:nth-child(4) { top: 35%; left: 88%; animation-delay: 0.3s; width: 2px; height: 2px; }
.pf-hero-sparkles span:nth-child(5) { top: 62%; left: 18%; animation-delay: 1.8s; }
.pf-hero-sparkles span:nth-child(6) { top: 55%; left: 82%; animation-delay: 2.4s; width: 2px; height: 2px; }
.pf-hero-sparkles span:nth-child(7) { top: 78%; left: 28%; animation-delay: 0.9s; }
.pf-hero-sparkles span:nth-child(8) { top: 72%; left: 68%; animation-delay: 1.5s; width: 2px; height: 2px; }
.pf-hero-sparkles span:nth-child(9) { top: 28%; left: 48%; animation-delay: 2.1s; width: 2px; height: 2px; }
.pf-hero-sparkles span:nth-child(10) { top: 48%; left: 52%; animation-delay: 3s; }

.pf-hero-title,
.pf-magic-title {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.04em;
}

.pf-magic-block--static .pf-magic-title {
  margin-bottom: 0;
}

.pf-hero-line,
.pf-magic-line {
  display: block;
  font-family: var(--pf-cinema);
  font-size: clamp(1.35rem, 4.8vw, 2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  text-shadow:
    0 0 24px rgba(147, 197, 253, 0.12),
    0 2px 36px rgba(0, 0, 0, 0.4);
  opacity: 0;
  animation: pf-magic-line 1.05s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pf-hero-line:nth-child(1),
.pf-magic-line:nth-child(1) { animation-delay: 0.08s; }
.pf-hero-line:nth-child(2),
.pf-magic-line:nth-child(2) {
  animation-delay: 0.22s;
  letter-spacing: 0.14em;
}

.pf-hero-line:nth-child(3),
.pf-magic-line:nth-child(3) { animation-delay: 0.38s; }

.pf-hero-line--magic,
.pf-magic-line--accent {
  position: relative;
  margin-top: 0.35em;
  font-family: var(--pf-cinema-accent);
  font-size: clamp(2.5rem, 10vw, 4.25rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 0.95;
  color: transparent;
}

.pf-hero-line--magic::before,
.pf-magic-line--accent::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120%;
  height: 160%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(192, 132, 252, 0.2) 0%,
    rgba(96, 165, 250, 0.1) 40%,
    transparent 72%
  );
  filter: blur(16px);
  z-index: -1;
  animation: pf-aura-pulse 3.5s ease-in-out infinite;
}

.pf-hero-line--magic em,
.pf-magic-line--accent em {
  font-family: inherit;
  font-style: italic;
  font-weight: 500;
  position: relative;
  background: linear-gradient(
    100deg,
    #ffffff 0%,
    #fde68a 12%,
    #dbeafe 28%,
    #ffffff 42%,
    #e9d5ff 58%,
    #bfdbfe 74%,
    #fef3c7 88%,
    #ffffff 100%
  );
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation:
    pf-magic-shimmer 4.5s ease-in-out infinite,
    pf-magic-glow 3s ease-in-out infinite;
}

.pf-hero-lead {
  position: relative;
  z-index: 1;
  margin: 0.5em auto 0;
  max-width: 34ch;
  font-family: var(--pf-sans);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.4);
  opacity: 0;
  animation: pf-magic-fade 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.62s both;
}

@keyframes pf-magic-line {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes pf-magic-fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pf-magic-shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

@keyframes pf-magic-glow {
  0%, 100% {
    filter:
      drop-shadow(0 0 18px rgba(147, 197, 253, 0.35))
      drop-shadow(0 0 42px rgba(192, 132, 252, 0.18));
  }
  50% {
    filter:
      drop-shadow(0 0 32px rgba(147, 197, 253, 0.6))
      drop-shadow(0 0 56px rgba(251, 191, 36, 0.25))
      drop-shadow(0 0 72px rgba(192, 132, 252, 0.3));
  }
}

@keyframes pf-aura-drift {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.85; }
  50% { transform: translate(-48%, -52%) scale(1.06); opacity: 1; }
}

@keyframes pf-aura-pulse {
  0%, 100% { opacity: 0.45; transform: translate(-50%, -50%) scale(0.95); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes pf-sparkle {
  0%, 100% { opacity: 0; transform: scale(0.4); }
  20% { opacity: 0.9; transform: scale(1); }
  40% { opacity: 0.2; transform: scale(0.6); }
  60% { opacity: 1; transform: scale(1.2); }
  80% { opacity: 0; transform: scale(0.3); }
}

/* Legacy hero selectors */
.pf-hero h1 {
  margin: 0 0 14px;
}

.pf-lead {
  margin: 0 0 22px;
  max-width: 38ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--pf-muted);
}

@keyframes pf-shimmer {
  to { background-position: -200% 0; }
}

/* ——— Categories ——— */
.pf-cats-wrap {
  position: sticky;
  top: 68px;
  z-index: 40;
  margin: 0 -16px 10px;
  padding: 6px 0 8px;
  background: rgba(6, 6, 8, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.pf-cats {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 16px 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.pf-cats::-webkit-scrollbar {
  display: none;
}

.pf-cat {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: var(--pf-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.pf-cat em {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--pf-faint);
}

.pf-cat--active {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.12);
}

.pf-cat--active em {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
}

.pf-cat:active {
  transform: scale(0.97);
}

.pf-empty {
  text-align: center;
  padding: 48px 20px;
  font-size: 14px;
  color: var(--pf-muted);
}

/* ——— Section head (legacy) ——— */
.pf-section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.pf-section-head__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pf-border), transparent);
}

.pf-section-head__text {
  text-align: center;
  flex-shrink: 0;
}

.pf-section-head__text h2 {
  margin: 0 0 4px;
  font-family: var(--pf-serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.pf-section-head__text p {
  margin: 0;
  font-size: 12px;
  color: var(--pf-faint);
  letter-spacing: 0.02em;
}

.pf-services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.pf-services span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pf-muted);
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--pf-border);
  background: var(--pf-surface);
}

/* ——— Masonry gallery ——— */
.pf-masonry {
  display: flex;
  align-items: flex-start;
  gap: var(--pf-gap);
}

.pf-masonry__col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--pf-gap);
}

.pf-item {
  position: relative;
  margin: 0;
  padding: 0;
  border: none;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  background: #0e0e10;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-tap-highlight-color: transparent;
}

.pf-item::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(110deg, rgba(255,255,255,0.03) 8%, rgba(255,255,255,0.07) 18%, rgba(255,255,255,0.03) 33%);
  background-size: 200% 100%;
  pointer-events: none;
}

.pf-item:not(.is-loaded)::before {
  animation: pf-shimmer 1.4s linear infinite;
}

.pf-item:not(.is-loaded) {
  aspect-ratio: var(--pf-ratio, 4 / 5);
}

.pf-item.is-loaded {
  aspect-ratio: auto;
}

.pf-item.is-loaded::before {
  display: none;
}

.pf-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pf-item img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.pf-item.is-loaded img {
  opacity: 1;
}

.pf-item:active img {
  transform: scale(0.98);
}

@media (hover: hover) {
  .pf-item:hover img {
    transform: scale(1.02);
  }
}

.pf-masonry--skeleton {
  display: flex;
}

.pf-masonry--skeleton[hidden] {
  display: none !important;
}

.pf-masonry--skeleton .pf-item--sk {
  opacity: 1;
  transform: none;
  pointer-events: none;
}

.pf-masonry--skeleton .pf-item--sk::before {
  animation: pf-shimmer 1.4s linear infinite;
}

.pf-item:focus-visible {
  outline: 2px solid var(--pf-accent);
  outline-offset: 3px;
}

/* Legacy grid aliases */
.pf-grid {
  display: flex;
  align-items: flex-start;
  gap: var(--pf-gap);
}

/* ——— Buttons ——— */
.pf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s, opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.pf-btn--primary {
  color: #0a0a0a;
  background: #fff;
}

.pf-btn--primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.pf-btn--ghost {
  color: var(--pf-text);
  background: var(--pf-surface);
  border: 1px solid var(--pf-border);
}

.pf-btn--ghost:hover {
  background: var(--pf-surface-2);
  border-color: rgba(255, 255, 255, 0.14);
}

.pf-btn--wa {
  color: white;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.28);
}

.pf-btn--wa:hover {
  transform: translateY(-2px);
}

.pf-btn--link {
  background: none;
  color: var(--pf-muted);
  padding: 10px 4px;
  font-size: 13px;
  font-weight: 500;
}

.pf-btn--link:hover {
  color: var(--pf-text);
}

.pf-btn--link i {
  font-size: 11px;
  transition: transform 0.2s;
}

.pf-btn--link:hover i {
  transform: translateX(3px);
}

/* ——— Magic sections (reviews, book) ——— */
.pf-exp-section::before {
  display: none;
}

.pf-exp-section {
  padding: 36px 0 20px;
}

.pf-exp-section .exp-section__head {
  margin-bottom: 28px;
}

.pf-magic-block--static {
  position: relative;
  padding: 28px 12px 20px;
  width: 100%;
}

.pf-magic-block--static .pf-magic-aura,
.pf-magic-block--static .pf-magic-sparkles {
  z-index: 0;
}

.pf-magic-block--static .pf-magic-title {
  position: relative;
  z-index: 1;
}

.pf-magic-block--static .pf-magic-line {
  opacity: 1;
  animation: none;
  filter: none;
  transform: none;
}

.pf-magic-block--static .pf-magic-line--accent {
  font-size: clamp(2rem, 8vw, 3.25rem);
}

.pf-magic-sparkles--sm span:nth-child(1) { top: 14%; left: 10%; animation-delay: 0.2s; }
.pf-magic-sparkles--sm span:nth-child(2) { top: 22%; left: 84%; animation-delay: 0.8s; width: 2px; height: 2px; }
.pf-magic-sparkles--sm span:nth-child(3) { top: 68%; left: 8%; animation-delay: 1.4s; }
.pf-magic-sparkles--sm span:nth-child(4) { top: 76%; left: 86%; animation-delay: 0.5s; width: 2px; height: 2px; }
.pf-magic-sparkles--sm span:nth-child(5) { top: 42%; left: 6%; animation-delay: 2s; width: 2px; height: 2px; }
.pf-magic-sparkles--sm span:nth-child(6) { top: 38%; left: 90%; animation-delay: 1.1s; }

.pf-exp-section .exp-link-btn.pf-magic-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow:
    0 0 24px rgba(147, 197, 253, 0.12),
    0 8px 28px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pf-exp-section .exp-link-btn.pf-magic-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 32px rgba(147, 197, 253, 0.22),
    0 10px 32px rgba(0, 0, 0, 0.3);
}

/* ——— Book CTA ——— */
.pf-book {
  margin-top: 32px;
  border: none;
  background: transparent;
}

.pf-book__inner {
  padding: 32px 20px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.pf-book .pf-magic-title {
  margin-bottom: 4px;
}

.pf-book .pf-btn--wa.pf-magic-btn {
  box-shadow:
    0 0 28px rgba(37, 211, 102, 0.28),
    0 8px 24px rgba(0, 0, 0, 0.25);
}

.pf-book .pf-btn--wa.pf-magic-btn:hover {
  box-shadow:
    0 0 36px rgba(37, 211, 102, 0.42),
    0 10px 28px rgba(0, 0, 0, 0.3);
}

.pf-btn--wa {
  color: white;
  background: #25d366;
}

.pf-btn--wa:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* ——— Footer ——— */
.pf-footer {
  margin-top: 32px;
  padding-top: 20px;
  text-align: center;
}

.pf-footer__copy {
  margin: 0;
  font-size: 11px;
  color: var(--pf-faint);
  letter-spacing: 0.04em;
}

/* ——— Lightbox ——— */
body.pf-lightbox-open {
  overflow: hidden;
}

.pf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.96);
  animation: pf-lb-in 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.pf-lightbox[hidden] {
  display: none;
}

@keyframes pf-lb-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.pf-lightbox__progress {
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.pf-lightbox__progress-bar {
  height: 100%;
  width: 4%;
  background: linear-gradient(90deg, #3b82f6, #93c5fd);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.pf-lightbox__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  flex-shrink: 0;
}

.pf-lightbox__count {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--pf-faint);
  letter-spacing: 0.06em;
}

.pf-lightbox__count strong {
  color: white;
  font-weight: 600;
  margin-right: 6px;
}

.pf-lightbox__count span::before {
  content: '/ ';
  opacity: 0.5;
}

.pf-lightbox__stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  position: relative;
  padding: 8px 52px;
}

.pf-lightbox__frame {
  position: relative;
  max-width: min(92vw, 720px);
  max-height: min(68vh, 780px);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pf-lightbox__img {
  max-width: 100%;
  max-height: min(68vh, 780px);
  object-fit: contain;
  border-radius: 6px;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity 0.28s ease;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.pf-lightbox__img--ghost {
  position: absolute;
  inset: 0;
  margin: auto;
  opacity: 0;
  pointer-events: none;
}

.pf-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}

.pf-lb-nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-50%) scale(1.06);
}

.pf-lb-nav:disabled {
  opacity: 0.2;
  cursor: default;
}

.pf-lb-nav--prev { left: 12px; }
.pf-lb-nav--next { right: 12px; }

/* ——— Responsive ——— */
@media (min-width: 720px) {
  .pf-main {
    padding: 28px 24px 48px;
  }

  .pf-cats-wrap {
    margin-left: 0;
    margin-right: 0;
  }

  .pf-cats {
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow: visible;
    padding: 0;
  }

  .pf-hero {
    margin-bottom: 22px;
  }

  .pf-hero-line,
  .pf-magic-line {
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    letter-spacing: 0.2em;
  }

  .pf-hero-line--magic,
  .pf-magic-line--accent {
    font-size: clamp(2.85rem, 5.5vw, 4.5rem);
  }

  .pf-magic-block--static .pf-magic-line--accent {
    font-size: clamp(2.25rem, 4vw, 3.35rem);
  }

  .pf-hero-lead {
    font-size: 15px;
    max-width: 44ch;
  }
}

@media (min-width: 1024px) {
  :root {
    --pf-gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pf-hero-line,
  .pf-magic-line,
  .pf-hero-lead {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .pf-hero-line--magic em,
  .pf-magic-line--accent em {
    animation: none;
    filter: drop-shadow(0 0 24px rgba(147, 197, 253, 0.4));
  }

  .pf-hero-glow,
  .pf-magic-glow,
  .pf-hero-line--magic::before,
  .pf-magic-line--accent::before,
  .pf-hero-sparkles span,
  .pf-magic-sparkles span {
    animation: none !important;
  }

  .pf-hero-copy {
    animation: none;
  }

  .pf-item,
  .pf-item img {
    animation: none !important;
    transition: none !important;
  }

  .pf-item {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 520px) {
  .pf-lightbox__stage {
    padding: 8px 44px;
  }

  .pf-lb-nav {
    width: 38px;
    height: 38px;
    font-size: 12px;
  }
}
