/*
  GlossGhost stylesheet scaffold.
  Move custom styles from GG4index.html into this file as you split the page out.
*/

:root {
  color-scheme: dark;
  --font-body: 'Inter', sans-serif;
  --font-display: 'Sora', 'Inter', sans-serif;
  --lut-photo-brightness: 1.08;
  --lut-photo-contrast: 1.12;
  --lut-photo-saturation: 1.1;
  --rhythm-section-y: clamp(4.25rem, 7vw, 6.25rem);
  --rhythm-stack-tight: clamp(0.75rem, 1.5vw, 1.1rem);
  --rhythm-stack-base: clamp(1.1rem, 2.1vw, 1.75rem);
  --rhythm-stack-loose: clamp(1.6rem, 2.8vw, 2.4rem);
  --motion-soft: 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-display-font='serif'] {
  --font-display: 'Cormorant Garamond', Georgia, serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

body {
  font-family: var(--font-body);
  background-color: #08080c;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

.lux-section {
  padding-block: var(--rhythm-section-y);
}

.section-kicker {
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 800;
}

.display-heading {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 0.9;
  text-wrap: balance;
}

.lux-stack-tight > * + * {
  margin-top: var(--rhythm-stack-tight);
}

.lux-stack-base > * + * {
  margin-top: var(--rhythm-stack-base);
}

.lux-stack-loose > * + * {
  margin-top: var(--rhythm-stack-loose);
}

.lux-card {
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(18, 18, 26, 0.76), rgba(8, 8, 12, 0.9));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transition: transform var(--motion-soft), border-color var(--motion-soft), box-shadow var(--motion-soft);
}

.lux-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 240, 255, 0.28);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.42), 0 0 20px rgba(0, 240, 255, 0.14);
}

.lux-card-soft {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.lux-motion {
  animation: luxReveal 680ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes luxReveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Unified LUT-style grade for product/lifestyle photography only. */
.lut-photo {
  filter: brightness(var(--lut-photo-brightness)) contrast(var(--lut-photo-contrast)) saturate(var(--lut-photo-saturation));
  transition: filter 0.35s ease;
}

.group:hover .lut-photo,
.lut-photo:hover {
  filter: brightness(1.12) contrast(1.14) saturate(1.12);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #08080c;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00f0ff;
}

/* 3D Bottle styling & rotations */
.bottle-container {
  perspective: 1000px;
}

.bottle-3d {
  transform: rotateY(-15deg) rotateX(10deg);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bottle-container:hover .bottle-3d {
  transform: rotateY(5deg) rotateX(5deg) scale(1.03);
}

/* Continuous scrolling ribbon animation */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.scroll-ribbon {
  display: flex;
  width: max-content;
  animation: scroll 35s linear infinite;
}

.scroll-ribbon:hover {
  animation-play-state: paused;
}

/* Shared treatment for icon library assets */
.icon-lib {
  opacity: 0.92;
  filter: brightness(1.1) drop-shadow(0 0 6px rgba(0, 240, 255, 0.18));
  transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

.icon-lib:hover,
.group:hover .icon-lib {
  opacity: 1;
  filter: brightness(1.1) drop-shadow(0 0 10px rgba(0, 240, 255, 0.38));
  transform: translateY(-0.5px);
}

/* Hero headlight flash sequence (double pulse on first load) */
.headlight-video-wrap {
  opacity: 0;
  transition: opacity 1150ms cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 56%, rgba(0, 0, 0, 0.7) 64%, #000 70%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, transparent 56%, rgba(0, 0, 0, 0.7) 64%, #000 70%, #000 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  will-change: opacity;
}

.headlight-video-clip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 88% 50%;
  transform: scale(1);
  transform-origin: center;
  transition: transform 1280ms cubic-bezier(0.22, 1, 0.36, 1);
  mix-blend-mode: screen;
  filter: brightness(1.22) contrast(1.18) saturate(1.05);
}

.headlight-video-play .headlight-video-wrap {
  opacity: 0.92;
}

.headlight-video-play .headlight-video-clip {
  transform: scale(1.028);
}

.headlight-video-fadeout .headlight-video-wrap {
  opacity: 0;
}

.cta-glint-target,
.logo-glint-target {
  position: relative;
}

.cta-glint-target {
  overflow: hidden;
  isolation: isolate;
}

.cta-glint-target::after,
.logo-glint-target::after {
  content: '';
  position: absolute;
  inset-block: -20%;
  left: -70%;
  width: 50%;
  transform: skewX(-18deg) translateX(-140%);
  pointer-events: none;
  opacity: 0;
}

.cta-glint-target::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.8), rgba(0, 240, 255, 0.6), rgba(255, 255, 255, 0));
  filter: blur(0.5px);
}

.logo-glint-target::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.45), rgba(0, 240, 255, 0.28), rgba(255, 255, 255, 0));
  filter: blur(1px);
}

.cta-glint-once::after {
  animation: glintSweep 1180ms cubic-bezier(0.22, 1, 0.36, 1) 1;
}

.logo-glint-once::after {
  animation: glintSweep 980ms cubic-bezier(0.22, 1, 0.36, 1) 1;
}

@keyframes glintSweep {
  0% {
    opacity: 0;
    transform: skewX(-18deg) translateX(-140%);
  }

  16% {
    opacity: 0.95;
  }

  100% {
    opacity: 0;
    transform: skewX(-18deg) translateX(350%);
  }
}

@keyframes startupTicker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.startup-banner-track {
  display: flex;
  width: max-content;
  min-width: max-content;
  gap: 3rem;
  animation: startupTicker 24s linear infinite;
  will-change: transform;
}

.startup-banner-item {
  padding-inline: 0.75rem;
}

@media (hover: hover) and (pointer: fine) {
  .startup-banner-wrap:hover .startup-banner-track {
    animation-play-state: paused;
  }
}

@media (max-width: 767px) {
  header button,
  #mobile-menu a,
  #cart-drawer button,
  #video-modal button,
  footer a {
    min-height: 44px;
  }

  #home {
    min-height: calc(100svh - 112px);
  }
}

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

  .cta-glint-once::after,
  .logo-glint-once::after {
    animation: none;
  }

  .lux-card,
  .lut-photo,
  .icon-lib {
    transition: none;
  }
}
