/* -------------------------------------------------------------
   Palipo Design Studio CSS Stylesheet - Theme: Mint Green (#ADEBB3)
   ------------------------------------------------------------- */

/* Custom Fonts */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/inter-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/inter-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/inter-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'AM Le Cygne';
  src: url('./fonts/AMLeCygne-Noir.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'AM Le Cygne';
  src: url('./fonts/AMLeCygne-Clair.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Custom Variables - Theme: Mint Green */
:root {
  --color-brand: #ADEBB3; /* Mint Green */
  --color-brand-hover: #8ce093; /* Smooth richer green for hovers */
  --color-brand-purple: #6941c6;
  --color-brand-section: #53389e;
  --color-text-primary: #181d27;
  --color-text-secondary: #414651;
  --color-text-tertiary: #535862;
  --color-text-quaternary: #717680;
  --color-text-white: #fff;
  --color-text-brand: #057a17; /* High contrast green for inline text brands */
  --color-bg-primary: #fff;
  --color-bg-secondary: #fafafa;
  --color-border-primary: #d5d7da;
  --color-border-secondary: #e9eaeb;
  
  --shadow-xs: 0px 1px 2px 0px rgba(10, 13, 18, 0.05);
  --shadow-sm: 0px 1px 3px 0px rgba(10, 13, 18, 0.1), 0px 1px 2px 0px rgba(10, 13, 18, 0.06);
  --shadow-md: 0px 4px 8px -2px rgba(10, 13, 18, 0.1), 0px 2px 4px -2px rgba(10, 13, 18, 0.06);
  --shadow-lg: 0px 12px 16px 0px rgba(10, 13, 18, 0.08), 0px 4px 6px 0px rgba(10, 13, 18, 0.03), 0px 2px 2px 0px rgba(10, 13, 18, 0.04);
  
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-full: 9999px;
  
  --font-serif: 'AM Le Cygne', serif;
  --font-sans: 'Inter', sans-serif;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  color: var(--color-text-primary);
  background-color: var(--color-bg-secondary);
  -webkit-font-smoothing: antialiased;
  font-family: var(--font-sans);
  font-size: 14px;
  overflow-x: hidden;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--color-border-primary);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-quaternary);
}

/* Container Custom */
.container-custom {
  max-width: 1200px;
}
.container-custom-faq {
  max-width: 800px;
}

/* Navigation Bar */
.main-nav-wrapper {
  position: fixed;
  top: 24px;
  left: 0;
  width: 100%;
  z-index: 1000;
  pointer-events: none;
  transition: top 0.3s ease;
}

.nav-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: center;
  width: 100%;
}


.nav-desktop-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(240, 240, 240, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 55px;
  padding: 0 24px;
  height: 81px;
  width: 100%;
  pointer-events: auto;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Navbar Shrink on scroll */
.main-nav-wrapper.scrolled {
  top: 12px;
}
.main-nav-wrapper.scrolled .nav-desktop-bar {
  height: 64px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
  max-width: 720px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.logo-img {
  height: 38px;
  width: auto;
  border-radius: 10px;
  transition: height 0.3s ease;
}
.main-nav-wrapper.scrolled .logo-img {
  height: 28px;
}
.logo-text {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  color: #140906;
  letter-spacing: -0.5px;
}

.nav-links-wrapper {
  display: flex;
  align-items: center;
  transition: opacity 0.3s ease;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-item-link {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 43px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.nav-item-link:hover {
  color: var(--color-text-primary);
  background: var(--color-brand);
}

.btn-nav-cta {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 43px;
  padding: 10px 24px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-nav-cta:hover {
  background: var(--color-text-primary);
  color: var(--color-brand);
  transform: translateY(-1px);
}
.main-nav-wrapper.scrolled .btn-nav-cta {
  padding: 8px 18px;
  font-size: 14px;
}

/* Mobile Toggle Hamburger */
.mobile-menu-toggle {
  display: none;
  background: #000;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.mobile-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: 0.3s;
}

/* Mobile Menu Fullscreen Overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: #000;
  display: flex;
  flex-direction: column;
  padding: 0 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-header {
  display: flex;
  justify-content: flex-end;
  padding: 32px 0 0;
}
.mobile-menu-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  justify-content: center;
}
.mobile-nav-links a {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 44px;
  color: #fff;
  text-decoration: none;
  line-height: 1.2;
  transition: color 0.2s ease;
}
.mobile-nav-links a:hover {
  color: var(--color-brand);
}
.mobile-menu-footer {
  padding-bottom: 48px;
}
.mobile-menu-cta {
  display: block;
  width: 100%;
  background: var(--color-brand);
  border-radius: 14px;
  padding: 18px 24px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  color: var(--color-text-primary);
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero-section-wrapper {
  position: relative;
  background: var(--color-brand);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 160px;
  padding-bottom: 0;
  margin-left: 0px;
  margin-right: 0px;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
  transition: margin 0.1s ease, border-radius 0.1s ease;
  will-change: margin, border-radius;
}

.hero-content {
  padding: 40px 32px 0;
  max-width: 800px;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 76px;
  line-height: 84px;
  letter-spacing: -1.8px;
  color: #140906;
  margin: 0;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 24px;
  line-height: 34px;
  letter-spacing: -0.3px;
  color: #140906;
  margin: 24px 0 0;
}

/* Spinning/Rotating text inside Hero */
.spinning-text-container {
  display: inline-block;
  vertical-align: bottom;
  overflow: hidden;
  height: 38px;
  position: relative;
}
.spinning-text-item {
  font-family: var(--font-sans);
  font-weight: 700;
  display: inline-block;
  white-space: nowrap;
  transition: opacity 0.25s ease, transform 0.3s ease;
  transform: translateY(0);
}
.spinning-text-item.slide-out {
  opacity: 0;
  transform: translateY(-24px);
}
.spinning-text-item.slide-in {
  opacity: 0;
  transform: translateY(24px);
}

/* Hero Phone Mockup Container (Tilt-Shift & Glides on Scroll) */
.hero-phone-container {
  position: relative;
  width: 891px;
  height: 634px;
  margin-top: 50px;
  flex-shrink: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

.phone-mockup-frame {
  position: absolute;
  top: -31px;
  left: -85px;
  width: 1061px;
  height: 707px;
  pointer-events: none;
  z-index: 10;
}

.phone-status-bar {
  position: absolute;
  left: 321px;
  top: 54px;
  width: 249px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 12;
}
.status-time {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  color: #000;
}
.status-icons {
  display: flex;
  gap: 5px;
  align-items: center;
}

.phone-screen-content {
  position: absolute;
  left: 340px;
  top: 115px;
  width: 211px;
  height: 442px;
  background: #fff;
  border-radius: 17px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow: hidden;
  z-index: 8;
}

.screen-delivery-banner {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-shrink: 0;
  margin-top: 4px;
}
.banner-brand-icon {
  background: var(--color-brand);
  border-radius: 10px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.banner-logo-img {
  width: 16px;
  height: auto;
}
.banner-text {
  display: flex;
  flex-direction: column;
}
.banner-label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 7px;
  color: var(--color-text-tertiary);
}
.banner-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 9px;
  color: var(--color-text-primary);
  line-height: 1.2;
}

.screen-walkthrough-video {
  flex: 1;
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  background: #000;
}

/* Word Sticky Reveal Section */
.word-scroll-section-wrapper {
  position: relative;
  height: 250vh;
  background: #fff;
}
.scroll-words-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.scroll-words-container {
  padding: 0 112px;
  width: 100%;
  max-width: 1440px;
}
.scroll-words-text {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 40px;
  line-height: 48px;
  letter-spacing: -0.8px;
  color: #f5f5f5;
  margin: 0;
  max-width: 760px;
}
.scroll-words-text span {
  transition: color 0.15s ease;
}

/* Horizontal Sticky Cards Slider (How It Works) */
.horizontal-scroll-wrapper {
  position: relative;
  height: 500vh;
  background: #e7e8e6;
}
.horizontal-sticky-container {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.horizontal-track-outer {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
}
.horizontal-track-inner {
  display: flex;
  gap: 32px;
  padding-left: 80px;
  padding-right: 80px;
  will-change: transform;
}

/* Timeline Cards */
.h-card-item {
  flex-shrink: 0;
  cursor: pointer;
}
.h-card-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 487px;
  flex-shrink: 0;
}
.card-visual-wrapper {
  position: relative;
  border-radius: 26px;
  height: 450px;
  overflow: hidden;
  background: #e7e8e6;
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s ease;
}
.card-visual-wrapper.cream-bg {
  background: #ede7db;
}
.card-visual-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 440px;
  padding: 0 4px;
}
.card-title-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.card-title-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}
.card-title-text {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 20px;
  color: #140906;
  letter-spacing: -0.2px;
}
.card-desc-text {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  color: #414651;
  letter-spacing: -0.15px;
  line-height: 1.45;
  margin: 0;
}

/* Procedural dot grid inside Card 3 */
.dot-grid-procedural {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  width: 100%;
  height: 100%;
  padding: 60px;
  align-items: center;
  justify-items: center;
}
.dot-cell {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #c8bfb0;
  transition: background 0.2s ease, transform 0.25s ease;
}
.dot-cell.active {
  background: #057a17; /* contrasting green */
  transform: scale(1.15);
}
.dot-cell.special-logo {
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dot-logo-svg {
  width: 32px;
  height: 32px;
  fill: #057a17;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.dot-cell.special-logo.active .dot-logo-svg {
  opacity: 1;
  transform: scale(1);
}

/* Physics Bouncing Canvas inside Card 4 */
.physics-canvas-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Cloud and Logo container inside Card 5 */
.clouds-logo-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.center-Palipo-logo {
  width: 180px;
  height: auto;
  z-index: 3;
  will-change: transform;
}
.cloud-img {
  position: absolute;
  width: 300px;
  height: auto;
  z-index: 4;
  pointer-events: none;
  will-change: transform;
}
.cloud-1 {
  top: 10%;
  left: -10%;
}
.cloud-2 {
  bottom: 10%;
  right: -10%;
}

/* Testimonial Stories */
.client-stories-wrapper {
  background: #fff;
  padding: 100px 0;
}
.section-header-block {
  text-align: center;
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 48px;
  letter-spacing: -1px;
  color: var(--color-text-primary);
}
.section-subtitle {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 18px;
  color: var(--color-text-tertiary);
  margin-top: 12px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.story-card {
  background: #fcfcfc;
  border: 1px solid var(--color-border-secondary);
  border-radius: 24px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-brand);
}

.story-card-video-box {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: #000;
}
.story-card-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
  pointer-events: none;
}
.story-mini-metrics {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 4;
}
.mini-metric-num {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text-primary);
  line-height: 1;
}
.mini-metric-label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 9px;
  color: var(--color-text-tertiary);
  margin-top: 2px;
}

.story-card-details {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.story-logo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.story-logo-img {
  height: 18px;
  width: auto;
  object-fit: contain;
}
.story-client-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  color: var(--color-text-quaternary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.story-card-heading {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  color: var(--color-text-primary);
  margin: 0 0 10px;
}
.story-card-desc {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.45;
  color: var(--color-text-tertiary);
  margin: 0;
}

/* FAQ Accordion Section */
.faq-section-wrapper {
  background: #fbfbfb;
  border-top: 1px solid var(--color-border-secondary);
  border-bottom: 1px solid var(--color-border-secondary);
}
.faq-section-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -0.5px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 36px;
}
.faq-accordion-item {
  background: #fff;
  border: 1px solid var(--color-border-secondary);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.faq-accordion-header {
  width: 100%;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-text-primary);
}
.faq-icon-indicator {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.faq-icon-indicator::before, .faq-icon-indicator::after {
  content: '';
  position: absolute;
  background: var(--color-text-primary);
  transition: transform 0.25s ease;
}
/* Horizontal line */
.faq-icon-indicator::before {
  top: 9px;
  left: 3px;
  width: 14px;
  height: 2px;
}
/* Vertical line */
.faq-icon-indicator::after {
  top: 3px;
  left: 9px;
  width: 2px;
  height: 14px;
}
/* Opened state rotation */
.faq-accordion-item.active .faq-icon-indicator::after {
  transform: rotate(90deg);
  opacity: 0;
}
.faq-accordion-item.active .faq-icon-indicator::before {
  transform: rotate(180deg);
}

.faq-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 24px;
}
.faq-accordion-body p {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-tertiary);
  padding-bottom: 24px;
  margin: 0;
}

/* Call to Action Pre-footer */
.footer-cta-wrapper {
  background: #fff;
}
.footer-cta-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-secondary);
  border-radius: 32px;
  padding: 64px 32px;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
.ready-banner {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #057a17;
  margin-bottom: 16px;
}
.footer-cta-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 48px;
  letter-spacing: -1px;
  color: var(--color-text-primary);
  max-width: 680px;
  line-height: 1.15;
}
.footer-cta-desc {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 18px;
  color: var(--color-text-secondary);
  margin: 16px 0 32px;
}
.btn-footer-cta {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 17px;
  background: var(--color-text-primary);
  color: var(--color-brand);
  border: none;
  border-radius: 43px;
  padding: 16px 40px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
}
.btn-footer-cta:hover {
  background: #000;
  color: #fff;
  transform: translateY(-1px);
}

/* Footer Section */
.footer-wrapper {
  background: #fafafa;
  border-top: 1px solid var(--color-border-secondary);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo-img {
  height: 28px;
  width: auto;
}
.footer-brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text-primary);
  letter-spacing: -0.3px;
}
.footer-legal-links a {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text-tertiary);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-legal-links a:hover {
  color: var(--color-brand);
}

/* Legal Modals */
.legal-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10100;
  background: rgba(10, 13, 18, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.legal-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.legal-modal-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%) scale(0.95);
  width: min(640px, calc(100vw - 32px));
  max-height: 80vh;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  z-index: 10101;
  padding: 40px 32px 32px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.legal-modal-dialog.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.legal-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f2f3f5;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.legal-modal-content h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 26px;
  margin-bottom: 24px;
}
.legal-modal-content h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  margin: 20px 0 8px;
}
.legal-modal-content p {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

/* -------------------------------------------------------------
   Premium Case Study Popups (Modals)
   ------------------------------------------------------------- */
.uc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(10, 13, 18, 0.5);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, backdrop-filter 0.5s ease;
}
.uc-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.uc-modal-dialog {
  position: fixed;
  z-index: 10002;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.97);
  width: calc(100% - 64px);
  height: calc(100vh - 64px);
  border-radius: 24px;
  background: #f2f3f5;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.25);
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  isolation: isolate;
}
.uc-modal-dialog.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

/* Modal Inner Structures */
.uc-hero-visual {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.uc-hero-video {
  position: absolute;
  inset: -20% 0;
  width: 100%;
  height: 140%;
  object-fit: cover;
  will-change: transform;
}
.uc-hero-tint {
  position: absolute;
  inset: -20% 0;
  width: 100%;
  height: 140%;
  background: rgba(10, 13, 18, 0.82);
}
.uc-hero-heading-box {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 48px;
}
.uc-hero-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
  max-width: 700px;
}

/* Layout Content inside Case Studies */
.uc-content-container {
  padding: 32px 32px 0;
}
.uc-content-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 0 80px;
  display: flex;
  gap: 64px;
}

/* Sidebar elements */
.uc-sidebar {
  position: sticky;
  top: 32px;
  align-self: flex-start;
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.uc-sidebar-section {
  border-bottom: 1px solid var(--color-border-primary);
  padding-bottom: 24px;
  margin-bottom: 24px;
}
.uc-sidebar-section:last-child {
  border-bottom: none;
}
.sidebar-heading {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text-brand);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.toc-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toc-item {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  color: var(--color-text-primary);
  text-decoration: none;
  line-height: 24px;
  transition: color 0.2s ease;
}
.toc-item:hover {
  color: var(--color-text-brand);
}

.designer-avatars-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.designer-card {
  display: flex;
  align-items: center;
  gap: 12px;
}
.designer-photo-box {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8d5c4, #c4a882);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.designer-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.designer-details {
  display: flex;
  flex-direction: column;
}
.designer-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text-primary);
  margin: 0;
}
.designer-role {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 12px;
  color: var(--color-text-tertiary);
  margin: 1px 0 0;
}

.sidebar-btn-cta {
  background: var(--color-brand);
  border-radius: 12px;
  padding: 14px 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text-primary);
  text-decoration: none;
  text-align: center;
  display: block;
  transition: background 0.2s ease;
}
.sidebar-btn-cta:hover {
  background: var(--color-brand-hover);
}

/* Article content elements */
.uc-article {
  flex: 1;
  min-width: 0;
}
.uc-section-block {
  margin-bottom: 48px;
}
.uc-section-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: var(--color-text-primary);
  margin-bottom: 16px;
}
.uc-section-body {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 28px;
  color: var(--color-text-secondary);
}

/* Gallery and Card stack elements */
.uc-gallery-container {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-bottom: 48px;
}
.gallery-item-box {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.gallery-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.1s ease;
  transform: scale(1.08);
}
.gallery-caption {
  padding: 16px 20px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  color: var(--color-text-tertiary);
  border-top: 1px solid var(--color-border-secondary);
  background: #fff;
}

/* Stacked tickets card parallax on desktop */
.gallery-parallax-card {
  position: absolute;
  bottom: -32px;
  width: 280px;
  background: #f2f3f5;
  border-radius: 20px;
  padding: 8px;
  z-index: 2;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 40px 100px rgba(0,0,0,0.12);
  will-change: transform;
}
.gallery-parallax-card.card-right {
  right: -20px;
}
.gallery-parallax-card.card-left {
  left: -20px;
}
.parallax-card-inner {
  background: var(--color-text-primary);
  border-radius: 14px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 260px;
  box-sizing: border-box;
}
.parallax-card-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  color: #fff;
  margin: 0;
}
.parallax-card-desc {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Testimonial Quote inside Case Study */
.uc-blockquote {
  border-left: 3px solid var(--color-brand);
  padding: 16px 0 16px 24px;
  margin: 32px 0 48px;
}
.quote-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.5;
  color: var(--color-text-primary);
  margin: 0;
}
.quote-author-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text-primary);
  margin: 12px 0 0;
}
.quote-author-role {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  color: var(--color-text-tertiary);
  margin: 2px 0 0;
}

/* Collaboration Stats Grid */
.uc-stats-grid {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--color-border-primary);
  border-bottom: 1px solid var(--color-border-primary);
  margin: 32px 0 48px;
}
.stat-item {
  flex: 1;
}
.stat-item.stat-wider {
  flex: 2;
}
.stat-value {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 24px;
  color: var(--color-text-primary);
  margin: 0;
}
.stat-value.brand-color {
  color: var(--color-text-brand);
}
.stat-label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  color: var(--color-text-tertiary);
  margin: 4px 0 0;
}

/* Dynamic Case Study Ticket swipe carousel (mainly for mobile views) */
.ticket-stack-wrapper {
  padding: 20px 0 16px;
}
.ticket-stack-cards-box {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  height: 360px;
  touch-action: pan-y;
}
.stack-under-card {
  position: absolute;
  inset: 0;
  background: #f2f3f5;
  border-radius: 20px;
  padding: 10px;
  opacity: 0.6;
  z-index: 1;
}
.stack-top-card {
  position: absolute;
  inset: 0;
  background: #f2f3f5;
  border-radius: 20px;
  padding: 10px;
  z-index: 2;
  will-change: transform;
}
.stack-card-inner-box {
  background: var(--color-text-primary);
  border-radius: 14px;
  padding: 28px 22px;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stack-card-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  color: #fff;
  margin: 0;
}
.stack-card-desc {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  line-height: 20px;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

.ticket-carousel-nav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}
.btn-ticket-nav {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border-primary);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.btn-ticket-nav:hover {
  border-color: var(--color-text-quaternary);
}
.ticket-nav-indicators {
  display: flex;
  gap: 8px;
}
.ticket-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d5d7da;
  transition: all 0.3s ease;
}
.ticket-indicator-dot.active {
  width: 20px;
  border-radius: 4px;
  background: var(--color-brand);
}
.ticket-swipe-label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  color: var(--color-text-tertiary);
  text-align: center;
  margin: 12px 0 0;
  opacity: 0.6;
}

/* Modal Pre-footer starts */
.uc-footer-block {
  padding: 32px;
}
.uc-footer-card {
  background: #fff;
  border-radius: 24px;
  padding: 64px 32px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}
.uc-footer-label-box, .uc-footer-title-box, .uc-footer-desc-box, .uc-footer-cta-box {
  overflow: hidden;
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
}
.uc-footer-label {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  color: var(--color-text-brand);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 16px;
  transform: translateY(110%);
  transition: transform 0.85s cubic-bezier(0.76, 0, 0.24, 1);
}
.uc-footer-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin: 0 0 24px;
  max-width: 600px;
  transform: translateY(110%);
  transition: transform 0.85s cubic-bezier(0.76, 0, 0.24, 1);
}
.uc-footer-desc {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 17px;
  color: var(--color-text-secondary);
  margin: 0 0 36px;
  max-width: 440px;
  line-height: 26px;
  transform: translateY(110%);
  transition: transform 0.85s cubic-bezier(0.76, 0, 0.24, 1);
}
.uc-footer-cta {
  background: var(--color-brand);
  border-radius: 43px;
  padding: 18px 40px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 17px;
  color: var(--color-text-primary);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 48px;
  transform: translateY(110%);
  transition: transform 0.85s cubic-bezier(0.76, 0, 0.24, 1);
}
.uc-footer-cta:hover {
  background: var(--color-brand-hover);
}
/* Triggering animations inside JS */
.uc-footer-card.animated .uc-footer-label {
  transform: translateY(0);
  transition-delay: 0ms;
}
.uc-footer-card.animated .uc-footer-title {
  transform: translateY(0);
  transition-delay: 200ms;
}
.uc-footer-card.animated .uc-footer-desc {
  transform: translateY(0);
  transition-delay: 400ms;
}
.uc-footer-card.animated .uc-footer-cta {
  transform: translateY(0);
  transition-delay: 600ms;
}

/* Close Modal Button */
.btn-uc-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.btn-uc-close:hover {
  transform: scale(1.05);
}

/* -------------------------------------------------------------
   Responsive Breakpoints
   ------------------------------------------------------------- */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 60px;
    line-height: 68px;
  }
}

@media (max-width: 991px) {
  .nav-desktop-bar {
    padding: 0 16px;
    height: 72px;
  }
  .nav-links-wrapper {
    display: none; /* Hide desktop nav links */
  }
  .btn-nav-cta {
    display: none; /* Hide desktop nav button */
  }
  .mobile-menu-toggle {
    display: flex; /* Show hamburger toggle */
  }
  
  .hero-title {
    font-size: 48px;
    line-height: 56px;
  }
  .hero-subtitle {
    font-size: 20px;
    line-height: 28px;
  }
  
  .hero-phone-container {
    width: 600px;
    height: 426px;
  }
  .phone-mockup-frame {
    width: 714px;
    height: 476px;
    top: -21px;
    left: -57px;
  }
  .phone-status-bar {
    left: 216px;
    top: 36px;
    width: 168px;
    height: 25px;
    padding: 0 12px;
  }
  .status-time {
    font-size: 8px;
  }
  .status-icons {
    gap: 3px;
  }
  .phone-screen-content {
    left: 229px;
    top: 77px;
    width: 142px;
    height: 297px;
    border-radius: 12px;
    padding: 4px;
    gap: 6px;
  }
  .banner-brand-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
  }
  .banner-logo-img {
    width: 10px;
  }
  .banner-label {
    font-size: 5px;
  }
  .banner-title {
    font-size: 6px;
  }
  .screen-walkthrough-video {
    border-radius: 6px;
  }
  
  .scroll-words-container {
    padding: 0 32px;
  }
  .scroll-words-text {
    font-size: 28px;
    line-height: 36px;
  }
  
  .uc-content-inner {
    flex-direction: column;
    gap: 32px;
  }
  .uc-sidebar {
    width: 100%;
    position: relative;
    top: 0;
  }
  .uc-sidebar-section {
    border-bottom: 1px solid var(--color-border-primary);
    padding-bottom: 24px;
    margin-bottom: 24px;
  }
  .uc-sidebar-section:first-child {
    display: none; /* Hide TOC on mobile */
  }
}

/* HIGHLY OPTIMIZED MOBILE LAYOUT AND SWIPER CARDS (<= 768px) */
@media (max-width: 768px) {
  .hero-title {
    font-size: 38px;
    line-height: 46px;
  }
  .hero-subtitle {
    font-size: 17px;
    line-height: 24px;
    white-space: normal;
  }
  
  .hero-phone-container {
    width: 100%;
    max-width: 320px;
    height: 227px;
    margin-top: 24px;
  }
  .phone-mockup-frame {
    width: 381px;
    height: 254px;
    top: -11px;
    left: -30px;
  }
  .phone-status-bar {
    left: 115px;
    top: 19px;
    width: 90px;
    height: 14px;
    padding: 0 6px;
  }
  .status-time {
    font-size: 5px;
  }
  .status-icons {
    gap: 2px;
  }
  .phone-screen-content {
    left: 122px;
    top: 41px;
    width: 76px;
    height: 159px;
    border-radius: 6px;
    padding: 2px;
    gap: 3px;
  }
  .banner-brand-icon {
    width: 12px;
    height: 12px;
    border-radius: 3px;
  }
  .banner-logo-img {
    width: 6px;
  }
  .banner-label {
    display: none;
  }
  .banner-title {
    font-size: 4px;
  }
  .screen-walkthrough-video {
    border-radius: 3px;
  }

  /* Core Horizontal Sticky De-activation for touch viewports */
  .horizontal-scroll-wrapper {
    height: auto !important; /* Disables the 500vh locking height */
  }
  .horizontal-sticky-container {
    position: relative;
    height: auto;
    overflow: visible;
    background: #fff;
    padding: 60px 0;
  }
  .horizontal-track-outer {
    height: auto;
  }
  
  /* Native Touch Slider Carousel with Snap alignments */
  .horizontal-track-inner {
    transform: none !important; /* Override JS translations */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-left: 24px;
    padding-right: 24px;
    gap: 16px;
    -webkit-overflow-scrolling: touch;
  }
  /* Hide scrollbar of slides but keep sliding active */
  .horizontal-track-inner::-webkit-scrollbar {
    display: none;
  }

  .h-card-item {
    scroll-snap-align: center;
  }
  .h-card-inner {
    width: min(320px, calc(100vw - 48px)) !important;
  }
  .card-visual-wrapper {
    height: 360px;
    border-radius: 20px;
  }
  .card-title-text {
    font-size: 16px;
  }
  .card-desc-text {
    font-size: 13px;
  }
  .dot-grid-procedural {
    padding: 30px;
  }
  
  .section-title {
    font-size: 32px;
  }
  .section-subtitle {
    font-size: 15px;
  }
  
  .faq-section-title {
    font-size: 28px;
  }
  .faq-accordion-header {
    padding: 16px;
    font-size: 15px;
  }
  .faq-accordion-body p {
    padding: 0 16px 16px;
    font-size: 13px;
  }
  
  .footer-cta-title {
    font-size: 32px;
  }
  .footer-cta-desc {
    font-size: 15px;
  }
  .btn-footer-cta {
    padding: 12px 28px;
    font-size: 15px;
  }
  
  .uc-hero-heading-box {
    padding: 48px 20px;
  }
  .uc-content-container {
    padding: 24px 20px 0;
  }
  .uc-stats-grid {
    flex-direction: column;
    gap: 16px;
  }
}
