/* ==========================================================================
   V&S SOLUTION SERVICES LLC - PREMIUM MOTION & POLISH LAYER
   Loaded after style.css + style-blue.css. Keeps the Midnight Navy + Gold
   brand and adds: cinematic hero, services marquee, scroll progress,
   word-reveal headings, image curtain reveals, magnetic CTAs, Lenis smooth
   scroll support. All motion collapses under prefers-reduced-motion.
   ========================================================================== */

:root {
  --pm-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pm-ease-curtain: cubic-bezier(0.77, 0, 0.18, 1);
  --pm-gold: #dfba56;
  --pm-gold-deep: #c49931;
  --pm-navy: #080d1a;
  --pm-slide-dur: 7s;
}

/* --------------------------------------------------------------------------
   Lenis smooth scroll (required base styles)
   -------------------------------------------------------------------------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

::selection { background: var(--pm-gold); color: var(--pm-navy); }

/* --------------------------------------------------------------------------
   Reading progress bar
   -------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 10001;
  pointer-events: none;
  background: linear-gradient(90deg, var(--pm-gold-deep), var(--pm-gold) 60%, #f3d78c);
  transform-origin: 0 50%;
  transform: scaleX(var(--pm-progress, 0));
}
@supports (animation-timeline: scroll()) {
  .scroll-progress {
    transform: scaleX(0);
    animation: pmProgress linear both;
    animation-timeline: scroll(root block);
  }
  @keyframes pmProgress { to { transform: scaleX(1); } }
}

/* --------------------------------------------------------------------------
   Header refinements
   -------------------------------------------------------------------------- */
body.theme-blue .site-header {
  transition: background-color 0.4s var(--pm-ease), box-shadow 0.4s var(--pm-ease), border-color 0.4s var(--pm-ease);
}
body.theme-blue .site-header .brand-logo img {
  transition: transform 0.5s var(--pm-ease);
  transform-origin: left center;
}
body.theme-blue .site-header.scrolled .brand-logo img { transform: scale(0.86); }

body.theme-blue .nav-link { position: relative; }
body.theme-blue .nav-link::after {
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.45s var(--pm-ease) !important;
}
body.theme-blue .nav-link:hover::after,
body.theme-blue .nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* --------------------------------------------------------------------------
   Buttons: shine sweep + tactile press + magnetic hook
   -------------------------------------------------------------------------- */
body.theme-blue .btn-gold,
body.theme-blue .portfolio-jump-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
body.theme-blue .btn-gold::after,
body.theme-blue .portfolio-jump-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--pm-ease);
  pointer-events: none;
}
body.theme-blue .btn-gold:hover::after,
body.theme-blue .portfolio-jump-btn:hover::after { transform: translateX(120%); }

body.theme-blue .btn:active { transform: translateY(1px) scale(0.98) !important; }

.btn-magnetic {
  transition: transform 0.5s var(--pm-ease), background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
  will-change: transform;
}
.btn-magnetic.is-magnetic { transition: transform 0.15s linear, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important; }

/* --------------------------------------------------------------------------
   Cinematic hero
   -------------------------------------------------------------------------- */
body.theme-blue .hero-section.hero-cinematic {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(580px, calc(100dvh - 118px), 900px);
  padding: 5rem 0 6.5rem;
  overflow: hidden;
  background: var(--pm-navy) !important;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transform: scale(1.12);
  transition: transform calc(var(--pm-slide-dur) + 2s) linear;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide.is-active img { transform: scale(1.0); }
/* First paint: show the first slide instantly (LCP), zoom after JS kicks in */
.hero-slide:first-child { opacity: 1; }
.hero-cinematic.is-ready .hero-slide:first-child:not(.is-active) { opacity: 0; }

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 13, 26, 0.94) 0%, rgba(8, 13, 26, 0.82) 34%, rgba(8, 13, 26, 0.38) 68%, rgba(8, 13, 26, 0.5) 100%),
    linear-gradient(180deg, rgba(8, 13, 26, 0.55) 0%, rgba(8, 13, 26, 0) 22%, rgba(8, 13, 26, 0) 70%, rgba(8, 13, 26, 1) 100%);
}

.hero-cinematic .hero-inner {
  position: relative;
  width: 100%;
}
.hero-cinematic .hero-content { max-width: 920px; }

body.theme-blue .hero-cinematic .hero-title,
body.theme-blue .hero-cinematic .hero-title span {
  font-size: clamp(2.6rem, 4.3vw, 4.1rem) !important;
  line-height: 1.06 !important;
  letter-spacing: -0.035em !important;
}
body.theme-blue .hero-cinematic .hero-title { margin-bottom: 1.4rem; }
body.theme-blue .hero-cinematic .hero-description {
  color: #dbe3ee !important;
  max-width: 52ch;
}
.hero-cinematic .hero-actions { margin-bottom: 0; }
body.theme-blue .hero-cinematic .btn { padding: 0.95rem 1.8rem; font-size: 1rem; }
body.theme-blue .hero-cinematic .btn-outline {
  background: rgba(8, 13, 26, 0.35) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, 0.35) !important;
}

/* Word-by-word title reveal (spans injected by premium.js) */
.pm-split .pm-w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.pm-split .pm-w > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--pm-ease);
  transition-delay: calc(var(--i, 0) * 65ms + var(--pm-delay, 0ms));
}
.pm-split.pm-in .pm-w > span { transform: translateY(0); }

.hero-cinematic .hero-title.pm-split { animation: none !important; opacity: 1; }
.hero-cinematic .hero-title { --pm-delay: 120ms; }
.hero-cinematic .hero-slogan { animation: heroFadeUp 0.9s var(--pm-ease) 0.55s both; }
.hero-cinematic .hero-content .hero-description { animation-delay: 0.7s; }
.hero-cinematic .hero-content .hero-actions { animation-delay: 0.85s; }

/* Slide pager */
.hero-pager {
  display: flex;
  gap: 0.6rem;
  margin-top: 3.5rem;
  animation: heroFadeUp 0.9s var(--pm-ease) 1.1s both;
}

/* Subtle parallax as the hero scrolls away (progressive enhancement) */
@supports (animation-timeline: view()) {
  .hero-slides {
    animation: pmHeroParallax linear both;
    animation-timeline: view();
    animation-range: exit 0% exit 100%;
  }
  .hero-cinematic .hero-inner {
    animation: pmHeroFade linear both;
    animation-timeline: view();
    animation-range: exit 0% exit 80%;
  }
  @keyframes pmHeroParallax { to { transform: translateY(22%); } }
  @keyframes pmHeroFade { to { opacity: 0; transform: translateY(-40px); } }
}
.hero-pager-btn {
  width: 52px;
  height: 18px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.hero-pager-btn span {
  position: relative;
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
  border-radius: 2px;
}
.hero-pager-btn span::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--pm-gold);
  transform: scaleX(0);
  transform-origin: left center;
}
.hero-pager-btn.is-active span::after { animation: pmPager var(--pm-slide-dur) linear forwards; }
.hero-pager-btn.is-done span::after { transform: scaleX(1); }
.hero-pager-btn:hover span { background: rgba(255, 255, 255, 0.45); }
.hero-pager-btn:focus-visible { outline: 2px solid var(--pm-gold); outline-offset: 4px; }
@keyframes pmPager { to { transform: scaleX(1); } }

/* --------------------------------------------------------------------------
   Services marquee (single marquee on the page)
   -------------------------------------------------------------------------- */
.services-marquee {
  position: relative;
  overflow: hidden;
  background: #060a14;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1.35rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.services-marquee-track {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  width: max-content;
  animation: pmMarquee 48s linear infinite;
}
.services-marquee:hover .services-marquee-track { animation-play-state: paused; }
.services-marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #ffffff;
}
.services-marquee-track span:nth-of-type(even) {
  color: transparent;
  -webkit-text-stroke: 1px rgba(223, 186, 86, 0.75);
}
.services-marquee-track i {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background: var(--pm-gold);
  transform: rotate(45deg);
}
@keyframes pmMarquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Section headers: refined eyebrow + word reveal
   -------------------------------------------------------------------------- */
body.theme-blue .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pm-gold) !important;
  overflow: visible;
}
body.theme-blue .section-tag::before,
body.theme-blue .section-tag::after {
  content: '';
  position: static;
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
  transform: scaleX(0);
  transition: transform 0.9s var(--pm-ease) 0.2s;
}
body.theme-blue .section-tag::before { transform-origin: right center; }
body.theme-blue .section-tag::after { transform-origin: left center; left: auto; top: auto; }
body.theme-blue .section-header.is-revealed .section-tag::before,
body.theme-blue .section-header.is-revealed .section-tag::after { transform: scaleX(1); }

body.theme-blue .section-title {
  letter-spacing: -0.03em !important;
  text-wrap: balance;
}
.section-header .section-title.pm-split { --pm-delay: 120ms; }
.section-header.reveal-on-scroll { filter: none !important; }

/* --------------------------------------------------------------------------
   Image curtain reveals (cards + before/after)
   -------------------------------------------------------------------------- */
.bento-card.reveal-on-scroll .bento-card-media,
.gallery-card.reveal-on-scroll .gallery-media {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.25s var(--pm-ease-curtain) 0.15s;
}
.bento-card.reveal-on-scroll.is-revealed .bento-card-media,
.gallery-card.reveal-on-scroll.is-revealed .gallery-media { clip-path: inset(0 0 0 0); }

.bento-card-media picture,
.gallery-media picture {
  display: block;
  width: 100%;
  height: 100%;
  transform: scale(1.18);
  transition: transform 1.6s var(--pm-ease) 0.15s;
}
.is-revealed .bento-card-media picture,
.is-revealed .gallery-media picture { transform: scale(1); }

/* Slower, more cinematic hover zoom on project imagery */
body.theme-blue .bento-card-media img,
body.theme-blue .gallery-media img,
body.theme-blue .project-thumbnail img {
  transition: transform 1.1s var(--pm-ease) !important;
}
body.theme-blue .bento-card:hover .bento-card-media img { transform: scale(1.07); }

/* Cards: gold hairline that draws on hover */
body.theme-blue .bento-card,
body.theme-blue .why-card,
body.theme-blue .testimonial-card {
  transition: transform 0.6s var(--pm-ease), border-color 0.4s ease, box-shadow 0.6s var(--pm-ease), opacity 0.85s var(--pm-ease), filter 0.85s var(--pm-ease) !important;
}
body.theme-blue .bento-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--pm-gold), transparent);
  transform: scaleX(0);
  transition: transform 0.8s var(--pm-ease);
  pointer-events: none;
  z-index: 2;
}
body.theme-blue .bento-card:hover::after { transform: scaleX(1); }

body.theme-blue .service-icon-box { transition: transform 0.6s var(--pm-ease), background 0.4s ease; }
body.theme-blue .bento-card:hover .service-icon-box {
  transform: rotate(-6deg) scale(1.06);
  background: rgba(223, 186, 86, 0.2) !important;
}

/* Before/after: soft wipe-in */
.ba-wrapper.reveal-on-scroll .before-after-container {
  clip-path: inset(6% 6% 6% 6% round 20px);
  transition: clip-path 1.4s var(--pm-ease-curtain) 0.1s;
}
.ba-wrapper.reveal-on-scroll.is-revealed .before-after-container { clip-path: inset(0 0 0 0 round 20px); }

/* Stats: gold suffix glow-free emphasis */
body.theme-blue .stat-card { transition: transform 0.6s var(--pm-ease), border-color 0.4s ease, box-shadow 0.6s var(--pm-ease), opacity 0.85s var(--pm-ease) !important; }

/* FAQ: smoother answer motion */
body.theme-blue .faq-item { transition: border-color 0.4s ease, box-shadow 0.5s var(--pm-ease), transform 0.5s var(--pm-ease) !important; }
body.theme-blue .faq-item:hover { transform: translateX(4px); }

/* Footer link underline */
body.theme-blue .site-footer a:not(.btn) {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.45s var(--pm-ease), color 0.25s ease;
}
body.theme-blue .site-footer a:not(.btn):hover { background-size: 100% 1px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  body.theme-blue .hero-section.hero-cinematic {
    min-height: calc(100svh - 96px);
    align-items: flex-end;
    padding: 6rem 0 5.5rem;
  }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(8, 13, 26, 0.55) 0%, rgba(8, 13, 26, 0.45) 30%, rgba(8, 13, 26, 0.88) 62%, rgba(8, 13, 26, 1) 100%);
  }
  .hero-pager { margin-top: 2.5rem; }
}

@media (max-width: 640px) {
  body.theme-blue .hero-cinematic .hero-title,
  body.theme-blue .hero-cinematic .hero-title span { font-size: clamp(2.2rem, 10vw, 2.9rem) !important; }
  body.theme-blue .hero-cinematic .hero-slogan { font-size: 1.2rem !important; }
  body.theme-blue .hero-cinematic .hero-slogan::before { display: none; }
  body.theme-blue .hero-cinematic .hero-description { font-size: 1rem !important; }
  .hero-cinematic .hero-actions { flex-direction: column; align-items: stretch; gap: 0.85rem; }
  .hero-cinematic .hero-actions .btn { width: 100%; }
  .hero-pager-btn { width: 36px; }
  .services-marquee { padding: 1rem 0; }
}

/* --------------------------------------------------------------------------
   Reduced motion: everything static, everything visible
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .services-marquee-track { animation: none !important; flex-wrap: wrap; width: auto; justify-content: center; }
  .pm-split .pm-w > span { transform: none !important; transition: none !important; }
  .hero-slide img { transform: none !important; transition: none !important; }
  .bento-card .bento-card-media,
  .gallery-card .gallery-media,
  .ba-wrapper .before-after-container { clip-path: none !important; }
  .bento-card-media picture,
  .gallery-media picture { transform: none !important; }
  .scroll-progress { display: none; }
  .hero-slides,
  .hero-cinematic .hero-inner { animation: none !important; }
}

/* ==========================================================================
   PHASE 2: VISUAL CLEANUP
   ========================================================================== */

/* Two type families only: Outfit (display) + Plus Jakarta Sans (body) */
body.theme-blue {
  --font-serif: var(--font-display);
  --font-editorial: var(--font-body);
  --font-mono: var(--font-display);
}
body.theme-blue .hero-slogan {
  font-style: italic !important;
  font-weight: 500 !important;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem) !important;
  letter-spacing: 0 !important;
}
body.theme-blue .ba-caption-box {
  font-style: normal !important;
  font-weight: 500 !important;
  font-size: 1rem !important;
  color: #94a3b8 !important;
}

/* Top bar: plain text, no badge pill */
body.theme-blue .top-notice-bar .badge-pill {
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  font-family: var(--font-body) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
  color: var(--pm-gold) !important;
}

/* Floating buttons: no perpetual pulse rings */
.floating-email::before,
.floating-whatsapp::before,
body.theme-blue .floating-email::before,
body.theme-blue .floating-whatsapp::before {
  animation: none !important;
  display: none !important;
}
body.theme-blue .floating-email,
body.theme-blue .floating-whatsapp.floating-sms {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45) !important;
}

/* Eyebrow restraint: keep the label only on Services, Why Us and FAQ */
#transformation .section-tag,
#gallery .section-tag,
#reviews .section-tag,
#contact .section-tag { display: none !important; }

/* --------------------------------------------------------------------------
   Stats: open layout with hairline dividers instead of three boxed cards
   -------------------------------------------------------------------------- */
body.theme-blue .stats-section { padding: 3rem 0 !important; }
body.theme-blue .stats-grid { gap: 0 !important; }
body.theme-blue .stat-card {
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  padding: 0.75rem 1.5rem !important;
}
body.theme-blue .stat-card + .stat-card { border-left: 1px solid rgba(255, 255, 255, 0.1) !important; }
body.theme-blue .stat-card:hover { transform: none !important; }
body.theme-blue .stat-number {
  font-family: var(--font-display) !important;
  font-size: clamp(2.6rem, 4.4vw, 3.8rem) !important;
  letter-spacing: -0.04em !important;
  line-height: 1 !important;
}
body.theme-blue .stat-label {
  font-size: 0.8rem !important;
  letter-spacing: 0.12em !important;
  color: #94a3b8 !important;
}

/* --------------------------------------------------------------------------
   Services: image-first cards, split layout for the lead service
   -------------------------------------------------------------------------- */
body.theme-blue .bento-card {
  padding: 0 !important;
  gap: 0 !important;
}
body.theme-blue .bento-card > div:first-child {
  padding: 1.6rem 1.8rem 1.9rem;
  position: relative;
  z-index: 2;
}
body.theme-blue .bento-card-media {
  order: -1;
  flex: none !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 10;
  border-radius: 0 !important;
}
body.theme-blue .service-icon-box {
  width: 46px !important;
  height: 46px !important;
  border-radius: 12px !important;
  margin-bottom: 1rem;
}
body.theme-blue .service-icon-box svg { width: 22px; height: 22px; }
body.theme-blue .service-title { font-size: 1.3rem !important; letter-spacing: -0.015em; }
body.theme-blue .service-desc { font-size: 0.95rem; line-height: 1.65; }

@media (min-width: 1025px) {
  body.theme-blue .bento-span-2 {
    display: grid !important;
    grid-template-columns: 1fr 1.15fr;
    align-items: stretch;
  }
  body.theme-blue .bento-span-2 > div:first-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.4rem 2.4rem 2.4rem 2.6rem;
  }
  body.theme-blue .bento-span-2 .bento-card-media {
    order: 2;
    aspect-ratio: auto;
    height: 100% !important;
    min-height: 420px !important;
  }
  body.theme-blue .bento-span-2 .service-title { font-size: 1.75rem !important; }
}

/* --------------------------------------------------------------------------
   Gallery: asymmetric grid, no badges over photos, details on hover
   -------------------------------------------------------------------------- */
body.theme-blue .gallery-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  grid-auto-rows: 270px;
  gap: 1.25rem !important;
}
body.theme-blue .gallery-card { height: 100%; }
body.theme-blue .gallery-card:first-child { grid-column: span 2; grid-row: span 2; }
body.theme-blue .gallery-media { height: 100% !important; }
body.theme-blue .gallery-badge-top { display: none !important; }
body.theme-blue .gallery-card:hover { transform: none !important; }
body.theme-blue .gallery-overlay {
  background: linear-gradient(180deg, rgba(8, 13, 26, 0) 50%, rgba(8, 13, 26, 0.92) 100%) !important;
}
body.theme-blue .gallery-cat-label {
  font-family: var(--font-body) !important;
  letter-spacing: 0.14em !important;
  font-size: 0.68rem !important;
}
body.theme-blue .gallery-card-title { font-size: 1.05rem; }
body.theme-blue .gallery-card:first-child .gallery-card-title { font-size: 1.5rem; }
@media (hover: hover) {
  body.theme-blue .gallery-card-desc {
    max-height: 0;
    opacity: 0 !important;
    transition: max-height 0.5s var(--pm-ease), opacity 0.4s ease, margin 0.4s ease !important;
  }
  body.theme-blue .gallery-card:hover .gallery-card-desc {
    max-height: 3.2em;
    opacity: 1 !important;
    margin-top: 0.35rem;
  }
}

/* --------------------------------------------------------------------------
   Featured projects (horizontal showcase)
   -------------------------------------------------------------------------- */
body.theme-blue .featured-section {
  --feat-h: clamp(240px, calc(100vh - 480px), 470px);
  padding: 3.25rem 0 2.5rem !important;
  overflow: hidden;
  background: #080d1a !important;
}
.featured-head {
  text-align: left !important;
  margin: 0 0 1.75rem !important;
  max-width: 640px;
}
.featured-head .section-subtitle { margin-left: 0 !important; margin-right: 0 !important; }

.featured-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.featured-viewport::-webkit-scrollbar { display: none; }
.featured-section.is-pinned .featured-viewport { overflow: visible; scroll-snap-type: none; }

.featured-track {
  display: flex;
  align-items: flex-start;
  gap: 1.75rem;
  width: max-content;
  padding-inline: max(1.5rem, calc((100vw - 1320px) / 2 + 1.5rem));
  will-change: transform;
}

.feat-card {
  flex-shrink: 0;
  scroll-snap-align: start;
  scroll-margin-left: 1.5rem;
  width: calc(var(--feat-h) * 4 / 3);
  color: inherit;
  text-decoration: none;
}
.feat-card.feat-tall { width: calc(var(--feat-h) * 3 / 4); }

.feat-media {
  position: relative;
  height: var(--feat-h);
  border-radius: 16px;
  overflow: hidden;
  background: #101a2e;
}
.feat-media picture { display: block; width: 100%; height: 100%; }
.feat-media img {
  width: 112%;
  max-width: none;
  height: 100%;
  margin-left: -6%;
  object-fit: cover;
  display: block;
  transition: scale 1.1s var(--pm-ease);
}
.feat-card:hover .feat-media img { scale: 1.05; }

.feat-meta { padding: 1.15rem 0.15rem 0; }
.feat-cat {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pm-gold);
  margin-bottom: 0.4rem;
}
.feat-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #ffffff;
  margin: 0 0 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feat-tall .feat-title { -webkit-line-clamp: 2; }
.feat-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #94a3b8;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feat-cta {
  width: clamp(240px, 22vw, 320px);
  height: var(--feat-h);
  border-radius: 16px;
  border: 1px solid rgba(223, 186, 86, 0.35);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 1.25rem;
  padding: 2rem;
  background: linear-gradient(160deg, #101a2e 0%, #0a1120 100%);
  transition: background 0.5s var(--pm-ease), border-color 0.4s ease;
}
.feat-cta-label {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
  transition: color 0.4s ease;
}
.feat-cta-arrow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--pm-gold);
  color: var(--pm-gold);
  display: grid;
  place-items: center;
  transition: transform 0.5s var(--pm-ease), background 0.4s ease, color 0.4s ease;
}
.feat-cta:hover { background: var(--pm-gold); border-color: var(--pm-gold); }
.feat-cta:hover .feat-cta-label { color: var(--pm-navy); }
.feat-cta:hover .feat-cta-arrow { background: var(--pm-navy); color: var(--pm-gold); transform: translateX(6px); }
.feat-cta:focus-visible { outline: 2px solid var(--pm-gold); outline-offset: 4px; }

.featured-progress {
  margin-top: 1.5rem;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}
.featured-progress span {
  display: block;
  height: 100%;
  background: var(--pm-gold);
  transform-origin: left center;
  transform: scaleX(0);
}

/* --------------------------------------------------------------------------
   How We Work (process timeline)
   -------------------------------------------------------------------------- */
.process-section {
  padding: 7rem 0;
  background: #0a1120;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.process-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 5rem;
  align-items: start;
}
.process-intro {
  position: sticky;
  top: 140px;
}
body.theme-blue .process-title {
  text-align: left;
  font-size: clamp(2.2rem, 3.6vw, 3.2rem) !important;
  line-height: 1.05;
  margin-bottom: 1.1rem;
}
.process-lead {
  color: #cbd5e1;
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 40ch;
  margin-bottom: 2rem;
}

.process-steps-wrap { position: relative; }
.process-line {
  position: absolute;
  left: 27px;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}
.process-line-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--pm-gold), var(--pm-gold-deep));
  transform-origin: top center;
  transform: scaleY(1);
}
.js-process .process-line-fill { transform: scaleY(0); }

.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 3.25rem;
}
.process-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.75rem;
  align-items: start;
}
.process-num {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--pm-gold);
  background: #0a1120;
  border: 1px solid rgba(223, 186, 86, 0.6);
  transition: background 0.5s var(--pm-ease), color 0.5s ease, border-color 0.5s ease, transform 0.6s var(--pm-ease);
}
.process-body { padding-top: 0.6rem; }
.process-step-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #ffffff;
  margin: 0 0 0.5rem;
}
.process-step-desc {
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 48ch;
  margin: 0;
}
.js-process .process-step .process-num {
  color: #64748b;
  border-color: rgba(255, 255, 255, 0.14);
}
.js-process .process-step .process-body {
  opacity: 0.35;
  transform: translateY(12px);
  transition: opacity 0.7s var(--pm-ease), transform 0.7s var(--pm-ease);
}
.js-process .process-step.is-active .process-num {
  background: var(--pm-gold);
  border-color: var(--pm-gold);
  color: var(--pm-navy);
  transform: scale(1.06);
}
.js-process .process-step.is-active .process-body { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Phase 2 responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  body.theme-blue .gallery-grid { grid-template-columns: repeat(2, 1fr) !important; }
  body.theme-blue .gallery-card:first-child { grid-column: span 2; grid-row: span 1; }
  .process-grid { grid-template-columns: 1fr; gap: 3rem; }
  .process-intro { position: static; }
}
@media (max-width: 767px) {
  body.theme-blue .stats-grid { grid-template-columns: 1fr !important; }
  body.theme-blue .stat-card + .stat-card {
    border-left: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
  body.theme-blue .stat-card { padding: 1.25rem 0 !important; }
  body.theme-blue .gallery-grid { grid-template-columns: 1fr !important; grid-auto-rows: 260px; }
  body.theme-blue .gallery-card:first-child { grid-column: auto; }
  body.theme-blue .gallery-card:first-child .gallery-card-title { font-size: 1.15rem; }
  body.theme-blue .featured-section { --feat-h: 300px; }
  .feat-card { width: min(84vw, 400px); }
  .feat-card.feat-tall { width: min(64vw, 260px); }
  .feat-cta { width: min(70vw, 280px); }
  .process-section { padding: 5rem 0; }
  .process-steps { gap: 2.5rem; }
  .process-step { grid-template-columns: 44px 1fr; gap: 1.1rem; }
  .process-num { width: 44px; height: 44px; font-size: 0.85rem; }
  .process-line { left: 21px; top: 22px; bottom: 22px; }
  .process-step-title { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .js-process .process-step .process-body { opacity: 1; transform: none; }
  .feat-media img { width: 100%; margin-left: 0; }
}
