/* 
─────────────────────────────────────────────────────────────────────────────
1. |HERO 
─────────────────────────────────────────────────────────────────────────────
*/

.portfolio-hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 12vw, 120px) clamp(16px, 6vw, 80px) clamp(80px, 10vw, 100px);
  background: var(--c-bg);
  isolation: isolate;
}

/* Bottom hairline */
.portfolio-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(130, 53, 48, 0.15) 50%, transparent 100%);
}

/* ── Orbs ── */
.portfolio-hero__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  top: 50%;
  left: 50%;
}

.portfolio-hero__orb--primary {
  width: clamp(320px, 80vw, 1200px);
  height: clamp(320px, 80vw, 1200px);
  background: radial-gradient(circle, rgba(130, 53, 48, 0.18) 0%, rgba(130, 53, 48, 0.06) 40%, transparent 80%);
  transform: translate(-50%, -50%);
  animation: portfolioOrbPrimary 10s ease-in-out infinite alternate;
}

.portfolio-hero__orb--secondary {
  width: clamp(200px, 50vw, 700px);
  height: clamp(200px, 50vw, 700px);
  background: radial-gradient(circle, rgba(130, 53, 48, 0.22) 0%, rgba(130, 53, 48, 0.1) 30%, transparent 60%);
  transform: translate(-50%, -50%);
  animation: portfolioOrbSecondary 8s ease-in-out infinite alternate;
}

@keyframes portfolioOrbPrimary {
  from {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  to {
    transform: translate(-50%, -50%) scale(1.18);
    opacity: 0.8;
  }
}

@keyframes portfolioOrbSecondary {
  from {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.9;
  }
  to {
    transform: translate(-50%, -50%) scale(1.25);
    opacity: 0.6;
  }
}

/* ── Headline ── */
.portfolio-hero__headline {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 clamp(0px, 3vw, 24px);
}

.portfolio-hero__tw-line {
  overflow: visible;
}

.portfolio-hero__tw-inner {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.1em 0.22em;
  color: var(--c-text);
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 11vw, 7rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.portfolio-hero__tw-prefix,
.portfolio-hero__tw-suffix {
  display: inline;
  color: var(--c-text);
  white-space: pre;
}

.portfolio-hero__tw-word-wrap {
  position: relative;
  display: inline-block;
}

.portfolio-hero__tw-word {
  display: inline;
  color: var(--c-brand);
  white-space: pre;
  position: relative;
  transition:
    color 0.3s ease,
    opacity 0.3s ease;
}

/* ── Wrong Word ── */
.portfolio-hero__tw-word.is-wrong {
  color: var(--c-text-2);
  opacity: 0.5;
}

.portfolio-hero__tw-word.is-wrong::after {
  content: '';
  position: absolute;
  left: -2%;
  right: -2%;
  top: 50%;
  height: 0.07em;
  min-height: 3px;
  background: #4a4a4a;
  transform: translateY(-50%);
  border-radius: 2px;
  opacity: 0.7;
}

/* ── Underline SVG ── */
.portfolio-hero__underline {
  position: absolute;
  left: 0;
  bottom: clamp(-0.22em, -0.08em + 0.5vw, -0.06em);
  height: 20px;
  pointer-events: none;
  overflow: visible;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.portfolio-hero__underline.is-drawn {
  opacity: 1;
}

.portfolio-hero__underline-path {
  fill: none;
  stroke: var(--c-brand);
  stroke-width: clamp(2.5px, 0.35vw, 6px);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portfolio-hero__underline.is-drawn .portfolio-hero__underline-path {
  animation: portfolioDrawUnderline 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes portfolioDrawUnderline {
  from {
    stroke-dashoffset: var(--underline-length, 300);
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* ── Cursor ── */
.portfolio-hero__cursor {
  display: inline-block;
  width: clamp(3px, 0.4vw, 5px);
  height: 0.78em;
  background: var(--c-brand);
  border-radius: 2px;
  margin-left: 6px;
  vertical-align: baseline;
  position: relative;
  top: 0.08em;
  flex-shrink: 0;
  animation: portfolioCursorBlink 1.05s step-end infinite;
}

.portfolio-hero__cursor.locked {
  animation: none;
  opacity: 1;
}

@keyframes portfolioCursorBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* ── Scroll Indicator ── */
.portfolio-hero__scroll {
  position: absolute;
  bottom: clamp(20px, 5vw, 56px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 3;
  cursor: pointer;
  opacity: 0;
  animation: portfolioScrollFadeUp 0.6s var(--ease) 3.2s both;
  transition: opacity 0.4s ease;
}

.portfolio-hero__scroll.is-hidden {
  opacity: 0 !important;
  pointer-events: none;
}

.portfolio-hero__scroll-label {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(0.6rem, 1vw, 0.7rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-text-2);
}

.portfolio-hero__scroll-track {
  width: 1.5px;
  height: clamp(32px, 5vw, 56px);
  background: rgba(130, 53, 48, 0.1);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.portfolio-hero__scroll-thumb {
  position: absolute;
  top: -40%;
  left: 0;
  right: 0;
  height: 40%;
  background: var(--c-brand);
  border-radius: 2px;
  animation: portfolioScrollThumb 1.9s ease-in-out infinite;
}

@keyframes portfolioScrollThumb {
  0% {
    top: -40%;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    top: 140%;
    opacity: 0;
  }
}

@keyframes portfolioScrollFadeUp {
  from {
    opacity: 0;
    transform: translate(-50%, 14px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ── RTL ── */
[dir='rtl'] .portfolio-hero__tw-inner {
  letter-spacing: 0;
  line-height: 1.3;
  direction: rtl;
}

[dir='rtl'] .portfolio-hero__underline {
  bottom: clamp(-0.38em, -0.2em + 0.5vw, -0.22em);
}

[dir='rtl'] .portfolio-hero__cursor {
  margin-left: 0;
  margin-right: 6px;
}

[dir='rtl'] .portfolio-hero__tw-word.is-wrong::after {
  height: 0.08em;
  min-height: 4px;
}

/* ── MOBILE ── */
@media (max-width: 767px) {
  .portfolio-hero__tw-inner {
    line-height: 1.5;
  }

  [dir='rtl'] .portfolio-hero__tw-inner {
    /* font-size: clamp(1.75rem, 7vw, 3rem);  */
    line-height: 1.7;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
  }

  [dir='rtl'] .portfolio-hero__tw-prefix {
    width: 100%;
    text-align: center;
    white-space: normal;
  }

  [dir='rtl'] .portfolio-hero__tw-suffix {
    white-space: normal;
  }

  .portfolio-hero__underline {
    bottom: -0.2em;
  }
  [dir='rtl'] .portfolio-hero__underline {
    bottom: -0.45em;
  }
}

/* 
─────────────────────────────────────────────────────────────────────────────
2. |CARD GALLERY
───────────────────────────────────────────────────────────────────────────── 
*/

.pf-stack-sec {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(80px, 12vh, 120px) clamp(20px, 5vw, 60px);
  background: var(--c-bg);
  position: relative;
  overflow: hidden;
}

.pf-stack-sec--alt {
  background: #fff;
}

.pf-stack-sec__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    'meta stage'
    'controls stage';
  gap: 0 clamp(40px, 6vw, 80px);
  align-items: center;
}

/* ── Meta & Text ── */
.pf-stack-sec__meta {
  grid-area: meta;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: end;
  padding-bottom: 30px;
}

.pf-stack-sec__title {
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  color: var(--c-text);
  letter-spacing: -0.02em;
}

.pf-stack-sec__title span {
  color: var(--c-brand);
}

.pf-stack-sec__desc {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  color: var(--c-text-2);
  line-height: 1.6;
  max-width: 480px;
}

/* ── Controls ── */
.pf-stack-sec__controls {
  grid-area: controls;
  align-self: start;
  display: flex;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(130, 53, 48, 0.15);
  max-width: 300px;
}

.pf-stack-sec__nav {
  display: flex;
  gap: 16px;
}

.pf-stack-sec__btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(130, 53, 48, 0.2);
  background: var(--c-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-brand);
  font-size: 1.1rem;
  transition: all 0.25s ease;
}

.pf-stack-sec__btn:hover {
  background: var(--c-brand);
  border-color: var(--c-brand);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(130, 53, 48, 0.2);
}

/* ── The Deck ── */
.pf-stack-sec__stage {
  grid-area: stage;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.pf-deck {
  position: relative;
  width: clamp(260px, 35vw, 420px);
  aspect-ratio: 4/5;
  cursor: grab;
  outline: none;
}

.pf-deck:active {
  cursor: grabbing;
}

.pf-card {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--c-bg-alt);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s ease;
  will-change: transform, opacity;
  transform-origin: center bottom;
}

.pf-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

/* ── LTR Depth Levels (Stacks to the RIGHT/Outside) ── */
.pf-card[data-depth='0'] {
  transform: translate(0, 0) rotate(0deg) scale(1);
  z-index: 5;
  opacity: 1;
}
.pf-card[data-depth='1'] {
  transform: translate(12px, 8px) rotate(3deg) scale(0.96);
  z-index: 4;
  opacity: 1;
}
.pf-card[data-depth='2'] {
  transform: translate(24px, 16px) rotate(6deg) scale(0.92);
  z-index: 3;
  opacity: 0.8;
}
.pf-card[data-depth='3'] {
  transform: translate(36px, 24px) rotate(9deg) scale(0.88);
  z-index: 2;
  opacity: 0.5;
}
.pf-card[data-depth='4'] {
  transform: translate(44px, 30px) rotate(11deg) scale(0.84);
  z-index: 1;
  opacity: 0;
}

/* ── LTR Animations ── */
@keyframes pfExitNext {
  0% {
    transform: translate(0, 0) rotate(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(120%, -30px) rotate(15deg) scale(0.8);
    opacity: 0;
  }
}

@keyframes pfEnterPrev {
  0% {
    transform: translate(120%, -30px) rotate(15deg) scale(0.8);
    opacity: 0;
  }
  100% {
    transform: translate(0, 0) rotate(0) scale(1);
    opacity: 1;
  }
}

.pf-card.exit-next {
  animation: pfExitNext 0.4s cubic-bezier(0.55, 0, 1, 0.45) forwards !important;
  z-index: 10 !important;
}
.pf-card.enter-prev {
  animation: pfEnterPrev 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  z-index: 10 !important;
}

.pf-deck__hint {
  font-family: 'Cairo', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--c-text-2);
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── MOBILE: 100svh Fluid Layout ── */
@media (max-width: 900px) {
  .pf-stack-sec {
    padding: clamp(70px, 8vh, 100px) 20px clamp(30px, 5vh, 60px);
  }
  .pf-stack-sec__inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(16px, 3vh, 32px);
  }
  .pf-stack-sec__meta {
    text-align: center;
    align-items: center;
    padding-bottom: 0;
    gap: 10px;
  }
  .pf-stack-sec__title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }
  .pf-stack-sec__title br {
    display: none;
  }
  .pf-stack-sec__desc {
    font-size: 0.95rem;
    line-height: 1.4;
    max-width: 90%;
    margin: 0 auto;
  }
  .pf-stack-sec__controls {
    border-top: none;
    padding-top: 0;
    justify-content: center;
    margin: 0 auto;
  }
  .pf-deck {
    width: clamp(200px, 38vh, 320px);
  }
}

/* ── RTL Localization ── */
[dir='rtl'] .pf-stack-sec__btn i {
  transform: scaleX(-1); /* Flips the physical arrows */
}

/* Stacks to the LEFT/Outside */
[dir='rtl'] .pf-card[data-depth='1'] {
  transform: translate(-12px, 8px) rotate(-3deg) scale(0.96);
}
[dir='rtl'] .pf-card[data-depth='2'] {
  transform: translate(-24px, 16px) rotate(-6deg) scale(0.92);
}
[dir='rtl'] .pf-card[data-depth='3'] {
  transform: translate(-36px, 24px) rotate(-9deg) scale(0.88);
}
[dir='rtl'] .pf-card[data-depth='4'] {
  transform: translate(-44px, 30px) rotate(-11deg) scale(0.84);
}

@keyframes pfExitNextRTL {
  0% {
    transform: translate(0, 0) rotate(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-120%, -30px) rotate(-15deg) scale(0.8);
    opacity: 0;
  }
}

@keyframes pfEnterPrevRTL {
  0% {
    transform: translate(-120%, -30px) rotate(-15deg) scale(0.8);
    opacity: 0;
  }
  100% {
    transform: translate(0, 0) rotate(0) scale(1);
    opacity: 1;
  }
}

[dir='rtl'] .pf-card.exit-next {
  animation-name: pfExitNextRTL !important;
}
[dir='rtl'] .pf-card.enter-prev {
  animation-name: pfEnterPrevRTL !important;
}

/* 
─────────────────────────────────────────────────────────────────────────────
3. |VIDEO PRODUCTION SECTION
─────────────────────────────────────────────────────────────────────────────
*/

.pf-video-sec {
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 80px);
  background: var(--c-bg-alt);
  position: relative;
  overflow-x: hidden;
}

/* Top hairline that matches the GD section border style */
.pf-video-sec::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(130, 53, 48, 0.1), transparent);
  pointer-events: none;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.pf-video-header {
  padding: 0 clamp(20px, 5vw, 60px);
  margin-bottom: clamp(28px, 4vw, 48px);
}

/* ── Slider wrapper ──────────────────────────────────────────────────────── */
.pf-video-slider-wrap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  padding-bottom: 72px; /* room for the nav pill */
}

/* ── Swiper ──────────────────────────────────────────────────────────────── */
.pf-video-swiper {
  overflow: visible !important;
}

/* ── Slide sizing ────────────────────────────────────────────────────────── */
.pf-video-swiper .swiper-slide {
  width: clamp(220px, 24vw, 270px);
  transition:
    opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.pf-video-swiper .swiper-slide-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.pf-video-swiper .swiper-slide-prev,
.pf-video-swiper .swiper-slide-next {
  opacity: 0.55;
  transform: scale(0.91);
  z-index: 1;
}

.pf-video-swiper .swiper-slide:not(.swiper-slide-active):not(.swiper-slide-prev):not(.swiper-slide-next) {
  opacity: 0;
  pointer-events: none;
}

/* ── Card ────────────────────────────────────────────────────────────────── */
.pf-video-card {
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  background: var(--c-bg);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 6px 20px rgba(130, 53, 48, 0.05);
  transition:
    box-shadow 0.4s ease,
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pf-video-swiper .swiper-slide-active .pf-video-card {
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.05),
    0 20px 56px rgba(130, 53, 48, 0.13),
    0 0 0 1.5px rgba(130, 53, 48, 0.15);
}

/* ── Video wrap ──────────────────────────────────────────────────────────── */
.pf-video-wrap {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: linear-gradient(160deg, #f0e9e8 0%, #ddd0ce 100%);
}

.pf-video-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: transparent;
  transition: transform 0.5s ease;
  will-change: transform;
  pointer-events: none;
}

@media (hover: hover) {
  .pf-video-swiper .swiper-slide-active .pf-video-card:hover .pf-video-el {
    transform: scale(1.03);
  }
}

/* ── Bottom gradient overlay ─────────────────────────────────────────────── */
.pf-video-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 80px 16px 16px;
  background: linear-gradient(to top, rgba(6, 1, 1, 0.88) 0%, rgba(6, 1, 1, 0.48) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 2;
  pointer-events: none;
}

/* ── Play / Pause button ─────────────────────────────────────────────────── */
.pf-video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 60px;
  height: 60px;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);

  border: none;
  cursor: pointer;
  color: var(--c-brand);
  font-size: 1.05rem;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 3;
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.2s ease,
    opacity 0.3s ease;
  will-change: transform;
}

.pf-video-play-btn i {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  translate: 2px 0;
}

.pf-video-play-btn.is-playing i {
  translate: 0 0;
}

.pf-video-play-btn::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  animation: pfVideoRipple 2.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pfVideoRipple {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.22);
    opacity: 0;
  }
}

@media (hover: hover) {
  .pf-video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #fff;
  }
}

.pf-video-play-btn.is-playing {
  background: rgba(10, 3, 3, 0.55);
  color: #fff;
}

.pf-video-play-btn.is-playing i::before {
  content: '\f04c';
}

.pf-video-wrap:not(:hover) .pf-video-play-btn.is-playing {
  opacity: 0;
  pointer-events: none;
}

/* ── Mute button ─────────────────────────────────────────────────────────── */
.pf-video-mute-btn {
  position: absolute;
  bottom: 52px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: none;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #fff;
  font-size: 0.75rem;
  z-index: 4;

  opacity: 0;
  transform: scale(0.7);
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.2s ease;
}

[dir='rtl'] .pf-video-mute-btn {
  right: auto;
  left: 12px;
}

.pf-video-mute-btn.is-visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

@media (hover: hover) {
  .pf-video-mute-btn:hover {
    background: rgba(0, 0, 0, 0.72);
  }
}

/* ── Progress bar ────────────────────────────────────────────────────────── */
.pf-video-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--c-brand) 0%, var(--c-brand-light) 100%);
  z-index: 5;
  pointer-events: none;
  border-radius: 0 2px 2px 0;
}

/* ── Nav pill ────────────────────────────────────────────────────────────── */
.pf-video-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  width: fit-content;
  margin: 0 auto;

  padding: 8px 18px;
  background: var(--c-bg-alt);
  border-radius: 50px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 2px 12px rgba(0, 0, 0, 0.07),
    0 0 0 1px rgba(130, 53, 48, 0.07);
  white-space: nowrap;
}

.pf-video-nav-btn {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(130, 53, 48, 0.2);
  background: transparent;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--c-brand);
  font-size: 0.75rem;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.pf-video-nav-btn:hover {
  background: var(--c-brand);
  border-color: var(--c-brand);
  color: #fff;
  transform: scale(1.08);
}

.pf-video-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pf-video-nav-btn:disabled:hover {
  background: transparent;
  border-color: rgba(130, 53, 48, 0.2);
  color: var(--c-brand);
  transform: none;
}

[dir='rtl'] .pf-video-prev i::before {
  content: '\f054';
}
[dir='rtl'] .pf-video-next i::before {
  content: '\f053';
}

/* ── Pagination (inside the pill) ────────────────────────────────────────── */
.pf-video-pagination {
  display: flex !important;
  align-items: center;
  gap: 6px;
  position: static !important;
  bottom: auto !important;
  width: auto !important;
}

.pf-video-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(130, 53, 48, 0.2);
  border-radius: 50%;
  opacity: 1;
  cursor: pointer;
  margin: 0 !important;
  transition:
    background 0.25s ease,
    width 0.25s ease,
    border-radius 0.25s ease;
}

.pf-video-pagination .swiper-pagination-bullet-active {
  background: var(--c-brand);
  width: 22px;
  border-radius: 4px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .pf-video-swiper .swiper-slide {
    width: clamp(200px, 38vw, 250px);
  }
}

@media (max-width: 600px) {
  .pf-video-sec {
    padding: clamp(40px, 7vw, 64px) 0 clamp(36px, 5vw, 56px);
  }

  .pf-video-slider-wrap {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 64px;
  }

  .pf-video-swiper .swiper-slide {
    width: clamp(180px, 58vw, 230px);
  }

  .pf-video-play-btn {
    width: 50px;
    height: 50px;
    font-size: 0.9rem;
  }
}

/* 
─────────────────────────────────────────────────────────────────────────────
4. |ADS RESULTS SECTION
─────────────────────────────────────────────────────────────────────────────
*/

/* ── Section shell ───────────────────────────────────────────────────────── */
.pf-ads-sec {
  background: var(--c-bg-alt); /* matches other alt sections */
  padding: clamp(32px, 4vh, 52px) 0 clamp(28px, 4vh, 48px);
  position: relative;
  overflow-x: hidden;
  isolation: isolate;
}

/* very subtle brand tint wash — keeps it soft, not stark white */
.pf-ads-sec::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(130, 53, 48, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.pf-ads-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
  position: relative;
  z-index: 1;
}

/* ── Header — very tight, single line feel ───────────────────────────────── */
.pf-ads-header {
  text-align: center;
  margin-bottom: clamp(16px, 2.5vh, 28px);
}

.pf-ads-title {
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--c-text);
  margin: 0 0 8px;
}

.pf-ads-title span {
  color: var(--c-brand);
}

.pf-ads-subtitle {
  font-family: 'Tajawal', sans-serif;
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  color: var(--c-text-2);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 460px;
}

/* ── Aggregate bar ───────────────────────────────────────────────────────── */
.pf-ads-aggregate {
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(130, 53, 48, 0.12);
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
  padding: clamp(14px, 2vh, 22px) clamp(16px, 3vw, 40px);
  margin-bottom: clamp(16px, 2.5vh, 28px);
}

.pf-ads-agg-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 0 clamp(10px, 1.5vw, 28px);
}

.pf-ads-agg-divider {
  width: 1px;
  background: rgba(130, 53, 48, 0.12);
  align-self: stretch;
  flex-shrink: 0;
}

.pf-ads-agg-number {
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  font-size: clamp(1.3rem, 2.8vw, 2.1rem);
  color: var(--c-brand);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.pf-ads-agg-label {
  font-family: 'Tajawal', sans-serif;
  font-size: clamp(0.62rem, 0.85vw, 0.75rem);
  color: var(--c-text-2);
  text-align: center;
  line-height: 1.4;
}

/* ── Slider wrap ─────────────────────────────────────────────────────────── */
.pf-ads-slider-wrap {
  position: relative;
  padding-bottom: 52px;
}

/* ── Swiper ──────────────────────────────────────────────────────────────── */
.pf-ads-swiper {
  overflow: visible !important;
}

.pf-ads-swiper .swiper-slide {
  width: clamp(240px, 28vw, 380px);
  transition:
    opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.pf-ads-swiper .swiper-slide-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}
.pf-ads-swiper .swiper-slide-prev,
.pf-ads-swiper .swiper-slide-next {
  opacity: 0.38;
  transform: scale(0.9);
  z-index: 1;
}
.pf-ads-swiper .swiper-slide:not(.swiper-slide-active):not(.swiper-slide-prev):not(.swiper-slide-next) {
  opacity: 0;
  pointer-events: none;
}

/* ── Card — purely the mockup frame, no text content ────────────────────── */
.pf-ads-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(130, 53, 48, 0.1);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.pf-ads-swiper .swiper-slide-active .pf-ads-card {
  border-color: rgba(130, 53, 48, 0.35);
  box-shadow:
    0 0 0 1px rgba(130, 53, 48, 0.12),
    0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ── Mockup chrome bar ───────────────────────────────────────────────────── */
.pf-ads-mockup__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: #f5f5f5;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pf-ads-mockup__dots {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.pf-ads-mockup__dots span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.pf-ads-mockup__dots span:nth-child(1) {
  background: #ff5f57;
}
.pf-ads-mockup__dots span:nth-child(2) {
  background: #ffbd2e;
}
.pf-ads-mockup__dots span:nth-child(3) {
  background: #28c840;
}

.pf-ads-mockup__platform {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 auto;
  font-family: 'Cairo', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #888;
}

.pf-ads-mockup__platform svg {
  color: #1877f2;
  flex-shrink: 0;
}

/* ── Screenshot image ────────────────────────────────────────────────────── */
.pf-ads-mockup__screen {
  padding: 8px 10px 10px;
}

.pf-ads-mockup__screen img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  outline: 1px solid rgba(0, 0, 0, 0.06);
}

/* ── Nav pill ────────────────────────────────────────────────────────────── */
.pf-ads-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: fit-content;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 16px;
  background: #fff;
  border: 1px solid rgba(130, 53, 48, 0.15);
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.pf-ads-nav-btn {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(130, 53, 48, 0.25);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-brand);
  font-size: 0.7rem;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s,
    transform 0.2s;
}

.pf-ads-nav-btn:hover {
  background: var(--c-brand);
  border-color: var(--c-brand);
  color: #fff;
  transform: scale(1.08);
}

/* ── Pagination ──────────────────────────────────────────────────────────── */
.pf-ads-pagination {
  display: flex !important;
  align-items: center;
  gap: 5px;
  position: static !important;
  bottom: auto !important;
  width: auto !important;
}

.pf-ads-pagination .swiper-pagination-bullet {
  width: 7px;
  height: 7px;
  background: rgba(130, 53, 48, 0.25);
  border-radius: 50%;
  opacity: 1;
  cursor: pointer;
  margin: 0 !important;
  transition:
    background 0.25s,
    width 0.25s,
    border-radius 0.25s;
}

.pf-ads-pagination .swiper-pagination-bullet-active {
  background: var(--c-brand);
  width: 20px;
  border-radius: 4px;
}

/* ── RTL ─────────────────────────────────────────────────────────────────── */
[dir='rtl'] .pf-ads-mockup__platform {
  flex-direction: row-reverse;
}
[dir='rtl'] .pf-ads-title {
  letter-spacing: 0;
}
[dir='rtl'] .pf-ads-prev i::before {
  content: '\f054';
}
[dir='rtl'] .pf-ads-next i::before {
  content: '\f053';
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .pf-ads-swiper .swiper-slide {
    width: clamp(240px, 65vw, 340px);
  }
}

@media (max-width: 480px) {
  /* Aggregate stacks vertically on narrow screens */
  .pf-ads-aggregate {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
  }

  .pf-ads-agg-divider {
    width: 40%;
    height: 1px;
    align-self: auto;
  }

  .pf-ads-swiper .swiper-slide {
    width: clamp(240px, 82vw, 320px);
  }
}

/* 
─────────────────────────────────────────────────────────────────────────────
5. |CTA 
─────────────────────────────────────────────────────────────────────────────
*/

.cta-section {
  background: #fff;
}
