/* =====================================================================
   PORTFOLIO DETAIL · CONCEPT D — детальная страница кейса
   Префикс .pd-* — изолировано от Bootstrap и других стилей шаблона
   ===================================================================== */

.pd-page {
  --pd-ink: #0c0c0c;
  --pd-cream: #f4ede1;
  --pd-bone: #e8dfcc;
  --pd-fire: #ff4524;
  --pd-pulse: #c4ff00;
  --pd-sky: #7dc4ff;
  --pd-rose: #ff7da8;
  --pd-faint: rgba(244, 237, 225, 0.08);
  --pd-faint2: rgba(244, 237, 225, 0.16);

  background: var(--pd-ink);
  color: var(--pd-cream);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  position: relative;
  isolation: isolate;
}
.pd-page, .pd-page * { box-sizing: border-box; }
.pd-page ::selection { background: var(--pd-fire); color: var(--pd-cream); }

/* grain */
.pd-page::before {
  content: ""; position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0 0.04 0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
  opacity: .35;
}
.pd-page > * { position: relative; z-index: 1; }

.pd-display {
  font-family: 'Russo One', 'Unbounded', Impact, sans-serif;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.pd-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

.pd-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}
.pd-section-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--pd-fire);
}
.pd-accent { color: var(--pd-fire); }

/* pulse dot */
.pd-pulse-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pd-pulse);
  animation: pd-pulse 2s ease-out infinite;
  flex-shrink: 0;
}
@keyframes pd-pulse {
  0% { box-shadow: 0 0 0 0 rgba(196, 255, 0, .55); }
  100% { box-shadow: 0 0 0 18px rgba(196, 255, 0, 0); }
}

/* =================================
   HERO
   ================================= */
.pd-hero {
  padding: clamp(80px, 14vh, 160px) 0 clamp(48px, 8vh, 96px);
}
.pd-hero-kicker {
  display: flex; align-items: center; gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--pd-fire);
  margin-bottom: clamp(20px, 3vh, 32px);
}
.pd-h1 {
  font-size: clamp(56px, 14vw, 220px);
  line-height: 0.86;
  margin: 0;
  word-break: break-word;
}
.pd-h1-sub {
  margin-top: clamp(16px, 2.5vh, 28px);
  font-family: 'Russo One', Impact, sans-serif;
  font-size: clamp(20px, 2.4vw, 32px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: rgba(244, 237, 225, .55);
  max-width: 900px;
}
.pd-meta-grid {
  list-style: none; padding: 0;
  margin: clamp(40px, 6vh, 64px) 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--pd-faint);
  border: 1px solid var(--pd-faint);
}
@media (min-width: 576px) { .pd-meta-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .pd-meta-grid { grid-template-columns: repeat(4, 1fr); } }
.pd-meta-grid li {
  background: var(--pd-ink);
  padding: clamp(16px, 2.5vw, 22px) clamp(18px, 3vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pd-meta-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(244, 237, 225, .4);
}
.pd-meta-value {
  font-family: 'Russo One', Impact, sans-serif;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--pd-cream);
}

/* =================================
   BIG DETAIL PICTURE
   ================================= */
.pd-bigpic {
  margin: clamp(24px, 4vh, 56px) 0;
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
}
.pd-bigpic-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  will-change: transform;
}
@media (max-width: 767.98px) {
  .pd-bigpic-frame { aspect-ratio: 4 / 3; }
}
.pd-bigpic-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.pd-bigpic-vignette {
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(12, 12, 12, .55) 0%,
    rgba(12, 12, 12, 0) 30%,
    rgba(12, 12, 12, 0) 70%,
    rgba(12, 12, 12, .85) 100%);
}

/* =================================
   STATS (optional)
   ================================= */
.pd-stats {
  padding: clamp(48px, 8vh, 96px) 0;
  border-top: 1px solid var(--pd-faint);
}
.pd-stats-grid {
  margin-top: clamp(24px, 4vh, 40px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--pd-faint);
  border: 1px solid var(--pd-faint);
}
@media (min-width: 576px) { .pd-stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .pd-stats-grid { grid-template-columns: repeat(4, 1fr); } }
.pd-stat-cell {
  background: var(--pd-ink);
  padding: clamp(20px, 3vw, 32px);
}
.pd-stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(244, 237, 225, .4);
  margin-bottom: 12px;
}
.pd-stat-value {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--pd-cream);
}

/* =================================
   BRIEF
   ================================= */
.pd-brief {
  padding: clamp(48px, 8vh, 112px) 0;
  border-top: 1px solid var(--pd-faint);
}
.pd-brief-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vh, 56px);
}
@media (min-width: 992px) {
  .pd-brief-grid { grid-template-columns: 4fr 8fr; gap: clamp(32px, 4vw, 80px); }
}
.pd-brief-aside {
  position: relative;
}
@media (min-width: 992px) {
  .pd-brief-aside {
    position: sticky;
    top: 88px;
    align-self: start;
  }
}
.pd-brief-title {
  margin-top: 18px;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 0.95;
}
.pd-brief-body { min-width: 0; }
.pd-brief-text {
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.65;
  color: rgba(244, 237, 225, .82);
}
.pd-brief-text p { margin: 0 0 1.2em; }
.pd-brief-text p:last-child { margin-bottom: 0; }
.pd-brief-text strong, .pd-brief-text b { color: var(--pd-cream); }
.pd-brief-text a { color: var(--pd-fire); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pd-brief-text a:hover { color: var(--pd-pulse); }

.pd-worklist-title {
  margin-top: clamp(28px, 4vh, 48px);
  margin-bottom: clamp(16px, 2.5vh, 24px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--pd-fire);
}
.pd-worklist {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.pd-worklist-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 16px;
  padding: clamp(18px, 2.5vh, 24px) 0;
  border-bottom: 1px solid var(--pd-faint);
  align-items: baseline;
}
.pd-worklist-item:last-child { border-bottom: none; }
.pd-worklist-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--pd-fire);
}
.pd-worklist-name {
  display: block;
  font-family: 'Russo One', Impact, sans-serif;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--pd-cream);
}
.pd-worklist-desc {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(244, 237, 225, .65);
}

/* =================================
   SCREENS (desktop & mobile)
   ================================= */
.pd-screens {
  padding: clamp(48px, 8vh, 112px) 0;
  border-top: 1px solid var(--pd-faint);
}
.pd-screens-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: clamp(20px, 3vh, 32px);
}
@media (min-width: 768px) {
  .pd-screens-head { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
}
.pd-screens-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pd-screens-tab {
  display: inline-block;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--pd-faint2);
  color: rgba(244, 237, 225, .65);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.pd-screens-tab:hover {
  border-color: var(--pd-fire);
  color: var(--pd-fire);
}
.pd-screens-tab.is-active {
  background: var(--pd-fire);
  color: var(--pd-cream);
  border-color: var(--pd-fire);
}

.pd-screens-stage {
  position: relative;
  min-height: 200px;
}
.pd-screen-pane {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s, transform .35s;
}
.pd-screen-pane.is-active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.pd-screen-frame {
  position: relative;
  background: #1a1a1a;
  border: 1px solid var(--pd-faint);
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color .25s;
}
.pd-screen-frame:hover { border-color: var(--pd-fire); }
.pd-screen-frame img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .8s cubic-bezier(.7,0,.3,1);
  will-change: transform;
}
.pd-screen-frame:hover img { transform: scale(1.02); }
.pd-screen-tag {
  position: absolute;
  top: 12px; left: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: rgba(12, 12, 12, .85);
  padding: 4px 8px;
  color: var(--pd-pulse);
  pointer-events: none;
}

/* mobile screens — narrow frame, centered */
.pd-screens-stage-mobile .pd-screen-frame-mobile {
  max-width: 380px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
}
.pd-screens-stage-mobile .pd-screen-frame-mobile img {
  border-radius: 24px;
}

/* =================================
   TECH STACK
   ================================= */
.pd-stack {
  padding: clamp(48px, 8vh, 96px) 0;
  border-top: 1px solid var(--pd-faint);
}
.pd-stack-title {
  margin: clamp(16px, 2.5vh, 28px) 0 clamp(28px, 4vh, 44px);
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.95;
}
.pd-stack-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.pd-stack-item {
  display: inline-flex; align-items: center;
  padding: 10px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pd-cream);
  background: rgba(244, 237, 225, .04);
  border: 1px solid var(--pd-faint2);
  transition: background-color .25s, border-color .25s, color .25s;
}
.pd-stack-item:hover {
  background: rgba(196, 255, 0, .08);
  border-color: var(--pd-pulse);
  color: var(--pd-pulse);
}

/* =================================
   TIMELINE
   ================================= */
.pd-timeline {
  padding: clamp(48px, 8vh, 96px) 0;
  border-top: 1px solid var(--pd-faint);
}
.pd-timeline-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vh, 48px);
}
@media (min-width: 992px) {
  .pd-timeline-grid { grid-template-columns: 4fr 8fr; gap: clamp(32px, 4vw, 80px); }
}
.pd-timeline-aside { position: relative; }
@media (min-width: 992px) {
  .pd-timeline-aside { position: sticky; top: 88px; align-self: start; }
}
.pd-timeline-title {
  margin-top: 18px;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 0.95;
}
.pd-timeline-list { list-style: none; padding: 0; margin: 0; }
.pd-timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: clamp(14px, 2vh, 18px) 0;
  border-bottom: 1px solid var(--pd-faint);
  align-items: baseline;
}
.pd-timeline-item:last-child { border-bottom: none; }
.pd-timeline-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(244, 237, 225, .45);
}
.pd-timeline-event {
  font-family: 'Inter', sans-serif;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.5;
  color: var(--pd-cream);
}

/* =================================
   QUOTE
   ================================= */
.pd-quote {
  padding: clamp(64px, 12vh, 144px) 0;
  background: var(--pd-fire);
  color: var(--pd-ink);
}
.pd-quote-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(12, 12, 12, .7);
  margin-bottom: clamp(24px, 4vh, 40px);
}
.pd-quote-text {
  font-size: clamp(32px, 5.5vw, 80px);
  line-height: 1.05;
  margin: 0;
  font-style: normal;
}

/* =================================
   RELATED
   ================================= */
.pd-related {
  padding: clamp(48px, 8vh, 112px) 0;
  border-top: 1px solid var(--pd-faint);
}
.pd-related-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: clamp(24px, 4vh, 40px);
}
.pd-related-all {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--pd-fire);
  text-decoration: none;
  transition: color .2s;
}
.pd-related-all:hover { color: var(--pd-pulse); }

.pd-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) { .pd-related-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.pd-rcard {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #1a1a1a;
  text-decoration: none;
  color: inherit;
  isolation: isolate;
  border: 1px solid var(--pd-faint);
  transition: border-color .25s;
}
.pd-rcard:hover { border-color: var(--pd-fire); }
.pd-rcard img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform, filter;
}
.pd-rcard-meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: clamp(14px, 2vw, 22px);
  z-index: 5;
  display: flex; justify-content: space-between; align-items: end;
  background: linear-gradient(to top,
    rgba(12,12,12,.92) 0%,
    rgba(12,12,12,.4) 50%,
    rgba(12,12,12,0) 100%);
}
.pd-rcard-name {
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 0.95;
  word-break: break-word;
}
.pd-rcard-arrow { font-family: 'JetBrains Mono', monospace; font-size: 16px; }
.pd-arrow-fire { color: var(--pd-fire); }
.pd-arrow-pulse { color: var(--pd-pulse); }
.pd-arrow-bone { color: var(--pd-bone); }
.pd-arrow-sky { color: var(--pd-sky); }
.pd-arrow-rose { color: var(--pd-rose); }

/* Re-use все 6 fx-* эффектов из reel — просто копируем для устойчивости */
.pd-rcard.fx-rgb img { transition: transform .6s cubic-bezier(.6,0,.4,1); }
.pd-rcard.fx-rgb::before, .pd-rcard.fx-rgb::after {
  content: ""; position: absolute; inset: 0; opacity: 0;
  mix-blend-mode: multiply; transition: opacity .5s, transform .5s;
  pointer-events: none; z-index: 2;
}
.pd-rcard.fx-rgb::before { background: var(--pd-fire); }
.pd-rcard.fx-rgb::after  { background: var(--pd-sky); }
.pd-rcard.fx-rgb:hover::before { opacity: .55; transform: translate(-8px, 0); }
.pd-rcard.fx-rgb:hover::after  { opacity: .45; transform: translate(8px, 0); }
.pd-rcard.fx-rgb:hover img { transform: scale(1.06); }

.pd-rcard.fx-pixelate img { transition: filter .8s, transform .8s; filter: blur(8px) saturate(1.5) contrast(1.1); }
.pd-rcard.fx-pixelate:hover img { filter: blur(0); transform: scale(1.03); }
.pd-rcard.fx-pixelate::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,0) 0px, rgba(0,0,0,0) 6px, rgba(0,0,0,.5) 7px, rgba(0,0,0,0) 8px);
  opacity: .6; transition: opacity .8s;
}
.pd-rcard.fx-pixelate:hover::after { opacity: 0; }

.pd-rcard.fx-bw img { filter: grayscale(1) contrast(1.1); transition: filter .8s, transform .8s; }
.pd-rcard.fx-bw:hover img { filter: grayscale(0) contrast(1.05) saturate(1.15); transform: scale(1.04); }

.pd-rcard.fx-slide img { clip-path: inset(0 100% 0 0); transition: clip-path .9s cubic-bezier(.7,0,.3,1), transform .9s; }
.pd-rcard.fx-slide.in-view img { clip-path: inset(0 0 0 0); }
.pd-rcard.fx-slide:hover img { transform: scale(1.05); }

.pd-rcard.fx-ascii img { transition: opacity .8s, transform .8s; opacity: .5; }
.pd-rcard.fx-ascii:hover img { opacity: 1; transform: scale(1.02); }
.pd-rcard.fx-ascii::before {
  content: "01001000\A 0000110100\A 1111000111\A 01010110001\A 00001110100\A 1010101011";
  white-space: pre; position: absolute; inset: 0; padding: 22px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; line-height: 1.3;
  color: rgba(196, 255, 0, .55); pointer-events: none;
  background: rgba(12, 12, 12, .55);
  transition: opacity .6s; z-index: 2;
}
.pd-rcard.fx-ascii:hover::before { opacity: 0; }

.pd-rcard.fx-glitchreveal img { transition: filter .25s, transform .8s; }
.pd-rcard.fx-glitchreveal:hover img { animation: pd-glitchpulse .5s steps(2) 2; }
@keyframes pd-glitchpulse {
  0%   { filter: hue-rotate(0deg) saturate(1);    transform: translate(0, 0); }
  20%  { filter: hue-rotate(20deg) saturate(2);   transform: translate(-3px, 1px); }
  40%  { filter: hue-rotate(-15deg) saturate(1.5);transform: translate(2px, -1px); }
  60%  { filter: hue-rotate(40deg) saturate(2.5); transform: translate(-1px, 2px); }
  80%  { filter: hue-rotate(-30deg) saturate(1.8);transform: translate(3px, 0); }
  100% { filter: hue-rotate(0deg) saturate(1);    transform: translate(0, 0); }
}

@media (hover: none), (pointer: coarse) {
  .pd-rcard.fx-rgb::before, .pd-rcard.fx-rgb::after { display: none; }
  .pd-rcard.fx-pixelate img { filter: none; }
  .pd-rcard.fx-pixelate::after { opacity: 0; }
  .pd-rcard.fx-bw img { filter: none; }
  .pd-rcard.fx-ascii img { opacity: 1; }
  .pd-rcard.fx-ascii::before { opacity: 0; }
}

/* =================================
   CTA
   ================================= */
.pd-cta {
  padding: clamp(80px, 14vh, 176px) 0;
  border-top: 1px solid var(--pd-faint);
}
.pd-cta-title {
  font-size: clamp(56px, 13vw, 200px);
  line-height: 0.9;
  margin: clamp(20px, 3vh, 32px) 0 clamp(32px, 5vh, 56px);
}

.pd-cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.pd-btn {
  display: inline-block;
  padding: clamp(16px, 2vw, 22px) clamp(20px, 2.4vw, 30px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background-color .3s, color .3s, border-color .3s;
  will-change: transform;
}
.pd-btn-label { display: inline-block; will-change: transform; }
.pd-btn-primary {
  background: var(--pd-fire);
  color: var(--pd-cream);
}
.pd-btn-primary:hover { background: var(--pd-pulse); color: var(--pd-ink); }
.pd-btn-secondary {
  background: transparent;
  border: 1px solid rgba(244, 237, 225, .2);
  color: var(--pd-cream);
}
.pd-btn-secondary:hover { border-color: var(--pd-fire); color: var(--pd-fire); }

/* =================================
   GLITCH text
   ================================= */
.pd-glitch { position: relative; display: inline-block; }
.pd-glitch::before, .pd-glitch::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  will-change: transform, clip-path;
}
.pd-glitch::before { color: var(--pd-fire); transform: translate(-3px, 0); mix-blend-mode: screen; }
.pd-glitch::after  { color: var(--pd-sky);  transform: translate(3px, 0);  mix-blend-mode: screen; }
.pd-glitch.active::before { animation: pd-gA .3s steps(1) 2; opacity: 1; }
.pd-glitch.active::after  { animation: pd-gB .3s steps(1) 2; opacity: 1; }
@keyframes pd-gA {
  0%   { transform: translate(-3px, 0);   clip-path: inset(10% 0 80% 0); }
  25%  { transform: translate(-2px, 1px); clip-path: inset(60% 0 25% 0); }
  50%  { transform: translate(-5px, -1px);clip-path: inset(85% 0 5% 0); }
  75%  { transform: translate(-1px, 2px); clip-path: inset(30% 0 50% 0); }
  100% { transform: translate(-3px, 0);   clip-path: inset(10% 0 80% 0); }
}
@keyframes pd-gB {
  0%   { transform: translate(3px, 0);   clip-path: inset(70% 0 10% 0); }
  25%  { transform: translate(4px, -1px);clip-path: inset(20% 0 60% 0); }
  50%  { transform: translate(2px, 2px); clip-path: inset(45% 0 30% 0); }
  75%  { transform: translate(5px, 0);   clip-path: inset(80% 0 5% 0); }
  100% { transform: translate(3px, 0);   clip-path: inset(70% 0 10% 0); }
}

/* =================================
   LIGHTBOX
   ================================= */
.pd-lightbox {
  position: fixed; inset: 0;
  z-index: 2000;
  background: rgba(12, 12, 12, .96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(24px, 5vw, 64px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.pd-lightbox[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}
.pd-lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  border: 1px solid var(--pd-faint2);
  transform: scale(.96);
  transition: transform .35s cubic-bezier(.7,0,.3,1);
}
.pd-lightbox[data-open="true"] .pd-lightbox-img { transform: scale(1); }
.pd-lightbox-close {
  position: absolute;
  top: clamp(16px, 3vw, 28px);
  right: clamp(16px, 3vw, 28px);
  width: 56px; height: 56px;
  background: transparent;
  border: 1px solid rgba(244, 237, 225, .25);
  color: var(--pd-cream);
  font-size: 22px;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.pd-lightbox-close:hover {
  background: var(--pd-fire);
  border-color: var(--pd-fire);
}
.pd-lightbox-caption {
  position: absolute;
  bottom: clamp(16px, 3vw, 28px);
  left: 50%; transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(244, 237, 225, .55);
}

/* =================================
   RESPONSIVE fine-tunes
   ================================= */
@media (max-width: 575.98px) {
  .pd-h1 { font-size: clamp(40px, 14vw, 72px); }
  .pd-cta-title { font-size: clamp(48px, 14vw, 96px); }
  .pd-quote-text { font-size: clamp(28px, 8vw, 56px); }
  .pd-screens-tab { padding: 6px 10px; font-size: 10px; }
  .pd-meta-value { font-size: 16px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .pd-glitch.active::before, .pd-glitch.active::after { animation: none; opacity: 0; }
  .pd-rcard.fx-glitchreveal:hover img { animation: none; }
  .pd-pulse-dot { animation: none; }
  .pd-screen-pane { transition: none; }
  .pd-bigpic-frame { transform: none !important; }
}
