/* ==========================================================================
   Vastu Shakti Rahasya - Bespoke Luxury E-Commerce Styles (about.css)
   Matches the design system established in index.css
   ========================================================================== */

:root {
  /* Exact Brand Color Palette */
  --clr-dark-900: #10041d;
  --clr-dark-800: #200a2d;
  --clr-dark-700: #461558;
  --clr-purple-main: #783f9f;
  --clr-purple-light: #ae7ec4;

  --clr-gold-dark: #c79d55;
  --clr-gold-main: #d8b671;
  --clr-gold-light: #efd795;

  --clr-brown: #503c27;
  --clr-white: #ffffff;
  --clr-muted: #f9f8f6;
  --clr-border: rgba(32, 10, 45, 0.08);

  /* Typography */
  --font-cinzel: "Cinzel", serif;
  --font-montserrat: "Montserrat", sans-serif;

  /* E-Commerce UI Variables */
  --nav-height: 85px;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-float: 0 20px 40px rgba(16, 4, 29, 0.08);
  --shadow-glow: 0 0 30px rgba(216, 182, 113, 0.2);
}

/* ==========================================================================
     Global & Utility (Inherited from Index System)
     ========================================================================== */
body.luxury-ecomm {
  font-family: var(--font-montserrat);
  color: var(--clr-dark-900);
  background-color: var(--clr-muted);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.cinzel-heading {
  font-family: var(--font-cinzel);
  font-weight: 500;
}
.font-montserrat {
  font-family: var(--font-montserrat);
}

a {
  text-decoration: none;
  transition: var(--transition-smooth);
}

.section-padding {
  padding: 120px 0;
}
.bg-muted {
  background-color: var(--clr-muted);
}
.bg-white {
  background-color: var(--clr-white);
}
.bg-dark-purple {
  background-color: var(--clr-dark-900);
}

.text-gold {
  color: var(--clr-gold-main) !important;
}
.text-purple {
  color: var(--clr-purple-main) !important;
}
.text-dark-900 {
  color: var(--clr-dark-900) !important;
}
.text-muted-large {
  color: var(--clr-brown);
  font-size: 1.1rem;
  line-height: 1.8;
}
.text-white-75 {
  color: rgba(255, 255, 255, 0.75) !important;
}

.ornate-divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--clr-gold-main),
    transparent
  );
}
.ornate-divider-horizontal {
  height: 1px;
  width: 100px;
  background: linear-gradient(to right, var(--clr-gold-main), transparent);
}

/* Scroll Progress */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--clr-gold-main);
  z-index: 9999;
  transition: width 0.1s ease;
}

/* ==========================================================================
     Buttons & Links (Matched to Index)
     ========================================================================== */
.btn-luxury-solid,
.btn-luxury-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-family: var(--font-cinzel);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition-smooth);
  border-radius: 0;
  cursor: pointer;
}

.btn-luxury-solid {
  background-color: var(--clr-gold-main);
  color: var(--clr-dark-900);
  border: 1px solid var(--clr-gold-main);
}
.btn-luxury-solid:hover {
  background-color: transparent;
  color: var(--clr-gold-main);
  box-shadow: var(--shadow-glow);
}

.btn-luxury-outline {
  background-color: transparent;
  color: var(--clr-gold-main);
  border: 1px solid rgba(216, 182, 113, 0.4);
}
.btn-luxury-outline:hover {
  border-color: var(--clr-gold-main);
  background-color: rgba(216, 182, 113, 0.05);
}

.btn-luxury-outline.text-dark {
  color: var(--clr-dark-900);
  border-color: var(--clr-dark-900);
}
.btn-luxury-outline.text-dark:hover {
  color: var(--clr-gold-main);
  border-color: var(--clr-gold-main);
}

/* ==========================================================================
   Bespoke Navbar
   ========================================================================== */
.bespoke-navbar {
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(32, 10, 45, 0.08);
  transition: var(--transition-smooth);
  padding: 0;
}
.bespoke-navbar .container-fluid {
  height: 100%;
  display: flex;
  align-items: center;
}
.bespoke-navbar.scrolled {
  height: 68px;
  background: var(--clr-white);
  box-shadow: var(--shadow-float);
}

/* Logo */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-img {
  height: 38px;
  width: auto;
  border-radius: 4px;
}
.logo-title {
  font-family: var(--font-cinzel);
  color: var(--clr-dark-900);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1.5px;
}
.logo-subtitle {
  font-family: var(--font-montserrat);
  color: var(--clr-purple-main);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 4px;
  margin-top: 5px;
}

/* Navigation Links */
.nav-links-premium .nav-link {
  font-family: var(--font-cinzel);
  color: var(--clr-dark-900);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 6px 11px;
  margin: 0;
  position: relative;
  white-space: nowrap;
  line-height: 1;
}
.nav-links-premium .nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background-color: var(--clr-gold-main);
  transition: var(--transition-smooth);
}
.nav-links-premium .nav-link:hover::after,
.nav-links-premium .nav-link.active::after {
  width: 60%;
}
.nav-links-premium .nav-link:hover {
  color: var(--clr-gold-dark);
}

/* User Greeting */
.user-greeting-link {
  font-family: var(--font-cinzel) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  text-transform: none !important;
  color: var(--clr-dark-900) !important;
  letter-spacing: 0.4px;
  white-space: nowrap;
  padding: 0 !important;
}
.user-greeting-link:hover {
  color: var(--clr-gold-dark) !important;
}

/* Right-side actions — separator from nav links */
.nav-actions {
  border-left: 1px solid var(--clr-border);
  padding-left: 20px;
  margin-left: 4px;
}

/* Cart */
.cart-icon-btn {
  color: var(--clr-dark-900);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--clr-muted);
}
.cart-icon-btn:hover {
  background: var(--clr-gold-light);
  color: var(--clr-dark-900);
}
.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--clr-gold-main);
  color: var(--clr-dark-900);
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  pointer-events: none;
}

/* Sign In button */
.btn-auth-premium {
  font-family: var(--font-cinzel);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--clr-dark-900);
  border-bottom: 1px solid var(--clr-dark-900);
  padding-bottom: 2px;
}
.btn-auth-premium:hover {
  color: var(--clr-gold-main);
  border-color: var(--clr-gold-main);
}

/* Dropdowns */
.luxury-dropdown {
  border: 1px solid var(--clr-border);
  border-radius: 0;
  box-shadow: var(--shadow-float);
  padding: 15px;
  min-width: 200px;
}
.luxury-dropdown .dropdown-item {
  font-size: 0.85rem;
  padding: 10px;
  transition: var(--transition-smooth);
}
.luxury-dropdown .dropdown-item:hover {
  background: transparent;
  color: var(--clr-gold-main);
  padding-left: 15px;
}
.luxury-dropdown .dropdown-divider {
  border-color: var(--clr-border);
  margin: 10px 0;
}
.dropdown-toggle::after {
  vertical-align: middle;
  border-top-color: var(--clr-gold-main);
}

/* Custom Hamburger */
.custom-toggler {
  border-color: rgba(216, 182, 113, 0.4);
  border-radius: 0;
  padding: 8px 12px;
}
.custom-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28216, 182, 113, 1%29' stroke-linecap='square' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Desktop — dropdown hover trigger */
@media (min-width: 1200px) {
  .luxury-dropdown {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 0;
  }
  .nav-item.dropdown:hover .luxury-dropdown {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* Mobile & Tablet */
@media (max-width: 1199px) {
  .navbar-collapse {
    background-color: var(--clr-white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-float);
    margin-top: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--clr-border);
  }
  .nav-links-premium .nav-link {
    margin: 4px 0;
    padding: 10px 12px;
    display: inline-block;
    font-size: 0.82rem;
    white-space: normal;
  }
  .nav-actions {
    flex-direction: column;
    align-items: flex-start !important;
    border-left: none;
    padding-left: 12px;
    margin-left: 0;
    padding-top: 12px;
    border-top: 1px solid var(--clr-border);
    width: 100%;
  }
  .logo-text {
    display: flex !important;
  }
}
/* ==========================================================================
     About: Editorial Hero
     ========================================================================== */
.about-editorial-hero {
  margin-top: var(--nav-height);
}
.portrait-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  z-index: 1;
}
.portrait-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 90%;
  height: 95%;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  z-index: 2;
  box-shadow: var(--shadow-float);
  filter: sepia(0.3) contrast(1.1);
}
.frame-accent {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 90%;
  height: 95%;
  border: 2px solid var(--clr-gold-main);
  z-index: 1;
  border-radius: 4px;
}

/* ==========================================================================
     About: The Philosophy
     ========================================================================== */
.philosophy-section {
  position: relative;
  overflow: hidden;
}
.philosophy-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(216, 182, 113, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.philosophy-card {
  padding: 40px;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: var(--transition-smooth);
}
.glass-panel {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
}
.philosophy-card:hover {
  border-color: rgba(216, 182, 113, 0.3);
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.06);
}
.card-numeral {
  font-size: 2.5rem;
  display: block;
  line-height: 1;
}

/* ==========================================================================
     About: Path of Mastery (Vertical Journey)
     ========================================================================== */
.bespoke-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--clr-gold-main),
    transparent
  );
}
.timeline-block {
  position: relative;
  margin-bottom: 80px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.timeline-block:last-child {
  margin-bottom: 0;
}

.timeline-node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: var(--clr-white);
  border: 2px solid var(--clr-gold-main);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(216, 182, 113, 0.5);
  z-index: 2;
}

.timeline-content {
  width: 45%;
  padding: 30px;
  background: var(--clr-muted);
  border: 1px solid var(--clr-border);
  transition: var(--transition-smooth);
}
.timeline-content:hover {
  box-shadow: var(--shadow-float);
  border-color: rgba(216, 182, 113, 0.4);
}

.timeline-block:nth-child(odd) .timeline-content {
  margin-left: auto;
}
.timeline-block:nth-child(even) .timeline-content {
  margin-right: auto;
  text-align: right;
}

/* ==========================================================================
     Premium Dark Footer
     ========================================================================== */
.luxury-cta {
  background-image: radial-gradient(
    circle at center,
    rgba(216, 182, 113, 0.15) 0%,
    transparent 60%
  );
}

.bespoke-footer {
  background-color: var(--clr-dark-900);
  background-image: radial-gradient(
    circle at bottom center,
    rgba(70, 21, 88, 0.4) 0%,
    transparent 60%
  );
  padding: 80px 0 30px;
  border-top: 1px solid rgba(216, 182, 113, 0.2);
}
.footer-heading {
  font-family: var(--font-cinzel);
  font-size: 1.1rem;
  letter-spacing: 1px;
  margin-bottom: 25px;
  color: var(--clr-gold-main);
  text-transform: uppercase;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 15px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  display: inline-block;
}
.footer-links a:hover {
  color: var(--clr-gold-main);
  transform: translateX(5px);
}
.footer-muted-text {
  color: rgba(255, 255, 255, 0.6) !important;
  line-height: 1.8;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.legal-links a:hover {
  color: var(--clr-gold-main) !important;
}

/* ==========================================================================
     Animations
     ========================================================================== */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}
.stagger-1 {
  transition-delay: 0.1s;
}
.stagger-2 {
  transition-delay: 0.2s;
}
.stagger-3 {
  transition-delay: 0.3s;
}

/* ==========================================================================
     Responsive Adjustments
     ========================================================================== */
@media (max-width: 991px) {
  /* Mobile Navbar Dropdown Background Fix */
  .navbar-collapse {
    background-color: var(--clr-white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    margin-top: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--clr-border);
  }
  .nav-actions {
    flex-direction: column;
    align-items: flex-start !important;
  }
  .logo-text {
    display: flex !important;
  }

  /* Timeline & About Page Adjustments */
  .portrait-frame {
    max-width: 400px;
    margin: 0 auto 40px;
  }
  .timeline-line {
    left: 20px;
    transform: none;
  }
  .timeline-node {
    left: 20px;
    transform: translate(-50%, -50%);
  }
  .timeline-block {
    flex-direction: column;
    align-items: flex-end;
  }
  .timeline-content,
  .timeline-block:nth-child(odd) .timeline-content,
  .timeline-block:nth-child(even) .timeline-content {
    width: calc(100% - 60px);
    margin-left: auto;
    margin-right: 0;
    text-align: left;
  }
}

/* ==========================================================================
   PREMIUM ENHANCEMENT LAYER
   Depth, motion & micro-interactions. Palette, fonts, layout and content
   are untouched - everything below only adds to the existing design.
   Animations use transform / opacity / translate only (GPU friendly).
   ========================================================================== */

::selection {
  background: var(--clr-gold-light);
  color: var(--clr-dark-900);
}

/* Prevents horizontal scroll from slide-in reveals without creating a scroller */
main {
  overflow-x: clip;
}

/* Stacking: ambient layer sits behind, real content stays above */
.about-editorial-hero,
.philosophy-section,
.lineage-timeline,
.luxury-cta {
  position: relative;
  isolation: isolate;
}
.about-editorial-hero > .container,
.philosophy-section > .container,
.lineage-timeline > .container,
.luxury-cta > .container {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Animated ambient background (injected by about.js)
   -------------------------------------------------------------------------- */
.ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  contain: layout paint;
}
/* Softly fades the ambient layer at section edges on light sections */
.ambient--soft {
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 14%,
    #000 86%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 14%,
    #000 86%,
    transparent 100%
  );
}
/* Animations only run while the section is on screen */
.ambient:not(.is-active) *,
.ambient:not(.is-active) *::after {
  animation-play-state: paused !important;
}
.ambient-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.orb {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  max-width: 760px;
  max-height: 760px;
  border-radius: 50%;
  animation: orbDrift var(--d, 30s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
  will-change: transform;
}
.orb-gold {
  background: radial-gradient(
    circle,
    rgba(216, 182, 113, 0.2) 0%,
    rgba(216, 182, 113, 0) 65%
  );
}
.orb-purple {
  background: radial-gradient(
    circle,
    rgba(120, 63, 159, 0.1) 0%,
    rgba(120, 63, 159, 0) 65%
  );
}
.ambient--dark .orb-gold {
  background: radial-gradient(
    circle,
    rgba(216, 182, 113, 0.12) 0%,
    rgba(216, 182, 113, 0) 65%
  );
}
.ambient--dark .orb-purple {
  background: radial-gradient(
    circle,
    rgba(120, 63, 159, 0.34) 0%,
    rgba(70, 21, 88, 0) 68%
  );
}
.ambient--faint .orb-gold {
  background: radial-gradient(
    circle,
    rgba(216, 182, 113, 0.12) 0%,
    rgba(216, 182, 113, 0) 65%
  );
}
.ambient--faint .orb-purple {
  background: radial-gradient(
    circle,
    rgba(174, 126, 196, 0.12) 0%,
    rgba(174, 126, 196, 0) 65%
  );
}

@keyframes orbDrift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(6%, 8%, 0) scale(1.14);
  }
}

/* --------------------------------------------------------------------------
   Floating graphical elements
   .fx          -> parallax (uses the independent `translate` property)
   .fx-inner    -> ambient float / spin animation
   -------------------------------------------------------------------------- */
.fx {
  position: absolute;
  display: block;
  pointer-events: none;
  opacity: var(--o, 1);
  translate: 0 var(--py, 0px);
}
.fx-inner {
  display: block;
  position: relative;
}

.fx-diamond .fx-inner {
  width: var(--size);
  height: var(--size);
  rotate: 45deg;
  border: 1px solid rgba(216, 182, 113, 0.75);
  background: linear-gradient(
    135deg,
    rgba(239, 215, 149, 0.25),
    rgba(216, 182, 113, 0.04)
  );
  animation: floatA var(--dur, 8s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
}
.fx-dot .fx-inner {
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(239, 215, 149, 0.95) 0%,
    rgba(216, 182, 113, 0) 70%
  );
  animation: floatB var(--dur, 7s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
}
.fx-ring .fx-inner {
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  border: 1px solid rgba(216, 182, 113, 0.5);
  animation: floatA var(--dur, 12s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
}
.fx-ring .fx-inner::after {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  border: 1px dashed rgba(216, 182, 113, 0.4);
}

/* Tilted orbital ring with a travelling gold bead - the subtle 3D accent */
.fx-orbit {
  perspective: 700px;
}
.fx-orbit .fx-inner {
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  border: 1px solid rgba(216, 182, 113, 0.55);
  transform-style: preserve-3d;
  animation: orbitSpin var(--dur, 28s) linear infinite;
}
.fx-orbit .fx-inner::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--clr-gold-main);
  box-shadow: 0 0 12px 2px rgba(216, 182, 113, 0.65);
}

/* Slowly rotating sacred-geometry line art */
.fx-mandala {
  --msize: min(var(--size), 92vw);
  color: var(--clr-gold-main);
}
.fx-mandala .fx-inner {
  width: var(--msize);
  height: var(--msize);
  animation: slowSpin var(--dur, 150s) linear infinite;
}
.fx-mandala svg {
  display: block;
  width: 100%;
  height: 100%;
}
.fx-center {
  margin: calc(var(--msize) / -2) 0 0 calc(var(--msize) / -2);
}

@keyframes floatA {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(10px, -22px, 0);
  }
}
@keyframes floatB {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-12px, 16px, 0) scale(1.2);
  }
}
@keyframes orbitSpin {
  from {
    transform: rotateX(68deg) rotateZ(0deg);
  }
  to {
    transform: rotateX(68deg) rotateZ(360deg);
  }
}
@keyframes slowSpin {
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------------------------
   Scroll reveal variants (extends existing .reveal-up)
   -------------------------------------------------------------------------- */
.reveal-up.reveal-left {
  transform: translate3d(-60px, 0, 0);
}
.reveal-up.reveal-right {
  transform: translate3d(60px, 0, 0);
}
.reveal-up.reveal-scale {
  transform: translate3d(0, 40px, 0) scale(0.94);
}
.reveal-up.reveal-left.active,
.reveal-up.reveal-right.active,
.reveal-up.reveal-scale.active {
  transform: none;
}

/* Ornate dividers draw themselves in (scale, so no layout shift) */
.reveal-up .ornate-divider-horizontal {
  transform: scaleX(0);
  transform-origin: left center;
}
.reveal-up .ornate-divider {
  transform: scaleY(0);
  transform-origin: center top;
}
.reveal-up.active .ornate-divider-horizontal {
  transform: scaleX(1);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}
.reveal-up.active .ornate-divider {
  transform: scaleY(1);
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

/* --------------------------------------------------------------------------
   3D depth: Hero portrait
   -------------------------------------------------------------------------- */
.portrait-frame {
  transform-style: preserve-3d;
  transform: perspective(1100px) rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg));
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.portrait-frame.is-tilting {
  transition: transform 0.12s ease-out;
}
.portrait-image {
  translate: 0 var(--py, 0px);
  transform: translateZ(30px);
  box-shadow:
    0 30px 60px rgba(16, 4, 29, 0.18),
    0 10px 20px rgba(16, 4, 29, 0.08);
  transition: filter 0.8s ease;
}
.frame-accent {
  translate: 0 var(--py, 0px);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.portrait-frame:hover .portrait-image {
  filter: sepia(0.12) contrast(1.08);
}
.portrait-frame:hover .frame-accent {
  transform: translate3d(12px, 12px, 0);
}

/* --------------------------------------------------------------------------
   3D tilt + glare: Philosophy cards & Timeline cards
   -------------------------------------------------------------------------- */
.philosophy-card,
.timeline-content {
  position: relative;
}
.philosophy-card {
  translate: 0 var(--py, 0px);
  transform: translateY(var(--lift, 0px)) perspective(900px)
    rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition:
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.5s ease,
    background-color 0.5s ease,
    box-shadow 0.5s ease;
}
.philosophy-card:hover {
  --lift: -5px;
  transform: translateY(var(--lift, 0px)) perspective(900px)
    rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}
.philosophy-card.is-tilting {
  transition:
    transform 0.12s ease-out,
    border-color 0.5s ease,
    background-color 0.5s ease,
    box-shadow 0.5s ease;
}
.philosophy-card .card-numeral {
  transition:
    opacity 0.5s ease,
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.philosophy-card:hover .card-numeral {
  opacity: 0.9 !important;
  transform: translateX(4px);
}

.timeline-content {
  translate: 0 var(--py, 0px);
  transform: perspective(1000px) rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg));
  transition:
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s ease,
    border-color 0.5s ease,
    background-color 0.5s ease;
}
.timeline-content.is-tilting {
  transition:
    transform 0.12s ease-out,
    box-shadow 0.5s ease,
    border-color 0.5s ease;
}

.tilt-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(239, 215, 149, 0.16),
    transparent 55%
  );
  transition: opacity 0.4s ease;
}
.is-tilting > .tilt-glare {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Timeline: scroll-driven fill + node activation
   -------------------------------------------------------------------------- */
.timeline-progress {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  border-radius: 2px;
  transform: translateX(-50%) scaleY(var(--tp, 0));
  transform-origin: top center;
  background: linear-gradient(
    to bottom,
    var(--clr-gold-light),
    var(--clr-gold-main) 80%,
    var(--clr-gold-dark)
  );
  box-shadow: 0 0 12px rgba(216, 182, 113, 0.55);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 6%);
  mask-image: linear-gradient(to bottom, transparent, #000 6%);
  will-change: transform;
}
.timeline-node {
  transition:
    background-color 0.6s ease,
    box-shadow 0.4s ease,
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.timeline-node::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid var(--clr-gold-main);
  opacity: 0;
}
.timeline-block.active .timeline-node {
  background: var(--clr-gold-main);
}
.timeline-block.active .timeline-node::after {
  animation: nodePulse 2.8s ease-out infinite 1s;
}
.timeline-block:hover .timeline-node {
  transform: translate(-50%, -50%) scale(1.5);
  box-shadow: 0 0 22px rgba(216, 182, 113, 0.85);
}
@keyframes nodePulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(3.2);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   Hover & micro-interactions
   -------------------------------------------------------------------------- */
.btn-luxury-solid,
.btn-luxury-outline {
  position: relative;
  overflow: hidden;
  translate: var(--mx, 0px) var(--my, 0px);
}
.btn-luxury-solid::before,
.btn-luxury-outline::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.btn-luxury-outline::before {
  background: linear-gradient(
    100deg,
    transparent,
    rgba(216, 182, 113, 0.35),
    transparent
  );
}
.btn-luxury-solid:hover::before,
.btn-luxury-outline:hover::before {
  left: 140%;
}
.btn-luxury-solid:hover,
.btn-luxury-outline:hover {
  transform: translateY(-3px);
}
.btn-luxury-solid:active,
.btn-luxury-outline:active {
  transform: translateY(-1px) scale(0.98);
}

.logo-img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.brand-logo:hover .logo-img {
  transform: scale(1.06) rotate(-2deg);
}
.cart-icon-btn {
  transition:
    background-color 0.4s ease,
    color 0.4s ease,
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease;
}
.cart-icon-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.quote-icon {
  display: inline-block;
  animation: quoteFloat 6s ease-in-out infinite alternate;
  translate: 0 var(--py, 0px);
  filter: drop-shadow(0 0 14px rgba(216, 182, 113, 0.35));
}
@keyframes quoteFloat {
  from {
    transform: translateY(0) rotate(0deg);
  }
  to {
    transform: translateY(-8px) rotate(3deg);
  }
}

/* --------------------------------------------------------------------------
   Back to Top
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--clr-dark-900);
  color: var(--clr-gold-main);
  box-shadow: 0 12px 30px rgba(16, 4, 29, 0.28);
  cursor: pointer;
  z-index: 1030;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition:
    opacity 0.4s ease,
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 0.5s,
    background-color 0.4s ease,
    color 0.4s ease,
    box-shadow 0.4s ease;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.back-to-top.show:hover {
  transform: translateY(-4px);
  background: var(--clr-gold-main);
  color: var(--clr-dark-900);
  box-shadow: var(--shadow-glow), 0 16px 34px rgba(16, 4, 29, 0.3);
}
.back-to-top:focus-visible {
  outline: 2px solid var(--clr-gold-main);
  outline-offset: 3px;
}
.btt-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}
.btt-track,
.btt-progress {
  fill: none;
  stroke-width: 2;
}
.btt-track {
  stroke: rgba(216, 182, 113, 0.25);
}
.btt-progress {
  stroke: var(--clr-gold-main);
  stroke-linecap: round;
  stroke-dasharray: 131.95;
  stroke-dashoffset: 131.95;
  transition: stroke 0.4s ease;
}
.back-to-top:hover .btt-progress {
  stroke: var(--clr-dark-900);
}
.btt-arrow {
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.back-to-top:hover .btt-arrow {
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  /* Timeline blocks reveal upward on stacked layout */
  .reveal-up.timeline-block.reveal-left:not(.active),
  .reveal-up.timeline-block.reveal-right:not(.active) {
    transform: translate3d(0, 40px, 0);
  }
  .reveal-up.reveal-left:not(.timeline-block):not(.active) {
    transform: translate3d(-30px, 20px, 0);
  }
  .reveal-up.reveal-right:not(.timeline-block):not(.active) {
    transform: translate3d(30px, 20px, 0);
  }
}
@media (max-width: 767px) {
  .fx-hide-sm {
    display: none;
  }
  .orb {
    max-width: 420px;
    max-height: 420px;
  }
  .back-to-top {
    width: 46px;
    height: 46px;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
  }
}
@media (hover: none) {
  .portrait-frame:hover .frame-accent {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion: everything is visible, nothing moves
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .reveal-up,
  .reveal-up.reveal-left,
  .reveal-up.reveal-right,
  .reveal-up.reveal-scale,
  .reveal-up.timeline-block.reveal-left:not(.active),
  .reveal-up.timeline-block.reveal-right:not(.active) {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .reveal-up .ornate-divider-horizontal,
  .reveal-up .ornate-divider {
    transform: none !important;
  }
  .orb,
  .fx-inner,
  .quote-icon,
  .timeline-node::after {
    animation: none !important;
  }
  .ambient-canvas {
    display: none;
  }
  .back-to-top,
  .back-to-top * {
    transition-duration: 0.01s !important;
  }
}