/* ==========================================================================
   CONCEPT ART EVENTS — GLOBAL STYLES
   Brand Colors:
     Dark:    #333132  (rgb 35,31,32)
     Gold:    #e2a15d  (rgb 227,162,93)
     White:   #ffffff
   Fonts:
     Headings: Playfair Display
     Body:     Nexa
   ========================================================================== */

/* --------------------------------------------------------------------------
   FONTS
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Playfair Display';
  src: url('assets/fonts/PlayfairDisplay-VariableFont_wght.ttf') format('truetype');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

/* NOTE: The provided Nexa font files are trial versions with watermarks.
   For production use, a license must be purchased. We use Manrope as a
   high-quality, freely licensed geometric sans-serif alternative. */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

/* --------------------------------------------------------------------------
   CSS VARIABLES
   -------------------------------------------------------------------------- */
:root {
  --color-dark: #1a191a;
  --color-dark-secondary: #333132;
  --color-gold: #e2a15d;
  --color-gold-light: #f0c48a;
  --color-gold-dark: #b88043;
  --color-white: #ffffff;
  --color-cream: #f5f0e8;
  --color-cream-dark: #e8e0d4;
  --color-gray: #8a8683;
  --color-gray-light: #b5b0ab;
  --color-overlay: rgba(26, 25, 26, 0.72);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Manrope', 'Helvetica Neue', Arial, sans-serif;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
  --spacing-2xl: 6rem;
  --spacing-3xl: 8rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --container-max: 1280px;
  --container-narrow: 980px;

  --transition-base: 300ms ease;

  /* ------------------------------------------------------------------------
     NEUMORPHIC SHADOW SYSTEM
     Soft extruded look adapted to the site's dark luxury palette.
     ------------------------------------------------------------------------ */
  --neu-radius: var(--radius-md);
  --neu-radius-lg: 20px;
  --neu-transition: 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Dark surfaces (#1a191a / #333132): top highlight + bottom shadow */
  --neu-shadow-dark-raised:
    -8px -8px 18px rgba(255, 255, 255, 0.045),
     8px  8px 22px rgba(0, 0, 0, 0.45);
  --neu-shadow-dark-raised-hover:
    -10px -10px 24px rgba(255, 255, 255, 0.06),
      12px  12px 30px rgba(0, 0, 0, 0.55);
  --neu-shadow-dark-sunken:
    inset -4px -4px 10px rgba(255, 255, 255, 0.035),
    inset  4px  4px 12px rgba(0, 0, 0, 0.5);

  /* Light surfaces (#f5f0e8 cream): classic soft UI */
  --neu-shadow-light-raised:
    -8px -8px 18px rgba(255, 255, 255, 0.75),
     8px  8px 22px rgba(0, 0, 0, 0.09);
  --neu-shadow-light-raised-hover:
    -10px -10px 24px rgba(255, 255, 255, 0.85),
      12px  12px 30px rgba(0, 0, 0, 0.12);
  --neu-shadow-light-sunken:
    inset -4px -4px 10px rgba(255, 255, 255, 0.7),
    inset  4px  4px 12px rgba(0, 0, 0, 0.07);

  /* Button neumorphic shadows */
  --neu-shadow-btn-primary:
    -5px -5px 12px rgba(0, 0, 0, 0.35),
     5px  5px 14px rgba(0, 0, 0, 0.25);
  --neu-shadow-btn-primary-hover:
    -7px -7px 16px rgba(0, 0, 0, 0.45),
     7px  7px 18px rgba(0, 0, 0, 0.30);
  --neu-shadow-btn-primary-active:
    inset -3px -3px 8px rgba(0, 0, 0, 0.30),
    inset  3px  3px 8px rgba(0, 0, 0, 0.22);

  --neu-shadow-btn-outline-dark:
    -5px -5px 12px rgba(255, 255, 255, 0.05),
     5px  5px 14px rgba(0, 0, 0, 0.45);
  --neu-shadow-btn-outline-dark-hover:
    -6px -6px 14px rgba(226, 161, 93, 0.10),
     6px  6px 16px rgba(0, 0, 0, 0.50);
  --neu-shadow-btn-outline-dark-active:
    inset -3px -3px 8px rgba(255, 255, 255, 0.04),
    inset  3px  3px 8px rgba(0, 0, 0, 0.45);

  --neu-shadow-btn-outline-light:
    -5px -5px 12px rgba(255, 255, 255, 0.75),
     5px  5px 14px rgba(0, 0, 0, 0.08);
  --neu-shadow-btn-outline-light-hover:
    -6px -6px 14px rgba(255, 255, 255, 0.85),
     6px  6px 16px rgba(0, 0, 0, 0.10);
  --neu-shadow-btn-outline-light-active:
    inset -3px -3px 8px rgba(255, 255, 255, 0.70),
    inset  3px  3px 8px rgba(0, 0, 0, 0.07);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-cream);
  background-color: var(--color-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white);
  padding-top: 0.15em;
}

p {
  margin-bottom: var(--spacing-md);
}

p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   TYPOGRAPHY UTILITIES
   -------------------------------------------------------------------------- */
.heading-xl {
  font-size: clamp(2.75rem, 6.5vw, 5.25rem);
  letter-spacing: -0.03em;
}

.heading-lg {
  font-size: clamp(2.25rem, 5vw, 4rem);
  letter-spacing: -0.03em;
}

.heading-md {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.heading-sm {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.text-gold {
  color: var(--color-gold);
}

.text-white {
  color: var(--color-white);
}

.text-gray {
  color: var(--color-gray);
}

.text-center {
  text-align: center;
}

.label {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--spacing-sm);
}

/* --------------------------------------------------------------------------
   LAYOUT UTILITIES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--spacing-3xl) 0;
}

.section-dark {
  background-color: var(--color-dark);
}

.section-light {
  background-color: var(--color-cream);
  color: var(--color-dark);
}

.section-light h1,
.section-light h2,
.section-light h3,
.section-light h4,
.section-light h5,
.section-light h6 {
  color: var(--color-dark);
}

.section-header {
  max-width: 760px;
  margin-bottom: var(--spacing-xl);
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.flex {
  display: flex;
}

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

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-md {
  gap: var(--spacing-md);
}

.gap-lg {
  gap: var(--spacing-lg);
}

/* --------------------------------------------------------------------------
   NEUMORPHIC UTILITIES
   -------------------------------------------------------------------------- */
.neu-card-dark,
.neu-card-light {
  border-radius: var(--neu-radius);
  transition: transform var(--neu-transition), box-shadow var(--neu-transition);
}

.neu-card-dark {
  background-color: var(--color-dark-secondary);
  box-shadow: var(--neu-shadow-dark-raised);
}

.neu-card-light {
  background-color: var(--color-cream);
  box-shadow: var(--neu-shadow-light-raised);
}

.neu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--neu-radius);
  transition: transform var(--neu-transition), box-shadow var(--neu-transition);
}

.neu-icon-dark {
  background-color: var(--color-dark);
  box-shadow: var(--neu-shadow-dark-raised);
}

.neu-icon-light {
  background-color: var(--color-cream);
  box-shadow: var(--neu-shadow-light-raised);
}

.neu-media {
  border-radius: var(--neu-radius-lg);
  overflow: hidden;
  box-shadow: var(--neu-shadow-dark-raised);
}

.neu-sunken-dark {
  background-color: var(--color-dark-secondary);
  border-radius: var(--neu-radius);
  box-shadow: var(--neu-shadow-dark-sunken);
}

.neu-sunken-light {
  background-color: var(--color-cream);
  border-radius: var(--neu-radius);
  box-shadow: var(--neu-shadow-light-sunken);
}

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 9999px;
  transition: transform var(--neu-transition), box-shadow var(--neu-transition), background-color var(--transition-base), color var(--transition-base);
  white-space: nowrap;
  position: relative;
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-primary {
  --button-background: var(--color-gold);
  --button-background-hover: var(--color-gold-light);
  --button-text-color: var(--color-dark);
  --button-text-color-hover: var(--color-dark);

  background-color: var(--button-background);
  color: var(--button-text-color);
  border: none;
  overflow: hidden;
  box-shadow: var(--neu-shadow-btn-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--neu-shadow-btn-primary-hover);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: var(--neu-shadow-btn-primary-active);
}

.btn-primary .btn_label {
  display: inline-flex;
  transform: translateY(0);
  transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1);
}

.btn-primary::after {
  content: attr(data-label);
  position: absolute;
  inset: -1px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: inherit;
  background-color: var(--button-background-hover);
  border-radius: inherit;
  color: var(--button-text-color-hover);
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-transform: inherit;
  white-space: inherit;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1);
  z-index: 1;
}

.btn-primary:hover .btn_label {
  transform: translateY(-12px);
}

.btn-primary:hover::after {
  transform: translateY(0);
}

.btn-outline {
  background-color: var(--color-dark-secondary);
  color: var(--color-white);
  border: none;
  box-shadow: var(--neu-shadow-btn-outline-dark);
}

.btn-outline:hover {
  transform: translateY(-2px);
  color: var(--color-gold);
  box-shadow: var(--neu-shadow-btn-outline-dark-hover);
}

.btn-outline:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: var(--neu-shadow-btn-outline-dark-active);
}

.btn-outline-dark {
  background-color: var(--color-cream);
  color: var(--color-dark);
  border: none;
  box-shadow: var(--neu-shadow-btn-outline-light);
}

.btn-outline-dark:hover {
  transform: translateY(-2px);
  color: var(--color-dark);
  box-shadow: var(--neu-shadow-btn-outline-light-hover);
}

.btn-outline-dark:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: var(--neu-shadow-btn-outline-light-active);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

/* --------------------------------------------------------------------------
   HEADER & NAVIGATION  (cloned from integratedbio.com)
   -------------------------------------------------------------------------- */
.header {
  position: relative;
  z-index: 1000;
  pointer-events: none;
}

.header_inline {
  --header-inline-height: 121px;
  --header-inline-padding: 6px;
  --header-inline-menu-background: var(--color-dark);
  --header-inline-menu-border-color: transparent;
  --header-inline-menu-button-background: transparent;
  --header-inline-menu-button-border-color: transparent;
  --header-inline-menu-button-icon-color: var(--color-cream);
  --header-link-hover-bg: rgba(226, 161, 93, 0.12);
  --header-link-color: var(--color-cream);

  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: var(--header-inline-height);
  padding: 0 24px 0 24px;
  background-color: var(--header-inline-menu-background);
  border-radius: 0;
  pointer-events: auto;
  transition: background-color 0.6s ease, opacity 0.6s ease, transform 0.6s ease;
  z-index: 1000;
}

.header_inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  height: 100%;
  margin: 0 auto;
  overflow: visible;
}

/* Logo --------------------------------------------------------------- */
.header_logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  height: 121px;
  margin-top: auto;
  margin-bottom: auto;
  text-align: left;
  transform: translateY(0);
  transform-origin: left;
  transition: transform 0.6s ease;
  pointer-events: auto;
}

.header_logo img {
  filter: brightness(0) invert(1);
}

.header_logo img,
.header_logo svg {
  position: relative;
  z-index: 1;
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  transform-origin: center center;
  transition: filter 0.3s ease;
}

/* Desktop layout ----------------------------------------------------- */
@media (min-width: 1025px) {
  .header_inline {
    --header-inline-height: 115px;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    padding: 0 48px;
    background-color: var(--color-dark);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-radius: 0;
  }

  .header_logo {
    height: 115px;
    transform: translateY(0) !important;
  }
}

/* Header scroll state ------------------------------------------------ */
.header-scrolled .header_logo {
  transform: translateY(0) !important;
}

/* Header navigation (drawer-based on all screen sizes) --------------- */
.header_nav {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  width: auto;
  height: var(--header-inline-height);
  text-align: right;
  pointer-events: auto;
}

.header_menu {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
  gap: 1px;
}

/* Nav links ---------------------------------------------------------- */
.item_btn {
  --button-background: transparent;
  --button-background-hover: var(--header-link-hover-bg);
  --button-text-color: var(--header-link-color);
  --button-text-color-hover: var(--color-gold);

  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  appearance: none;
  width: fit-content;
  height: 39px;
  padding: 8px 17px;
  margin: 0;
  background: var(--button-background);
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  color: var(--button-text-color);
  font-family: var(--font-body);
  font-size: max(0.75rem, min(calc(0.75rem + 0.002 * (100vw - 27.5rem)), 0.875rem));
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  outline: none;
  overflow: visible;
  pointer-events: auto;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.6s ease, color 0.6s ease;
  user-select: none;
  white-space: nowrap;
}

.item_btn:hover,
.item_btn.active {
  background-color: var(--button-background-hover);
  color: var(--button-text-color-hover);
}

/* CTA button --------------------------------------------------------- */
.header_cta {
  --button-background: var(--color-gold);
  --button-background-hover: var(--color-cream);
  --button-text-color: var(--color-dark);
  --button-text-color-hover: var(--color-dark);

  display: none;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 39px;
  padding: 8px 20px;
  background-color: var(--button-background);
  border-radius: 9999px;
  color: var(--button-text-color);
  font-family: var(--font-body);
  font-size: max(0.75rem, min(calc(0.75rem + 0.002 * (100vw - 27.5rem)), 0.875rem));
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  border: none;
  box-shadow: var(--neu-shadow-btn-primary);
  transition: transform var(--neu-transition), box-shadow var(--neu-transition), background-color 0.3s ease, color 0.3s ease;
}

.header_cta .btn_label {
  display: inline-flex;
  transform: translateY(0);
  transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1);
}

.header_cta::after {
  content: attr(data-label);
  position: absolute;
  inset: -1px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: inherit;
  background-color: var(--button-background-hover);
  border-radius: inherit;
  color: var(--button-text-color-hover);
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-transform: inherit;
  white-space: inherit;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1);
  z-index: 1;
}

.header_cta:hover {
  transform: translateY(-2px);
  background-color: var(--button-background-hover);
  color: var(--button-text-color-hover);
  box-shadow: var(--neu-shadow-btn-primary-hover);
}

.header_cta:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: var(--neu-shadow-btn-primary-active);
}

.header_cta:hover .btn_label {
  transform: translateY(-12px);
}

.header_cta:hover::after {
  transform: translateY(0);
}

/* Hamburger menu toggle (all screen sizes) --------------------------- */
.header_menu_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: opacity 0.3s ease;
  z-index: 1002;
}

.header_menu_btn:hover {
  opacity: 0.75;
}

.header_inline.nav-open .header_menu_btn {
  opacity: 0.75;
}

.header_menu_btn .btn_ico {
  position: relative;
  display: inline-flex;
  width: 24px;
  height: 24px;
  margin: auto;
  overflow: hidden;
  transition: width 0.6s ease;
}

.header_menu_btn .ico_bar {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 2px;
  margin: auto;
  background-color: var(--header-inline-menu-button-icon-color);
  transform: translateY(-3px) rotate(0.001deg);
  transition: transform 0.6s ease, background-color 0.6s ease;
}

.header_menu_btn .ico_bar:nth-child(2) {
  transform: translateY(3px) rotate(0.001deg);
}

/* Hamburger menu open state ------------------------------------------ */
.header_inline.nav-open .header_menu_btn .ico_bar {
  transform: translateY(0) rotate(45deg);
}

.header_inline.nav-open .header_menu_btn .ico_bar:nth-child(2) {
  transform: translateY(0) rotate(-45deg);
}

/* Slide-out drawer menu (all screen sizes) --------------------------- */
.header_nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: min(85%, 380px);
  height: 100vh;
  height: 100dvh;
  background-color: var(--color-dark-secondary);
  border-radius: var(--neu-radius-lg) 0 0 var(--neu-radius-lg);
  border-left: none;
  box-shadow: var(--neu-shadow-dark-raised);
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: calc(var(--header-inline-height) + 40px) 32px 40px;
  gap: 32px;
  opacity: 1;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  scrollbar-width: none;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s linear;
  z-index: 1001;
}

.header_nav.open {
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.header_nav::-webkit-scrollbar {
  display: none;
}

.header_menu {
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
}

.header_menu .menu_item {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  flex-shrink: 0;
}

.header_nav .item_btn {
  justify-content: flex-start;
  width: 100%;
  color: var(--color-cream);
  font-size: clamp(1.25rem, 5vw, 26px);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  height: auto;
  padding: 0.5em 0;
  border-radius: 0;
  text-transform: uppercase;
  transition: color 0.3s ease;
  flex-shrink: 0;
}

.header_nav .item_btn:hover,
.header_nav .item_btn.active {
  background-color: transparent;
  color: var(--color-gold);
}

.header_nav .item_btn.active {
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
}

.header_nav .header_cta {
  display: inline-flex;
  flex: 0 0 auto;
  width: 100%;
  font-size: 1rem;
  height: auto;
  padding: 0.9em 1.25em;
  margin: 0;
  justify-content: center;
}

/* Backdrop overlay for mobile menu ----------------------------------- */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(26, 25, 26, 0.65);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 999;
}

.nav-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Legacy class hooks kept for compatibility ---------------------------- */
.nav-links,
.nav-cta {
  display: inline-flex;
}

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-inline-height) + var(--spacing-xl)) 0 var(--spacing-2xl);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hide the hero slideshow on the home page until the intro video finishes */
.hero-video-intro {
  background-color: var(--color-dark);
}

.hero-video-intro .hero-bg {
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-video-intro.hero-slideshow-active .hero-bg {
  opacity: 1;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  pointer-events: none;
}

.hero-video.hero-video--ended {
  opacity: 0;
}

/* Hero background slideshow */
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  animation: heroKenBurns 6s ease-in-out infinite alternate;
  z-index: 0;
  will-change: opacity, transform;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

@keyframes heroKenBurns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: opacity 0.6s ease;
    animation: none;
    transform: none;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 25, 26, 0.85) 0%,
    rgba(26, 25, 26, 0.6) 50%,
    rgba(26, 25, 26, 0.88) 100%
  );
  z-index: 2;
}

/* Make the intro video clearly visible while it plays */
.hero.hero-video-playing .hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(26, 25, 26, 0.35) 0%,
    rgba(26, 25, 26, 0.12) 45%,
    rgba(26, 25, 26, 0.35) 100%
  );
}

.hero.hero-video-playing .hero-content {
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.65);
}

.hero.hero-video-playing .hero-title {
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.7);
}

.hero.hero-video-playing .hero-subtitle {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 920px;
  padding: 0 var(--spacing-lg);
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--spacing-md);
}

.hero-label::before,
.hero-label::after {
  content: '';
  width: 32px;
  height: 1px;
  background-color: var(--color-gold);
  opacity: 0.6;
}

.hero-title {
  margin-bottom: var(--spacing-xs);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}

.hero-title .text-accent {
  font-style: italic;
  color: var(--color-gold);
  text-shadow: 0 0 40px rgba(226, 161, 93, 0.35);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--color-cream);
  opacity: 0.9;
  max-width: 760px;
  margin: 0 auto var(--spacing-lg);
}

.hero-scroll {
  position: absolute;
  bottom: var(--spacing-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gray);
  background-color: var(--color-dark-secondary);
  border-radius: 9999px;
  box-shadow: var(--neu-shadow-dark-raised);
  transition: box-shadow var(--neu-transition), transform var(--neu-transition);
}

.hero-scroll:hover {
  box-shadow: var(--neu-shadow-dark-raised-hover);
  transform: translateX(-50%) translateY(-2px);
}

.hero-scroll svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-gold);
}

.hero-compact {
  min-height: auto;
  padding: calc(var(--header-inline-height) + var(--spacing-2xl)) 0 var(--spacing-2xl);
}

@media (max-height: 800px) {
  .hero {
    padding: calc(var(--header-inline-height) + var(--spacing-lg)) 0 var(--spacing-2xl);
  }

  .hero-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
  }

  .hero-content .btn-group {
    margin-top: var(--spacing-md);
  }

  .hero-scroll {
    bottom: var(--spacing-md);
  }
}

@media (max-width: 767px) {
  .hero {
    padding: calc(var(--header-inline-height) + var(--spacing-md)) 0 var(--spacing-xl);
  }

  .hero-title {
    font-size: clamp(2.25rem, 9.5vw, 3.25rem);
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
  }

  .hero-content .btn-group {
    flex-direction: column;
    margin-top: var(--spacing-md);
    gap: var(--spacing-sm);
  }

  .hero-content .btn-group .btn {
    width: 100%;
  }

  .hero-content .btn-outline {
    background-color: rgba(26, 25, 26, 0.45);
    border-color: rgba(255, 255, 255, 0.25);
  }

  .hero-scroll {
    bottom: var(--spacing-sm);
  }
}

/* --------------------------------------------------------------------------
   TAGLINE MARQUEE
   -------------------------------------------------------------------------- */
.text-marquee {
  position: relative;
  background-color: var(--color-dark-secondary);
  border: none;
  padding: 0.5rem 0;
  overflow: hidden;
  box-shadow: var(--neu-shadow-dark-sunken);
  mask-image: linear-gradient(
    90deg,
    transparent,
    var(--color-dark-secondary) 6%,
    var(--color-dark-secondary) 94%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    var(--color-dark-secondary) 6%,
    var(--color-dark-secondary) 94%,
    transparent
  );
}

.text-marquee__track {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: max-content;
  animation: text-marquee-scroll 30s linear infinite;
  will-change: transform;
}

.text-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.55rem);
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--color-cream);
}

.text-marquee__words,
.text-marquee__item em {
  letter-spacing: 0;
}

.text-marquee__space {
  letter-spacing: 0;
}

.text-marquee__item em {
  color: var(--color-gold);
  font-style: normal;
}

.text-marquee__dot {
  flex-shrink: 0;
  width: 0.55em;
  height: 0.55em;
  color: var(--color-gold);
}

@keyframes text-marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 767px) {
  .text-marquee {
    padding: 0.4rem 0;
  }

  .text-marquee__track {
    animation-duration: 40s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .text-marquee__track {
    animation: none !important;
  }
}

/* --------------------------------------------------------------------------
   INTRO / ABOUT SECTION
   -------------------------------------------------------------------------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--spacing-2xl);
  align-items: center;
}

.intro-content {
  max-width: 560px;
}

.intro-content .label {
  margin-bottom: var(--spacing-sm);
}

.intro-content h2 {
  margin-bottom: var(--spacing-md);
}

.intro-content p {
  color: var(--color-gray-light);
  margin-bottom: var(--spacing-md);
}

.intro-highlight {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-gold);
  margin-top: var(--spacing-md);
  padding-left: var(--spacing-md);
  border-left: 2px solid var(--color-gold);
}

.intro-media {
  position: relative;
}

.intro-media img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: var(--neu-radius-lg);
  box-shadow: var(--neu-shadow-dark-raised);
}

.experience-badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background-color: var(--color-gold);
  color: var(--color-dark);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--neu-radius);
  text-align: center;
}

.experience-badge .number {
  display: block;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 2rem;
  line-height: 1;
}

.experience-badge .text {
  display: block;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.35rem;
}

/* --------------------------------------------------------------------------
   SERVICES CARDS
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.service-card {
  background-color: var(--color-dark-secondary);
  border-radius: var(--neu-radius);
  padding: var(--spacing-lg);
  box-shadow: var(--neu-shadow-dark-raised);
  transition: transform var(--neu-transition), box-shadow var(--neu-transition), background-color var(--transition-base);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--neu-shadow-dark-raised-hover);
}

.service-card:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: var(--neu-shadow-dark-sunken);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-dark);
  border-radius: var(--neu-radius);
  box-shadow: var(--neu-shadow-dark-raised);
  margin-bottom: var(--spacing-md);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-gold);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--color-gray-light);
  line-height: 1.6;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   WHY US / FEATURE CARDS
   -------------------------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
}

.why-card {
  background-color: var(--color-cream);
  border-radius: var(--neu-radius);
  padding: var(--spacing-lg);
  transition: transform var(--neu-transition);
}

.why-card:hover {
  transform: translateY(-4px);
}

.why-card:active {
  transform: translateY(1px) scale(0.99);
}

/* Neumorphic treatment for homepage & about "Why" cards */
.home-why-grid .why-card,
.about-why-grid .why-card {
  box-shadow: var(--neu-shadow-light-raised);
  transition: transform var(--neu-transition), box-shadow var(--neu-transition);
}

.home-why-grid .why-card:hover,
.about-why-grid .why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--neu-shadow-light-raised-hover);
}

.home-why-grid .why-card:active,
.about-why-grid .why-card:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: var(--neu-shadow-light-sunken);
}

.why-card .number {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: var(--spacing-sm);
}

.why-card h3 {
  font-size: 1.15rem;
  color: var(--color-dark);
  margin-bottom: var(--spacing-xs);
}

.why-card p {
  font-size: 0.9rem;
  color: var(--color-gray);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   PAN-INDIA PRESENCE
   -------------------------------------------------------------------------- */
.presence-section {
  background-color: var(--color-dark-secondary);
}

.presence-cities {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}

.presence-cities li {
  padding: 0.6em 1.4em;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--color-cream);
  border: 1px solid rgba(226, 161, 93, 0.4);
  border-radius: 999px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.presence-cities li:hover {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-dark);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   PORTFOLIO
   -------------------------------------------------------------------------- */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
}

.filter-btn {
  padding: 0.65rem 1.25rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gray-light);
  background-color: var(--color-dark-secondary);
  border: none;
  border-radius: var(--neu-radius);
  box-shadow: var(--neu-shadow-dark-raised);
  transition: transform var(--neu-transition), box-shadow var(--neu-transition), color var(--transition-base);
  cursor: pointer;
}

.filter-btn:hover {
  color: var(--color-gold);
  box-shadow: var(--neu-shadow-dark-raised-hover);
  transform: translateY(-2px);
}

.filter-btn.active {
  color: var(--color-gold);
  background-color: var(--color-dark-secondary);
  box-shadow: var(--neu-shadow-dark-sunken);
  transform: translateY(1px);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.portfolio-card {
  position: relative;
  border-radius: var(--neu-radius);
  overflow: hidden;
  background-color: var(--color-dark);
  aspect-ratio: 4 / 3;
  box-shadow: var(--neu-shadow-dark-raised);
  transition: transform var(--neu-transition), box-shadow var(--neu-transition);
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--neu-shadow-dark-raised-hover);
}

.portfolio-card:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: var(--neu-shadow-dark-sunken);
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 30%,
    rgba(26, 25, 26, 0.92) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--spacing-md);
}

.portfolio-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.portfolio-card span {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* --------------------------------------------------------------------------
   OUR WORK ROWS
   -------------------------------------------------------------------------- */
.featured-work-rows {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  width: 100%;
  overflow: hidden;
}

.featured-work-row {
  display: flex;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.featured-work-row::before,
.featured-work-row::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.featured-work-row::before {
  left: 0;
  background: linear-gradient(90deg, var(--color-dark) 0%, transparent 100%);
}

.featured-work-row::after {
  right: 0;
  background: linear-gradient(270deg, var(--color-dark) 0%, transparent 100%);
}

.featured-work-track {
  display: flex;
  flex-shrink: 0;
  gap: var(--spacing-md);
  will-change: transform;
}

.featured-work-row[data-direction="left"] .featured-work-track {
  animation: featuredWorkScrollLeft var(--duration, 80s) linear infinite;
}

.featured-work-row[data-direction="right"] .featured-work-track {
  transform: translateX(-100%);
  animation: featuredWorkScrollRight var(--duration, 80s) linear infinite;
}

.featured-work-row:hover .featured-work-track {
  animation-play-state: paused;
}

.featured-work-track img {
  height: clamp(180px, 22vw, 280px);
  width: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

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

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

@media (prefers-reduced-motion: reduce) {
  .featured-work-row[data-direction="left"] .featured-work-track,
  .featured-work-row[data-direction="right"] .featured-work-track {
    animation: none;
  }

  .featured-work-row[data-direction="right"] .featured-work-track {
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .featured-work-rows {
    gap: var(--spacing-sm);
  }

  .featured-work-row::before,
  .featured-work-row::after {
    width: 40px;
  }

  .featured-work-track {
    gap: var(--spacing-sm);
  }

  .featured-work-track img {
    height: clamp(140px, 32vw, 200px);
  }
}

/* --------------------------------------------------------------------------
   STATISTICS
   -------------------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--spacing-md);
}

.stat-card {
  text-align: center;
  padding: var(--spacing-lg);
  background-color: var(--color-dark-secondary);
  border-radius: var(--neu-radius);
  box-shadow: var(--neu-shadow-dark-raised);
  transition: transform var(--neu-transition), box-shadow var(--neu-transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--neu-shadow-dark-raised-hover);
}

.stat-card:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: var(--neu-shadow-dark-sunken);
}

.stat-number {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gray-light);
}

/* Slim horizontal band variant */
.stats-band {
  padding: var(--spacing-xl) 0;
}

.stats-band .section-header {
  margin-bottom: var(--spacing-md);
}

.stats-band .stats-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-sm);
}

.stats-band .stat-card {
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--neu-radius);
}

.stats-band .stat-number {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 0.25rem;
}

.stats-band .stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   TESTIMONIAL
   -------------------------------------------------------------------------- */
.testimonial {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  padding: var(--spacing-xl);
  background-color: var(--color-cream);
  border-radius: var(--neu-radius-lg);
  box-shadow: var(--neu-shadow-light-raised);
}

.testimonial blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--color-dark-secondary);
  margin-bottom: var(--spacing-lg);
}

.testimonial blockquote::before {
  content: '"';
  display: block;
  font-size: 5rem;
  line-height: 1;
  color: var(--color-gold);
  margin-bottom: -1.5rem;
  opacity: 0.4;
}

.testimonial-author {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* --------------------------------------------------------------------------
   CLIENTS
   -------------------------------------------------------------------------- */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--spacing-md);
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-cream);
  border: none;
  border-radius: var(--neu-radius);
  padding: var(--spacing-md);
  height: 120px;
  box-shadow: var(--neu-shadow-light-raised);
  transition: transform var(--neu-transition), box-shadow var(--neu-transition);
}

.client-logo:hover {
  transform: translateY(-4px);
  box-shadow: var(--neu-shadow-light-raised-hover);
}

.client-logo:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: var(--neu-shadow-light-sunken);
}

.client-logo img {
  max-width: 100%;
  max-height: 70px;
  width: auto;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   HOME CLIENTS MARQUEE
   -------------------------------------------------------------------------- */
.testimonial-section {
  padding-top: var(--spacing-xl);
}

.testimonial-section .home-clients {
  margin-top: 0;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(226, 161, 93, 0.15);
  overflow: hidden;
}

.home-clients__title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-white);
  margin-bottom: var(--spacing-xl);
}

.home-clients__title::before,
.home-clients__title::after {
  content: '';
  width: clamp(40px, 8vw, 80px);
  height: 1px;
  background: linear-gradient(90deg, var(--color-gold), transparent);
  opacity: 0.6;
}

.home-clients__title::after {
  background: linear-gradient(90deg, transparent, var(--color-gold));
}

.home-clients__logos {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent,
    var(--color-dark) 8%,
    var(--color-dark) 92%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    var(--color-dark) 8%,
    var(--color-dark) 92%,
    transparent
  );
}

.home-clients__track {
  display: flex;
  align-items: center;
  gap: clamp(4rem, 8vw, 7rem);
  width: max-content;
  animation: home-clients-marquee 60s linear infinite;
  will-change: transform;
}

.home-clients__logo {
  flex-shrink: 0;
  height: clamp(72px, 10vw, 120px);
  width: auto;
  max-width: 360px;
  object-fit: contain;
  opacity: 0.92;
  transition: var(--transition-base);
}

.home-clients__logo:hover {
  opacity: 1;
  transform: scale(1.08);
}

@keyframes home-clients-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-clients__track {
    animation: none;
  }
}

@media (max-width: 767px) {
  .testimonial-section {
    padding-top: var(--spacing-lg);
  }

  .testimonial-section .home-clients {
    margin-top: 0;
    padding-top: var(--spacing-md);
  }

  .home-clients__title {
    gap: var(--spacing-sm);
    font-size: clamp(1.1rem, 5vw, 1.5rem);
  }

  .home-clients__track {
    gap: clamp(2rem, 6vw, 3.5rem);
    animation-duration: 90s;
  }

  .home-clients__logo {
    height: clamp(48px, 8vw, 72px);
    max-width: 220px;
  }
}

/* --------------------------------------------------------------------------
   CONTACT
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--spacing-2xl);
  align-items: start;
}

.contact-info,
.contact-form {
  min-width: 0;
}

.contact-info h2 {
  margin-bottom: var(--spacing-md);
}

.contact-info > p {
  color: var(--color-gray-light);
  margin-bottom: var(--spacing-lg);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.contact-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-dark);
  border-radius: var(--neu-radius);
  box-shadow: var(--neu-shadow-dark-raised);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-gold);
}

.contact-item > div {
  min-width: 0;
}

.contact-item h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.25rem;
}

.contact-item p {
  overflow-wrap: break-word;
  color: var(--color-cream);
  margin-bottom: 0;
}

.contact-form {
  background-color: var(--color-dark-secondary);
  border-radius: var(--neu-radius);
  padding: var(--spacing-xl);
  box-shadow: var(--neu-shadow-dark-raised);
}

.contact-form h3 {
  margin-bottom: var(--spacing-lg);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gray);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-white);
  background-color: var(--color-dark);
  border: none;
  border-radius: var(--neu-radius);
  padding: 0.85rem 1rem;
  outline: none;
  box-shadow: var(--neu-shadow-dark-sunken);
  transition: box-shadow var(--neu-transition), background-color var(--transition-base);
  min-width: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  background-color: var(--color-dark-secondary);
  box-shadow: var(--neu-shadow-dark-raised);
}

.form-group select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23e2a15d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-gold);
  background-color: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-gray);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* --------------------------------------------------------------------------
   SERVICE DETAIL PAGE
   -------------------------------------------------------------------------- */
.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.service-detail-card {
  background-color: var(--color-cream);
  border-radius: var(--neu-radius);
  padding: var(--spacing-lg);
  box-shadow: var(--neu-shadow-light-raised);
  transition: transform var(--neu-transition), box-shadow var(--neu-transition);
}

.service-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--neu-shadow-light-raised-hover);
}

.service-detail-card:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: var(--neu-shadow-light-sunken);
}

.service-detail-card h3 {
  font-size: 1.25rem;
  color: var(--color-dark);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--color-gold);
}

.service-detail-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.service-detail-card li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  color: var(--color-dark-secondary);
}

.service-detail-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  background-color: var(--color-gold);
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   ABOUT PAGE
   -------------------------------------------------------------------------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
}

.value-card {
  background-color: var(--color-dark-secondary);
  padding: var(--spacing-lg);
  border-radius: var(--neu-radius);
  box-shadow: var(--neu-shadow-dark-raised);
  transition: transform var(--neu-transition), box-shadow var(--neu-transition);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--neu-shadow-dark-raised-hover);
}

.value-card:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: var(--neu-shadow-dark-sunken);
}

.value-card h3 {
  font-size: 1.35rem;
  margin-bottom: var(--spacing-sm);
}

.value-card p {
  color: var(--color-gray-light);
  margin-bottom: 0;
}

.story-media {
  position: relative;
}

.story-media img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--neu-radius-lg);
  box-shadow: var(--neu-shadow-dark-raised);
}

/* --------------------------------------------------------------------------
   PREMIUM FOOTER
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  background-color: var(--color-dark-secondary);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(226, 161, 93, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(226, 161, 93, 0.05) 0%, transparent 45%);
  padding: 0;
  border-top: 1px solid rgba(226, 161, 93, 0.12);
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), var(--color-gold-light), var(--color-gold), transparent);
  opacity: 0.6;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--spacing-xl);
  padding: var(--spacing-3xl) 0;
  position: relative;
}

.footer-top.footer-top--no-map {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.footer-cta {
  max-width: 720px;
}

.footer-cta .label {
  margin-bottom: var(--spacing-md);
}

.footer-headline {
  margin-bottom: var(--spacing-lg);
  line-height: 1.1;
  max-width: 14ch;
}

.footer-headline .text-gold {
  font-style: italic;
}

.footer-cta .btn {
  padding: 1.15rem 2.5rem;
  font-size: 0.9rem;
}

.footer-brand-mark {
  font-family: var(--font-display);
  font-size: clamp(8rem, 18vw, 16rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.045);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, rgba(226, 161, 93, 0.08), rgba(255, 255, 255, 0.02));
  -webkit-background-clip: text;
  background-clip: text;
}

.footer-map {
  position: relative;
  width: 420px;
  height: 300px;
  border-radius: var(--neu-radius-lg);
  overflow: hidden;
  box-shadow: var(--neu-shadow-dark-raised);
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-map {
  position: relative;
  width: 100%;
  height: clamp(320px, 36vw, 460px);
  border-radius: var(--neu-radius-lg);
  overflow: hidden;
  box-shadow: var(--neu-shadow-dark-raised);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-open-link {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-cream);
  color: var(--color-dark);
  padding: 10px 16px;
  border-radius: var(--neu-radius);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--neu-shadow-light-raised);
  z-index: 2;
  transition: transform var(--neu-transition), box-shadow var(--neu-transition), background-color var(--transition-base), color var(--transition-base);
}

.map-open-link:hover {
  background: var(--color-white);
  color: var(--color-dark);
  box-shadow: var(--neu-shadow-light-raised-hover);
  transform: translateY(-2px);
}

.map-open-link:active {
  box-shadow: var(--neu-shadow-light-sunken);
  transform: translateY(1px);
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 161, 93, 0.3), transparent);
  margin-bottom: var(--spacing-2xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
}

.footer-brand-column {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.footer-logo img {
  height: 160px;
  width: auto;
  opacity: 0.95;
  transition: opacity var(--transition-base);
}

.footer-logo:hover img {
  opacity: 1;
}

.footer-about {
  color: var(--color-gray);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 340px;
  margin: 0;
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-gold);
  margin: 0;
  white-space: nowrap;
}

.footer-title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
  position: relative;
  display: inline-block;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: var(--color-gold);
  border-radius: 2px;
}

.footer-links li {
  margin-bottom: 0.85rem;
  overflow: hidden;
}

.footer-links a {
  display: inline-block;
  color: var(--color-gray);
  font-size: 0.95rem;
  position: relative;
  padding-left: 0;
  transition: color var(--transition-base), padding-left var(--transition-base);
}

.footer-links a::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-gold);
  opacity: 0;
  transition: opacity var(--transition-base), left var(--transition-base);
}

.footer-links a:hover {
  color: var(--color-gold);
  padding-left: 14px;
}

.footer-links a:hover::before {
  opacity: 1;
  left: 0;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  color: var(--color-gray);
}

.footer-contact a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transition: color var(--transition-base);
}

.footer-contact a:hover {
  color: var(--color-gold);
}

.footer-contact svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-gold);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.contact-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.contact-value {
  color: var(--color-cream);
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
}

.social-links a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background-color: var(--color-dark);
  box-shadow: var(--neu-shadow-dark-raised);
  transition: transform var(--neu-transition), box-shadow var(--neu-transition);
  position: relative;
  overflow: hidden;
}

.social-links a::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--color-gold);
  transform: scale(0);
  border-radius: 50%;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-links a:hover {
  box-shadow: var(--neu-shadow-dark-raised-hover);
  transform: translateY(-2px);
}

.social-links a:active {
  box-shadow: var(--neu-shadow-dark-sunken);
  transform: translateY(1px);
}

.social-links a:hover::before {
  transform: scale(1);
}

.social-links svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-white);
  position: relative;
  z-index: 1;
  transition: stroke var(--transition-base);
}

.social-links a:hover svg {
  stroke: var(--color-dark);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: var(--color-gray);
  position: relative;
}

.footer-bottom-links {
  display: flex;
  gap: var(--spacing-md);
}

.footer-bottom a {
  color: var(--color-gray);
  position: relative;
  transition: color var(--transition-base);
}

.footer-bottom a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-gold);
  transition: width var(--transition-base);
}

.footer-bottom a:hover {
  color: var(--color-gold);
}

.footer-bottom a:hover::after {
  width: 100%;
}

.back-to-top {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background-color: var(--color-dark);
  box-shadow: var(--neu-shadow-dark-raised);
  color: var(--color-cream);
  transition: transform var(--neu-transition), box-shadow var(--neu-transition), background-color var(--transition-base), color var(--transition-base);
  cursor: pointer;
}

.back-to-top:hover {
  background-color: var(--color-gold);
  box-shadow: var(--neu-shadow-btn-primary-hover);
  color: var(--color-dark);
  transform: translateY(-3px);
}

.back-to-top:active {
  background-color: var(--color-gold);
  box-shadow: var(--neu-shadow-btn-primary-active);
  transform: translateY(-1px);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .section {
    padding: var(--spacing-2xl) 0;
  }

  .grid-4,
  .why-grid,
  .stats-grid,
  .services-grid,
  .portfolio-grid,
  .service-detail-grid,
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-band {
    padding: var(--spacing-lg) 0;
  }

  .stats-band .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xs);
  }

  .stats-band .stat-card {
    padding: var(--spacing-xs) var(--spacing-sm);
  }

  .stats-band .stat-number {
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  }

  .stats-band .stat-label {
    font-size: 0.65rem;
    letter-spacing: 0.06em;
  }

  .intro-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .intro-media img,
  .story-media img {
    height: clamp(340px, 45vw, 460px);
  }

  .experience-badge {
    left: var(--spacing-md);
    bottom: var(--spacing-md);
  }

  .portfolio-filters {
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
  }

  .filter-btn {
    padding: 0.55rem 1rem;
    font-size: 0.7rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-2xl) 0;
  }

  .footer-brand-mark,
  .footer-map {
    display: none;
  }

  .footer-cta {
    max-width: 100%;
  }

  .footer-headline {
    max-width: 18ch;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
  }

  .footer-about {
    max-width: 100%;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 767px) {
  .section {
    padding: var(--spacing-2xl) 0;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .services-grid,
  .why-grid,
  .stats-grid,
  .portfolio-grid,
  .service-detail-grid,
  .values-grid,
  .clients-grid {
    grid-template-columns: 1fr;
  }

  .stats-band {
    padding: var(--spacing-lg) 0;
  }

  .stats-band .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xs);
  }

  .stats-band .stat-card {
    padding: var(--spacing-sm);
  }

  .stats-band .stat-number {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
  }

  .stats-band .stat-label {
    font-size: 0.65rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .intro-media img,
  .story-media img {
    height: clamp(280px, 55vw, 380px);
  }

  .portfolio-filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: var(--spacing-xs);
    margin-left: calc(var(--spacing-md) * -1);
    margin-right: calc(var(--spacing-md) * -1);
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }

  .portfolio-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
  }

  .contact-form {
    padding: var(--spacing-lg);
  }

  .footer-top {
    padding: var(--spacing-2xl) 0 var(--spacing-xl);
  }

  .footer-headline {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--spacing-xl);
  }

  .footer-brand-column {
    align-items: center;
  }

  .footer-about {
    max-width: 100%;
  }

  .footer-tagline {
    white-space: normal;
  }

  .social-links {
    justify-content: center;
  }

  .footer-links a {
    padding-left: 0;
  }

  .footer-links a:hover {
    padding-left: 14px;
  }

  .footer-contact li {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-sm);
  }

  .back-to-top {
    order: -1;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-md);
  }

  .header_logo {
    height: 107px;
  }

  .header_inline {
    --header-inline-height: 107px;
  }

  .hero-content {
    padding: 0 var(--spacing-md);
  }

  .btn {
    width: 100%;
  }

  .btn-group {
    flex-direction: column;
  }

  .service-card,
  .why-card,
  .value-card,
  .service-detail-card {
    padding: var(--spacing-md);
  }

  .service-icon {
    width: 48px;
    height: 48px;
  }

  .service-icon svg {
    width: 24px;
    height: 24px;
  }

  .hero-label::before,
  .hero-label::after {
    width: 16px;
  }

  .footer-logo img {
    height: 120px;
  }

  .footer-bottom-links {
    flex-direction: column;
    gap: var(--spacing-xs);
  }
}

@media (max-width: 360px) {
  .header_logo {
    height: 95px;
  }

  .header_inline {
    --header-inline-height: 95px;
  }

  .hero {
    padding: calc(var(--header-inline-height) + var(--spacing-md)) 0 var(--spacing-xl);
  }
}

/* ==========================================================================
   GSAP ANIMATION SYSTEM
   ========================================================================== */

/* Split text wrappers */
.split-word,
.split-char {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.2em 0.06em 0.2em 0;
  margin: -0.2em -0.06em -0.2em 0;
}

.split-inner {
  display: inline-block;
  transform-origin: 50% 100%;
}

/* Page transition overlay */
.page-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
}

.page-transition-panel {
  position: absolute;
  inset: 0;
  background-color: var(--color-gold);
  transform: translateY(-100%);
  visibility: hidden;
}

.page-transition-overlay.active .page-transition-panel {
  visibility: visible;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  transform: scaleX(0);
  transform-origin: left;
  z-index: 1001;
}

/* Perspective containers for 3D card effects */
.services-grid,
.values-grid {
  perspective: 1200px;
}

.service-card,
.value-card {
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

/* Portfolio card overlay - hidden by default on pointer devices */
@media (hover: hover) and (pointer: fine) {
  .js-animations .portfolio-card-overlay {
    transform: translateY(100%);
    transition: none;
  }

  .js-animations .portfolio-card-overlay h3,
  .js-animations .portfolio-card-overlay span {
    transform: translateY(20px);
    opacity: 0;
  }
}

/* Service detail card header border animation support */
.js-animations .service-detail-card h3 {
  background-image: linear-gradient(var(--color-gold), var(--color-gold));
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0% 2px;
  padding-bottom: var(--spacing-sm);
  border-bottom: none;
}

/* Magnetic button hover state */
.btn {
  transform-style: preserve-3d;
}

/* --------------------------------------------------------------------------
   CARD MICROANIMATIONS
   -------------------------------------------------------------------------- */

/* Interactive cards receive pointer cursor and hardware acceleration */
.service-card,
.why-card,
.stat-card,
.portfolio-card,
.client-logo,
.value-card,
.service-detail-card,
.contact-item {
  cursor: pointer;
  will-change: transform;
}

/* Service cards — refined base for GSAP hover lifts */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(226, 161, 93, 0.08),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

/* Value cards — dark variant of service card glow */
.value-card {
  position: relative;
  overflow: hidden;
  transition: transform var(--neu-transition), box-shadow var(--neu-transition);
}

.value-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(226, 161, 93, 0.07),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.value-card:hover::before {
  opacity: 1;
}

.value-card > * {
  position: relative;
  z-index: 1;
}

/* Stat cards — numeric prestige cards */
.stat-card {
  position: relative;
  overflow: hidden;
  transition: transform var(--neu-transition), box-shadow var(--neu-transition);
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(226, 161, 93, 0.1),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card > * {
  position: relative;
  z-index: 1;
}

/* Service detail cards — light surface */
.service-detail-card {
  position: relative;
  overflow: hidden;
  transition: transform var(--neu-transition), box-shadow var(--neu-transition);
}

.service-detail-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(226, 161, 93, 0.06),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.service-detail-card:hover::before {
  opacity: 1;
}

.service-detail-card > * {
  position: relative;
  z-index: 1;
}

/* Client logos */
.client-logo {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-logo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(226, 161, 93, 0.08),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.client-logo:hover::before {
  opacity: 1;
}

.client-logo img {
  position: relative;
  z-index: 1;
  transition: filter 0.3s ease, transform 0.3s ease;
}

/* Contact items */
.contact-item {
  padding: var(--spacing-sm);
  border-radius: var(--neu-radius);
  transition: background-color 0.3s ease, box-shadow var(--neu-transition);
}

.contact-item:hover {
  background-color: var(--color-dark-secondary);
  box-shadow: var(--neu-shadow-dark-raised);
}

.contact-item:active {
  background-color: var(--color-dark-secondary);
  box-shadow: var(--neu-shadow-dark-sunken);
  transform: translateY(1px);
}

/* Reduce GPU memory pressure on touch devices by avoiding pre-prompted layers */
@media (hover: none) and (pointer: coarse) {
  .service-card,
  .why-card,
  .stat-card,
  .portfolio-card,
  .client-logo,
  .value-card,
  .service-detail-card,
  .contact-item {
    will-change: auto;
  }
}

@media (min-width: 768px) {
  .contact-item {
    margin-left: calc(var(--spacing-sm) * -1);
    margin-right: calc(var(--spacing-sm) * -1);
  }
}

.contact-icon {
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.contact-item:hover .contact-icon {
  transform: scale(1.1);
  box-shadow: var(--neu-shadow-dark-raised-hover);
}

.contact-item:active .contact-icon {
  transform: scale(1.05);
  box-shadow: var(--neu-shadow-dark-sunken);
}

/* Portfolio cards — overlay refinements handled by JS, cursor hint here */
.portfolio-card {
  cursor: pointer;
}

/* Ensure form fields remain usable and not treated as cards */
.form-group,
.footer-grid > div,
.footer-links li,
.footer-contact li {
  cursor: auto;
  will-change: auto;
}

/* Smooth reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .service-card::before,
  .value-card::before,
  .why-card::before,
  .stat-card::before,
  .service-detail-card::before,
  .client-logo::before {
    display: none;
  }
}


/* ==========================================================================
   PERFORMANCE & RESPONSIVENESS OPTIMIZATIONS
   ========================================================================== */

/* --------------------------------------------------------------------------
   BASE PERFORMANCE
   -------------------------------------------------------------------------- */

/* Contain independent sections to limit layout/style work during scroll/animation.
   We avoid 'paint' containment so transformed/overflowing children are not clipped
   at section boundaries (important for GSAP animations and parallax). */
.section,
.footer,
.hero {
  contain: layout style;
}

/* Hero is above the fold — keep it visible to layout at all times */
.hero {
  content-visibility: visible;
}

/* Respect user motion preferences more broadly */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-slide,
  .home-clients__track {
    animation: none !important;
  }

  .service-card,
  .why-card,
  .stat-card,
  .portfolio-card,
  .value-card,
  .service-detail-card,
  .client-logo,
  .contact-item {
    transform: none !important;
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   GLOBAL RESPONSIVE FINE-TUNING
   -------------------------------------------------------------------------- */

/* Improve text readability on all viewports */
h1, h2, h3, h4 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* Ensure images never cause layout shift when CSS loads late */
img {
  height: auto;
}

/* --------------------------------------------------------------------------
   TABLET-SPECIFIC OPTIMIZATIONS (768px - 1024px)
   -------------------------------------------------------------------------- */

@media (min-width: 768px) and (max-width: 1024px) {
  .container {
    padding: 0 var(--spacing-lg);
  }

  .section {
    padding: calc(var(--spacing-2xl) + var(--spacing-md)) 0;
  }

  /* Header: solid dark bar matching reference */
  .header_inline {
    --header-inline-height: 129px;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    padding: 0 32px;
    background-color: var(--color-dark);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-radius: 0;
  }

  .header_logo {
    height: 129px;
  }

  .header-scrolled .header_logo {
    transform: translateY(0);
  }

  /* Better grid density on tablets */
  .services-grid,
  .portfolio-grid,
  .service-detail-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-band .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stat-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }

  .stats-band .stat-card:last-child:nth-child(odd) {
    grid-column: auto;
    max-width: none;
    margin: 0;
  }

  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Intro content order: image first on tablet for visual breathing room */
  .intro-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .intro-content {
    max-width: 100%;
    order: 2;
  }

  .intro-media,
  .story-media {
    order: 1;
  }

  .intro-media img,
  .story-media img {
    height: clamp(360px, 50vw, 520px);
  }

  /* Footer: 2 columns but brand spans full width */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
  }

  .footer-brand-column {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
  }

  .footer-about {
    max-width: 520px;
  }

  .footer-top {
    padding: var(--spacing-2xl) 0;
  }

  .footer-brand-mark,
  .footer-map {
    display: none;
  }

  .footer-logo img {
    height: 110px;
  }
}

/* --------------------------------------------------------------------------
   LARGE DESKTOP OPTIMIZATIONS
   -------------------------------------------------------------------------- */

@media (min-width: 1440px) {
  :root {
    --container-max: 1400px;
  }

  .section {
    padding: calc(var(--spacing-3xl) + var(--spacing-md)) 0;
  }
}

@media (min-width: 1920px) {
  :root {
    --container-max: 1560px;
  }

  html {
    font-size: 18px;
  }
}

/* --------------------------------------------------------------------------
   TOUCH DEVICE OPTIMIZATIONS
   -------------------------------------------------------------------------- */

@media (hover: none) and (pointer: coarse) {
  /* Remove cursor: pointer from non-interactive cards */
  .service-card,
  .why-card,
  .stat-card,
  .portfolio-card,
  .client-logo,
  .value-card,
  .service-detail-card,
  .contact-item {
    cursor: default;
  }

  /* Disable hover-driven pseudo glows on touch to avoid stuck states */
  .service-card::before,
  .value-card::before,
  .why-card::before,
  .stat-card::before,
  .service-detail-card::before,
  .client-logo::before {
    display: none;
  }

  /* Ensure portfolio info is always readable on touch */
  .js-animations .portfolio-card-overlay,
  .portfolio-card-overlay {
    transform: translateY(0);
    background: linear-gradient(
      180deg,
      transparent 25%,
      rgba(26, 25, 26, 0.92) 100%
    );
  }

  .js-animations .portfolio-card-overlay h3,
  .js-animations .portfolio-card-overlay span,
  .portfolio-card-overlay h3,
  .portfolio-card-overlay span {
    opacity: 1;
    transform: translateY(0);
  }

  /* Buttons should not retain hover translate state after touch */
  .btn-primary:hover .btn_label,
  .header_cta:hover .btn_label {
    transform: translateY(0);
  }

  .btn-primary:hover::after,
  .header_cta:hover::after {
    transform: translateY(100%);
  }

  /* Footer links: disable slide-in hover on touch */
  .footer-links a:hover {
    padding-left: 0;
  }

  .footer-links a:hover::before {
    opacity: 0;
  }

  /* Social links: simplify hover state */
  .social-links a:hover::before {
    transform: scale(0);
  }

  .social-links a:hover svg {
    stroke: var(--color-white);
  }

  /* Back to top: remove translate on touch */
  .back-to-top:hover {
    transform: none;
  }

  /* Larger touch targets for small interactive elements */
  .filter-btn {
    min-height: 40px;
  }

  .footer-links a,
  .footer-contact a,
  .footer-bottom a {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
  }
}

/* --------------------------------------------------------------------------
   MOBILE LANDSCAPE
   -------------------------------------------------------------------------- */

@media (max-width: 896px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: calc(var(--header-inline-height) + var(--spacing-lg)) 0 var(--spacing-xl);
  }

  .hero-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .hero-scroll {
    display: none;
  }

  .header_nav.open {
    padding: 64px 24px 40px;
    gap: 24px;
  }

  .header_nav .item_btn {
    font-size: clamp(1.25rem, 5vw, 26px);
  }
}

/* --------------------------------------------------------------------------
   MOBILE HEADER: solid dark bar
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
  .header_inline {
    background-color: var(--color-dark);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* --------------------------------------------------------------------------
   SMALL MOBILE ENHANCEMENTS
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
  /* Tidy compact header */
  .header_logo {
    height: 107px;
    transform: translateY(0);
  }

  .header-scrolled .header_logo {
    transform: translateY(0);
  }

  .header_inline {
    --header-inline-height: 107px;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    padding: 0 16px 0 20px;
  }

  .hero {
    padding: calc(var(--header-inline-height) + var(--spacing-md)) 0 var(--spacing-xl);
  }

  .hero-title {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .btn {
    padding: 0.9rem 1.5rem;
  }

  .section {
    padding: var(--spacing-xl) 0;
  }

  .section-header {
    margin-bottom: var(--spacing-lg);
  }

  .intro-media img,
  .story-media img {
    height: clamp(260px, 58vw, 340px);
  }

  .experience-badge {
    padding: var(--spacing-xs) var(--spacing-sm);
    left: var(--spacing-sm);
    bottom: var(--spacing-sm);
  }

  .experience-badge .number {
    font-size: 1.5rem;
  }

  .service-card,
  .why-card,
  .value-card,
  .service-detail-card,
  .stat-card {
    padding: var(--spacing-md);
  }

  .stat-number {
    font-size: 2rem;
  }

  .footer-logo img {
    height: 110px;
  }

  .footer-top {
    padding: var(--spacing-xl) 0;
  }

  .footer-cta .btn {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .header_logo {
    height: 95px;
  }

  .header_inline {
    --header-inline-height: 95px;
  }

  .hero-title {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }

  .header_nav .item_btn {
    font-size: 1.35rem;
  }
}

/* --------------------------------------------------------------------------
   ACCESSIBILITY / FOCUS
   -------------------------------------------------------------------------- */

/* Ensure focus is always visible, even when hover effects are simplified */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* Reduce motion for those who need it */
@media (prefers-reduced-motion: reduce) {
  .page-transition-overlay,
  .scroll-progress {
    display: none;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .header_inline {
    --header-inline-height: 115px;
  }

  .header_logo {
    height: 115px;
  }

  .header-scrolled .header_logo {
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   NEUMORPHIC MOBILE REFINEMENTS
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .service-card,
  .why-card,
  .value-card,
  .stat-card,
  .service-detail-card,
  .contact-form,
  .portfolio-card,
  .intro-media img,
  .story-media img,
  .footer-map,
  .contact-map,
  .testimonial {
    box-shadow:
      -4px -4px 10px rgba(255, 255, 255, 0.04),
       4px  4px 12px rgba(0, 0, 0, 0.35);
  }

  .service-card:hover,
  .value-card:hover,
  .stat-card:hover,
  .service-detail-card:hover,
  .portfolio-card:hover {
    box-shadow:
      -6px -6px 12px rgba(255, 255, 255, 0.05),
       6px  6px 14px rgba(0, 0, 0, 0.42);
  }

  .service-icon,
  .contact-icon {
    box-shadow:
      -3px -3px 8px rgba(255, 255, 255, 0.04),
       3px  3px 8px rgba(0, 0, 0, 0.35);
  }

  .btn-primary,
  .header_cta {
    box-shadow:
      -3px -3px 8px rgba(0, 0, 0, 0.25),
       3px  3px 8px rgba(0, 0, 0, 0.20);
  }

  .btn-primary:hover,
  .header_cta:hover {
    box-shadow:
      -4px -4px 10px rgba(0, 0, 0, 0.30),
       4px  4px 10px rgba(0, 0, 0, 0.25);
  }

  .btn-outline {
    box-shadow:
      -3px -3px 8px rgba(255, 255, 255, 0.04),
       3px  3px 8px rgba(0, 0, 0, 0.35);
  }

  .btn-outline:hover {
    box-shadow:
      -4px -4px 10px rgba(226, 161, 93, 0.08),
       4px  4px 10px rgba(0, 0, 0, 0.40);
  }

  .btn-outline-dark {
    box-shadow:
      -3px -3px 8px rgba(255, 255, 255, 0.60),
       3px  3px 8px rgba(0, 0, 0, 0.06);
  }

  .btn-outline-dark:hover {
    box-shadow:
      -4px -4px 10px rgba(255, 255, 255, 0.70),
       4px  4px 10px rgba(0, 0, 0, 0.08);
  }

  .header_nav {
    box-shadow:
      -6px -6px 14px rgba(0, 0, 0, 0.35),
       4px  4px 12px rgba(0, 0, 0, 0.25);
  }

  .text-marquee {
    box-shadow:
      inset -3px -3px 8px rgba(255, 255, 255, 0.035),
      inset  3px  3px 10px rgba(0, 0, 0, 0.40);
  }

  .hero-scroll {
    box-shadow:
      -4px -4px 10px rgba(255, 255, 255, 0.04),
       4px  4px 12px rgba(0, 0, 0, 0.35);
  }

  .hero-scroll:hover {
    box-shadow:
      -6px -6px 12px rgba(255, 255, 255, 0.05),
       6px  6px 14px rgba(0, 0, 0, 0.42);
  }

  .filter-btn {
    box-shadow:
      -3px -3px 8px rgba(255, 255, 255, 0.04),
       3px  3px 8px rgba(0, 0, 0, 0.35);
  }

  .filter-btn:hover {
    box-shadow:
      -4px -4px 10px rgba(255, 255, 255, 0.05),
       4px  4px 10px rgba(0, 0, 0, 0.42);
  }

  .filter-btn.active {
    box-shadow:
      inset -2px -2px 6px rgba(255, 255, 255, 0.03),
      inset  2px  2px 6px rgba(0, 0, 0, 0.40);
  }

  .client-logo {
    box-shadow:
      -4px -4px 10px rgba(255, 255, 255, 0.70),
       4px  4px 12px rgba(0, 0, 0, 0.06);
  }

  .client-logo:hover {
    box-shadow:
      -6px -6px 12px rgba(255, 255, 255, 0.75),
       6px  6px 14px rgba(0, 0, 0, 0.08);
  }

  .social-links a,
  .back-to-top {
    box-shadow:
      -3px -3px 8px rgba(255, 255, 255, 0.04),
       3px  3px 8px rgba(0, 0, 0, 0.35);
  }

  .social-links a:hover,
  .back-to-top:hover {
    box-shadow:
      -4px -4px 10px rgba(255, 255, 255, 0.05),
       4px  4px 10px rgba(0, 0, 0, 0.42);
  }

  .back-to-top:hover {
    box-shadow:
      -4px -4px 10px rgba(255, 255, 255, 0.25),
       4px  4px 10px rgba(0, 0, 0, 0.22);
  }

  .map-open-link {
    box-shadow:
      -3px -3px 8px rgba(255, 255, 255, 0.65),
       3px  3px 8px rgba(0, 0, 0, 0.06);
  }

  .map-open-link:hover {
    box-shadow:
      -4px -4px 10px rgba(255, 255, 255, 0.70),
       4px  4px 10px rgba(0, 0, 0, 0.08);
  }
}
