/* Custom Local Mergola Font Definitions */
@font-face {
  font-family: 'Mergola';
  src: url('fonts/mergola-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Mergola';
  src: url('fonts/mergola-regular.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Mergola';
  src: url('fonts/mergola-italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: block;
}

@font-face {
  font-family: 'Mergola';
  src: url('fonts/mergola-italic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: block;
}

/* ==========================================================================
   Framenox Creative Agency Landing Page System
   ========================================================================== */

:root {
  --bg-primary: #ffffff;
  --text-main: #000000;
  --text-muted: #222224;
  --pill-bg: #1a1a1a;
  --font-display: 'Outfit', 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-main: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --ease-reveal: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Single-Screen 3D Stage Locking (Landing Page index.html) */
html:not(.subpage-html),
body:not(.subpage-body) {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  position: relative;
}

/* Subpages Normal Scrolling */
html.subpage-html,
body.subpage-body {
  height: auto !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
}

/* iOS Safari prevent zoom on inputs below 16px */
@media screen and (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* Header & Navigation Bar (Exact Reference Layout) */
.navbar {
  flex-shrink: 0;
  width: 100%;
  padding: clamp(16px, 2.6vh, 28px) 0;
  background: #ffffff;
  z-index: 50;
  position: relative;
}

.nav-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4.5vw, 70px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: clamp(32px, 4.5vw, 72px);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.4s var(--ease-reveal);
}

.brand-logo-icon {
  height: clamp(52px, 6vh, 72px);
  width: auto;
  object-fit: contain;
  display: inline-block;
  flex-shrink: 0;
  align-self: center;
  transition: transform 0.4s var(--ease-reveal);
}

.brand-logo:hover .brand-logo-icon {
  transform: rotate(-6deg) scale(1.08);
}

.brand-logo:hover {
  transform: scale(1.02);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vh, 2.1rem);
  letter-spacing: -0.04em;
  color: #000000;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 44px);
}

.nav-item {
  position: relative;
  text-decoration: none;
  color: #222222;
  font-weight: 500;
  font-size: clamp(0.95rem, 1.8vh, 1.1rem);
  transition: var(--transition-smooth);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #000000;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-reveal);
}

.nav-item:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-item:hover {
  color: #000000;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 36px);
}

.btn-login {
  text-decoration: none;
  color: #222222;
  font-weight: 500;
  font-size: clamp(0.95rem, 1.8vh, 1.1rem);
  transition: var(--transition-smooth);
}

.btn-login:hover {
  color: #666666;
  transform: translateY(-1px);
}

.btn-try-free {
  text-decoration: none;
  background: var(--pill-bg);
  color: #ffffff;
  font-weight: 600;
  font-size: clamp(0.9rem, 1.6vh, 1.02rem);
  padding: clamp(9px, 1.4vh, 12px) clamp(22px, 2.2vw, 32px);
  border-radius: 9999px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.btn-try-free:hover {
  background: #333336;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

/* ==========================================================================
   Modern Agency Header, Dropdowns & Slide-Out Drawer System
   ========================================================================== */

.nav-dropdown-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Hover bridge between button and floating menu */
.nav-dropdown-wrap::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 16px;
}

.nav-dropdown-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  font-size: clamp(0.95rem, 1.8vh, 1.1rem);
  color: #222222;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  transition: var(--transition-smooth);
}

.nav-dropdown-btn:hover {
  color: #000000;
}

.dropdown-chevron {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.6;
}

.nav-dropdown-wrap:hover .dropdown-chevron,
.nav-dropdown-wrap.is-open .dropdown-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Glassmorphic Dropdown Menu */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px) scale(0.97);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.04);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease-reveal), transform 0.28s var(--ease-reveal);
  z-index: 120;
  min-width: 520px;
}

.nav-dropdown-wrap:hover .nav-dropdown-menu,
.nav-dropdown-wrap.is-open .nav-dropdown-menu {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
}

.dropdown-inner {
  padding: 20px 22px;
}

.dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.dropdown-tag {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #94a3b8;
}

.dropdown-view-all {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.dropdown-view-all:hover {
  color: #1d4ed8;
  transform: translateX(3px);
}

.dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dropdown-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.dropdown-card:hover {
  background-color: #f8fafc;
  transform: translateY(-2px);
}

.dropdown-icon {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
  padding-top: 2px;
}

.dropdown-card-text {
  display: flex;
  flex-direction: column;
}

.dropdown-card-title {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
  transition: color 0.2s ease;
}

.dropdown-card:hover .dropdown-card-title {
  color: #2563eb;
}

.dropdown-card-desc {
  font-family: var(--font-main);
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.35;
}

/* Compact Dropdown (for More menu) */
.nav-dropdown-compact {
  min-width: 270px;
}

.nav-dropdown-compact .dropdown-inner {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dropdown-compact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.dropdown-compact-link:hover {
  background-color: #f8fafc;
  transform: translateX(4px);
}

.dropdown-compact-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.dropdown-compact-text {
  display: flex;
  flex-direction: column;
}

.dropdown-compact-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  transition: color 0.2s ease;
}

.dropdown-compact-link:hover .dropdown-compact-title {
  color: #2563eb;
}

.dropdown-compact-desc {
  font-family: var(--font-main);
  font-size: 11px;
  color: #64748b;
}

/* Hamburger Button */
.nav-hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.nav-hamburger:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
}

.hamburger-line {
  width: 18px;
  height: 2px;
  background-color: #000000;
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.nav-hamburger.is-active .hamburger-line:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-hamburger.is-active .hamburger-line:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Slide-Out Drawer & Backdrop */
.nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 998;
}

.nav-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(440px, 92vw);
  height: 100vh;
  height: 100dvh;
  background: #09090b;
  color: #ffffff;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow-y: auto;
}

.nav-drawer.is-open {
  transform: translateX(0);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.drawer-logo-img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}

.drawer-logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.drawer-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.25s ease;
}

.drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transform: scale(1.06);
}

.drawer-content {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  flex: 1;
  justify-content: space-between;
}

.drawer-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #64748b;
  display: block;
  margin-bottom: 14px;
}

.drawer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: #e2e8f0;
  text-decoration: none;
  transition: all 0.25s ease;
}

.drawer-nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  transform: translateX(6px);
}

.drawer-idx {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.05em;
  margin-right: 12px;
}

.drawer-link-arrow {
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.25s ease;
  color: #2563eb;
}

.drawer-nav-link:hover .drawer-link-arrow {
  opacity: 1;
  transform: translateX(0);
}

.drawer-cta-box {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(15, 23, 42, 0.6));
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 20px;
}

.drawer-cta-badge {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #60a5fa;
  display: inline-block;
  margin-bottom: 6px;
}

.drawer-cta-text {
  font-family: var(--font-main);
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.45;
  margin-bottom: 12px;
}

.drawer-cta-button {
  display: inline-block;
  background: #2563eb;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.drawer-cta-button:hover {
  background: #1d4ed8;
  transform: scale(1.03);
}

.drawer-contact-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
}

.drawer-contact-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 4px;
}

.drawer-email {
  font-family: var(--font-main);
  font-size: 12.5px;
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.drawer-email:hover {
  color: #ffffff;
}

.drawer-social-icons {
  display: flex;
  gap: 8px;
}

.drawer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.drawer-social-icon:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

/* Responsive navbar breakpoints */
@media screen and (max-width: 1080px) {
  .nav-links {
    display: none !important;
  }
}

@media screen and (max-width: 680px) {
  .nav-container {
    padding: 0 clamp(16px, 4vw, 24px);
  }
}

@media screen and (max-width: 600px) {
  .btn-login {
    display: none !important;
  }
  .btn-try-free {
    padding: 8px 16px !important;
    font-size: 0.82rem !important;
  }
}

@media screen and (max-width: 380px) {
  .btn-try-free {
    padding: 7px 12px !important;
    font-size: 0.76rem !important;
  }
  .brand-logo .logo-text {
    font-size: 1.3rem !important;
  }
}

/* ==========================================================================
   Navbar Entrance Reveal Animations
   ========================================================================== */

.brand-logo,
.nav-item,
.nav-dropdown-wrap,
.btn-login,
.btn-try-free,
.nav-hamburger {
  opacity: 0;
  transform: translateY(-22px);
  will-change: opacity, transform;
  transition: opacity 0.85s var(--ease-reveal), transform 0.85s var(--ease-reveal);
}

body.is-loaded .brand-logo,
body.is-loaded .nav-item,
body.is-loaded .nav-dropdown-wrap,
body.is-loaded .btn-login,
body.is-loaded .btn-try-free,
body.is-loaded .nav-hamburger {
  opacity: 1;
  transform: translateY(0);
}

body.is-loaded .brand-logo { transition-delay: 0.08s; }
body.is-loaded .nav-dropdown-wrap:nth-child(1) { transition-delay: 0.16s; }
body.is-loaded .nav-links > .nav-item:nth-child(2) { transition-delay: 0.20s; }
body.is-loaded .nav-links > .nav-item:nth-child(3) { transition-delay: 0.24s; }
body.is-loaded .nav-links > .nav-item:nth-child(4) { transition-delay: 0.28s; }
body.is-loaded .nav-links > .nav-item:nth-child(5) { transition-delay: 0.32s; }
body.is-loaded .nav-dropdown-wrap:nth-child(6) { transition-delay: 0.36s; }
body.is-loaded .btn-login { transition-delay: 0.40s; }
body.is-loaded .btn-try-free { transition-delay: 0.44s; }
body.is-loaded .nav-hamburger { transition-delay: 0.48s; }

/* ==========================================================================
   3D Single Screen Viewport Stage
   ========================================================================== */

.stage-3d-wrapper {
  position: relative;
  width: 100%;
  height: calc(100vh - 80px);
  height: calc(100dvh - 76px);
  perspective: 1200px;
  perspective-origin: 50% 50%;
  overflow: hidden;
}

@media screen and (max-width: 768px) {
  .stage-3d-wrapper {
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
  }
}

/* ==========================================================================
   Hero Section - Section 1
   ========================================================================== */

.hero-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: clamp(20px, 4vh, 48px) 20px 0;
  overflow: hidden;
  z-index: 10;
  transform-style: preserve-3d;
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) rotateX(0deg) scale(1);
  transition: transform 1.1s var(--ease-reveal), opacity 0.9s var(--ease-reveal);
}

.hero-section.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, -90px, -480px) rotateX(14deg) scale(0.92);
}

.hero-container {
  width: 100%;
  max-width: 1600px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* Subtitle snug right on top of Framenox */
.hero-subtitle {
  font-family: var(--font-main);
  font-size: clamp(0.9rem, 1.8vh, 1.2rem);
  font-weight: 300;
  color: #222224;
  margin-bottom: clamp(-4px, -0.4vh, 2px);
  letter-spacing: 0.02em;
  text-align: center;
  max-width: 680px;
  z-index: 5;
}

/* Stage containing Framenox title and overlaying character assembly */
.hero-stage {
  position: relative;
  width: 100%;
  max-width: clamp(920px, 98vw, 1680px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Giant "Framenox" Heading */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(7.5rem, 27.5vh, 24rem);
  font-weight: 500;
  color: #000000;
  letter-spacing: -0.045em;
  line-height: 0.82;
  margin: 0;
  padding: 0;
  user-select: none;
  width: 100%;
  text-align: center;
  transition: transform 0.5s var(--ease-reveal), letter-spacing 0.5s var(--ease-reveal);
}

.hero-title:hover {
  letter-spacing: -0.035em;
}

/* Horizontal Character Assembly */
.character-assembly {
  position: relative;
  width: 100%;
  max-width: clamp(820px, 94vw, 1520px);
  margin-top: calc(-1 * clamp(98px, 18.5vh, 255px));
  z-index: 10;
  display: flex;
  justify-content: center;
  transform-style: preserve-3d;
}

/* Ambient floating motion for character png */
@keyframes floatGentle {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(0.4deg);
  }
}

.hero-full-characters-img {
  width: 100%;
  max-height: clamp(380px, 70vh, 800px);
  object-fit: contain;
  display: block;
  transition: transform 0.5s var(--ease-reveal), filter 0.5s ease;
  animation: floatGentle 6.5s ease-in-out infinite;
  animation-delay: 1.2s;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.08));
}

.hero-full-characters-img:hover {
  transform: translateY(-6px) scale(1.02);
  filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.14));
}

/* ==========================================================================
   Smooth Reveal Animations for Section 1 (Hero)
   ========================================================================== */

.hero-subtitle,
.hero-title,
.character-assembly {
  opacity: 0;
  will-change: opacity, transform, filter;
  transition: opacity 0.95s var(--ease-reveal),
              transform 1.05s var(--ease-reveal),
              filter 0.95s var(--ease-reveal);
}

.hero-subtitle {
  transform: translateY(-24px);
  filter: blur(6px);
}

.hero-title {
  transform: translateY(42px) scale(0.95);
  filter: blur(8px);
}

.character-assembly {
  transform: translateY(58px) scale(0.93);
  filter: blur(6px);
}

/* Active State Triggered On Page Load & Section Switch */
body.is-loaded .hero-section:not(.is-hidden) .hero-subtitle {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.25s;
}

body.is-loaded .hero-section:not(.is-hidden) .hero-title {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition-delay: 0.42s;
}

body.is-loaded .hero-section:not(.is-hidden) .character-assembly {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition-delay: 0.62s;
}

/* Exit transitions for Section 1 when leaving */
.hero-section.is-hidden .hero-subtitle {
  opacity: 0;
  transform: translateY(-30px);
  filter: blur(4px);
  transition-delay: 0s;
}

.hero-section.is-hidden .hero-title {
  opacity: 0;
  transform: translateY(-45px) scale(0.92);
  filter: blur(6px);
  transition-delay: 0.05s;
}

.hero-section.is-hidden .character-assembly {
  opacity: 0;
  transform: translateY(-50px) scale(0.90);
  filter: blur(6px);
  transition-delay: 0.1s;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .nav-links, .btn-login {
    display: none;
  }

  .nav-container {
    padding: 0 clamp(16px, 4vw, 24px);
  }

  .hero-section {
    padding-top: 14px;
    justify-content: flex-start;
  }

  .hero-subtitle {
    font-size: clamp(0.78rem, 2.8vw, 0.92rem);
    font-weight: 300;
    margin-bottom: 0;
  }

  .hero-title {
    font-size: clamp(3.8rem, 15vh, 7.2rem);
    font-weight: 500;
  }

  .character-assembly {
    margin-top: -55px;
  }

  .hero-full-characters-img {
    max-height: clamp(260px, 50vh, 460px);
  }

  .vision-section {
    padding: clamp(32px, 6vh, 60px) 16px;
  }

  .vision-headline {
    font-size: clamp(2.8rem, 13vw, 5.5rem);
    white-space: normal;
  }

  .vision-headline.line-top {
    margin-bottom: calc(-1 * clamp(12px, 3vw, 25px));
  }

  .vision-headline.line-bottom {
    margin-top: calc(-1 * clamp(12px, 3vw, 25px));
  }

  .vision-image-strip {
    height: clamp(90px, 15vh, 140px);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(2.8rem, 12.5vh, 4.8rem);
  }
  .hero-subtitle {
    font-size: 0.78rem;
    padding: 0 8px;
    max-width: 320px;
  }
  .character-assembly {
    margin-top: -38px;
  }
  .hero-full-characters-img {
    max-height: clamp(210px, 44vh, 340px);
  }
  .vision-headline {
    font-size: clamp(2.1rem, 11vw, 3.6rem);
  }
  .vision-headline.line-top {
    margin-bottom: calc(-1 * clamp(8px, 2.2vw, 16px));
  }
  .vision-headline.line-bottom {
    margin-top: calc(-1 * clamp(8px, 2.2vw, 16px));
  }
  .vision-top-tagline {
    font-size: 0.88rem;
    margin-bottom: 8px;
  }
  .vision-bottom-tagline {
    font-size: 0.78rem;
    padding: 0 10px;
    margin-top: 16px;
    line-height: 1.4;
  }
  .vision-image-strip {
    height: clamp(75px, 12vh, 105px);
  }
}

@media (max-width: 360px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-full-characters-img {
    max-height: 200px;
  }
  .character-assembly {
    margin-top: -28px;
  }
  .vision-headline {
    font-size: 1.85rem;
  }
}

/* ==========================================================================
   Section 2 - Your Vision. Our Frame.
   ========================================================================== */

.vision-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(50px, 8vh, 100px) 20px;
  background-color: #ffffff;
  z-index: 20;
  transform-style: preserve-3d;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 110px, -480px) rotateX(-14deg) scale(0.92);
  transition: transform 1.1s var(--ease-reveal), opacity 0.9s var(--ease-reveal);
  box-sizing: border-box;
}

.vision-section.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) rotateX(0deg) scale(1);
}

.vision-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Top Tagline: "Make Your Brand Impossible to Ignore." */
.vision-top-tagline {
  font-family: var(--font-main);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 2.1vw, 1.55rem);
  color: #111111;
  text-align: center;
  margin-bottom: clamp(10px, 1.8vh, 22px);
  letter-spacing: -0.01em;
  user-select: none;
}

/* Central Stage for Overlapping Text and Image Strip */
.vision-stage {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Main Display Headlines: "Your Vision." & "Our Frame." */
.vision-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.8rem, 16vw, 15.5rem);
  color: #000000;
  text-align: center;
  line-height: 0.84;
  letter-spacing: -0.045em;
  margin: 0;
  padding: 0;
  user-select: none;
  width: 100%;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  transition: letter-spacing 0.5s var(--ease-reveal);
}

.vision-headline:hover {
  letter-spacing: -0.035em;
}

.vision-headline.line-top {
  margin-bottom: calc(-1 * clamp(28px, 5.2vw, 75px));
}

.vision-headline.line-bottom {
  margin-top: calc(-1 * clamp(28px, 5.2vw, 75px));
}

/* Middle Horizontal Image Strip Ribbon */
.vision-image-strip {
  width: 100%;
  max-width: clamp(860px, 95vw, 1580px);
  height: clamp(135px, 21.5vh, 225px);
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 10;
  filter: grayscale(100%) contrast(1.1);
  transition: filter 0.5s var(--ease-reveal), transform 0.5s var(--ease-reveal), box-shadow 0.5s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Glossy shimmer shine overlay effect on image strip reveal */
.vision-image-strip::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: skewX(-25deg);
  pointer-events: none;
  transition: left 1.3s var(--ease-reveal);
}

.vision-section.is-visible .vision-image-strip::after {
  left: 170%;
  transition-delay: 0.5s;
}

.vision-image-strip:hover {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.015);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.strip-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Bottom Tagline */
.vision-bottom-tagline {
  font-family: var(--font-main);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(0.95rem, 1.6vw, 1.3rem);
  color: #222224;
  text-align: center;
  margin-top: clamp(22px, 4vh, 42px);
  letter-spacing: -0.01em;
  max-width: 850px;
  line-height: 1.45;
  user-select: none;
}

/* ==========================================================================
   Smooth Scroll Reveal Animations for Section 2
   ========================================================================== */

.vision-top-tagline,
.vision-headline.line-top,
.vision-image-strip,
.vision-headline.line-bottom,
.vision-bottom-tagline {
  opacity: 0;
  will-change: opacity, transform, filter;
  transition: opacity 0.95s var(--ease-reveal),
              transform 1.1s var(--ease-reveal),
              filter 0.95s var(--ease-reveal);
}

.vision-top-tagline {
  transform: translateY(-30px) scale(0.97);
  filter: blur(5px);
}

/* Initial state (when above Section 2 or coming from Section 1):
   Top line ("Your Vision.") comes from LEFT (-100vw)
   Bottom line ("Our Frame.") comes from RIGHT (+100vw) */
.vision-headline.line-top {
  transform: translate3d(-100vw, 0, 0) scale(0.96);
  filter: blur(8px);
}

.vision-image-strip {
  transform: scaleX(0.80) scale(0.92);
  filter: grayscale(100%) contrast(1.1) blur(6px);
}

.vision-headline.line-bottom {
  transform: translate3d(100vw, 0, 0) scale(0.96);
  filter: blur(8px);
}

.vision-bottom-tagline {
  transform: translateY(35px) scale(0.98);
  filter: blur(5px);
}

/* Active State Triggered On Scroll for Section 2:
   "Your Vision." slides to center (0) from LEFT
   "Our Frame." slides to center (0) from RIGHT */
.vision-section.is-visible .vision-top-tagline {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition-delay: 0.15s;
}

.vision-section.is-visible .vision-headline.line-top {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
  transition-delay: 0.28s;
}

.vision-section.is-visible .vision-image-strip {
  opacity: 1;
  transform: scaleX(1) scale(1);
  filter: grayscale(100%) contrast(1.1) blur(0);
  transition-delay: 0.45s;
}

.vision-section.is-visible .vision-headline.line-bottom {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
  transition-delay: 0.62s;
}

.vision-section.is-visible .vision-bottom-tagline {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition-delay: 0.78s;
}

/* Exit transitions when leaving Section 2 UP to Section 1:
   "Your Vision." goes back to LEFT (-100vw)
   "Our Frame." goes back to RIGHT (+100vw) */
.vision-section:not(.is-visible):not(.exited-to-3) .vision-top-tagline {
  opacity: 0;
  transform: translateY(-25px);
  filter: blur(4px);
  transition-delay: 0s;
}

.vision-section:not(.is-visible):not(.exited-to-3) .vision-headline.line-top {
  opacity: 0;
  transform: translate3d(-100vw, 0, 0) scale(0.96);
  filter: blur(6px);
  transition-delay: 0.05s;
}

.vision-section:not(.is-visible):not(.exited-to-3) .vision-image-strip {
  opacity: 0;
  transform: scaleX(0.85) scale(0.94);
  filter: grayscale(100%) blur(6px);
  transition-delay: 0.1s;
}

.vision-section:not(.is-visible):not(.exited-to-3) .vision-headline.line-bottom {
  opacity: 0;
  transform: translate3d(100vw, 0, 0) scale(0.96);
  filter: blur(6px);
  transition-delay: 0.05s;
}

.vision-section:not(.is-visible):not(.exited-to-3) .vision-bottom-tagline {
  opacity: 0;
  transform: translateY(25px);
  filter: blur(4px);
  transition-delay: 0s;
}

/* Exit transitions when scrolling DOWN to Section 3:
   "Your Vision." (which came from left) goes off to the RIGHT (+100vw)
   "Our Frame." (which came from right) goes off to the LEFT (-100vw) */
.vision-section.exited-to-3 .vision-top-tagline {
  opacity: 0;
  transform: translateY(-30px);
  filter: blur(4px);
  transition-delay: 0s;
}

.vision-section.exited-to-3 .vision-headline.line-top {
  opacity: 0;
  transform: translate3d(100vw, 0, 0) scale(0.96);
  filter: blur(6px);
  transition-delay: 0.05s;
}

.vision-section.exited-to-3 .vision-image-strip {
  opacity: 0;
  transform: scaleX(0.85) scale(0.94);
  filter: grayscale(100%) blur(6px);
  transition-delay: 0.1s;
}

.vision-section.exited-to-3 .vision-headline.line-bottom {
  opacity: 0;
  transform: translate3d(-100vw, 0, 0) scale(0.96);
  filter: blur(6px);
  transition-delay: 0.05s;
}

.vision-section.exited-to-3 .vision-bottom-tagline {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(4px);
  transition-delay: 0s;
}

/* ==========================================================================
   Floating Navigation Dots Indicator
   ========================================================================== */

.section-nav-dots {
  position: absolute;
  right: clamp(16px, 3vw, 36px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-reveal);
  padding: 0;
  outline: none;
}

.nav-dot:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: scale(1.25);
}

.nav-dot.active {
  background: #000000;
  height: 26px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .section-nav-dots {
    right: 8px;
    gap: 7px;
  }
  .nav-dot {
    width: 6px;
    height: 6px;
  }
  .nav-dot.active {
    height: 18px;
    border-radius: 6px;
  }
}

/* ==========================================================================
   Section 3 - What We Can Do (Elliptical 3D Ring Layout)
   ========================================================================== */

.what-we-do-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(30px, 5vh, 60px) 20px;
  background-color: #ffffff;
  z-index: 30;
  transform-style: preserve-3d;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 110px, -480px) rotateX(-14deg) scale(0.92);
  transition: transform 1.1s var(--ease-reveal), opacity 0.9s var(--ease-reveal);
  box-sizing: border-box;
}

.what-we-do-section.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) rotateX(0deg) scale(1);
}

.what-we-do-container {
  width: 100%;
  max-width: 1600px;
  height: 100%;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Central Display Headline: "Our Works" */
.what-we-do-title {
  font-family: 'Mergola', serif !important;
  font-weight: 400 !important;
  font-style: normal;
  font-size: clamp(4.5rem, 10.5vw, 9rem);
  color: #111111;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 30;
  user-select: none;
  letter-spacing: 0em;
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
  transition: transform 0.8s var(--ease-reveal), opacity 0.8s var(--ease-reveal);
}

/* Card Ring Stage Container */
.card-ring-container {
  position: relative;
  width: 100%;
  max-width: clamp(800px, 86vw, 1300px);
  height: clamp(500px, 76vh, 820px);
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Individual Floating Card Container (Tall Portrait Rectangle Ratio - Sharp Corners) */
.ring-card {
  position: absolute;
  width: clamp(145px, 14.5vw, 215px);
  height: clamp(200px, 23vh, 300px);
  border-radius: 3px;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  transform-style: preserve-3d;
  transition: transform 0.65s var(--ease-reveal),
              opacity 0.65s var(--ease-reveal),
              filter 0.65s ease,
              box-shadow 0.4s ease;
  z-index: 10;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  will-change: transform, opacity, filter;
}

/* Clean Lift-Off Hover Animation for Individual Clickable Cards */
.ring-card:hover {
  z-index: 60 !important;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18), 0 6px 16px rgba(0, 0, 0, 0.08) !important;
  border-radius: 3px !important;
  transition: transform 0.25s var(--ease-reveal), box-shadow 0.25s ease !important;
}

.what-we-do-section.is-visible .card-1:hover  { transform: translate(-50%, 0) rotate(-5deg) translateY(-14px) scale(1.06) !important; }
.what-we-do-section.is-visible .card-2:hover  { transform: translate(-50%, 0) rotate(-2deg) translateY(-14px) scale(1.06) !important; }
.what-we-do-section.is-visible .card-3:hover  { transform: translate(-50%, 0) rotate(2deg)  translateY(-14px) scale(1.06) !important; }
.what-we-do-section.is-visible .card-4:hover  { transform: translate(-50%, 0) rotate(5deg)  translateY(-14px) scale(1.06) !important; }
.what-we-do-section.is-visible .card-5:hover  { transform: translate(-50%, 0) rotate(6deg)  translateY(-14px) scale(1.06) !important; }
.what-we-do-section.is-visible .card-6:hover  { transform: translate(-50%, 0) rotate(4deg)  translateY(-14px) scale(1.06) !important; }
.what-we-do-section.is-visible .card-7:hover  { transform: translate(-50%, 0) rotate(2deg)  translateY(-14px) scale(1.06) !important; }
.what-we-do-section.is-visible .card-8:hover  { transform: translate(-50%, 0) rotate(-2deg) translateY(-14px) scale(1.06) !important; }
.what-we-do-section.is-visible .card-9:hover  { transform: translate(-50%, 0) rotate(-4deg) translateY(-14px) scale(1.06) !important; }
.what-we-do-section.is-visible .card-10:hover { transform: translate(-50%, 0) rotate(-6deg) translateY(-14px) scale(1.06) !important; }

/* Card Inner Box */
.card-inner {
  width: 100%;
  height: 100%;
  border-radius: 3px;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.09), 0 2px 8px rgba(0, 0, 0, 0.04);
  background-color: #ffffff;
  position: relative;
  display: flex;
  flex-direction: column;
}

.card-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Symmetrical Elliptical Positioning & Centered Rotations for 10 Cards */
.what-we-do-section.is-visible .card-1  { top: 8%;  left: 24%; transform: translate(-50%, 0) rotate(-5deg) scale(1) translateY(0); }
.what-we-do-section.is-visible .card-2  { top: 3%;  left: 41%; transform: translate(-50%, 0) rotate(-2deg) scale(1) translateY(0); }
.what-we-do-section.is-visible .card-3  { top: 3%;  left: 59%; transform: translate(-50%, 0) rotate(2deg)  scale(1) translateY(0); }
.what-we-do-section.is-visible .card-4  { top: 8%;  left: 76%; transform: translate(-50%, 0) rotate(5deg)  scale(1) translateY(0); }
.what-we-do-section.is-visible .card-5  { top: 38%; left: 86%; transform: translate(-50%, 0) rotate(6deg)  scale(1) translateY(0); }
.what-we-do-section.is-visible .card-6  { top: 68%; left: 74%; transform: translate(-50%, 0) rotate(4deg)  scale(1) translateY(0); }
.what-we-do-section.is-visible .card-7  { top: 76%; left: 58%; transform: translate(-50%, 0) rotate(2deg)  scale(1) translateY(0); }
.what-we-do-section.is-visible .card-8  { top: 76%; left: 42%; transform: translate(-50%, 0) rotate(-2deg) scale(1) translateY(0); }
.what-we-do-section.is-visible .card-9  { top: 68%; left: 26%; transform: translate(-50%, 0) rotate(-4deg) scale(1) translateY(0); }
.what-we-do-section.is-visible .card-10 { top: 38%; left: 14%; transform: translate(-50%, 0) rotate(-6deg) scale(1) translateY(0); }

/* Initial Hidden Position Before Reveal (Centered, Scaled down, Shifted down, Blurred) */
.what-we-do-section:not(.is-visible) .card-1  { top: 8%;  left: 24%; transform: translate(-50%, 0) rotate(-5deg) scale(0.55) translateY(60px); opacity: 0; filter: blur(10px); }
.what-we-do-section:not(.is-visible) .card-2  { top: 3%;  left: 41%; transform: translate(-50%, 0) rotate(-2deg) scale(0.55) translateY(60px); opacity: 0; filter: blur(10px); }
.what-we-do-section:not(.is-visible) .card-3  { top: 3%;  left: 59%; transform: translate(-50%, 0) rotate(2deg)  scale(0.55) translateY(60px); opacity: 0; filter: blur(10px); }
.what-we-do-section:not(.is-visible) .card-4  { top: 8%;  left: 76%; transform: translate(-50%, 0) rotate(5deg)  scale(0.55) translateY(60px); opacity: 0; filter: blur(10px); }
.what-we-do-section:not(.is-visible) .card-5  { top: 38%; left: 86%; transform: translate(-50%, 0) rotate(6deg)  scale(0.55) translateY(60px); opacity: 0; filter: blur(10px); }
.what-we-do-section:not(.is-visible) .card-6  { top: 68%; left: 74%; transform: translate(-50%, 0) rotate(4deg)  scale(0.55) translateY(60px); opacity: 0; filter: blur(10px); }
.what-we-do-section:not(.is-visible) .card-7  { top: 76%; left: 58%; transform: translate(-50%, 0) rotate(2deg)  scale(0.55) translateY(60px); opacity: 0; filter: blur(10px); }
.what-we-do-section:not(.is-visible) .card-8  { top: 76%; left: 42%; transform: translate(-50%, 0) rotate(-2deg) scale(0.55) translateY(60px); opacity: 0; filter: blur(10px); }
.what-we-do-section:not(.is-visible) .card-9  { top: 68%; left: 26%; transform: translate(-50%, 0) rotate(-4deg) scale(0.55) translateY(60px); opacity: 0; filter: blur(10px); }
.what-we-do-section:not(.is-visible) .card-10 { top: 38%; left: 14%; transform: translate(-50%, 0) rotate(-6deg) scale(0.55) translateY(60px); opacity: 0; filter: blur(10px); }

/* Custom Card Designs matching reference screenshot */

/* Card 1: Text quote card */
.text-card-1 {
  background-color: #f7f4ee;
  padding: clamp(14px, 1.8vw, 22px);
  justify-content: center;
  align-items: flex-start;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.text-card-1 h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.35vw, 1.25rem);
  color: #1a1a1a;
  line-height: 1.28;
  letter-spacing: -0.03em;
}

/* Card 2: Blue-Purple Smooth Gradient */
.gradient-card-purple {
  background: linear-gradient(135deg, #4f73fe 0%, #a269ff 50%, #f78da7 100%);
}

/* Card 4: Electric Blue Glean / Framenox Brand Card */
.brand-blue-card {
  background-color: #1d52fe;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.brand-blue-card .brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  color: #ffffff;
  letter-spacing: -0.04em;
}

/* Card 5: Pale Green Metric Card */
.metric-card {
  background-color: #e9f5e1;
  padding: clamp(12px, 1.4vw, 18px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.arrow-up-badge {
  width: clamp(24px, 2.2vw, 32px);
  height: clamp(24px, 2.2vw, 32px);
  border-radius: 50%;
  background-color: #a4eb34;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1a1a1a;
}

.metric-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  color: #111111;
  line-height: 1;
  margin-top: 4px;
}

.metric-lbl {
  font-size: clamp(0.65rem, 0.8vw, 0.78rem);
  font-weight: 500;
  color: #555555;
  line-height: 1.2;
}

/* Card 6: Light Lime Green Chat Bubble Card */
.chat-bubble-card {
  background-color: #d4f799;
  padding: clamp(10px, 1.2vw, 16px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-chip {
  background-color: #ffffff;
  border-radius: 999px;
  padding: clamp(6px, 0.8vw, 10px) clamp(10px, 1.2vw, 14px);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(0.62rem, 0.75vw, 0.75rem);
  font-weight: 600;
  color: #222222;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.chat-icon {
  color: #1d52fe;
}

/* Card 7: Yellow Gradient Card */
.yellow-gradient-card {
  background: linear-gradient(135deg, #fbf772 0%, #e6df29 100%);
  padding: 14px;
  position: relative;
}

.arrow-corner {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #222222;
}

/* Card 9: Security badge */
.security-card {
  background: linear-gradient(135deg, #d8efff 0%, #b0dfff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.keycard-badge {
  width: clamp(48px, 4.5vw, 68px);
  height: clamp(48px, 4.5vw, 68px);
  background-color: #ffffff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.lock-circle {
  font-size: clamp(1.2rem, 1.8vw, 1.8rem);
}

/* Card 10: Swimming Pool Banner Card */
.pool-banner-card {
  position: relative;
}

.pool-overlay-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: clamp(8px, 1vw, 14px);
  background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, transparent 100%);
}

.pool-overlay-text p {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.6rem, 0.75vw, 0.78rem);
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* Card 12: HR App Badge Card */
.hr-app-card {
  background-color: #f7f1eb;
  padding: clamp(12px, 1.4vw, 18px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hr-badge {
  background-color: #ffdae9;
  border-radius: 999px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(0.6rem, 0.72vw, 0.74rem);
  font-weight: 600;
  color: #9c1f5e;
  align-self: flex-start;
}

.dot-pink {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #e62e83;
}

.hr-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #d1bfae;
}

.user-name {
  font-size: clamp(0.65rem, 0.78vw, 0.8rem);
  font-weight: 600;
  color: #444444;
}

/* Card 13: Lime Green Gradient */
.gradient-card-lime {
  background: linear-gradient(135deg, #e3f972 0%, #8ee338 100%);
}

/* ==========================================================================
   Smooth Stagger Reveals for Section 3
   ========================================================================== */

.what-we-do-title,
.ring-card {
  opacity: 0;
  will-change: opacity, transform, filter;
  transition: opacity 0.95s var(--ease-reveal),
              transform 1.05s var(--ease-reveal),
              filter 0.95s var(--ease-reveal);
}

.what-we-do-title {
  transform: translate(-50%, -50%) scale(0.92);
  filter: blur(6px);
}

.ring-card {
  filter: blur(8px);
}

.what-we-do-section.is-visible .what-we-do-title {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  filter: blur(0);
  transition-delay: 0.2s;
}

.what-we-do-section.is-visible .ring-card {
  opacity: 1;
  filter: blur(0);
}

/* Sequential One-By-One Card Pop Reveal Delays */
.what-we-do-section.is-visible .card-1  { transition-delay: 0.10s; }
.what-we-do-section.is-visible .card-2  { transition-delay: 0.16s; }
.what-we-do-section.is-visible .card-3  { transition-delay: 0.22s; }
.what-we-do-section.is-visible .card-4  { transition-delay: 0.28s; }
.what-we-do-section.is-visible .card-5  { transition-delay: 0.34s; }
.what-we-do-section.is-visible .card-6  { transition-delay: 0.40s; }
.what-we-do-section.is-visible .card-7  { transition-delay: 0.46s; }
.what-we-do-section.is-visible .card-8  { transition-delay: 0.52s; }
.what-we-do-section.is-visible .card-9  { transition-delay: 0.58s; }
.what-we-do-section.is-visible .card-10 { transition-delay: 0.64s; }

/* Responsive adjustments for Section 3 */
@media (max-width: 1024px) {
  .what-we-do-title {
    font-size: clamp(2.6rem, 7vw, 4.5rem);
  }
  .ring-card {
    width: clamp(100px, 14vw, 140px);
    height: clamp(140px, 18vh, 195px);
  }
}

@media (max-width: 768px) {
  .card-ring-container {
    height: clamp(440px, 70vh, 620px);
  }
  .what-we-do-title {
    font-size: clamp(2.2rem, 8.5vw, 3.4rem);
  }
  .ring-card {
    width: clamp(84px, 18vw, 115px);
    height: clamp(115px, 18vh, 160px);
  }
}

@media (max-width: 600px) {
  .what-we-do-title {
    font-size: clamp(1.9rem, 8vw, 2.8rem);
  }
  .ring-card {
    width: clamp(74px, 18vw, 98px);
    height: clamp(100px, 16vh, 138px);
  }
  /* Perfectly Centered Ellipse on Small Screens - Contained Within Safe Margins */
  .card-1  { top: 10%; left: 26%; }
  .card-2  { top: 4%;  left: 43%; }
  .card-3  { top: 4%;  left: 57%; }
  .card-4  { top: 10%; left: 74%; }
  .card-5  { top: 38%; left: 83%; }
  .card-6  { top: 68%; left: 73%; }
  .card-7  { top: 76%; left: 57%; }
  .card-8  { top: 76%; left: 43%; }
  .card-9  { top: 68%; left: 27%; }
  .card-10 { top: 38%; left: 17%; }
}

@media (max-width: 480px) {
  .card-ring-container {
    height: clamp(380px, 65vh, 520px);
  }
  .ring-card {
    width: clamp(64px, 17vw, 84px);
    height: clamp(88px, 15vh, 118px);
  }
  .what-we-do-title {
    font-size: clamp(1.65rem, 7.5vw, 2.2rem);
  }
  .card-1  { top: 9%;  left: 28%; }
  .card-2  { top: 4%;  left: 44%; }
  .card-3  { top: 4%;  left: 56%; }
  .card-4  { top: 9%;  left: 72%; }
  .card-5  { top: 38%; left: 81%; }
  .card-6  { top: 68%; left: 72%; }
  .card-7  { top: 76%; left: 56%; }
  .card-8  { top: 76%; left: 44%; }
  .card-9  { top: 68%; left: 28%; }
  .card-10 { top: 38%; left: 19%; }
}

@media (max-width: 360px) {
  .ring-card {
    width: 60px;
    height: 82px;
  }
  .card-5  { left: 80%; }
  .card-10 { left: 20%; }
}

/* ==========================================================================
   Agency Work Cards Visual Enhancements
   ========================================================================== */

.work-card {
  transition: transform 0.4s var(--ease-reveal), box-shadow 0.4s ease;
}

.image-card-with-overlay {
  position: relative;
}

.image-card-with-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: clamp(6px, 0.9vw, 12px);
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 65%, transparent 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.work-badge {
  font-size: clamp(0.5rem, 0.62vw, 0.68rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.95);
  color: #111111;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.work-badge.badge-blue {
  background-color: #1d52fe;
  color: #ffffff;
}

.work-badge.badge-purple {
  background-color: #8b5cf6;
  color: #ffffff;
}

.work-badge.badge-dark {
  background-color: #1a1a1a;
  color: #ffffff;
}

.work-badge.badge-orange {
  background-color: #ff5722;
  color: #ffffff;
}

.work-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.68rem, 0.85vw, 0.88rem);
  color: #ffffff;
  line-height: 1.2;
}

.card-tag-pill {
  font-size: clamp(0.55rem, 0.65vw, 0.7rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1d52fe;
  margin-bottom: 4px;
  display: block;
}

.card-sub-lbl {
  font-size: clamp(0.58rem, 0.7vw, 0.74rem);
  font-weight: 500;
  color: #666666;
  margin-top: 4px;
  display: block;
}

.agency-tag {
  font-size: clamp(0.52rem, 0.65vw, 0.68rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2px;
}

.yellow-card-content {
  position: absolute;
  bottom: 10px;
  left: 10px;
}

.y-tag {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #555500;
  display: block;
}

.y-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.75rem, 0.95vw, 1rem);
  color: #111111;
  line-height: 1.1;
}

.sec-label {
  font-size: clamp(0.58rem, 0.7vw, 0.74rem);
  font-weight: 700;
  color: #0d47a1;
  margin-top: 6px;
  text-align: center;
}

.lime-content {
  padding: clamp(8px, 1.2vw, 14px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.lime-tag {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #2e5900;
}

.lime-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.78rem, 0.98vw, 1.05rem);
  color: #112600;
  line-height: 1.15;
}

/* ==========================================================================
   macOS App Launch Wave Modal Overlay & Popup System (Section 3)
   ========================================================================== */

.work-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vh, 40px);
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.42s var(--ease-reveal);
  box-sizing: border-box;
}

.work-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* macOS Window Card with Wave Launch / Spring Expansion */
.work-modal-card {
  width: 100%;
  max-width: 940px;
  max-height: calc(100vh - 80px);
  background: #ffffff;
  border-radius: clamp(18px, 2.2vw, 28px);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.38) translateY(65px) rotateX(6deg);
  filter: blur(14px);
  transition: transform 0.52s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.45s ease;
  will-change: transform, filter;
}

.work-modal-overlay.is-open .work-modal-card {
  transform: scale(1) translateY(0) rotateX(0deg);
  filter: blur(0);
}

/* macOS Window Bar */
.mac-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: #f8f8f9;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  user-select: none;
}

.mac-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mac-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.red-dot {
  background-color: #ff5f56;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(255, 95, 86, 0.4);
}

.red-dot:hover {
  transform: scale(1.15);
  background-color: #e0443e;
}

.yellow-dot {
  background-color: #ffbd2e;
}

.green-dot {
  background-color: #27c93f;
}

.mac-window-title {
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  color: #777777;
  letter-spacing: 0.02em;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.15rem;
  font-weight: 600;
  color: #666666;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: var(--transition-smooth);
  line-height: 1;
}

.modal-close-btn:hover {
  color: #000000;
  background: rgba(0, 0, 0, 0.06);
}

/* Modal Body Grid Layout */
.work-modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3.2vw, 40px);
  padding: clamp(24px, 3.5vw, 42px);
  overflow-y: auto;
  align-items: center;
}

.modal-preview-col {
  width: 100%;
}

.modal-img-wrapper {
  position: relative;
  width: 100%;
  height: clamp(230px, 35vh, 380px);
  border-radius: clamp(14px, 1.6vw, 20px);
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.14);
}

.modal-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(17, 17, 17, 0.88);
  backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.modal-info-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.modal-project-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  font-weight: 800;
  color: #111111;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.modal-project-tagline {
  font-size: clamp(0.88rem, 1.05vw, 1.02rem);
  font-weight: 600;
  color: #1d52fe;
  margin-bottom: 16px;
  line-height: 1.35;
}

.modal-divider {
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 0.07);
  margin-bottom: 18px;
}

.modal-project-description {
  font-size: clamp(0.85rem, 0.98vw, 0.96rem);
  font-weight: 400;
  color: #444444;
  line-height: 1.62;
  margin-bottom: 22px;
}

.modal-highlights-heading {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888888;
  margin-bottom: 10px;
}

.modal-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.modal-tag-chip {
  background-color: #f3f4f6;
  color: #1a1a1a;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.modal-btn-primary {
  text-decoration: none;
  background: #111111;
  color: #ffffff;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-btn-primary:hover {
  background: #1d52fe;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(29, 82, 254, 0.3);
}

.modal-btn-secondary {
  background: #f0f1f4;
  color: #444444;
  border: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-btn-secondary:hover {
  background: #e2e4e8;
  color: #111111;
}

@media (max-width: 768px) {
  .work-modal-card {
    max-height: 90vh;
    max-height: 90dvh;
    border-radius: 20px 20px 0 0;
  }
  .work-modal-body {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 16px;
  }
  .modal-img-wrapper {
    height: 180px;
  }
  .modal-project-title {
    font-size: 1.45rem;
  }
  .modal-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .modal-btn-primary, .modal-btn-secondary {
    text-align: center;
    width: 100%;
    padding: 13px;
  }
}

/* Responsive Brands Section */
@media (max-width: 768px) {
  .brands-section {
    padding-top: 28px;
  }
  .brands-title {
    font-size: clamp(2.2rem, 9vw, 3.8rem);
    margin-bottom: 12px;
  }
  .brands-title .title-line {
    white-space: normal;
  }
  .brands-subtitle {
    font-size: 0.88rem;
    max-width: 100%;
  }
  .brands-ribbon-wrapper {
    padding-bottom: 30px;
  }
  .brands-ribbon-strip {
    width: 110vw;
    margin-left: -5vw;
    height: clamp(100px, 16vh, 150px);
    transform: rotate(-3deg);
  }
  .brand-item img {
    max-height: clamp(38px, 6vh, 52px);
  }
}

@media (max-width: 480px) {
  .brands-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }
  .brands-ribbon-strip {
    height: 90px;
  }
  .brand-item img {
    max-height: 34px;
  }
}

/* ==========================================================================
   Section 4: Brands We've Worked With (Exact Reference Design System)
   ========================================================================== */

.brands-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(50px, 7vh, 90px) 0 0;
  background-color: #ffffff;
  z-index: 25;
  transform-style: preserve-3d;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 110px, -480px) rotateX(-14deg) scale(0.92);
  transition: transform 1.1s var(--ease-reveal), opacity 0.9s var(--ease-reveal);
  box-sizing: border-box;
}

.brands-section.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) rotateX(0deg) scale(1);
}

.brands-container {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

/* Header Area (Left-Aligned Mergola Title & Subtitle - Original Small Size) */
.brands-header {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 85px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* Heading: "Brands We've Worked With" in Mergola font - Original Size */
.brands-title {
  font-family: 'Mergola', serif !important;
  font-weight: 400 !important;
  font-style: normal;
  font-size: clamp(3.6rem, 7.2vw, 6.4rem);
  color: #222222;
  line-height: 1.06;
  letter-spacing: 0em;
  margin-bottom: clamp(16px, 2.4vh, 26px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  user-select: none;
}

.brands-title .title-line {
  display: block;
  white-space: nowrap;
}

/* Subtitle - Original Compact Size */
.brands-subtitle {
  font-family: var(--font-main);
  font-size: clamp(0.88rem, 1.08vw, 1.05rem);
  font-weight: 300;
  color: #555555;
  max-width: 620px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  user-select: none;
}

/* Clean Pure White Angled Ribbon Banner Strip - Original Height & Gap */
.brands-ribbon-wrapper {
  position: relative;
  width: 100%;
  margin-top: auto;
  padding-bottom: clamp(40px, 6vh, 85px);
  display: flex;
  align-items: center;
}

.brands-ribbon-strip {
  width: 120vw;
  margin-left: -10vw;
  height: clamp(150px, 24vh, 230px);
  background-color: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transform: rotate(-4.5deg);
  transform-origin: center center;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

/* Infinite Horizontal Marquee Ticker Track */
.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(40px, 6.5vw, 100px);
  white-space: nowrap;
  animation: marqueeScroll 32s linear infinite;
  will-change: transform;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.333%);
  }
}

.brand-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 10px;
}

.brand-item img {
  max-height: clamp(55px, 8.5vh, 95px);
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.85);
  transition: filter 0.35s ease, transform 0.35s ease;
  user-select: none;
}

.brand-item:hover img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.08);
}

/* Smooth Entrance Reveals for Section 4 */
.brands-title,
.brands-subtitle,
.brands-ribbon-strip {
  opacity: 0;
  will-change: opacity, transform, filter;
  transition: opacity 0.95s var(--ease-reveal),
              transform 1.05s var(--ease-reveal),
              filter 0.95s var(--ease-reveal);
}

.brands-title {
  transform: translateY(-28px);
  filter: blur(6px);
}

.brands-subtitle {
  transform: translateY(24px);
  filter: blur(5px);
}

.brands-ribbon-strip {
  filter: blur(8px);
}

.brands-section.is-visible .brands-title {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.2s;
}

.brands-section.is-visible .brands-subtitle {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.35s;
}

.brands-section.is-visible .brands-ribbon-strip {
  opacity: 1;
  filter: blur(0);
  transition-delay: 0.5s;
}

/* ==========================================================================
   Section 5: Our Services (Clean, Light, Refined & Spacious Design)
   ========================================================================== */

.services-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(20px, 3.5vh, 45px) clamp(24px, 5vw, 85px);
  background-color: #ffffff;
  z-index: 35;
  transform-style: preserve-3d;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 110px, -480px) rotateX(-14deg) scale(0.92);
  transition: transform 1.1s var(--ease-reveal), opacity 0.9s var(--ease-reveal);
  box-sizing: border-box;
}

.services-section.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) rotateX(0deg) scale(1);
}

.services-container {
  width: 100%;
  max-width: 1500px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Seamless, Flat & Borderless Layout (Generous Space Between Heading & Service Points) */
.services-card-wrapper {
  width: 100%;
  background: transparent;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 5.5vh, 68px);
  box-shadow: none;
  position: relative;
  border: none;
}

/* Header Area (Tag + Headline on left, Description on right) */
.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(24px, 4vw, 60px);
  width: 100%;
  margin-bottom: clamp(8px, 1.5vh, 18px);
}

.services-header-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.services-tag-label {
  font-family: var(--font-main);
  font-size: clamp(0.7rem, 0.78vw, 0.82rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #777777;
  margin-bottom: clamp(4px, 0.8vh, 8px);
}

/* Refined, Compact & Elegant Headline */
.services-headline {
  font-family: 'Mergola', serif !important;
  font-weight: 400;
  font-size: clamp(2.2rem, 3.8vw, 4.0rem);
  color: #111111;
  line-height: 1.08;
  letter-spacing: -0.015em;
  display: flex;
  flex-direction: column;
}

.headline-row-1 {
  display: block;
}

.headline-row-2 {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Compact Badge around "provide*" */
.provide-badge {
  background-color: #111111;
  color: #ffffff;
  font-family: 'Mergola', serif !important;
  font-weight: 400;
  padding: 2px clamp(12px, 1.4vw, 20px);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  position: relative;
  line-height: 1.05;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform-origin: center left;
  transition: transform 0.4s var(--ease-reveal);
}

.provide-badge:hover {
  transform: scale(1.04);
}

/* Asterisk symbol */
.badge-asterisk {
  position: absolute;
  top: -8px;
  right: -10px;
  font-size: clamp(1.1rem, 1.6vw, 1.6rem);
  font-weight: 400;
  color: #111111;
  line-height: 1;
  user-select: none;
}

.services-header-right {
  max-width: 440px;
  padding-top: clamp(6px, 1vh, 14px);
}

.services-description {
  font-family: var(--font-main);
  font-size: clamp(0.85rem, 0.95vw, 0.98rem);
  font-weight: 400;
  color: #666666;
  line-height: 1.55;
  letter-spacing: 0em;
}

/* Services Main Grid Layout (List on Left, Preview Card on Right) */
.services-main-grid {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: clamp(28px, 3.5vw, 50px);
  align-items: center;
  width: 100%;
}

.services-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Compact & Neatly Proportioned Service Rows */
.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(10px, 1.4vh, 15px) clamp(8px, 1vw, 16px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.35s var(--ease-reveal);
  position: relative;
  border-radius: 2px;
}

.service-row:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.service-left {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 32px);
}

/* Compact Badge Circles */
.service-badge-circle {
  width: clamp(32px, 2.4vw, 38px);
  height: clamp(32px, 2.4vw, 38px);
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background-color: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 0.8rem;
  color: #555555;
  flex-shrink: 0;
  transition: all 0.35s var(--ease-reveal);
}

.service-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 1.75vw, 1.65rem);
  color: #222222;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
  transition: transform 0.35s var(--ease-reveal), color 0.35s ease;
}

/* Compact Circle Arrow Button */
.service-arrow-circle {
  width: clamp(32px, 2.4vw, 38px);
  height: clamp(32px, 2.4vw, 38px);
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background-color: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555555;
  flex-shrink: 0;
  transition: all 0.35s var(--ease-reveal);
}

.service-arrow-circle svg {
  width: 17px;
  height: 17px;
  transition: transform 0.35s var(--ease-reveal);
}

/* Service Row Hover & Active State */
.service-row:hover,
.service-row.active {
  background-color: #f8f8f8;
  transform: translateX(5px);
  padding-left: clamp(14px, 1.4vw, 22px);
}

.service-row:hover .service-badge-circle,
.service-row.active .service-badge-circle {
  background-color: #111111;
  border-color: #111111;
  color: #ffffff;
  transform: scale(1.04);
}

.service-row:hover .service-title,
.service-row.active .service-title {
  color: #000000;
  font-weight: 600;
  transform: translateX(3px);
}

.service-row:hover .service-arrow-circle,
.service-row.active .service-arrow-circle {
  background-color: #111111;
  border-color: #111111;
  color: #ffffff;
  transform: scale(1.04);
}

.service-row:hover .service-arrow-circle svg,
.service-row.active .service-arrow-circle svg {
  transform: rotate(-45deg);
}

/* Floating Image Preview Card Container - Sharp MacBook Folder Style */
.service-preview-wrapper {
  width: 100%;
  height: clamp(230px, 32vh, 320px);
  position: relative;
  perspective: 1000px;
  padding-top: 14px;
}

.mac-folder-tab {
  position: absolute;
  top: 0;
  left: 0;
  width: 38%;
  height: 15px;
  background-color: #e5e5e7;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-bottom: none;
  border-radius: 3px 3px 0 0;
  z-index: 5;
}

.service-preview-card {
  width: 100%;
  height: calc(100% - 14px);
  border-radius: 0 3px 3px 3px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(0, 0, 0, 0.16);
  position: relative;
  background-color: #ffffff;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-reveal);
  display: flex;
  flex-direction: column;
}

.mac-folder-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background-color: #e5e5e7;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  user-select: none;
}

.mac-folder-title {
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 600;
  color: #666666;
  letter-spacing: 0.02em;
}

.mac-folder-content {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 1;
  overflow: hidden;
}

.mac-folder-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.35s ease, transform 0.5s var(--ease-reveal);
}

.preview-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 18px;
  background: linear-gradient(0deg, rgba(0,0,0,0.65) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
}

.preview-badge {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  color: #111111;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  letter-spacing: 0.01em;
}

/* ==========================================================================
   Smooth Staggered Scroll Reveal Animations for Section 5
   ========================================================================== */

.services-tag-label,
.services-headline,
.provide-badge,
.services-description,
.service-row,
.service-preview-card {
  opacity: 0;
  will-change: opacity, transform, filter;
  transition: opacity 0.95s var(--ease-reveal),
              transform 1.05s var(--ease-reveal),
              filter 0.95s var(--ease-reveal);
}

.services-tag-label {
  transform: translateY(-20px);
  filter: blur(4px);
}

.services-headline {
  transform: translateY(35px);
  filter: blur(6px);
}

.provide-badge {
  transform: scale(0.75);
}

.services-description {
  transform: translateY(22px);
  filter: blur(4px);
}

.service-row {
  transform: translateY(35px);
  filter: blur(5px);
}

.service-preview-card {
  transform: scale(0.92) translateY(30px);
  filter: blur(8px);
}

/* Triggered State when Section 5 is active */
.services-section.is-visible .services-tag-label {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.15s;
}

.services-section.is-visible .services-headline {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.25s;
}

.services-section.is-visible .provide-badge {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.38s;
}

.services-section.is-visible .services-description {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.32s;
}

.services-section.is-visible .service-row:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.38s;
}

.services-section.is-visible .service-row:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.46s;
}

.services-section.is-visible .service-row:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.54s;
}

.services-section.is-visible .service-row:nth-child(4) {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.62s;
}

.services-section.is-visible .service-row:nth-child(5) {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.70s;
}

.services-section.is-visible .service-row:nth-child(6) {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.78s;
}

.services-section.is-visible .service-preview-card {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: blur(0);
  transition-delay: 0.86s;
}

/* Responsive Rules for Section 5 */
@media (max-width: 1100px) {
  .services-main-grid {
    grid-template-columns: 1fr;
  }
  .service-preview-wrapper {
    display: none;
  }
  .services-header {
    flex-direction: column;
    gap: 16px;
  }
  .services-description {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .services-section {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 24px 20px 32px;
    justify-content: flex-start;
  }
  .services-container {
    height: auto;
    min-height: 100%;
    justify-content: flex-start;
  }
  .services-card-wrapper {
    gap: 28px;
  }
  .service-row {
    padding: 18px 0;
  }
  .services-headline {
    font-size: clamp(2.4rem, 10vw, 3.6rem);
  }
}

@media (max-width: 600px) {
  .services-card-wrapper {
    padding: 0;
    gap: 20px;
  }
  .services-headline {
    font-size: clamp(2rem, 9.5vw, 2.8rem);
  }
  .service-title {
    font-size: clamp(1.25rem, 6vw, 1.8rem);
  }
  .service-badge-circle, .service-arrow-circle {
    width: 36px;
    height: 36px;
    font-size: 0.82rem;
  }
  .service-left {
    gap: 14px;
  }
  .service-row {
    padding: 14px 0;
  }
}

@media (max-width: 400px) {
  .service-title {
    font-size: 1.15rem;
  }
  .service-badge-circle, .service-arrow-circle {
    width: 32px;
    height: 32px;
    font-size: 0.76rem;
  }
}

/* ==========================================================================
   Section 5 Editorial Showcase Overlay (Reference Image Exact Match)
   ========================================================================== */

.services-showcase-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vh, 60px) clamp(24px, 4.5vw, 80px);
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  transition: clip-path 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.5s ease;
}

.services-showcase-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.showcase-content-container {
  width: 100%;
  max-width: 1600px;
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: clamp(24px, 3.5vw, 60px);
  align-items: center;
  position: relative;
}

/* Left Column */
.showcase-left-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.showcase-wave-icon {
  color: #111111;
  margin-bottom: clamp(10px, 2vh, 24px);
}

.showcase-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 5.2vw, 5.8rem);
  color: #111111;
  line-height: 0.96;
  letter-spacing: -0.04em;
  display: flex;
  flex-direction: column;
  margin-bottom: auto;
}

.showcase-title-line {
  display: block;
  white-space: nowrap;
}

.showcase-left-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.showcase-year-num {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 2.4rem);
  font-weight: 700;
  color: #111111;
}

.showcase-paragraph {
  font-family: var(--font-main);
  font-size: clamp(0.78rem, 0.88vw, 0.94rem);
  font-weight: 400;
  color: #444444;
  line-height: 1.55;
  max-width: 380px;
}

/* Center Column (Tall Photo) */
.showcase-center-col {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-img-frame {
  width: 100%;
  height: 100%;
  max-height: clamp(400px, 75vh, 720px);
  overflow: hidden;
  position: relative;
  background-color: #f0f0f0;
}

.showcase-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.8s ease;
  filter: grayscale(100%) contrast(1.05);
}

.services-showcase-overlay.is-active .showcase-img-frame img {
  transform: scale(1.02);
}

.showcase-img-frame:hover img {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.05);
}

/* Right Column */
.showcase-right-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.showcase-right-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.showcase-nav-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.showcase-nav-link {
  font-family: var(--font-main);
  font-size: clamp(0.82rem, 0.95vw, 1rem);
  font-weight: 500;
  color: #222222;
  text-decoration: none;
  transition: color 0.3s ease;
}

.showcase-nav-link:hover {
  color: #777777;
}

.showcase-close-btn {
  font-family: var(--font-main);
  font-size: clamp(0.85rem, 0.98vw, 1.02rem);
  font-weight: 600;
  color: #111111;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  transition: opacity 0.3s ease;
}

.showcase-close-btn:hover {
  opacity: 0.6;
}

/* Giant Stat Text Range */
.showcase-center-stat {
  margin: auto 0;
}

.showcase-stat-text {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.8vw, 5.5rem);
  font-weight: 700;
  color: #111111;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

/* Bottom Location & Circle Arrow Button */
.showcase-right-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
}

.showcase-location-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.showcase-loc-title,
.showcase-loc-sub {
  font-family: var(--font-main);
  font-size: clamp(0.82rem, 0.92vw, 0.98rem);
  font-weight: 600;
  color: #222222;
  line-height: 1.3;
}

.showcase-coord {
  font-family: var(--font-main);
  font-size: clamp(0.7rem, 0.8vw, 0.85rem);
  font-weight: 400;
  color: #888888;
  margin-top: 6px;
  display: block;
}

.showcase-arrow-btn {
  width: clamp(48px, 4.5vw, 64px);
  height: clamp(48px, 4.5vw, 64px);
  border-radius: 50%;
  border: 1.5px solid #111111;
  background: transparent;
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s var(--ease-reveal);
  flex-shrink: 0;
}

.showcase-arrow-btn:hover {
  background-color: #111111;
  color: #ffffff;
  transform: scale(1.08);
}

@media (max-width: 900px) {
  .showcase-content-container {
    grid-template-columns: 1fr;
    gap: 24px;
    overflow-y: auto;
  }
  .showcase-center-col {
    height: 320px;
  }
  .showcase-stat-text {
    font-size: 2.5rem;
  }
}

/* ==========================================================================
   Section 6: Work Process (Exact Reference Image Design & Layout)
   ========================================================================== */

.process-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: clamp(20px, 3.5vh, 40px) clamp(24px, 5vw, 75px);
  background-color: #ffffff;
  z-index: 36;
  transform-style: preserve-3d;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 110px, -480px) rotateX(-14deg) scale(0.92);
  transition: transform 1.1s var(--ease-reveal), opacity 0.9s var(--ease-reveal);
  box-sizing: border-box;
  overflow: hidden;
}

.process-section.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) rotateX(0deg) scale(1);
}

.process-container {
  width: 100%;
  max-width: 1600px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Header Brand & Right-Corner Topic Selector Bar */
.process-header-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  z-index: 20;
  gap: 16px;
  flex-wrap: wrap;
}

.process-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.process-brand-logo {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.35em;
  color: #0f172a;
  text-transform: uppercase;
}

.process-sub-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #2563eb;
  text-transform: uppercase;
}

/* Right-Corner Topic Selector Pills */
.process-topic-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(241, 245, 249, 0.9);
  padding: 4px;
  border-radius: 30px;
  border: 1px solid rgba(203, 213, 225, 0.8);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.topic-pill {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.topic-pill:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.7);
}

.topic-pill.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

/* Diagram Stage Canvas */
.process-diagram-stage {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: min(65vh, 580px);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto 0;
}

/* Concentric Orbit Circles */
.process-diagram-stage .orbit-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}

.process-diagram-stage .orbit-outer {
  width: min(72vw, 680px);
  height: min(72vw, 680px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  z-index: 1;
}

.process-diagram-stage .orbit-main {
  width: min(46vw, 440px);
  height: min(46vw, 440px);
  border: 1.5px solid rgba(203, 213, 225, 0.9);
  z-index: 2;
}

.process-diagram-stage .orbit-inner {
  width: min(30vw, 290px);
  height: min(30vw, 290px);
  border: 1px dashed rgba(226, 232, 240, 0.6);
  z-index: 3;
}

/* Central Blue Circle Node */
.process-diagram-stage .central-blue-node {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: clamp(145px, 15vw, 195px);
  height: clamp(145px, 15vw, 195px);
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.28), 0 0 0 12px rgba(37, 99, 235, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 5;
  color: #ffffff;
  text-align: center;
  padding: 16px;
  opacity: 0;
  transition: transform 0.8s var(--ease-reveal), box-shadow 0.4s ease, opacity 0.8s ease;
  cursor: pointer;
}

.process-section.is-visible .central-blue-node {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  transition-delay: 0.15s;
}

.process-diagram-stage .central-blue-node:hover {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 22px 50px rgba(37, 99, 235, 0.42), 0 0 0 16px rgba(37, 99, 235, 0.09);
}

.central-icon-gear {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spinGear 35s linear infinite;
}

@keyframes spinGear {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.central-node-title {
  font-family: var(--font-display);
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.2;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.central-node-sublabel {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  margin-top: 4px;
}

/* 3D Elliptical Orbit Rings (Solar System Theme) */
.process-diagram-stage .orbit-main {
  width: min(72vw, 700px);
  height: min(28vw, 270px);
  border: 1.5px dashed rgba(37, 99, 235, 0.35);
  transform: translate(-50%, -50%) rotate(-12deg);
  border-radius: 50%;
  z-index: 3;
}

/* Solar System Orbit Step Node Groups */
.process-node-group {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  will-change: transform, opacity, z-index;
  transition: opacity 0.4s ease;
}

/* Step Circle Badges (Planetary Nodes) */
.step-circle-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.22), 0 0 0 4px rgba(37, 99, 235, 0.08);
  flex-shrink: 0;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.step-circle-badge .step-number {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: #2563eb;
  transition: color 0.3s ease;
}

/* Hover Interactions for Planetary Step Nodes */
.process-node-group:hover .step-circle-badge {
  background-color: #2563eb;
  border-color: #1d4ed8;
  transform: scale(1.22);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.48), 0 0 0 8px rgba(37, 99, 235, 0.14);
}

.process-node-group:hover .step-circle-badge .step-number {
  color: #ffffff;
}

.process-node-group:hover .step-title {
  color: #2563eb;
}

/* Step Text Contents - Simple, Clean, No Box Shadow */
.step-text-content {
  display: flex;
  flex-direction: column;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.step-text-content.align-right {
  text-align: right;
  align-items: flex-end;
}

.step-text-content.align-left {
  text-align: left;
  align-items: flex-start;
}

.step-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #0f172a;
  text-transform: uppercase;
  margin-bottom: 3px;
  transition: color 0.3s ease;
}

.step-description {
  font-family: var(--font-main);
  font-size: 12.5px;
  line-height: 1.45;
  color: #475569;
  max-width: 195px;
  font-weight: 400;
}

/* Footer Bar */
.process-footer-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.05em;
  z-index: 10;
}

/* Responsive Styles for Section 6 */
@media screen and (max-width: 1024px) {
  .process-diagram-stage {
    transform: scale(0.88);
  }
}

@media screen and (max-width: 768px) {
  .process-section {
    padding: 16px 16px 12px;
  }
  .process-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 4px;
    width: 100%;
  }
  .process-topic-selector {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .process-topic-selector::-webkit-scrollbar {
    display: none;
  }
  .topic-pill {
    padding: 5px 12px;
    font-size: 11px;
    flex-shrink: 0;
  }
  .central-blue-node {
    width: 100px;
    height: 100px;
  }
  .central-blue-node .central-icon-gear svg {
    width: 28px;
    height: 28px;
  }
  .central-node-title {
    font-size: 10px;
  }
  .central-node-sublabel {
    font-size: 8px;
  }
  .step-circle-badge {
    width: 36px;
    height: 36px;
  }
  .step-circle-badge .step-number {
    font-size: 13px;
  }
  .step-title {
    font-size: 12px;
    letter-spacing: 0.08em;
  }
  .step-description {
    font-size: 10.5px;
    max-width: 130px;
    line-height: 1.35;
  }
  .process-diagram-stage {
    transform: scale(0.85);
  }
}

@media screen and (max-width: 480px) {
  .central-blue-node {
    width: 82px;
    height: 82px;
    padding: 10px;
  }
  .central-blue-node .central-icon-gear svg {
    width: 20px;
    height: 20px;
  }
  .central-node-title {
    font-size: 8.5px;
  }
  .central-node-sublabel {
    display: none;
  }
  .step-circle-badge {
    width: 30px;
    height: 30px;
  }
  .step-circle-badge .step-number {
    font-size: 11px;
  }
  .step-title {
    font-size: 10.5px;
  }
  .step-description {
    font-size: 9.5px;
    max-width: 100px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .process-diagram-stage {
    transform: scale(0.80);
  }
}

@media screen and (max-width: 360px) {
  .process-diagram-stage {
    transform: scale(0.70);
  }
  .step-description {
    display: none;
  }
}

/* ==========================================================================
   Section 7: Why Choose Us (Exact Reference Image Design & Odd/Even Reveal)
   ========================================================================== */

.why-us-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: clamp(20px, 4vh, 50px) clamp(24px, 5vw, 75px);
  background-color: #ffffff;
  z-index: 37;
  transform-style: preserve-3d;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 110px, -480px) rotateX(-14deg) scale(0.92);
  transition: transform 1.1s var(--ease-reveal), opacity 0.9s var(--ease-reveal);
  box-sizing: border-box;
  overflow: hidden;
}

.why-us-section.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) rotateX(0deg) scale(1);
}

.why-us-container {
  width: 100%;
  max-width: 1600px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}

/* Header Tagline & Headline */
.why-us-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: clamp(10px, 2vh, 24px);
}

.why-us-top-tag {
  font-family: var(--font-display);
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.08em;
}

.why-us-accent-line {
  width: 28px;
  height: 3px;
  background-color: #94a3b8;
  border-radius: 2px;
  margin-top: 6px;
  margin-bottom: clamp(20px, 3vh, 32px);
}

.why-us-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.2vw, 4.4rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.05;
  letter-spacing: -0.03em;
  display: flex;
  flex-direction: column;
}

/* 5-Column Horizontal Grid Layout */
.why-us-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(16px, 2.4vw, 36px);
  margin: auto 0;
}

.why-us-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.8s var(--ease-reveal), opacity 0.8s var(--ease-reveal);
  will-change: transform, opacity;
}

/* Smooth Odd / Even Reveal Animations */
.why-us-section:not(.is-visible) .why-us-item.item-odd {
  opacity: 0;
  transform: translateY(-65px) scale(0.92);
}

.why-us-section:not(.is-visible) .why-us-item.item-even {
  opacity: 0;
  transform: translateY(65px) scale(0.92);
}

.why-us-section.is-visible .why-us-item {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Staggered Entrance Delays for Odd/Even Items */
.why-us-section.is-visible .why-us-grid .why-us-item:nth-child(1) { transition-delay: 0.2s; }
.why-us-section.is-visible .why-us-grid .why-us-item:nth-child(2) { transition-delay: 0.35s; }
.why-us-section.is-visible .why-us-grid .why-us-item:nth-child(3) { transition-delay: 0.5s; }
.why-us-section.is-visible .why-us-grid .why-us-item:nth-child(4) { transition-delay: 0.65s; }
.why-us-section.is-visible .why-us-grid .why-us-item:nth-child(5) { transition-delay: 0.8s; }

/* Giant Stylized Cutout Numbers (01 - 05) */
.giant-num-box {
  margin-bottom: clamp(12px, 2vh, 22px);
}

.giant-num {
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 6.2vw, 5.8rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.85;
  color: #cbd5e1; /* Default sleek gray */
  display: block;
  transition: color 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Active Highlight (Column 02 is Electric Blue as in reference image) */
.why-us-item.active-blue .giant-num {
  color: #2563eb;
}

/* Item Hover Effects */
.why-us-item:hover {
  transform: translateY(-8px);
}

.why-us-item:hover .giant-num {
  color: #2563eb;
  transform: scale(1.08);
}

.why-us-item:hover .why-us-card-title {
  color: #2563eb;
}

/* Card Content Typography */
.why-us-info {
  display: flex;
  flex-direction: column;
}

.why-us-card-title {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.25vw, 17px);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.why-us-card-desc {
  font-family: var(--font-main);
  font-size: clamp(12px, 0.95vw, 13px);
  line-height: 1.5;
  color: #64748b;
  font-weight: 400;
}

/* Footer Bar */
.why-us-footer-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.05em;
  z-index: 10;
}

/* Responsive Layout for Section 7 */
@media screen and (max-width: 1024px) {
  .why-us-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media screen and (max-width: 768px) {
  .why-us-section {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 24px 20px 32px;
    justify-content: flex-start;
  }
  .why-us-container {
    height: auto;
    min-height: 100%;
    justify-content: flex-start;
    gap: 24px;
  }
  .why-us-headline {
    font-size: clamp(2.2rem, 8.5vw, 3.2rem);
  }
  .why-us-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 18px;
    margin: 0;
  }
  .giant-num {
    font-size: clamp(2.8rem, 11vw, 4.2rem);
  }
}

@media screen and (max-width: 500px) {
  .why-us-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .why-us-item {
    flex-direction: row;
    gap: 16px;
    align-items: flex-start;
  }
  .giant-num-box {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .giant-num {
    font-size: 2.6rem;
    min-width: 48px;
  }
  .why-us-card-title {
    font-size: 14px;
    margin-bottom: 4px;
  }
  .why-us-card-desc {
    font-size: 12px;
    line-height: 1.45;
  }
}

/* ==========================================================================
   Section 8: Agency Footer & Kinetic Motion Graphic Typography Showcase
   ========================================================================== */

.footer-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #050507;
  color: #ffffff;
  z-index: 38;
  transform-style: preserve-3d;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 110px, -480px) rotateX(-14deg) scale(0.92);
  transition: transform 1.1s var(--ease-reveal), opacity 0.9s var(--ease-reveal);
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  padding: clamp(24px, 3.8vh, 48px) clamp(20px, 4.5vw, 75px) clamp(16px, 2.2vh, 26px);
}

.footer-section.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) rotateX(0deg) scale(1);
}

/* 3D Exit state for Section 7 when moving forward to Section 8 */
.why-us-section.exited-to-8 {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, -110px, -480px) rotateX(14deg) scale(0.92);
}

.footer-container {
  width: 100%;
  max-width: 1600px;
  min-height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  position: relative;
}

/* Top Multi-Column Content Grid */
.footer-top-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 2.2fr 1fr 1.2fr 1fr 1.7fr;
  gap: clamp(20px, 3.2vw, 50px);
  padding-bottom: clamp(18px, 2.8vh, 32px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 14px;
}

.footer-logo-img {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: transform 0.35s var(--ease-reveal);
}

.footer-logo:hover .footer-logo-img {
  transform: rotate(-6deg) scale(1.1);
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.footer-desc {
  font-family: var(--font-main);
  font-size: clamp(12.5px, 0.92vw, 13.5px);
  color: #94a3b8;
  line-height: 1.62;
  max-width: 320px;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: #cbd5e1;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-link:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.45);
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: clamp(12px, 0.88vw, 13px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #64748b;
  margin-bottom: 16px;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-nav-link {
  font-family: var(--font-main);
  font-size: clamp(13px, 0.92vw, 14px);
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-block;
}

.footer-nav-link:hover {
  color: #ffffff;
  transform: translateX(5px);
}

/* Newsletter Column */
.footer-newsletter-col {
  display: flex;
  flex-direction: column;
}

.newsletter-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  padding: 5px 6px 5px 16px;
  margin-top: 12px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-form:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.35);
}

.newsletter-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 13px;
  min-width: 0;
}

.newsletter-input::placeholder {
  color: #64748b;
}

.newsletter-btn {
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 9px 18px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.newsletter-btn:hover {
  background: #1d4ed8;
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

/* ==========================================================================
   Fullwidth Animated FRAMENOX Kinetic Typography Stage (Motion Graphics Style)
   ========================================================================== */

.footer-brand-stage {
  width: 100%;
  margin: clamp(16px, 2.5vh, 32px) 0 clamp(10px, 1.8vh, 22px);
  overflow: hidden;
  user-select: none;
  position: relative;
}

/* Cinematic subtle ambient glow */
.footer-brand-stage::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.14) 0%, rgba(5, 5, 7, 0) 72%);
  pointer-events: none;
  z-index: 0;
}

.footer-fullwidth-brand {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
  letter-spacing: -0.03em;
}

.letter-mask {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  perspective: 900px;
  padding: 4px 0;
}

.letter-char {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 11.2vw, 15.5rem);
  font-weight: 900;
  line-height: 0.85;
  color: #ffffff;
  display: inline-block;
  text-transform: uppercase;
  cursor: pointer;
  will-change: transform, opacity, filter;
  opacity: 0;
  transform: translateY(125%) rotateX(-70deg) scale(0.82);
  filter: blur(12px);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Kinetic Motion Graphic Ease-In Keyframes */
@keyframes motionGraphicLetterIn {
  0% {
    opacity: 0;
    transform: translateY(125%) rotateX(-70deg) scale(0.8);
    filter: blur(12px);
  }
  50% {
    opacity: 0.9;
    filter: blur(3px);
  }
  78% {
    opacity: 1;
    transform: translateY(-8%) rotateX(5deg) scale(1.03);
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) scale(1);
    filter: blur(0px);
  }
}

/* Trigger animation letter by letter when section 8 is visible */
.footer-section.is-visible .letter-char {
  animation: motionGraphicLetterIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(0.14s + (var(--char-idx) * 0.08s));
}

/* Hover Kinetic Bounce & Glow on Individual Letters */
.letter-char:hover,
.letter-char.is-hovered {
  transform: translateY(-16px) scale(1.08) !important;
  color: #3b82f6;
  text-shadow: 0 0 35px rgba(59, 130, 246, 0.85), 0 0 70px rgba(37, 99, 235, 0.45);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease, text-shadow 0.25s ease;
}

/* Adjacent letter wave ripple */
.letter-char.is-adjacent {
  transform: translateY(-8px) scale(1.03) !important;
  color: #93c5fd;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease;
}

/* Footer Bottom Bar */
.footer-bottom-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: clamp(14px, 2vh, 22px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-display);
  font-size: 12.5px;
  color: #64748b;
  letter-spacing: 0.04em;
}

.footer-copyright {
  color: #94a3b8;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-legal-link {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-legal-link:hover {
  color: #ffffff;
}

.footer-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-page-tag {
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #475569;
}

.footer-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  padding: 6px 14px;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-back-to-top:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

/* Responsive Footer Styles */
@media screen and (max-width: 1180px) {
  .footer-top-grid {
    grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  }
  .footer-col:nth-child(4) {
    display: none;
  }
}

@media screen and (max-width: 860px) {
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer-col:nth-child(4) {
    display: flex;
  }
  .footer-newsletter-col {
    grid-column: span 2;
  }
  .footer-bottom-bar {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
}

@media screen and (max-width: 540px) {
  .footer-section {
    padding: 24px 18px 20px;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-newsletter-col {
    grid-column: span 1;
  }
  .newsletter-form {
    flex-direction: column;
    gap: 10px;
  }
  .newsletter-input {
    font-size: 16px !important;
    width: 100%;
  }
  .newsletter-btn {
    width: 100%;
    padding: 12px;
  }
  .footer-fullwidth-brand {
    gap: 2px;
  }
  .letter-char {
    font-size: clamp(1.4rem, 11vw, 2.4rem);
  }
  .footer-legal-links {
    flex-wrap: wrap;
    gap: 12px;
  }
  .footer-bar-right {
    width: 100%;
    justify-content: space-between;
  }
}

/* ==========================================================================
   Agency Page Transition System (Cinematic Curtain Reveal)
   ========================================================================== */

.page-curtain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #060608;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transform: translateY(0%);
  will-change: transform;
}

.page-curtain.is-revealing {
  transform: translateY(-100%);
  transition: transform 0.68s cubic-bezier(0.77, 0, 0.175, 1);
  pointer-events: none;
}

.page-curtain.is-exiting {
  transform: translateY(0%);
  transition: transform 0.46s cubic-bezier(0.77, 0, 0.175, 1);
  pointer-events: auto;
}

.curtain-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  user-select: none;
}

.curtain-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.curtain-logo {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  animation: curtainLogoPulse 1.2s ease-in-out infinite alternate;
}

.curtain-brand-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.04em;
}

.curtain-loader-track {
  width: 140px;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.curtain-loader-bar {
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  border-radius: 9999px;
  animation: curtainLoaderGlow 1s ease-in-out infinite alternate;
}

@keyframes curtainLogoPulse {
  0% { transform: scale(0.96); opacity: 0.85; }
  100% { transform: scale(1.04); opacity: 1; filter: drop-shadow(0 0 16px rgba(37, 99, 235, 0.6)); }
}

@keyframes curtainLoaderGlow {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

/* ==========================================================================
   Motion Graphic Kinetic Text & Element Reveals
   ========================================================================== */

/* Hero Eyebrow Pill Tag Reveal */
@keyframes motionPillIn {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.88);
    filter: blur(6px);
  }
  70% {
    opacity: 1;
    transform: translateY(2px) scale(1.02);
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

/* Kinetic Title Unmasking (After Effects Track Matte Style) */
@keyframes motionTitleIn {
  0% {
    opacity: 0;
    transform: translateY(60px) rotateX(-32deg) skewY(1.5deg);
    filter: blur(14px);
  }
  65% {
    opacity: 1;
    filter: blur(0px);
  }
  82% {
    transform: translateY(-5px) rotateX(3deg) skewY(0deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) skewY(0deg);
    filter: blur(0px);
  }
}

/* Kinetic Subtitle Smooth Glide */
@keyframes motionSubtitleIn {
  0% {
    opacity: 0;
    transform: translateY(32px);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
  }
}

/* Action Button Kinetic Spring */
@keyframes motionBtnIn {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.92);
  }
  75% {
    opacity: 1;
    transform: translateY(-3px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Shimmer on Emphasized Kinetic Words */
@keyframes textMotionShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.page-hero-title em,
.mission-large-text em {
  font-style: italic;
  font-family: 'Mergola', 'Cormorant Garamond', 'Playfair Display', serif;
  font-weight: 400;
  display: inline-block;
  background: linear-gradient(115deg, #0f172a 0%, #2563eb 45%, #60a5fa 55%, #0f172a 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textMotionShimmer 5s ease infinite;
}

/* Staggered triggers on page load */
body.is-loaded .hero-pill-row,
body.is-loaded .page-hero-eyebrow {
  animation: motionPillIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.1s;
}

body.is-loaded .page-hero-title {
  animation: motionTitleIn 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.18s;
}

body.is-loaded .page-hero-subtitle {
  animation: motionSubtitleIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.32s;
}

body.is-loaded .btn-row,
body.is-loaded .page-hero .btn-row {
  animation: motionBtnIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.44s;
}

/* Stats Row Kinetic Staggered Reveal */
body.is-loaded .stats-row .stat-item {
  animation: motionTitleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.is-loaded .stats-row .stat-item:nth-child(1) { animation-delay: 0.36s; }
body.is-loaded .stats-row .stat-item:nth-child(2) { animation-delay: 0.44s; }
body.is-loaded .stats-row .stat-item:nth-child(3) { animation-delay: 0.52s; }
body.is-loaded .stats-row .stat-item:nth-child(4) { animation-delay: 0.60s; }

/* Scroll-Triggered Kinetic Element Reveals */
.motion-reveal-item {
  opacity: 0;
  transform: translateY(42px) scale(0.96) rotateX(6deg);
  filter: blur(8px);
  will-change: opacity, transform, filter;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.motion-reveal-item.motion-revealed {
  opacity: 1;
  transform: translateY(0) scale(1) rotateX(0deg);
  filter: blur(0px);
}

/* ==========================================================================
   Motion Graphic Kinetic Text Edits (After Effects Track Matte Word Reveals)
   ========================================================================== */

.kinetic-word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
  line-height: 1.15;
}

.kinetic-word {
  display: inline-block;
  transform: translateY(115%) rotateX(-45deg) skewY(2deg);
  opacity: 0;
  filter: blur(14px);
  will-change: transform, opacity, filter;
  transition: transform 0.88s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.72s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.72s cubic-bezier(0.16, 1, 0.3, 1);
}

body.is-loaded .kinetic-word {
  transform: translateY(0%) rotateX(0deg) skewY(0deg);
  opacity: 1;
  filter: blur(0px);
}

.kinetic-em-wrap {
  display: inline;
  font-style: italic;
}

.kinetic-word.kinetic-em-word {
  font-style: italic;
  font-family: 'Mergola', 'Cormorant Garamond', 'Playfair Display', serif;
  font-weight: 400;
  display: inline-block;
  background: linear-gradient(115deg, #0f172a 0%, #2563eb 45%, #60a5fa 55%, #0f172a 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textMotionShimmer 5s ease infinite;
}

/* Smooth Interactive Micro-Animations on Hover */
.service-card,
.portfolio-card,
.pricing-card,
.team-card,
.testimonial-card,
.contact-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
}

.service-card:hover,
.portfolio-card:hover,
.pricing-card:hover,
.team-card:hover,
.testimonial-card:hover,
.contact-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
}

.portfolio-card:hover .portfolio-thumb img,
.service-card:hover .service-card-icon {
  transform: scale(1.04);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Widescreen, 4K & TV Displays (1921px and above)
   ========================================================================== */
@media screen and (min-width: 1921px) {
  .nav-container,
  .hero-container,
  .vision-container,
  .what-we-do-container,
  .brands-header,
  .services-container,
  .process-container,
  .why-us-container,
  .footer-container {
    max-width: 1800px;
  }
}










