.loader-stage {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #ffffff;
  pointer-events: auto;
  perspective: 1200px;
  will-change: opacity;
}

.loader-brand {
  position: fixed;
  top: 32px;
  left: 52px;
  z-index: 320;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #000000;
  transform-origin: top left;
  will-change: transform, opacity;
}

.odometer-box {
  position: fixed;
  top: 28px;
  right: 52px;
  z-index: 320;
  display: flex;
  align-items: flex-start;
  font-weight: 300;
  color: #000000;
}

.odo-col {
  height: 84px;
  overflow: hidden;
}

.odo-strip {
  display: flex;
  flex-direction: column;
  font-size: 82px;
  line-height: 84px;
  letter-spacing: -0.04em;
  font-weight: 300;
  color: #000000;
  will-change: transform;
}

.odo-strip span {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.odo-pct {
  font-size: 16px;
  font-weight: 600;
  margin-left: 6px;
  margin-top: 50px;
  color: #000000;
}

/* ==========================================================================
   2. 3D DEALT CARDS (Strictly Sticked to Hero Section - Never Bleeds onto Rest of Page)
   ========================================================================== */
.wheel-viewport {
  position: absolute;
  inset: 0;
  z-index: 10;
  perspective: 1200px;
  cursor: grab;
  touch-action: pan-y;
  pointer-events: auto;
  overflow: hidden;
}

body.is-loading .wheel-viewport {
  position: fixed;
  z-index: 310; /* Sits above white loader curtain during initial deal */
}

.wheel-viewport:active {
  cursor: grabbing;
}

.wheel-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}

.deal-card {
  position: absolute;
  width: 196px;
  height: 268px;
  left: -98px;
  top: -134px;
  border-radius: 12px;
  overflow: hidden;
  background: #102746;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 14px 34px rgba(10, 28, 51, 0.22);
  transform-style: preserve-3d;
  will-change: transform, opacity;
  cursor: pointer;
  transition: border-color 0.25s ease;
}

.deal-card:hover {
  border-color: rgba(255, 255, 255, 0.95);
}

.deal-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.deal-card:hover img {
  transform: scale(1.05);
}

.deal-card-info {
  position: absolute;
  inset: 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(16, 39, 70, 0.42) 0%, rgba(16, 39, 70, 0.04) 45%, rgba(10, 28, 51, 0.88) 100%);
  color: #ffffff;
}

.deal-card-top {
  align-self: flex-start;
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.deal-card-title {
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: 1.1;
  font-weight: 600;
  color: #ffffff;
}

.deal-card-sub {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 3px;
}

/* ==========================================================================
   3. TOP NAVBAR: Clean, Professional Editorial Alignment
   ========================================================================== */
.top-navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  background: transparent;
  opacity: 0;
  transform: translateY(-16px);
}

.nav-left-group {
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand-logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111827;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
}

.nav-menu-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-menu-links a,
.nav-menu-links .nav-cat-btn {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
  transition: color 0.15s ease;
  padding: 6px 0;
}

.nav-menu-links a:hover,
.nav-menu-links a.active,
.nav-menu-links .nav-cat-btn:hover,
.nav-categories-trigger:hover .nav-cat-btn,
.nav-tools-trigger:hover .nav-cat-btn {
  color: #111827;
}

.nav-categories-trigger,
.nav-tools-trigger {
  position: relative;
}

.nav-cat-chevron {
  width: 13px;
  height: 13px;
  color: #6b7280;
  transition: transform 0.2s ease;
}

.nav-categories-trigger:hover .nav-cat-chevron,
.nav-tools-trigger:hover .nav-cat-chevron {
  transform: rotate(180deg);
}

/* ==========================================================================
   CLEAN SOLID WHITE MEGA-MENU (LottieFiles-inspired: Static, No Cards, No Glass)
   ========================================================================== */
.lottie-mega-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  width: 860px;
  padding: 24px 28px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 250;
}

/* Invisible bridge so mouse hover doesn't break */
.nav-categories-trigger::after,
.nav-tools-trigger::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -10px;
  right: -10px;
  height: 20px;
}

.nav-categories-trigger:hover .lottie-mega-menu,
.nav-tools-trigger:hover .lottie-mega-menu,
.lottie-mega-menu:hover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.lottie-columns-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.lottie-col-header {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lottie-col-header a {
  font-size: 11.5px;
  color: #0ea5e9;
  text-transform: none;
  letter-spacing: normal;
  text-decoration: none;
  font-weight: 600;
}

.lottie-items-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Clean text link item with icon & description like LottieFiles */
.lottie-link-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.15s ease;
  cursor: pointer;
}

.lottie-link-item:hover {
  background: #f9fafb;
}

.lottie-item-icon {
  width: 20px;
  height: 20px;
  color: #111827;
  flex-shrink: 0;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.lottie-item-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lottie-item-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lottie-item-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
}

.lottie-badge-new {
  font-size: 9.5px;
  font-weight: 700;
  background: #111827;
  color: #ffffff;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
}

.lottie-item-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.35;
}

.nav-right-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Elongated Clean Minimal Search Bar */
.nav-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 300px;
  height: 38px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid #d1d5db;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.nav-search-bar:focus-within {
  width: 360px;
  border-color: #111827;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav-search-bar svg {
  width: 14px;
  height: 14px;
  color: #6b7280;
  flex-shrink: 0;
}

.nav-search-bar input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: #111827;
}

.nav-search-bar input::placeholder {
  color: #9ca3af;
  font-size: 12.5px;
}

/* Minimal Clean Star Counter */
.star-counter-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.star-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease;
}

.star-badge:hover {
  background: #f9fafb;
}

.star-badge svg {
  fill: #f59e0b;
  color: #f59e0b;
}

.star-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #111827;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: opacity 0.15s ease;
  z-index: 150;
}

.star-counter-wrapper:hover .star-tooltip {
  visibility: visible;
  opacity: 1;
}

/* ==========================================================================
   4. HERO CONTAINER (Strictly 2 Lines Headline with Elegant Script Calligraphy)
   ========================================================================== */
.hero-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 640px;
  max-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* Official Mountains BG ONLY for Hero Section */
  background: #d8e5f3 url('/images/bg-mountains.png') no-repeat center top;
  background-size: cover;
}

.hero-center-box {
  position: relative;
  z-index: 50;
  max-width: 960px;
  margin: 84px auto 0;
  text-align: center;
  padding: 0 24px;
  pointer-events: auto;
}

/* Exactly Two Lines Headline with Times New Roman & Calligraphy Mix */
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.0vw, 54px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--color-ink);
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
}

/* Premium Script Calligraphy for selected words */
.hero-title .calligraphy {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 1.35em;
  color: var(--color-accent-blue);
  letter-spacing: 0.02em;
  display: inline-block;
  margin: 0 4px;
  vertical-align: -4px;
}

/* ==========================================================================
   5. BOTTOM FOOTER BAR (Deep Seamless Fade + 100% Inside Hero Section)
   ========================================================================== */
.bottom-footer-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 72px 48px 28px; /* Deep atmospheric fade extending up, clean padding bottom */
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 50;
  /* Deep smooth atmospheric fade merging right into the website below */
  background: linear-gradient(180deg, 
    rgba(216, 229, 243, 0) 0%, 
    rgba(255, 255, 255, 0.45) 28%, 
    rgba(255, 255, 255, 0.88) 64%, 
    rgba(255, 255, 255, 0.98) 88%, 
    #ffffff 100%
  );
  opacity: 0;
  transform: translateY(18px);
  pointer-events: auto;
}

/* Sub-heading strictly two lines & fully viewable without scrolling */
.footer-headline {
  font-family: var(--font-serif);
  font-size: clamp(21px, 2.3vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #141414;
  max-width: 860px;
}

.footer-headline a {
  color: #141414;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.15s ease;
}

.footer-headline a:hover {
  color: var(--color-accent-blue);
}

.footer-headline sup {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  margin-left: 2px;
}

.footer-metrics-col {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.metric-val {
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1;
  color: #141414;
  font-weight: 700;
}

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

.social-pill {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: #141414;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-pill:hover {
  background: #141414;
  color: #ffffff;
  transform: translateY(-1px);
}

/* ==========================================================================
   CATEGORY CAROUSEL & SUB-FILTER BAR (Clean Minimal White - No Cards / No Glass)
   ========================================================================== */
.category-carousel-section {
  position: relative;
  z-index: 55;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.category-carousel-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 48px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-pills-track {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-pills-track::-webkit-scrollbar {
  display: none;
}

.cat-pill-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.cat-pill-btn:hover {
  border-color: #d1d5db;
  background: #f9fafb;
  color: #111827;
}

.cat-pill-btn.active {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
  font-weight: 600;
}

.cat-pill-btn.active .cat-pill-count {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.cat-pill-count {
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 1px 6px;
  border-radius: 4px;
  background: #f3f4f6;
  color: #6b7280;
}

.category-subtags-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid #f3f4f6;
}

.subtag-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.subtags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.subtag-chip {
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.15s ease;
}

.subtag-chip:hover {
  border-color: #111827;
  color: #111827;
}

.subtag-chip.active {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}

/* ==========================================================================
   6. LIBRARY SECTION BELOW HERO (High Density Clean Content - No Big Cards)
   ========================================================================== */
.library-section {
  position: relative;
  z-index: 60;
  max-width: 1400px;
  margin: 0 auto;
  padding: 36px 48px 100px;
  background: #ffffff;
}

.library-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e7eb;
}

.library-heading-row h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #111827;
}

.library-heading-row span {
  font-size: 13px;
  color: #6b7280;
}

.asset-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

/* Compact, high-density asset row item - clean white static style */
.sample-asset-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.sample-asset-card:hover {
  border-color: #9ca3af;
  background: #fafafa;
}

.sample-asset-preview {
  height: 64px;
  border-radius: 6px;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 10px;
}

.sample-asset-title {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
}

.sample-asset-meta {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 10px;
}

.sample-asset-btn {
  padding: 5px 10px;
  background: #111827;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-end;
  transition: background 0.15s ease;
}

.sample-asset-btn:hover {
  background: #374151;
}

/* ==========================================================================
   RESPONSIVENESS
   ========================================================================== */
@media (max-width: 1024px) {
  .top-navbar, .bottom-footer-bar, .library-section {
    padding-left: 24px;
    padding-right: 24px;
  }
  .nav-search-bar {
    width: 220px;
  }
  .asset-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-navbar {
    padding: 18px 20px;
  }
  .nav-menu-links {
    display: none;
  }
  .nav-search-bar {
    width: 170px;
  }
  .bottom-footer-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 30px 20px 20px;
  }
  .hero-center-box {
    margin-top: 80px;
  }
  .hero-title {
    font-size: 32px;
  }
  .footer-headline {
    font-size: 22px;
  }
  .deal-card {
    width: 150px;
    height: 206px;
    left: -75px;
    top: -103px;
  }
  .asset-cards-grid {
    grid-template-columns: 1fr;
  }
}