/* ══════════════════════════════════════════════════
   TBL DIGITAL — Portfolio CSS
   FOLIO hero + dark editorial grid + Fursat spotlight
══════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.pf-hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #080810;
  overflow: hidden;
  padding: 0;
}

.pf-hero-bg {
  position: absolute;
  inset: 0;
  background: #080810;
  z-index: 0;
}

/* Corner floating images */
.pf-hero-corners {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.pf-corner {
  position: absolute;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  opacity: 0;
  transition: opacity .8s var(--e);
}
.pf-corner.loaded { opacity: .8; }
.pf-corner-tl { width:90px; height:120px; top:6%;    left:3%;   animation: hmgFloat 14s ease-in-out infinite; }
.pf-corner-tr { width:80px; height:110px; top:5%;    right:4%;  animation: hmgFloat 11s ease-in-out infinite; animation-delay:-4s; }
.pf-corner-bl { width:70px; height:90px;  bottom:14%;left:2%;   animation: hmgFloat 16s ease-in-out infinite; animation-delay:-7s; }
.pf-corner-br { width:75px; height:95px;  bottom:12%;right:3%;  animation: hmgFloat 12s ease-in-out infinite; animation-delay:-4s; }

/* Accent blocks */
.pf-hero-accent {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  border-radius: 4px;
}
.pf-accent-1 {
  width:28px; height:72px;
  background: rgba(201,168,232,.55);
  right:8%; top:38%;
  animation: pfAccentPulse 6s ease-in-out infinite;
}
.pf-accent-2 {
  width:18px; height:44px;
  background: rgba(106,191,173,.4);
  left:9%; top:42%;
  animation: pfAccentPulse 8s ease-in-out infinite;
  animation-delay: -3s;
}
.pf-accent-3 {
  width:50px; height:14px;
  background: rgba(232,168,201,.45);
  left:50%; bottom:10%;
  transform: translateX(-50%);
  animation: pfAccentPulse 10s ease-in-out infinite;
  animation-delay: -5s;
}
@keyframes pfAccentPulse {
  0%,100% { opacity:.6; }
  50%      { opacity:1; }
}

/* FOLIO mask */
.pf-folio-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  will-change: transform, opacity;
}
.pf-folio-mask {
  width: 100%;
  max-width: 1300px;
  padding: 0 20px;
}
.pf-folio-svg {
  width: 100%;
  height: auto;
  display: block;
}
.pf-folio-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.05);
}
.pf-folio-text-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(140px, 22vw, 320px);
  letter-spacing: -.04em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201,168,232,.14);
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
  will-change: transform;
}

/* Hero inner */
.pf-hero-inner {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 900px;
  width: 100%;
  padding: 0 24px;
  margin-top: auto;
  padding-top: 58vh;
  padding-bottom: 140px;
}

.pf-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(201,168,232,.08);
  border: 1px solid rgba(201,168,232,.2);
  backdrop-filter: blur(20px);
  padding: 8px 20px;
  border-radius: 100px;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  animation: pfFadeUp .8s .3s cubic-bezier(.16,1,.3,1) forwards;
}
.pf-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: bPulse 2s infinite;
  flex-shrink: 0;
}

.pf-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  line-height: 1;
  letter-spacing: .04em;
  margin-bottom: 16px;
}
.pf-hl { display: block; overflow: hidden; }
.pf-hl-1 {
  color: rgba(255,255,255,.45);
  opacity: 0;
  transform: translateY(100%);
  animation: pfSlideUp .9s .5s cubic-bezier(.16,1,.3,1) forwards;
  font-size: clamp(11px, 1.5vw, 17px);
  letter-spacing: .28em;
  font-family: 'Space Mono', monospace;
}
.pf-hl-3 {
  color: rgba(255,255,255,.82);
  opacity: 0;
  transform: translateY(100%);
  animation: pfSlideUp .9s .65s cubic-bezier(.16,1,.3,1) forwards;
  font-size: clamp(22px, 3.5vw, 48px);
  letter-spacing: .02em;
}
@keyframes pfSlideUp { to { opacity:1; transform:translateY(0); } }
@keyframes pfFadeUp  { to { opacity:1; transform:translateY(0); } }

.pf-hero-sub {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,.38);
  max-width: 480px;
  margin: 0 auto 26px;
  font-weight: 300;
  opacity: 0;
  transform: translateY(16px);
  animation: pfFadeUp .9s .8s cubic-bezier(.16,1,.3,1) forwards;
}

.pf-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
  opacity: 0;
  animation: pfFadeUp .9s .95s cubic-bezier(.16,1,.3,1) forwards;
}

.pf-hero-stats {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: pfFadeUp .9s 1.1s cubic-bezier(.16,1,.3,1) forwards;
}
.pf-hs-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 18px;
  border-radius: 100px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
  transition: all .35s var(--e);
}
.pf-hs-pill:hover {
  background: rgba(201,168,232,.12);
  border-color: rgba(201,168,232,.25);
  transform: translateY(-4px);
}
.pf-hs-pill strong {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  line-height: 1;
}
.pf-hs-pill span {
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-top: 3px;
}

/* Scroll indicator */
.pf-hero-scroll {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 6;
  opacity: 0;
  animation: pfFadeUp .9s 1.3s var(--e) forwards;
}
.pf-scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, rgba(201,168,232,.5), transparent);
  animation: scrollLinePulse 2.2s ease-in-out infinite;
}
.pf-hero-scroll span {
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.22);
}

/* ═══════════════════════════════════════════
   FILTER BAR
═══════════════════════════════════════════ */
.pf-filter-section {
  background: #08080f;
  border-bottom: 1px solid rgba(201,168,232,.08);
  position: sticky;
  top: 0;
  z-index: 100;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.pf-filter-section::-webkit-scrollbar { display: none; }

.pf-filter-bar {
  display: flex;
  align-items: stretch;
  min-width: max-content;
}

.pf-filter-btn {
  position: relative;
  padding: 18px 32px;
  border: none;
  border-right: 1px solid rgba(201,168,232,.07);
  background: transparent;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .25s, background .25s;
}
.pf-filter-btn::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--pu-a);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--e);
}
.pf-filter-btn span { position: relative; z-index: 1; }
.pf-filter-btn:hover {
  color: rgba(255,255,255,.65);
  background: rgba(201,168,232,.04);
}
.pf-filter-btn.active { color: #fff; }
.pf-filter-btn.active::after { transform: scaleX(1); }

/* ═══════════════════════════════════════════
   GRID
═══════════════════════════════════════════ */
.pf-grid-section {
  background: #08080f;
  padding-bottom: 100px;
}

.pf-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(201,168,232,.07);
}

/* ── BASE ITEM ── */
.pf-item {
  position: relative;
  background: #0c0c1a;
  overflow: hidden;
}

/* All regular items — uniform */
.pf-item--regular {
  grid-column: span 1;
}

/* Fursat spotlight — full width */
.pf-item--spotlight {
  grid-column: span 3;
}

/* Hidden state */
.pf-item.pf-hidden {
  opacity: .07 !important;
  pointer-events: none;
  filter: blur(2px);
  transform: scale(.98);
}

.pf-item-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
  color: inherit;
}

/* ── MEDIA ── */
.pf-item-media {
  position: relative;
  overflow: hidden;
  background: #111125;
}
.pf-item--regular .pf-item-media  { aspect-ratio: 4/3; }
.pf-item--spotlight .pf-item-media { aspect-ratio: 21/7; }

.pf-item-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 1.1s cubic-bezier(.16,1,.3,1);
}
.pf-placeholder {
  position: absolute;
  inset: 0;
  transition: transform 1.1s cubic-bezier(.16,1,.3,1);
}
.pf-item:hover .pf-item-img,
.pf-item:hover .pf-placeholder {
  transform: scale(1.07);
}

/* Gradient overlay */
.pf-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(8,8,15,.78) 0%,
    rgba(8,8,15,.06) 55%,
    transparent 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .4s;
}
.pf-item:hover .pf-item-overlay {
  background: linear-gradient(
    to top,
    rgba(8,8,15,.85) 0%,
    rgba(8,8,15,.4) 55%,
    rgba(8,8,15,.1) 100%
  );
}

/* Hover CTA pill */
.pf-overlay-content {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255,255,255,.32);
  padding: 10px 22px;
  border-radius: 100px;
  backdrop-filter: blur(12px);
  background: rgba(0,0,0,.18);
  opacity: 0;
  transform: translateY(12px) scale(.9);
  transition: opacity .4s var(--e), transform .4s var(--e);
}
.pf-item:hover .pf-overlay-content {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Result badge */
.pf-item-badge {
  position: absolute;
  top: 16px; right: 16px;
  padding: 5px 14px;
  border-radius: 100px;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .06em;
  box-shadow: 0 4px 18px rgba(0,0,0,.32);
  z-index: 4;
  transform: translateY(-2px);
  transition: transform .3s var(--e);
}
.pf-item:hover .pf-item-badge {
  transform: translateY(-6px) scale(1.05);
}

/* Spotlight featured tag */
.pf-spotlight-tag {
  position: absolute;
  top: 24px; left: 24px;
  z-index: 5;
  padding: 8px 18px;
  border-radius: 100px;
  background: rgba(201,168,232,.16);
  border: 1px solid rgba(201,168,232,.38);
  backdrop-filter: blur(20px);
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--pu-a);
  animation: spotlightPulse 3s ease-in-out infinite;
}
@keyframes spotlightPulse {
  0%,100% { box-shadow: 0 0 24px rgba(201,168,232,.14); }
  50%      { box-shadow: 0 0 48px rgba(201,168,232,.32); }
}

/* ── REGULAR ITEM INFO ── */
.pf-item-info {
  padding: 20px 22px 24px;
  background: #0c0c1a;
  border-top: 1px solid rgba(201,168,232,.07);
}

.pf-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.pf-tag {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent, rgba(201,168,232,.6));
}
.pf-year {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: rgba(255,255,255,.2);
  letter-spacing: .08em;
}
.pf-item-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: .03em;
  line-height: .95;
  color: rgba(255,255,255,.88);
  margin-bottom: 6px;
  transition: color .25s;
}
.pf-item:hover .pf-item-title { color: var(--accent, #c9a8e8); }
.pf-item-client {
  font-size: 12px;
  color: rgba(255,255,255,.32);
  margin-bottom: 4px;
}
.pf-item-tagline {
  font-size: 12px;
  color: rgba(255,255,255,.22);
  font-style: italic;
  line-height: 1.5;
}

/* ── SPOTLIGHT INFO BAR ── */
.pf-spotlight-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: linear-gradient(135deg, #0f0f20 0%, #131330 100%);
  border-top: 1px solid rgba(201,168,232,.1);
  position: relative;
  overflow: hidden;
}
.pf-spotlight-info::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 15% 50%, rgba(201,168,232,.05), transparent 50%);
  pointer-events: none;
}

.pf-spotlight-left {
  padding: 36px 44px;
  border-right: 1px solid rgba(201,168,232,.08);
  position: relative; z-index: 2;
}
.pf-spotlight-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 6vw, 88px);
  line-height: .86;
  letter-spacing: -.02em;
  color: #fff;
  margin: 12px 0 10px;
  transition: color .3s;
}
.pf-item--spotlight:hover .pf-spotlight-title { color: var(--pu-a); }
.pf-spotlight-client {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
}

.pf-spotlight-right {
  padding: 36px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  position: relative; z-index: 2;
}
.pf-spotlight-tagline {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,.58);
  font-style: italic;
  max-width: 460px;
}
.pf-spotlight-svcs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pf-spotlight-svcs span {
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(201,168,232,.07);
  border: 1px solid rgba(201,168,232,.14);
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  transition: all .25s;
}
.pf-item--spotlight:hover .pf-spotlight-svcs span {
  background: rgba(201,168,232,.13);
  color: var(--pu-a);
  border-color: rgba(201,168,232,.28);
}
.pf-spotlight-cta {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pu-a);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity .35s var(--e), transform .35s var(--e);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pf-item--spotlight:hover .pf-spotlight-cta {
  opacity: 1;
  transform: translateX(0);
}

/* ── SCROLL REVEAL ── */
.js-pf-ready .pf-item {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--e), transform .7s var(--e), filter .35s;
}
.js-pf-ready .pf-item.pf-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
.js-pf-ready .pf-item.pf-hidden {
  opacity: .06 !important;
  transform: translateY(0) !important;
  pointer-events: none;
  filter: blur(2px);
}

/* ── NO RESULTS ── */
.pf-no-results {
  grid-column: span 3;
  text-align: center;
  padding: 80px 20px;
  color: rgba(255,255,255,.2);
  font-size: 15px;
  font-style: italic;
  background: #08080f;
}

/* ═══════════════════════════════════════════
   CTA
═══════════════════════════════════════════ */
.pf-cta-section {
  background: var(--dark);
  padding: 120px 72px;
  position: relative;
  overflow: hidden;
}
.pf-cta-orbs { position: absolute; inset: 0; pointer-events: none; }
.pf-cta-orb { position: absolute; border-radius: 50%; }
.pf-cta-orb-1 {
  width: 500px; height: 500px;
  top: -180px; left: -100px;
  background: radial-gradient(circle, rgba(201,168,232,.13), transparent 65%);
  animation: meshPulse 12s ease-in-out infinite;
}
.pf-cta-orb-2 {
  width: 400px; height: 400px;
  bottom: -120px; right: -80px;
  background: radial-gradient(circle, rgba(106,191,173,.09), transparent 65%);
  animation: meshPulse 9s ease-in-out infinite;
  animation-delay: -4s;
}
.pf-cta-inner {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.pf-cta-eyebrow {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(201,168,232,.5);
  margin-bottom: 14px;
}
.pf-cta-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 7vw, 96px);
  line-height: .88;
  color: var(--bg);
  margin: 0;
}
.pf-cta-title em {
  font-style: normal;
  color: var(--pu-a);
}
.pf-cta-right p {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(244,242,247,.4);
  margin-bottom: 32px;
  max-width: 380px;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1200px) {
  .pf-spotlight-title { font-size: clamp(44px, 5.5vw, 72px); }
}

@media (max-width: 1024px) {
  .pf-masonry { grid-template-columns: repeat(2, 1fr); }
  .pf-item--spotlight { grid-column: span 2; }
  .pf-no-results { grid-column: span 2; }
  .pf-item--spotlight .pf-item-media { aspect-ratio: 16/7; }
  .pf-spotlight-info { grid-template-columns: 1fr; }
  .pf-spotlight-left {
    border-right: none;
    border-bottom: 1px solid rgba(201,168,232,.08);
    padding: 28px 32px;
  }
  .pf-spotlight-right { padding: 28px 32px; }
  .pf-spotlight-title { font-size: clamp(40px, 6vw, 64px); }
  .pf-cta-inner { grid-template-columns: 1fr; gap: 36px; }
  .pf-cta-section { padding: 80px 36px; }
}

@media (max-width: 768px) {
  /* Hero */
  .pf-folio-text-overlay { font-size: clamp(80px, 24vw, 160px); }
  .pf-corner { display: none; }
  .pf-accent-1,.pf-accent-2,.pf-accent-3 { display: none; }
  .pf-hero-inner { padding-top: 52vh; padding-bottom: 100px; }
  .pf-hl-1 { font-size: 10px; letter-spacing: .18em; }
  .pf-hl-3 { font-size: clamp(20px, 6vw, 36px); }
  .pf-hero-sub { font-size: 13px; }
  /* Grid */
  .pf-masonry { grid-template-columns: 1fr; }
  .pf-item--spotlight { grid-column: span 1; }
  .pf-no-results { grid-column: span 1; }
  .pf-item--spotlight .pf-item-media { aspect-ratio: 16/9; }
  .pf-spotlight-title { font-size: clamp(36px, 10vw, 56px); }
  .pf-spotlight-left,.pf-spotlight-right { padding: 22px 20px; }
  .pf-spotlight-tagline { font-size: 14px; }
  .pf-spotlight-tag { top: 14px; left: 14px; font-size: 8px; padding: 6px 14px; }
  .pf-filter-btn { padding: 14px 18px; font-size: 9px; }
  .pf-cta-section { padding: 60px 20px; }
  .pf-cta-title { font-size: clamp(44px, 12vw, 72px); }
}

@media (max-width: 480px) {
  .pf-hero-inner { padding-top: 46vh; padding-bottom: 80px; }
  .pf-hero-actions { flex-direction: column; align-items: center; }
  .pf-hero-actions a { width: 100%; max-width: 280px; justify-content: center; }
  .pf-hs-pill { padding: 8px 12px; }
  .pf-hs-pill strong { font-size: 11px; }
  .pf-item-info { padding: 16px 16px 20px; }
  .pf-item-title { font-size: 20px; }
  .pf-cta-title { font-size: clamp(38px, 13vw, 64px); }
}

/* ═══════════════════════════════════════════
   CASE STUDY — single-portfolio.php
═══════════════════════════════════════════ */
:root { --cs-accent: #c9a8e8; }

.case-study-page { background: var(--bg); }

/* ── Hero ── */
.cs-hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  overflow: hidden;
}
.cs-hero-media { position: absolute; inset: 0; z-index: 0; }
.cs-hero-img,
.cs-hero-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-hero-iframe { width: 100%; height: 100%; border: none; display: block; }
.cs-hero-placeholder { width: 100%; height: 100%; }
.cs-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(10,10,20,.92) 0%, rgba(10,10,20,.55) 45%, rgba(10,10,20,.2) 100%),
    linear-gradient(to right, rgba(201,168,232,.08), transparent);
}
.cs-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 72px;
  max-width: 960px;
}

.cs-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  transition: color .25s, gap .25s;
  text-decoration: none;
}
.cs-back-btn:hover { color: var(--pu-a); gap: 12px; }

.cs-hero-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.cs-meta-tag {
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(201,168,232,.15);
  border: 1px solid rgba(201,168,232,.3);
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pu-a);
}
.cs-meta-year {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,.3);
  letter-spacing: .1em;
}

.cs-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(56px, 8vw, 120px);
  line-height: .88;
  letter-spacing: -.02em;
  color: #fff;
  margin-bottom: 18px;
}
.cs-hero-tagline {
  font-size: 22px;
  line-height: 1.6;
  color: rgba(255,255,255,.68);
  max-width: 580px;
  margin-bottom: 24px;
}
.cs-hero-result {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 100px;
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .06em;
  box-shadow: 0 10px 40px rgba(0,0,0,.3);
}

/* Stats bar */
.cs-hero-stats-bar {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 16px;
  padding: 28px 72px;
  background: rgba(13,13,26,.6);
  backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255,255,255,.06);
  flex-wrap: wrap;
}
.cs-stat-pill {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 120px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(201,168,232,.08);
  border: 1px solid rgba(201,168,232,.14);
}
.cs-stat-pill strong {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  color: var(--pu-a);
  line-height: 1;
}
.cs-stat-pill span {
  font-size: 11px;
  color: rgba(255,255,255,.4);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ── Overview ── */
.cs-overview { background: var(--bg); padding: 100px 72px; }
.cs-overview-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 80px;
  align-items: start;
}
.cs-detail-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(13,13,26,.07);
}
.cs-detail-block:first-child { border-top: 1px solid rgba(13,13,26,.07); }
.cs-detail-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(13,13,26,.35);
}
.cs-detail-value { font-size: 16px; color: var(--dark); line-height: 1.5; }
.cs-live-link {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--pu-b);
  transition: color .25s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.cs-live-link:hover { color: var(--teal); }

.cs-narrative-block {
  padding: 36px 0;
  border-bottom: 1px solid rgba(13,13,26,.06);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s var(--e), transform .7s var(--e);
}
.cs-narrative-block:first-child { border-top: 1px solid rgba(13,13,26,.06); }
.cs-narrative-block.cs-in { opacity: 1; transform: translateY(0); }

.cs-narrative-label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: .04em;
  color: var(--dark);
  margin-bottom: 16px;
}
.cs-narrative-num {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--pu-a);
  font-weight: 400;
}
.cs-narrative-block p {
  font-size: 18px;
  line-height: 1.85;
  color: rgba(13,13,26,.62);
  max-width: 680px;
}

/* ── Results ── */
.cs-results-section {
  background: var(--dark);
  padding: 120px 72px;
  position: relative;
  overflow: hidden;
}
.cs-results-section::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  top: -200px; right: -100px;
  background: radial-gradient(circle, rgba(201,168,232,.12), transparent 65%);
  pointer-events: none;
}
.cs-results-inner { max-width: 1200px; margin: 0 auto; }
.cs-section-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(201,168,232,.5);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.cs-section-eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--pu-a);
  opacity: .5;
}
.cs-section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 7vw, 96px);
  line-height: .88;
  letter-spacing: -.02em;
  color: var(--bg);
  margin-bottom: 60px;
}
.cs-section-title em { font-style: normal; color: var(--pu-a); }
.cs-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.cs-stat-card {
  padding: 40px 32px;
  border-radius: 24px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(201,168,232,.12);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px) scale(.95);
  transition: opacity .7s var(--e), transform .7s var(--e), background .3s;
}
.cs-stat-card.cs-in { opacity: 1; transform: translateY(0) scale(1); }
.cs-stat-card:hover { background: rgba(201,168,232,.08); }
.cs-stat-value {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 6vw, 80px);
  line-height: .9;
  color: var(--bg);
  margin-bottom: 10px;
  letter-spacing: -.02em;
}
.cs-stat-label {
  display: block;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(244,242,247,.4);
  font-family: 'Space Mono', monospace;
}
.cs-stat-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  opacity: .6;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--e);
}
.cs-stat-card.cs-in .cs-stat-line { transform: scaleX(1); }

/* ── Body Sections ── */
.cs-body-sections { background: var(--bg2); padding: 100px 72px; }
.cs-body-inner { max-width: 1000px; margin: 0 auto; }
.cs-body-block {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 48px 0;
  border-bottom: 1px solid rgba(13,13,26,.07);
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity .7s var(--e), transform .7s var(--e);
}
.cs-body-block.cs-in { opacity: 1; transform: translateX(0); }
.cs-body-num {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--pu-a);
  padding-top: 8px;
}
.cs-body-content h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  letter-spacing: .04em;
  color: var(--dark);
  margin-bottom: 16px;
}
.cs-body-content p {
  font-size: 18px;
  line-height: 1.85;
  color: rgba(13,13,26,.6);
}
.cs-section-image {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 20px;
}
.cs-section-image img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 480px;
}

/* ── Gallery ── */
.cs-gallery-section { padding: 80px 0; background: var(--bg); overflow: hidden; }
.cs-gallery-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(13,13,26,.35);
  text-align: center;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.cs-gallery-eyebrow::before,
.cs-gallery-eyebrow::after {
  content: '';
  width: 60px; height: 1px;
  background: rgba(13,13,26,.15);
}
.cs-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 0 48px;
  max-width: 1400px;
  margin: 0 auto;
}
.cs-gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: zoom-in;
  background: var(--dark2);
  opacity: 0;
  transform: scale(.95);
  transition: opacity .6s var(--e), transform .6s var(--e), box-shadow .3s;
}
.cs-gallery-item.cs-in { opacity: 1; transform: scale(1); }
.cs-gallery-item:hover {
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
  transform: scale(1.02) !important;
  z-index: 2;
}
.cs-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--e);
  display: block;
}
.cs-gallery-item:hover img { transform: scale(1.08); }
.cs-gallery-item-overlay {
  position: absolute; inset: 0;
  background: rgba(13,13,26,.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .3s;
}
.cs-gallery-item:hover .cs-gallery-item-overlay { opacity: 1; }

/* ── Reel ── */
.cs-reel-section { background: var(--dark); padding: 100px 72px; }
.cs-reel-inner { max-width: 1000px; margin: 0 auto; }
.cs-reel-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #000;
  margin-top: 40px;
  box-shadow: 0 40px 100px rgba(0,0,0,.4);
}
.cs-reel-wrap iframe,
.cs-reel-wrap video {
  width: 100%; height: 100%;
  display: block; border: none; object-fit: cover;
}

/* ── External Videos ── */
.cs-ext-videos { padding: 60px 72px; background: var(--bg2); }
.cs-ext-videos-inner { max-width: 1200px; margin: 0 auto; }
.cs-ext-vids-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.cs-ext-vid-card {
  border-radius: 18px;
  overflow: hidden;
  background: var(--dark);
  position: relative;
  aspect-ratio: 16/9;
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
}
.cs-ext-vid-card iframe,
.cs-ext-vid-card video {
  width: 100%; height: 100%;
  display: block; border: none; object-fit: cover;
}
.cs-ext-vid-label {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  font-family: 'Space Mono', monospace;
}

/* ── Live Site ── */
.cs-site-section { background: var(--bg2); padding: 100px 72px; }
.cs-site-inner { max-width: 1200px; margin: 0 auto; }
.cs-site-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 6vw, 80px);
  line-height: .9;
  color: var(--dark);
  margin: 16px 0 40px;
}
.cs-site-frame-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(13,13,26,.14);
  border: 1px solid rgba(13,13,26,.08);
}
.cs-browser-bar {
  background: linear-gradient(to right, #f0eef5, #eae7f2);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(13,13,26,.06);
}
.cs-browser-dots { display: flex; gap: 6px; flex-shrink: 0; }
.cs-browser-dots span { width: 12px; height: 12px; border-radius: 50%; }
.cs-browser-dots span:nth-child(1) { background: #ff5f57; }
.cs-browser-dots span:nth-child(2) { background: #fbbe2e; }
.cs-browser-dots span:nth-child(3) { background: #28c940; }
.cs-browser-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(13,13,26,.08);
  border-radius: 6px;
  padding: 6px 14px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: rgba(13,13,26,.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-browser-open {
  flex-shrink: 0;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--pu-b);
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(201,168,232,.1);
  border: 1px solid rgba(201,168,232,.2);
  transition: all .25s;
  text-decoration: none;
}
.cs-browser-open:hover { background: var(--pu-b); color: #fff; }
.cs-site-iframe-container { position: relative; height: 680px; overflow: hidden; }
.cs-site-iframe { width: 100%; height: 100%; border: none; display: block; }
.cs-iframe-overlay {
  position: absolute; inset: 0;
  background: transparent;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 32px;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.cs-site-iframe-container:hover .cs-iframe-overlay {
  opacity: 1;
  pointer-events: auto;
}
.cs-iframe-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  background: rgba(13,13,26,.85);
  backdrop-filter: blur(20px);
  color: #fff;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-family: 'Space Mono', monospace;
  transition: transform .25s var(--e), background .25s;
  text-decoration: none;
}
.cs-iframe-open-btn:hover { transform: translateY(-4px); background: var(--dark); }

/* ── Testimonial ── */
.cs-testimonial-section {
  background: var(--dark);
  padding: 120px 72px;
  position: relative;
  overflow: hidden;
}
.cs-testimonial-section::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201,168,232,.09), transparent 65%);
  pointer-events: none;
}
.cs-testimonial-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--e), transform .8s var(--e);
}
.cs-testimonial-inner.cs-in { opacity: 1; transform: translateY(0); }
.cs-quote-mark {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 160px;
  line-height: .7;
  color: rgba(201,168,232,.1);
  margin-bottom: 20px;
  user-select: none;
}
.cs-quote-text {
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.7;
  color: rgba(244,242,247,.82);
  font-style: italic;
  font-weight: 300;
  margin-bottom: 36px;
}
.cs-quote-author { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cs-quote-author strong {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  color: var(--bg);
  letter-spacing: .06em;
}
.cs-quote-author span {
  font-size: 12px;
  color: rgba(244,242,247,.35);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-family: 'Space Mono', monospace;
}

/* ── Navigation ── */
.cs-nav-section {
  background: var(--bg);
  padding: 60px 72px;
  border-top: 1px solid rgba(13,13,26,.06);
}
.cs-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
}
.cs-nav-btn {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 28px;
  border-radius: 16px;
  background: var(--bg2);
  border: 1px solid rgba(13,13,26,.07);
  transition: all .3s var(--e);
  text-decoration: none;
  opacity: 0;
  transform: translateX(-16px);
}
.cs-nav-btn.cs-in { opacity: 1; transform: translateX(0); }
.cs-nav-next { text-align: right; transform: translateX(16px); }
.cs-nav-next.cs-in { transform: translateX(0); }
.cs-nav-btn:hover { background: var(--dark); border-color: var(--dark); transform: translateY(-4px) !important; }
.cs-nav-dir {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(13,13,26,.35);
  transition: color .25s;
}
.cs-nav-btn:hover .cs-nav-dir { color: rgba(244,242,247,.45); }
.cs-nav-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: .04em;
  color: var(--dark);
  line-height: 1;
  transition: color .25s;
}
.cs-nav-btn:hover .cs-nav-name { color: var(--bg); }
.cs-nav-all {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border-radius: 100px;
  border: 1px solid rgba(13,13,26,.12);
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(13,13,26,.45);
  transition: all .25s;
  white-space: nowrap;
  text-decoration: none;
}
.cs-nav-all:hover { background: var(--dark); color: var(--bg); border-color: var(--dark); }

/* ── Lightbox ── */
.cs-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(7,7,17,.95);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--e);
}
.cs-lightbox.cs-lb-open { opacity: 1; pointer-events: auto; }
.cs-lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-lightbox-content img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 40px 100px rgba(0,0,0,.6);
  transform: scale(.92);
  transition: transform .45s var(--e);
}
.cs-lightbox.cs-lb-open .cs-lightbox-content img { transform: scale(1); }
.cs-lightbox-close {
  position: absolute;
  top: 28px; right: 32px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .25s;
}
.cs-lightbox-close:hover { background: rgba(255,255,255,.15); color: #fff; }
.cs-lightbox-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  font-size: 28px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .25s;
}
.cs-lightbox-arrow:hover { background: rgba(201,168,232,.2); color: var(--pu-a); }
.cs-lb-prev { left: 24px; }
.cs-lb-next { right: 24px; }

/* ═══════════════════════════════════════════
   CASE STUDY RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .cs-overview-inner { grid-template-columns: 1fr; gap: 40px; }
  .cs-hero-content { padding: 0 36px; }
  .cs-hero-stats-bar { padding: 20px 36px; }
  .cs-results-section,
  .cs-overview,
  .cs-body-sections,
  .cs-reel-section,
  .cs-site-section,
  .cs-testimonial-section,
  .cs-ext-videos,
  .cs-nav-section { padding-left: 36px; padding-right: 36px; }
  .cs-nav-inner { grid-template-columns: 1fr 1fr; }
  .cs-nav-all { display: none; }
  .cs-site-iframe-container { height: 500px; }
}

@media (max-width: 768px) {
  .cs-hero { min-height: 70vh; }
  .cs-hero-content { padding: 0 20px; }
  .cs-hero-title { font-size: clamp(44px, 11vw, 80px); }
  .cs-hero-tagline { font-size: 16px; }
  .cs-hero-stats-bar { padding: 16px 20px; flex-wrap: wrap; gap: 8px; }
  .cs-stat-pill { min-width: 80px; flex: 1 1 80px; }
  .cs-stat-pill strong { font-size: 22px; }
  .cs-overview,
  .cs-body-sections,
  .cs-results-section,
  .cs-reel-section,
  .cs-site-section,
  .cs-testimonial-section,
  .cs-ext-videos,
  .cs-nav-section { padding: 60px 20px; }
  .cs-gallery-grid { padding: 0 20px; grid-template-columns: 1fr 1fr; gap: 10px; }
  .cs-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cs-stat-card { padding: 28px 20px; }
  .cs-body-block { grid-template-columns: 1fr; gap: 8px; }
  .cs-body-num { padding-top: 0; }
  .cs-site-iframe-container { height: 360px; }
  .cs-quote-text { font-size: clamp(18px, 4vw, 26px); }
  .cs-nav-inner { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cs-nav-btn { padding: 18px 16px; }
  .cs-nav-name { font-size: 16px; }
}

@media (max-width: 480px) {
  .cs-hero-title { font-size: clamp(38px, 12vw, 64px); }
  .cs-gallery-grid { grid-template-columns: 1fr; gap: 8px; }
  .cs-stats-grid { grid-template-columns: 1fr 1fr; }
  .cs-lb-prev { left: 8px; }
  .cs-lb-next { right: 8px; }
  .cs-lightbox-arrow { width: 44px; height: 44px; font-size: 22px; }
}