/* ========================================================================= */
/* ARRIS ARCHITECTS - ANIMATIONS SYSTEM                                      */
/* Derived from Reference Website (HBA) Animation Architecture               */
/* ========================================================================= */

/* ------------------------------------------------------------------------- */
/* GLOBAL HEADING FONT — Beausite Classic Trial (Thin/Light)                 */
/* Applied to all h1–h6 across entire website                                */
/* ------------------------------------------------------------------------- */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'BeausiteFit', 'SF Pro Display', sans-serif;
  font-weight: 100;
  letter-spacing: 0.01em;
}

/* ------------------------------------------------------------------------- */
/* 1. Signature Image / Media Scroll-Reveal (Clip-Path Unmasking)             */
/* Reference: [data-reveal-animation] with cubic-bezier(0.19, 1, 0.22, 1)    */
/* ------------------------------------------------------------------------- */
[data-reveal-animation] {
  position: relative;
  overflow: hidden;
}

[data-reveal-animation] img,
[data-reveal-animation] video {
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  transform: scale(1.08);
  transition: clip-path 1.8s cubic-bezier(0.19, 1, 0.22, 1), transform 2s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: clip-path, transform;
}

[data-reveal-animation].is-revealed img,
[data-reveal-animation].is-revealed video,
[data-reveal-animation].animation-complete img,
[data-reveal-animation].animation-complete video {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transform: scale(1);
}

/* ------------------------------------------------------------------------- */
/* 2. Text & Content Scroll Reveal                                           */
/* ------------------------------------------------------------------------- */
[data-reveal-text] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.2s cubic-bezier(0.19, 1, 0.22, 1), transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: opacity, transform;
}

[data-reveal-text].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Delays */
[data-reveal-text][data-delay="1"] { transition-delay: 0.15s; }
[data-reveal-text][data-delay="2"] { transition-delay: 0.3s; }
[data-reveal-text][data-delay="3"] { transition-delay: 0.45s; }
[data-reveal-text][data-delay="4"] { transition-delay: 0.6s; }

/* ------------------------------------------------------------------------- */
/* 3. Hero Section Entrance Animation                                        */
/* ------------------------------------------------------------------------- */
@keyframes heroBgZoom {
  0% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

.hero-bg-animate {
  animation: heroBgZoom 2.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
  will-change: transform;
}

@keyframes heroContentFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-content-animate {
  animation: heroContentFadeIn 1.6s cubic-bezier(0.19, 1, 0.22, 1) 0.3s forwards;
  opacity: 0;
}

.hero-nav-animate {
  animation: heroContentFadeIn 1.4s cubic-bezier(0.19, 1, 0.22, 1) 0.1s forwards;
  opacity: 0;
}

/* ------------------------------------------------------------------------- */
/* 4. Button Wipe-Up / Wipe-Out Animation                                    */
/* Reference: .btn wipe-up / wipe-out from reference site                    */
/* ------------------------------------------------------------------------- */
.btn-wipe {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
  text-shadow: none !important;
  transition: color 0.4s cubic-bezier(0.19, 1, 0.22, 1), border-color 0.4s ease;
}

.btn-wipe .btn__text {
  position: relative;
  z-index: 2;
  text-shadow: none !important;
  transition: color 0.35s ease;
}

.btn-wipe .btn__bg {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  z-index: 1;
  transition: top 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-wipe:hover .btn__bg,
.btn-wipe.wipe-up .btn__bg {
  top: 0;
}

.btn-wipe:hover .btn__text {
  color: #000000 !important;
  text-shadow: none !important;
}

.btn-wipe.wipe-out .btn__bg {
  top: -100%;
}

/* Dark variant */
.btn-wipe-dark .btn__bg {
  background-color: #000000;
}

.btn-wipe-dark:hover .btn__text {
  color: #ffffff !important;
}

/* ------------------------------------------------------------------------- */
/* 5. Smooth Parallax & Subtle Hover Lift                                    */
/* ------------------------------------------------------------------------- */
.smooth-hover {
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.smooth-hover:hover {
  transform: translateY(-4px);
}

/* ------------------------------------------------------------------------- */
/* 6. Sticky Gallery Section (Exact implementation from Reference HBA.com)   */
/* ------------------------------------------------------------------------- */
:root {
  --section-padding: clamp(60px, 40px + 0.0416666667 * 100vw, 120px);
}

.sticky_gallery {
  position: relative;
  width: 100%;
  display: flow-root;
  background-color: #121212;
}

.sticky_gallery figure {
  width: 100%;
  height: 100%;
  margin: 0;
}

.sticky_gallery figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sticky_gallery--main-media {
  width: 100%;
  height: 100vh;
  height: 100lvh;
  position: relative;
  overflow: hidden;
}

.sticky_gallery--content-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  z-index: 30;
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
  align-items: flex-start;
  opacity: 1;
  pointer-events: none;
}

@media (min-width: 992px) {
  .sticky_gallery--content-wrapper {
    justify-content: space-between;
    align-items: flex-end;
    flex-direction: row;
  }
}

.in-view .sticky_gallery--content-wrapper,
.sticky_gallery.in-view .sticky_gallery--content-wrapper {
  opacity: 1;
}

.sticky_gallery--content-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 25%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.12) 55%, rgba(0, 0, 0, 0) 100%);
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

@media (max-width: 991.98px) {
  .sticky_gallery--content-bg {
    height: 35%;
  }
}

.sticky_gallery--content h3,
.sticky_gallery--content-details span {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.sticky_gallery--content .btn-wipe,
.sticky_gallery--content .btn-wipe .btn__text {
  text-shadow: none !important;
}

.sticky_gallery--content {
  position: relative;
  padding: 2rem 1.5rem;
  z-index: 2;
  pointer-events: auto;
}

@media (min-width: 640px) {
  .sticky_gallery--content {
    padding: 3rem;
  }
}

@media (min-width: 1280px) {
  .sticky_gallery--content {
    padding-left: 97px;
    padding-bottom: 3rem;
  }
}

.sticky_gallery--content-details {
  position: relative;
  padding: 2rem 1.5rem;
  z-index: 2;
  align-items: center;
  gap: 2rem;
  pointer-events: auto;
}

@media (min-width: 640px) {
  .sticky_gallery--content-details {
    padding: 3rem;
  }
}

@media (min-width: 1280px) {
  .sticky_gallery--content-details {
    padding-right: 97px;
    padding-bottom: 3rem;
  }
}

.sticky_gallery--slide {
  position: relative;
  z-index: 2;
  margin-bottom: calc(var(--section-padding) * 2);
}

.sticky_gallery--slide:first-child {
  margin-top: calc(var(--section-padding) * 2);
}

.sticky_gallery--slide:last-child {
  margin-bottom: calc(var(--section-padding) * 2.4);
}

.sticky_gallery--slide img {
  width: 100%;
  height: auto;
  max-height: 88vh;
  object-fit: cover;
  display: block;
}

/* Lenis Smooth Scroll body styles */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

/* ------------------------------------------------------------------------- */
/* 7. Horizontal Scroll Section (X-Axis Showcase)                            */
/* ------------------------------------------------------------------------- */
.projects-horizontal-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.projects-horizontal-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  height: 100%;
  width: max-content;
  will-change: transform;
}

.horizontal-project-group {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  height: 100%;
  align-items: center;
}

.horizontal-slide-hero {
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.horizontal-slide-gallery {
  height: 85vh;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.horizontal-sticky-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}

.horizontal-text-panel {
  transition: opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1), transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: opacity, transform;
}

/* ------------------------------------------------------------------------- */
/* 8. Hero Parallax & Curtain Reveal (Exact Reference Website HBA)           */
/* ------------------------------------------------------------------------- */
#hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 580px;
  /* Do NOT set z-index here — avoid creating a stacking context so
     the fixed .hero-media-wrapper escapes to the viewport stacking context */
  z-index: auto !important;
}

#hero-section .hero-media-wrapper {
  position: fixed !important;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  will-change: opacity;
}

#hero-section .hero-media-wrapper:not(.show) {
  opacity: 0;
  visibility: hidden;
}

#hero-section .hero-media-wrapper.show {
  opacity: 1;
  visibility: visible;
}

#hero-section .hero-media-wrapper video,
#hero-section .hero-media-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

#hero-section nav {
  position: relative;
  z-index: 20;
  pointer-events: auto;
}

/* All sections/footer after the hero must sit above the fixed video backdrop */
body > section,
body > footer,
body > div#mobile-menu {
  position: relative;
  z-index: 20;
}

#who-we-are {
  background-color: #F4F0EB;
}

/* ========================================================================= */
/* NAVBAR MEGA DROPDOWNS (EXPERTISE & PRACTICE) & CARD SHUFFLE               */
/* ========================================================================= */

/* Navbar elements stacking & positioning */
header {
  position: relative;
  z-index: auto !important;
}

header nav,
nav {
  position: relative;
  z-index: 100 !important;
}

nav > ul {
  position: relative;
  z-index: 100 !important;
}

/* Prevent individual list items from trapping fixed dropdowns in child stacking contexts */
nav > ul > li {
  position: static !important;
}

/* Elevate all top navbar links so they are 100% in front of the fixed dropdown panel */
nav > ul > li > a,
nav a.inline-block,
nav [data-lucide="moon"],
#mobile-menu-btn {
  position: relative !important;
  z-index: 100 !important;
  pointer-events: auto !important;
}

/* ========================================================================= */
/* Mobile Drawer Fullscreen Overlay & Header Synchronization                */
/* ========================================================================= */
#mobile-menu {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  height: 100dvh !important;
  z-index: 99999 !important;
  background-color: #0c0c0c !important; /* Pure solid dark background prevents underlying navbar ghosting */
  padding: 1.5rem 1.5rem !important; /* 24px matches navbar exactly */
  box-sizing: border-box !important;
}

@media (min-width: 640px) {
  #mobile-menu {
    padding: 2rem 3rem !important;
  }
}

/* Hide the hamburger button completely when mobile menu drawer is open */
body.overflow-hidden #mobile-menu-btn {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}


.nav-dropdown-expertise,
.nav-dropdown-practice,
.nav-dropdown-studio,
.nav-dropdown-contact,
.nav-dropdown-mega {
  position: static !important;
  pointer-events: auto;
  z-index: 55;
}

/* Background Dim Overlay (Left side dimmed for focused immersion) */
.mega-dropdown-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 38;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.75s cubic-bezier(0.19, 1, 0.22, 1), visibility 0.75s ease;
}

.mega-dropdown-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Mega dropdown panel sliding curtain (Reference HBA-style) */
.expertise-dropdown-menu,
.practice-dropdown-menu,
.projects-dropdown-menu,
.studio-dropdown-menu,
.contact-dropdown-menu,
.mega-dropdown-menu {
  position: fixed !important;
  top: 0;
  left: 100vw; /* Hidden offscreen to the right by default */
  right: 0;
  width: auto;
  max-width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding: 105px 48px 48px 52px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* Luxury curtain slide from right - 0.75s cubic-bezier matching reference website */
  transition: left 0.75s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.4s ease, visibility 0.4s ease;
  z-index: 40 !important;
  box-shadow: -25px 0 70px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  will-change: left;
}

/* Text-only dropdown panels (Studio & Contact): Clean right-docked curtain starting directly beneath menu trigger */
.practice-dropdown-menu,
.studio-dropdown-menu,
.contact-dropdown-menu {
  width: auto !important;
  right: 0 !important;
  max-width: 100vw;
  justify-content: flex-start !important;
  padding: 140px 36px 48px 32px !important;
}

.practice-dropdown-menu > div,
.studio-dropdown-menu > div,
.contact-dropdown-menu > div {
  justify-content: flex-start !important;
}

@media (min-width: 1280px) {
  .expertise-dropdown-menu,
  .mega-dropdown-menu {
    padding-top: 110px;
    padding-bottom: 52px;
  }
  .practice-dropdown-menu,
  .studio-dropdown-menu,
  .contact-dropdown-menu {
    width: auto !important;
    right: 0 !important;
    justify-content: flex-start !important;
    padding-top: 150px !important;
    padding-bottom: 52px !important;
    padding-left: 32px !important;
    padding-right: 40px !important;
  }
}

@media (min-width: 1536px) {
  .expertise-dropdown-menu,
  .mega-dropdown-menu {
    padding-top: 120px;
    padding-bottom: 60px;
  }
  .practice-dropdown-menu,
  .studio-dropdown-menu,
  .contact-dropdown-menu {
    width: auto !important;
    right: 0 !important;
    justify-content: flex-start !important;
    padding-top: 160px !important;
    padding-bottom: 60px !important;
    padding-left: 32px !important;
    padding-right: 48px !important;
  }
}

/* Circular Close Button with 90deg hover spin matching reference site */
.mega-dropdown-close {
  position: absolute;
  top: 36px;
  right: 48px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 0;
  opacity: 0.8;
  transition: transform 0.6s ease, opacity 0.3s ease;
}

.practice-dropdown-menu .mega-dropdown-close,
.studio-dropdown-menu .mega-dropdown-close,
.contact-dropdown-menu .mega-dropdown-close {
  top: 30px;
  right: 32px;
  width: 40px;
  height: 40px;
}

@media (min-width: 1280px) {
  .practice-dropdown-menu .mega-dropdown-close,
  .studio-dropdown-menu .mega-dropdown-close,
  .contact-dropdown-menu .mega-dropdown-close {
    top: 32px;
    right: 36px;
    width: 44px;
    height: 44px;
  }
}

.mega-dropdown-close:hover {
  transform: rotate(90deg);
  opacity: 1;
}

.mega-dropdown-close svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mega-dropdown-close svg path {
  fill: #fbfbf9;
}

.mega-dropdown-close svg circle {
  stroke: rgba(255, 255, 255, 0.35);
  transition: stroke 0.3s ease;
}

.mega-dropdown-close:hover svg circle {
  stroke: #ffffff;
}

/* Open state: active dropdown curtain is visible & captures pointer */
.expertise-dropdown-menu.is-active,
.practice-dropdown-menu.is-active,
.studio-dropdown-menu.is-active,
.contact-dropdown-menu.is-active,
.projects-dropdown-menu.is-active,
.mega-dropdown-menu.is-active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Ensure navbar items on right half remain bright, crisp, and high-contrast */
nav:has(.is-active) ul > li > a,
nav:has(.nav-dropdown-expertise:hover) ul > li > a,
nav:has(.expertise-dropdown-menu:hover) ul > li > a,
nav:has(.nav-dropdown-practice:hover) ul > li > a,
nav:has(.practice-dropdown-menu:hover) ul > li > a,
nav:has(.nav-dropdown-studio:hover) ul > li > a,
nav:has(.studio-dropdown-menu:hover) ul > li > a,
nav:has(.nav-dropdown-contact:hover) ul > li > a,
nav:has(.contact-dropdown-menu:hover) ul > li > a,
nav:has(.nav-dropdown-mega:hover) ul > li > a,
nav:has(.mega-dropdown-menu:hover) ul > li > a {
  color: #ffffff !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

/* Ensure links INSIDE the dropdown curtain menus are always high-contrast white */
.expertise-dropdown-menu a,
.practice-dropdown-menu a,
.studio-dropdown-menu a,
.contact-dropdown-menu a,
.mega-dropdown-menu a {
  color: #ffffff !important;
}

/* On mobile/small screens, hide desktop fixed mega panels */
@media (max-width: 1023px) {
  .expertise-dropdown-menu,
  .practice-dropdown-menu,
  .studio-dropdown-menu,
  .projects-dropdown-menu,
  .contact-dropdown-menu,
  .mega-dropdown-menu,
  .mega-dropdown-overlay {
    display: none !important;
  }
}

/* Waterfall Cascade: Sub-links initial state (pushed down and hidden) */
.expertise-dropdown-menu ul > li,
.practice-dropdown-menu ul > li,
.projects-dropdown-menu ul > li,
.studio-dropdown-menu ul > li,
.contact-dropdown-menu ul > li {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Staggered waterfall cascade when curtain reaches docked position (0.75s initial delay) */
.expertise-dropdown-menu.is-active ul > li,
.practice-dropdown-menu.is-active ul > li,
.projects-dropdown-menu.is-active ul > li,
.studio-dropdown-menu.is-active ul > li,
.contact-dropdown-menu.is-active ul > li {
  opacity: 1;
  transform: translateY(0);
}

.expertise-dropdown-menu.is-active ul > li:nth-child(1),
.practice-dropdown-menu.is-active ul > li:nth-child(1),
.projects-dropdown-menu.is-active ul > li:nth-child(1),
.studio-dropdown-menu.is-active ul > li:nth-child(1),
.contact-dropdown-menu.is-active ul > li:nth-child(1) {
  transition: opacity 0.5s ease 0.75s, transform 0.5s ease 0.75s;
}
.expertise-dropdown-menu.is-active ul > li:nth-child(2),
.practice-dropdown-menu.is-active ul > li:nth-child(2),
.projects-dropdown-menu.is-active ul > li:nth-child(2),
.studio-dropdown-menu.is-active ul > li:nth-child(2),
.contact-dropdown-menu.is-active ul > li:nth-child(2) {
  transition: opacity 0.5s ease 0.80s, transform 0.5s ease 0.80s;
}
.expertise-dropdown-menu.is-active ul > li:nth-child(3),
.practice-dropdown-menu.is-active ul > li:nth-child(3),
.projects-dropdown-menu.is-active ul > li:nth-child(3),
.studio-dropdown-menu.is-active ul > li:nth-child(3),
.contact-dropdown-menu.is-active ul > li:nth-child(3) {
  transition: opacity 0.5s ease 0.85s, transform 0.5s ease 0.85s;
}
.expertise-dropdown-menu.is-active ul > li:nth-child(4),
.practice-dropdown-menu.is-active ul > li:nth-child(4),
.projects-dropdown-menu.is-active ul > li:nth-child(4),
.studio-dropdown-menu.is-active ul > li:nth-child(4),
.contact-dropdown-menu.is-active ul > li:nth-child(4) {
  transition: opacity 0.5s ease 0.90s, transform 0.5s ease 0.90s;
}
.expertise-dropdown-menu.is-active ul > li:nth-child(5),
.practice-dropdown-menu.is-active ul > li:nth-child(5) {
  transition: opacity 0.5s ease 0.95s, transform 0.5s ease 0.95s;
}
.expertise-dropdown-menu.is-active ul > li:nth-child(6),
.practice-dropdown-menu.is-active ul > li:nth-child(6) {
  transition: opacity 0.5s ease 1.00s, transform 0.5s ease 1.00s;
}
.expertise-dropdown-menu.is-active ul > li:nth-child(7),
.practice-dropdown-menu.is-active ul > li:nth-child(7) {
  transition: opacity 0.5s ease 1.05s, transform 0.5s ease 1.05s;
}
.expertise-dropdown-menu.is-active ul > li:nth-child(8),
.practice-dropdown-menu.is-active ul > li:nth-child(8) {
  transition: opacity 0.5s ease 1.10s, transform 0.5s ease 1.10s;
}
.expertise-dropdown-menu.is-active ul > li:nth-child(9) {
  transition: opacity 0.5s ease 1.15s, transform 0.5s ease 1.15s;
}

/* Menu items inside dropdown */
.expertise-nav-item,
.practice-nav-item,
.projects-nav-item,
.studio-nav-item,
.contact-nav-item,
.mega-nav-item {
  display: inline-block;
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.015em;
  cursor: pointer;
  padding: 6px 0;
  line-height: 1.35;
  text-transform: none;
  /* 10px right shift transition on hover matching reference site */
  transition: color 0.28s ease, padding-left 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@media (min-width: 1440px) {
  .expertise-nav-item,
  .practice-nav-item,
  .studio-nav-item,
  .contact-nav-item,
  .mega-nav-item {
    padding: 7px 0;
  }
}

/* Link hover: glows white, expands slightly, and glides 10px to the right */
.expertise-nav-item:hover,
.expertise-nav-item.active,
.practice-nav-item:hover,
.practice-nav-item.active,
.studio-nav-item:hover,
.studio-nav-item.active,
.contact-nav-item:hover,
.contact-nav-item.active,
.mega-nav-item:hover,
.mega-nav-item.active {
  color: #ffffff;
  font-weight: 400;
  padding-left: 10px !important;
}

@media (min-width: 1440px) {
  .expertise-nav-item:hover,
  .expertise-nav-item.active,
  .practice-nav-item:hover,
  .practice-nav-item.active,
  .studio-nav-item:hover,
  .studio-nav-item.active,
  .contact-nav-item:hover,
  .contact-nav-item.active,
  .mega-nav-item:hover,
  .mega-nav-item.active {
    padding-left: 10px !important;
  }
}

/* Card stack stays hidden until a specific category is hovered/active */
.expertise-card-stack,
.practice-card-stack,
.projects-card-stack,
.mega-card-stack {
  position: relative;
  width: 310px;
  height: 390px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

/* Reveal image card ONLY when a menu item is active (hovered), not on dropdown open */
.expertise-dropdown-menu:has(.expertise-nav-item.active) .expertise-card-stack,
.practice-dropdown-menu:has(.practice-nav-item.active) .practice-card-stack,
.projects-dropdown-menu:has(.projects-nav-item.active) .projects-card-stack,
.mega-dropdown-menu:has(.mega-nav-item.active) .mega-card-stack {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 1280px) {
  .expertise-card-stack,
  .practice-card-stack,
  .mega-card-stack {
    width: 360px;
    height: 460px;
  }
}

@media (min-width: 1536px) {
  .expertise-card-stack,
  .practice-card-stack,
  .mega-card-stack {
    width: 420px;
    height: 520px;
  }
}

.expertise-card-main,
.expertise-card-peek,
.practice-card-main,
.practice-card-peek,
.mega-card-main,
.mega-card-peek {
  border-radius: 4px;
}





/* Mobile: Hide awards arrows completely on mobile devices */
@media (max-width: 1023px) {
  #awards-prev,
  #awards-next {
    display: none !important;
  }
}
