/* ===================================================================
   Portfolio Boilerplate — Shared Layout CSS
   ===================================================================
   Layout-only classes with `pf-` prefix. No colours, no fonts, no hero.
   Each portfolio defines its own hero + custom styles, then links this
   file for consistent section structure.

   CSS Variable Contract — each portfolio MUST define:
   --pf-accent        Accent colour for borders, glows, highlights
   --pf-accent-rgb    Same colour as R, G, B triplet for rgba()
   --pf-bg            Body / section background colour

   Theme tokens (optional overrides — sensible defaults below):
   --pf-heading       Heading / white text colour  (default: #fff)
   --pf-text          Body text colour             (default: white @ 70%)
   --pf-text-bright   Bright text / pill values    (default: white @ 85%)
   --pf-text-muted    Captions, secondary text     (default: white @ 50%)
   --pf-text-dim      Labels, tertiary text        (default: white @ 40%)
   --pf-surface       Card / cell backgrounds      (default: #111)
   --pf-border        Subtle borders               (default: white @ 8%)
   ================================================================= */

:root {
  /* Required — set per portfolio in the <style> block */
  --pf-accent: #9191F2;
  --pf-accent-rgb: 145, 145, 242;
  --pf-bg: #0a0a0a;

  /* Theme tokens — universal defaults, override per portfolio if needed */
  --pf-heading: #fff;
  --pf-text: rgba(255, 255, 255, 0.7);
  --pf-text-bright: rgba(255, 255, 255, 0.85);
  --pf-text-muted: rgba(255, 255, 255, 0.5);
  --pf-text-dim: rgba(255, 255, 255, 0.4);
  --pf-surface: #111;
  --pf-border: rgba(255, 255, 255, 0.08);
}


/* ===== SCROLL REVEAL ===== */

[data-reveal] {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}


/* ===== SECTION LABEL ===== */

.pf-section-label {
  font-size: clamp(0.75rem, 1vw, 0.875rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--pf-accent);
  margin-bottom: 1.5rem;
}


/* ===== OVERVIEW (left/right split) ===== */

.pf-overview {
  display: flex;
  gap: 4rem;
  padding: calc(6rem + 6vh) 8vw;
  position: relative;
  background: var(--pf-bg);
}

.pf-overview__left {
  flex: 0 0 40%;
}

.pf-overview__right {
  flex: 1;
}

.pf-overview__heading {
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin: 0 0 1.5rem;
}

.pf-overview__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.pf-meta-pill {
  font-size: 0.85rem;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  border: 1px solid rgba(var(--pf-accent-rgb), 0.3);
  background: rgba(var(--pf-accent-rgb), 0.06);
}

.pf-meta-pill__label {
  color: var(--pf-text-dim);
  font-weight: 500;
}

.pf-meta-pill__value {
  color: var(--pf-text-bright);
  font-weight: 600;
}

.pf-overview__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  border: 1px solid var(--pf-accent);
  background: rgba(var(--pf-accent-rgb), 0.1);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: background 0.3s, transform 0.3s;
}

.pf-overview__link:hover {
  background: rgba(var(--pf-accent-rgb), 0.2);
  transform: translateY(-2px);
}

.pf-overview__text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--pf-text);
  margin: 0 0 1.5rem;
}


/* ===== SHOWCASE (browser chrome mockup) ===== */

.pf-showcase {
  padding: calc(4rem + 4vh) 8vw;
  background: var(--pf-bg);
  position: relative;
  z-index: 10;
}

.pf-showcase__browser {
  max-width: 1400px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}

.pf-showcase__browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #1c1c1c;
}

.pf-showcase__browser-dots {
  display: flex;
  gap: 6px;
}

.pf-showcase__browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.pf-showcase__browser-url {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: var(--pf-text-muted);
  background: #2a2a2a;
  padding: 4px 12px;
  border-radius: 4px;
}

.pf-showcase__browser-content {
  background: var(--pf-surface);
}

.pf-showcase__video {
  width: 100%;
  display: block;
}

.pf-showcase__caption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--pf-text-muted);
  margin: 1.5rem 0 0;
  letter-spacing: 0.05em;
}


/* ===== SCOPE (pills with shimmer) ===== */

.pf-scope {
  padding: calc(4rem + 3vh) 8vw;
  background: var(--pf-bg);
  color: var(--pf-heading);
}

.pf-scope__heading {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--pf-heading);
  margin: 0 0 2rem;
}

.pf-scope__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pf-scope__item {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--pf-text-bright);
  padding: 0.75rem 1.8rem;
  border-radius: 100px;
  border: 1px solid rgba(var(--pf-accent-rgb), 0.35);
  background: rgba(var(--pf-accent-rgb), 0.04);
  letter-spacing: 0.04em;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.pf-scope__item:hover {
  border-color: rgba(var(--pf-accent-rgb), 0.6);
  background: rgba(var(--pf-accent-rgb), 0.08);
  box-shadow: 0 0 25px rgba(var(--pf-accent-rgb), 0.15);
  transform: translateY(-2px);
}

.pf-scope__item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(var(--pf-accent-rgb), 0.08), transparent);
  animation: pfShimmer 5s infinite;
  animation-delay: calc(var(--i, 0) * 0.5s);
}

@keyframes pfShimmer {
  0% { left: -120%; }
  100% { left: 120%; }
}


/* ===== WANTED (image + text two-column) ===== */

.pf-wanted {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
  align-items: center;
  padding: calc(4rem + 4vh) 0;
  background: var(--pf-bg);
  color: var(--pf-heading);
  position: relative;
}

.pf-wanted::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(var(--pf-accent-rgb), 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.pf-wanted__visual {
  padding: 0 4vw 0 8vw;
  position: relative;
}

.pf-wanted__img-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(var(--pf-accent-rgb), 0.1);
  transform: perspective(1200px) rotateY(3deg);
  transition: transform 0.6s ease;
  position: relative;
}

.pf-wanted__img-wrap:hover {
  transform: perspective(1200px) rotateY(0deg) scale(1.02);
}

.pf-wanted__img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  animation: pfWantedShine 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pfWantedShine {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.pf-wanted__img-wrap img {
  width: 100%;
  display: block;
}

.pf-wanted__content {
  padding: 0 8vw 0 4vw;
}

.pf-wanted__heading {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--pf-heading);
  margin: 0 0 1.5rem;
  line-height: 1.2;
}

.pf-wanted__quote {
  font-style: italic;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  color: var(--pf-accent);
  border-left: 3px solid var(--pf-accent);
  padding-left: 1.5rem;
  margin: 0 0 2rem;
  line-height: 1.5;
}

.pf-wanted__text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--pf-text);
  margin: 0 0 1.2rem;
}


/* ===== PROCESS INTRO ===== */

.pf-process-intro {
  padding: calc(6rem + 4vh) 8vw 2rem;
  background: var(--pf-bg);
  color: var(--pf-heading);
}

.pf-process-intro__heading {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--pf-heading);
  margin: 0;
}


/* ===== PHASE (numbered step) ===== */

.pf-phase {
  padding: calc(2rem + 2vh) 8vw;
  background: var(--pf-bg);
  color: var(--pf-heading);
}

.pf-phase__header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}

.pf-phase__num {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--pf-accent);
}

.pf-phase__title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--pf-heading);
  margin: 0;
  letter-spacing: 0.02em;
}

.pf-phase__text {
  max-width: 56em;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--pf-text);
  margin: 0;
}


/* ===== DESIGN SCROLL (sticky brand left + scrolling image right) ===== */

.pf-design-scroll {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding: calc(3rem + 2vh) 8vw calc(6rem + 6vh);
  background: var(--pf-bg);
  color: var(--pf-heading);
  opacity: 0;
  transition: opacity 0.8s ease;
}

/* No transform on reveal — it breaks position:sticky */
.pf-design-scroll[data-reveal] {
  transform: none;
}

.pf-design-scroll.revealed {
  opacity: 1;
}

.pf-design-scroll__left {
  position: relative;
}

.pf-design-scroll__sticky {
  position: sticky;
  top: 120px;
}

.pf-design__heading {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--pf-heading);
  margin: 0 0 clamp(2rem, 4vw, 3.5rem);
}

.pf-design__colours {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.pf-design__colours--secondary {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.pf-design__swatch {
  aspect-ratio: 1;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(0.5rem, 1vw, 1rem);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.pf-design__swatch span {
  font-family: monospace;
  font-size: clamp(0.65rem, 0.85vw, 0.8rem);
  color: rgba(0, 0, 0, 0.7);
}

.pf-design__swatch em {
  font-style: normal;
  font-size: 0.65rem;
  color: rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pf-design__swatch--dark span {
  color: rgba(255, 255, 255, 0.9);
}

.pf-design__swatch--dark em {
  color: rgba(255, 255, 255, 0.5);
}

.pf-design__swatch--dark {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pf-design__swatch--outline span {
  color: #333;
}

.pf-design__swatch--outline em {
  color: rgba(0, 0, 0, 0.4);
}

.pf-design__swatch--outline {
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.pf-design__type-sample--heading {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--pf-accent);
  margin: 0;
  line-height: 1.2;
}

.pf-design__type-sample--body {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--pf-text);
  margin: 1.5rem 0 0;
  line-height: 1.2;
}

.pf-design__type-label {
  display: block;
  font-size: 0.8rem;
  color: var(--pf-text-dim);
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.pf-design-scroll__right {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}

.pf-design-scroll__right img {
  width: 100%;
  display: block;
}


/* ===== WIREFRAMES (4-column grid) ===== */

.pf-wireframes {
  padding: calc(1rem + 1vh) 8vw calc(4rem + 4vh);
  overflow: hidden;
  background: var(--pf-bg);
}

.pf-wireframes__track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.pf-wireframes__card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  background: var(--pf-surface);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.pf-wireframes__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(var(--pf-accent-rgb), 0.1);
}

.pf-wireframes__card img {
  width: 100%;
  display: block;
}


/* ===== ANIMATIONS (2-column video grid) ===== */

.pf-animations {
  padding: calc(4rem + 4vh) 8vw;
  background: var(--pf-bg);
  color: var(--pf-heading);
  overflow: hidden;
}

.pf-animations__heading {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--pf-heading);
  text-align: center;
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
}

.pf-animations__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.5rem, 1.5vw, 1.25rem);
}

.pf-animations__cell {
  margin: 0;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 8px;
  background: var(--pf-surface);
}

.pf-animations__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ===== BEFORE / AFTER (scroll-driven comparison) ===== */

.pf-before-after-wrap {
  height: 220vh;
  background: var(--pf-bg);
}

.pf-before-after {
  position: sticky;
  top: 0;
  padding: 1.5rem 8vw 1rem;
  text-align: center;
  background: var(--pf-bg);
}

.pf-before-after__heading {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--pf-heading);
  margin: 0 0 1rem;
}

.pf-before-after__effect {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  width: 100%;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}

.pf-before-after__figure {
  margin: 0;
}

.pf-before-after__figure--before {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.pf-before-after__figure--after {
  position: relative;
  z-index: 10;
  clip-path: polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%);
}

.pf-before-after__figure img {
  width: 100%;
  height: auto;
  display: block;
}

.pf-before-after__slice {
  position: absolute;
  inset: 0;
  z-index: 25;
  border-right: 2px solid rgba(255, 255, 255, 0.9);
  pointer-events: none;
  clip-path: polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%);
}

.pf-before-after__label {
  position: absolute;
  bottom: 1.5rem;
  padding: 0.4rem 1.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 4px;
  backdrop-filter: blur(8px);
  z-index: 30;
}

.pf-before-after__label--before {
  left: 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
}

.pf-before-after__label--after {
  right: 1.5rem;
  background: rgba(var(--pf-accent-rgb), 0.3);
  color: #fff;
}

.pf-before-after__caption {
  font-size: 0.9rem;
  color: var(--pf-text-muted);
  margin: 1rem 0 0;
  letter-spacing: 0.05em;
}


/* ===== DEVELOPMENT BREAKDOWN (4-col video grid) ===== */

.pf-devbreak {
  padding: calc(2rem + 2vh) 8vw;
  background: var(--pf-bg);
  color: var(--pf-heading);
  overflow: hidden;
}

.pf-devbreak__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.5rem, 1.5vw, 1.25rem);
}

.pf-devbreak__cell {
  margin: 0;
  aspect-ratio: 6/5;
  overflow: hidden;
  border-radius: 8px;
  background: var(--pf-surface);
}

.pf-devbreak__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ===== UNIQUE (full-width quote/feature) ===== */

.pf-unique {
  position: relative;
  overflow: hidden;
  background: var(--pf-bg);
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pf-unique__layer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(8rem + 6vh) 8vw;
  width: 100%;
}

.pf-unique__heading {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin: 0;
  line-height: 1.15;
  max-width: 900px;
  width: 100%;
}

.pf-unique__heading em {
  font-style: italic;
}

.pf-unique__body {
  max-width: 42em;
  margin: 2.5rem auto 0;
}

.pf-unique__text {
  color: var(--pf-text);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}


/* ===== STATS (3-column cards) ===== */

.pf-stats {
  padding: calc(4rem + 4vh) 8vw;
  background: var(--pf-bg);
}

.pf-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.pf-stats__card {
  background: rgba(var(--pf-accent-rgb), 0.06);
  border: 1px solid rgba(var(--pf-accent-rgb), 0.15);
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
}

.pf-stats__num {
  display: block;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--pf-accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.pf-stats__label {
  font-size: 0.9rem;
  color: var(--pf-text-muted);
  line-height: 1.4;
}


/* ===== CTA ===== */

.pf-cta {
  padding: clamp(8rem, 15vh, 14rem) 8vw;
  overflow: hidden;
  min-height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: var(--pf-bg);
}

.pf-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center bottom, rgba(var(--pf-accent-rgb), 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.pf-cta__bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: 140%;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
  opacity: 0.15;
  mix-blend-mode: lighten;
}

.pf-cta__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.pf-cta__heading {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  color: var(--pf-heading);
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
  margin: 0;
}

.pf-cta__button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.2rem 3rem;
  color: #fff;
  text-decoration: none;
  background: var(--pf-accent);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 30px rgba(var(--pf-accent-rgb), 0.3);
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.pf-cta__button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(var(--pf-accent-rgb), 0.5);
}

.pf-cta__arrow {
  transition: transform 0.3s;
}

.pf-cta__button:hover .pf-cta__arrow {
  transform: translateX(4px);
}


/* ===== LIGHT MODE ===== */

.pf-light {
  --pf-bg: #fff;
  --pf-heading: #111;
  --pf-text: rgba(0, 0, 0, 0.65);
  --pf-text-bright: rgba(0, 0, 0, 0.85);
  --pf-text-muted: rgba(0, 0, 0, 0.45);
  --pf-text-dim: rgba(0, 0, 0, 0.35);
  --pf-surface: #f5f5f5;
  --pf-border: rgba(0, 0, 0, 0.08);
}

.pf-light .pf-showcase__browser-bar {
  background: #e8e8e8;
}

.pf-light .pf-showcase__browser-url {
  background: #d5d5d5;
  color: rgba(0, 0, 0, 0.5);
}

.pf-light .pf-wanted__img-wrap {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15), 0 0 60px rgba(var(--pf-accent-rgb), 0.1);
}

.pf-light .pf-design__swatch--dark span { color: rgba(255, 255, 255, 0.9); }
.pf-light .pf-design__swatch--dark em   { color: rgba(255, 255, 255, 0.5); }

.pf-light .pf-before-after__label--before {
  background: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.7);
}

.pf-light .pf-before-after__slice {
  border-right-color: rgba(0, 0, 0, 0.6);
}

.pf-light .pf-showcase__browser {
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.12);
}

.pf-light .pf-wireframes__card {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.pf-light .pf-design-scroll__right {
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.12);
}

/* ── Light mode: SEO overview ── */
.pf-light .seo-overview-card {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

.pf-light .seo-overview-chart-wrap {
  background: linear-gradient(to top, #f5f5f5, #fafafa);
}

.pf-light .seo-overview-bottom {
  border-top-color: rgba(0, 0, 0, 0.08);
}

/* ── Light mode: Testimonials ──
   When .pf-light is on <main>, testimonials inherit the light page bg
   and switch all text/UI to dark colours. Card palette should use
   testimonials_card_mode = 'light' (ACF) for light-page portfolios.
*/
.pf-light .portfolio-testimonials {
  --pt-bg: var(--pf-bg);
  --pt-text: #1a1a1a;
  background: var(--pt-bg);
  color: var(--pt-text);
}

.pf-light .pt-generic-heading {
  color: var(--pf-heading);
}

.pf-light .pt-generic-logo path {
  fill: var(--pf-heading);
}

.pf-light .pt-hero-text {
  color: rgba(0, 0, 0, 0.85);
}

.pf-light .pt-hero-cite {
  color: rgba(0, 0, 0, 0.5);
}

.pf-light .pt-stats {
  border-top-color: rgba(0, 0, 0, 0.08);
}

.pf-light .pt-stats-pill {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: rgba(0, 0, 0, 0.6);
}

.pf-light .pt-dot {
  background: rgba(0, 0, 0, 0.1);
}

.pf-light .pt-dot:hover {
  background: rgba(0, 0, 0, 0.18);
}

.pf-light .pt-scard {
  background: var(--pf-accent) !important;
  color: #fff !important;
}

.pf-light .pt-scard-stars {
  color: #fff;
}

.pf-light .pt-scard-qopen,
.pf-light .pt-scard-qclose {
  color: rgba(255, 255, 255, 0.5);
}

.pf-light .pt-scard-name {
  color: #fff;
}

.pf-light .pt-scard-role {
  color: rgba(255, 255, 255, 0.7);
}

.pf-light .pt-scard-avatar {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.pf-light .pt-arrow {
  border-color: rgba(0, 0, 0, 0.15);
  color: rgba(0, 0, 0, 0.5);
}

.pf-light .pt-arrow:hover:not(:disabled) {
  border-color: var(--pf-accent);
  background: rgba(var(--pf-accent-rgb), 0.1);
  color: var(--pf-heading);
}

/* ── Light mode: CTA ── */
.pf-light .pf-cta__heading {
  text-shadow: none;
}

.pf-light .pf-cta__bg {
  mix-blend-mode: multiply;
}


/* ===== MOBILE (single breakpoint) ===== */

@media (max-width: 768px) {
  .pf-overview {
    flex-direction: column;
    gap: 2rem;
    padding: 4rem 6vw;
  }
  .pf-overview__left { flex: none; }
  .pf-overview__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }
  .pf-meta-pill { font-size: 0.8rem; padding: 0.25rem 0.6rem; }

  .pf-showcase { padding: 4rem 4vw; }

  .pf-scope { padding: 3rem 6vw; }
  .pf-scope__grid { gap: 0.5rem; }
  .pf-scope__item {
    padding: 0.55rem 1.2rem;
    font-size: 0.8rem;
  }
  .pf-scope__item::before { animation: none; display: none; }

  .pf-wanted {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 4rem 0;
  }
  .pf-wanted__visual {
    padding: 0 6vw;
    margin-bottom: 2.5rem;
  }
  .pf-wanted__img-wrap { transform: none; }
  .pf-wanted__img-wrap:hover { transform: none; }
  .pf-wanted__content { padding: 0 6vw; }

  .pf-process-intro { padding: 4rem 6vw 1rem; }
  .pf-phase { padding: 2rem 6vw; }

  .pf-design-scroll {
    grid-template-columns: 1fr;
    padding: 3rem 6vw;
  }
  .pf-design-scroll__sticky { position: static; }
  .pf-design-scroll__right { margin-top: 2rem; }

  .pf-wireframes { padding: 1rem 6vw 3rem; }
  .pf-wireframes__track { grid-template-columns: repeat(2, 1fr); }
  .pf-wireframes__card:hover { transform: none; }

  .pf-animations { padding: 4rem 6vw; }
  .pf-animations__grid { grid-template-columns: 1fr; }

  .pf-before-after-wrap { height: auto; }
  .pf-before-after {
    position: relative;
    padding: 4rem 4vw;
  }

  .pf-devbreak { padding: 4rem 6vw; }
  .pf-devbreak__grid { grid-template-columns: repeat(2, 1fr); }

  .pf-unique { min-height: auto; }
  .pf-unique__layer { padding: 5rem 6vw; }

  .pf-stats__grid { grid-template-columns: 1fr; gap: 0.75rem; }

  .pf-cta {
    min-height: 400px;
    padding: 5rem 6vw;
  }
  .pf-cta__bg { opacity: 0.1; height: 100%; }
  .pf-cta__button { padding: 0.7rem 1.5rem; font-size: 0.9rem; }
}
