/* ==========================================================================
   NOIR ATELIER — custom layer (on top of Tailwind utility classes)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

::selection {
  background: #a82636;
  color: #eee6e0;
}

body {
  cursor: default;
}

/* Subtle persistent film-grain wash over the whole page for a cinematic feel */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 55;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* --------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------- */
#navbar.nav-solid {
  background: rgba(5, 5, 6, 0.82);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid rgba(238, 230, 224, 0.08);
}

.nav-link {
  position: relative;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: rgba(238, 230, 224, 0.75);
  transition: color 0.3s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 1px;
  background: #a82636;
  transition: width 0.35s ease;
}
.nav-link:hover,
.nav-link.is-active {
  color: #eee6e0;
}
.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.mobile-nav-link {
  transition: color 0.3s ease, letter-spacing 0.3s ease;
}
.mobile-nav-link:hover {
  color: #a82636;
  letter-spacing: 0.03em;
}

#mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Hamburger -> X */
#mobile-menu-btn.is-open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  width: 1.75rem;
}
#mobile-menu-btn.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
}
#mobile-menu-btn.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  width: 1.75rem;
  align-self: center;
}

/* --------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------- */
.hero-kenburns {
  animation: kenburns 14s ease-in-out infinite alternate;
  transform-origin: center;
}
@keyframes kenburns {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.14) translate(-1.5%, -1.5%); }
}

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

.scroll-line-fill {
  animation: scrollFill 1.8s ease-in-out infinite;
}
@keyframes scrollFill {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(300%); }
  100% { transform: translateY(300%); }
}

/* --------------------------------------------------------------------
   Reveal-on-scroll utilities
   -------------------------------------------------------------------- */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-text {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal-text.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------
   Glassmorphism
   -------------------------------------------------------------------- */
.glass-card {
  background: linear-gradient(155deg, rgba(238, 230, 224, 0.06), rgba(238, 230, 224, 0.02));
  border: 1px solid rgba(238, 230, 224, 0.1);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}

/* --------------------------------------------------------------------
   Buttons & interaction
   -------------------------------------------------------------------- */
.btn-magnetic {
  will-change: transform;
}

.img-tilt {
  transition: transform 0.5s ease;
}

.floaty {
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* --------------------------------------------------------------------
   Parallax
   -------------------------------------------------------------------- */
.parallax-bg {
  will-change: transform;
}
@media (max-width: 767px) {
  .parallax-bg { background-attachment: scroll; }
}

/* --------------------------------------------------------------------
   Models grid
   -------------------------------------------------------------------- */
.model-card {
  background: #0d0c0e;
}

/* --------------------------------------------------------------------
   Gallery / lightbox
   -------------------------------------------------------------------- */
.gallery-item img {
  display: block;
}

#lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* --------------------------------------------------------------------
   FAQ accordion
   -------------------------------------------------------------------- */
.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}
.faq-item.is-open .faq-icon svg {
  transform: rotate(45deg);
}
.faq-icon svg {
  transition: transform 0.35s ease;
}

/* --------------------------------------------------------------------
   Film-strip rail signature element
   -------------------------------------------------------------------- */
#filmstrip-label {
  min-height: 90px;
}

/* --------------------------------------------------------------------
   Scrollbar (subtle, on-brand)
   -------------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #050506;
}
::-webkit-scrollbar-thumb {
  background: #211d22;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4a0e1c;
}

/* --------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero-kenburns { animation: none; }
  .floaty { animation: none; }
  .reveal-up, .reveal-text { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------
   Focus visibility (accessibility floor)
   -------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #a82636;
  outline-offset: 3px;
}
