@font-face {
  font-family: 'Zodiak';
  src: url('fonts/Zodiak-Thin.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Zodiak';
  src: url('fonts/Zodiak-ThinItalic.otf') format('opentype');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Zodiak';
  src: url('fonts/Zodiak-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Zodiak';
  src: url('fonts/Zodiak-LightItalic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Zodiak';
  src: url('fonts/Zodiak-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Zodiak';
  src: url('fonts/Zodiak-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Zodiak';
  src: url('fonts/Zodiak-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Zodiak';
  src: url('fonts/Zodiak-BoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Zodiak';
  src: url('fonts/Zodiak-Extrabold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Zodiak';
  src: url('fonts/Zodiak-ExtraboldItalic.otf') format('opentype');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Zodiak';
  src: url('fonts/Zodiak-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Zodiak';
  src: url('fonts/Zodiak-BlackItalic.otf') format('opentype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}
:root {
  --bg-obsidian: #090a0f;
  --bg-card: rgba(20, 22, 30, 0.72);
  --champagne: #d4b886;
  --champagne-light: #ebd5ad;
  --champagne-glow: rgba(212, 184, 134, 0.18);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(212, 184, 134, 0.32);
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-obsidian);
  color: #f4f3ef;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 18% 12%, rgba(212, 184, 134, 0.09) 0%, transparent 42%),
    radial-gradient(circle at 82% 38%, rgba(45, 58, 92, 0.16) 0%, transparent 48%),
    radial-gradient(circle at 50% 88%, rgba(212, 184, 134, 0.06) 0%, transparent 45%);
}

/* Offset anchor scrolling so fixed top navbar doesn't cover section headers */
section[id] {
  scroll-margin-top: 5rem;
}

@media (min-width: 768px) {
  section[id] {
    scroll-margin-top: 6rem;
  }
}

.font-editorial {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

.brand-last-name {
  display: none;
}

@media (min-width: 520px) {
  .brand-last-name {
    display: inline;
  }
}

/* Smoked Dark Glass Surface */
.smoked-glass {
  background: linear-gradient(145deg, rgba(26, 28, 38, 0.82) 0%, rgba(13, 14, 20, 0.9) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  box-shadow:
    0 24px 60px -15px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
}

/* Champagne-Accented Smoked Glass Surface */
.smoked-glass-gold {
  background: linear-gradient(145deg, rgba(30, 28, 26, 0.85) 0%, rgba(14, 15, 21, 0.94) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-gold);
  box-shadow:
    0 28px 70px -15px rgba(0, 0, 0, 0.8),
    0 0 40px -10px rgba(212, 184, 134, 0.12),
    inset 0 1px 0 0 rgba(235, 213, 173, 0.16);
}

/* =====================================================================
   INTERACTIVE CARDS & SUBTLE MICRO-MOTION
   ===================================================================== */
.interactive-card {
  position: relative;
  overflow: hidden;
  transition:
    opacity 0.68s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.68s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.42s ease,
    box-shadow 0.42s ease,
    background-color 0.42s ease;
}

.interactive-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 50%),
    rgba(235, 213, 173, 0.11),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.42s ease;
  pointer-events: none;
  z-index: 1;
}

/* Navigation & Footer Text Links */
.nav-brand,
.nav-link {
  display: inline-flex;
  align-items: center;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.3s ease,
    filter 0.3s ease;
}

/* Champagne Gold Pill CTA Button */
.btn-champagne {
  background: linear-gradient(135deg, #e5cca0 0%, #c6a56e 100%);
  color: #0b0c10;
  font-weight: 600;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    filter 0.35s ease;
  box-shadow: 0 10px 30px -8px rgba(212, 184, 134, 0.45);
}

.btn-champagne:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

/* Category Filter Pills & Dock Controls */
.filter-btn {
  color: rgba(255, 255, 255, 0.7);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.3s ease,
    color 0.3s ease,
    filter 0.3s ease;
}

.filter-btn.is-selected {
  background-color: var(--champagne);
  color: #090a0f;
  font-weight: 600;
}

.dock-arrow {
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    color 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* Mobile & Touch Tactile Feedback */
.btn-champagne:active,
.dock-arrow:active,
.filter-btn:active {
  transform: scale(0.96);
}

/* Hover effects restricted to mouse/pointer devices so touch taps don't get stuck */
@media (hover: hover) and (pointer: fine) {
  .interactive-card:hover {
    transform: translateY(-4px);
    filter: brightness(1.08);
    border-color: rgba(212, 184, 134, 0.48);
    box-shadow:
      0 28px 65px -12px rgba(0, 0, 0, 0.85),
      0 0 32px -8px rgba(212, 184, 134, 0.22),
      inset 0 1px 0 0 rgba(235, 213, 173, 0.24);
  }

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

  .nav-brand:hover,
  .nav-link:hover {
    color: var(--champagne-light);
    transform: translateY(-1.5px);
    filter: brightness(1.15);
  }

  .btn-champagne:hover {
    transform: translateY(-2.5px) scale(1.015);
    filter: brightness(1.07);
    box-shadow: 0 16px 38px -6px rgba(212, 184, 134, 0.65);
  }

  .filter-btn:hover {
    color: #ffffff;
    transform: translateY(-1.5px);
    filter: brightness(1.12);
  }

  .filter-btn.is-selected:hover {
    color: #090a0f;
  }

  .dock-arrow:hover {
    border-color: var(--champagne);
    color: var(--champagne-light);
    background-color: rgba(212, 184, 134, 0.1);
    box-shadow: 0 0 24px -4px rgba(212, 184, 134, 0.35);
    transform: translateY(-1.5px) scale(1.06);
  }
}

/* =====================================================================
   MOBILE NAVIGATION DRAWER
   ===================================================================== */
.mobile-menu-active {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

/* =====================================================================
   60FPS GPU-ACCELERATED 3D SPATIAL COVER FLOW CAROUSEL
   ===================================================================== */
.carousel-stage {
  perspective: 1200px;
  -webkit-perspective: 1200px;
  perspective-origin: 50% 50%;
  -webkit-perspective-origin: 50% 50%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  touch-action: pan-y;
  user-select: none;
}

/* Fluid responsive carousel card sizing with full 3D GPU acceleration */
.carousel-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 245px;
  height: 370px;
  margin-left: -122.5px;
  margin-top: -185px;
  border-radius: 20px;
  overflow: hidden;
  background: #12141c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.85);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-will-change: transform, opacity;
  will-change: transform, opacity;
  transition:
    transform 0.68s cubic-bezier(0.22, 1, 0.36, 1),
    -webkit-transform 0.68s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.45s ease,
    box-shadow 0.45s ease,
    filter 0.45s ease;
  -webkit-transition:
    -webkit-transform 0.68s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.45s ease,
    box-shadow 0.45s ease,
    filter 0.45s ease;
  cursor: pointer;
}

@media (min-width: 480px) {
  .carousel-card {
    width: 290px;
    height: 425px;
    margin-left: -145px;
    margin-top: -212.5px;
    border-radius: 22px;
  }
}

@media (min-width: 768px) {
  .carousel-card {
    width: 340px;
    height: 490px;
    margin-left: -170px;
    margin-top: -245px;
    border-radius: 24px;
    box-shadow: 0 28px 65px -12px rgba(0, 0, 0, 0.85);
  }
}

/* Active card luxury glow & cinematic zoom on all devices (mobile, tablet, desktop) */
.carousel-card.is-active {
  border-color: rgba(235, 213, 173, 0.78);
  box-shadow:
    0 38px 88px -10px rgba(0, 0, 0, 0.94),
    0 0 55px -6px rgba(212, 184, 134, 0.35),
    inset 0 1px 0 0 rgba(235, 213, 173, 0.25);
  filter: brightness(1.06);
}

.carousel-card.is-active img {
  transform: scale(1.045);
}

.carousel-card.is-active .play-trigger > div {
  transform: scale(1.1);
  box-shadow: 0 0 35px -4px rgba(212, 184, 134, 0.6);
}

@media (hover: hover) and (pointer: fine) {
  .carousel-card:hover {
    border-color: rgba(212, 184, 134, 0.45);
    filter: brightness(1.07);
  }

  .carousel-card:not(.is-active):hover .card-dimmer {
    opacity: 0.25;
  }
}

.carousel-card .card-dimmer {
  position: absolute;
  inset: 0;
  background: rgba(9, 10, 15, 0.48);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.carousel-card.is-active .card-dimmer {
  opacity: 0;
}

.carousel-card img {
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

/* =====================================================================
   CINEMATIC ZOOM-IN & BLUR TRANSITION FOR PORTFOLIO VIDEO MODAL
   ===================================================================== */
.video-modal {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background-color: rgba(6, 7, 12, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition:
    opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.38s ease,
    background-color 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    backdrop-filter 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    -webkit-backdrop-filter 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.video-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  background-color: rgba(6, 7, 12, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.video-modal .modal-dialog {
  opacity: 0;
  transform: scale(0.88) translateY(18px);
  will-change: transform, opacity;
  transition:
    transform 0.44s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.video-modal.is-open .modal-dialog {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Smooth slide-scale pulse when navigating Next / Prev inside modal */
.modal-player-box {
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease;
}

.modal-player-box.is-switching {
  opacity: 0.25;
  transform: scale(0.95);
}

/* =====================================================================
   LUXURY FORM INPUTS (WITH IOS SAFARI AUTO-ZOOM PREVENTION)
   ===================================================================== */
.luxury-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 13px 15px;
  color: #f4f3ef;
  outline: none;
  font-size: 16px; /* Critical: 16px prevents iOS Safari from auto-zooming on focus */
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    transform 0.25s ease;
}

@media (min-width: 768px) {
  .luxury-input {
    padding: 14px 16px;
    font-size: 0.875rem; /* 14px text-sm on desktop screens */
  }
}

.luxury-input:hover {
  border-color: rgba(212, 184, 134, 0.35);
  background: rgba(255, 255, 255, 0.05);
}

.luxury-input:focus {
  border-color: var(--champagne);
  background: rgba(212, 184, 134, 0.06);
  transform: translateY(-1px);
}

/* =====================================================================
   SCROLL REVEAL (SLIGHT IN ON SCROLL DOWN, OUT ON SCROLL UP)
   ===================================================================== */
:where(.scroll-reveal) {
  opacity: 0;
  -webkit-transform: translate3d(0, 44px, 0) scale(0.95);
  transform: translate3d(0, 44px, 0) scale(0.95);
  -webkit-transition:
    opacity 0.68s cubic-bezier(0.16, 1, 0.3, 1),
    -webkit-transform 0.78s cubic-bezier(0.16, 1, 0.3, 1);
  transition:
    opacity 0.68s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.78s cubic-bezier(0.16, 1, 0.3, 1),
    -webkit-transform 0.78s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

:where(.scroll-reveal.is-visible) {
  opacity: 1;
  -webkit-transform: translate3d(0, 0, 0) scale(1);
  transform: translate3d(0, 0, 0) scale(1);
}

:where(.scroll-reveal[data-reveal-delay="1"]) {
  transition-delay: 70ms;
}

:where(.scroll-reveal[data-reveal-delay="2"]) {
  transition-delay: 140ms;
}

:where(.scroll-reveal[data-reveal-delay="3"]) {
  transition-delay: 210ms;
}

/* Remove delay when exiting on scroll up so out-animation feels responsive */
:where(.scroll-reveal:not(.is-visible)) {
  transition-delay: 0ms;
}

/* =====================================================================
   INFINITE RIGHT-TO-LEFT REVIEWS MARQUEE (DRAGGABLE WITH POINTER/TOUCH)
   ===================================================================== */
.reviews-marquee {
  overflow: hidden;
  position: relative;
  cursor: grab;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.reviews-marquee.is-dragging {
  cursor: grabbing;
}

.reviews-marquee img {
  pointer-events: none;
  -webkit-user-drag: none;
}

.reviews-track {
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  padding-right: 1.25rem;
  width: max-content;
  will-change: transform;
}

/* =====================================================================
   HOW WE WORK — LUMINOUS RIM-GLOW STEP CARDS
   ===================================================================== */
.how-work-grid-bg {
  position: relative;
}

.how-work-grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 55%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 55%, #000 35%, transparent 100%);
  pointer-events: none;
}

.glow-step-wrap {
  position: relative;
  padding-top: 28px;
}

.glow-step-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #f0dcb8 0%, #c6a56e 55%, #9d7d47 100%);
  color: #090a0f;
  border: 1px solid rgba(255, 245, 224, 0.55);
  box-shadow:
    0 12px 30px -6px rgba(212, 184, 134, 0.55),
    0 0 28px 2px rgba(212, 184, 134, 0.25),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
}

.glow-step-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(18, 19, 27, 0.94) 0%, rgba(10, 11, 16, 0.98) 58%, rgba(28, 23, 15, 0.96) 100%);
  border: 1px solid rgba(212, 184, 134, 0.22);
  box-shadow:
    0 24px 60px -15px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 0 rgba(235, 213, 173, 0.16);
  transition:
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

/* Signature bottom luminous champagne glow + subtle top-center aura under the floating icon */
.glow-step-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(140px 80px at 50% 0%, rgba(235, 213, 173, 0.2), transparent 70%),
    radial-gradient(240px 105px at 50% 106%, rgba(212, 184, 134, 0.45), transparent 72%);
  pointer-events: none;
}

.glow-step-card::after {
  content: '';
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(235, 213, 173, 0.95) 50%, transparent 100%);
  box-shadow: 0 0 22px 4px rgba(212, 184, 134, 0.55);
  pointer-events: none;
}

/* Center card slightly brighter champagne accent */
.glow-step-card.is-center {
  border-color: rgba(235, 213, 173, 0.38);
}

.glow-step-card.is-center::before {
  background:
    radial-gradient(150px 85px at 50% 0%, rgba(235, 213, 173, 0.28), transparent 70%),
    radial-gradient(260px 115px at 50% 106%, rgba(235, 213, 173, 0.56), transparent 72%);
}

@media (hover: hover) and (pointer: fine) {
  .glow-step-wrap:hover .glow-step-card {
    transform: translateY(-4px);
    border-color: rgba(235, 213, 173, 0.52);
    box-shadow:
      0 30px 70px -12px rgba(0, 0, 0, 0.92),
      0 12px 36px -10px rgba(212, 184, 134, 0.28),
      inset 0 1px 0 0 rgba(235, 213, 173, 0.28);
  }

  .glow-step-wrap:hover .glow-step-badge {
    transform: translateX(-50%) translateY(-6px) scale(1.06);
    box-shadow:
      0 16px 36px -4px rgba(212, 184, 134, 0.7),
      0 0 34px 4px rgba(212, 184, 134, 0.35),
      inset 0 1px 0 0 rgba(255, 255, 255, 0.65);
  }
}

/* Safe accessibility fallback: dampens animations without breaking 3D spatial layout transforms */
@media (prefers-reduced-motion: reduce) {
  *:not(.reviews-track) {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
