@import url('/assets/css/branding.css?v=20260826a');

/* Premium NOCTURNE presentation layer. Loaded after styles.css by app.js. */

.site-header {
  padding-top: .78rem;
  padding-bottom: .78rem;
}

.brand {
  position: relative;
  gap: .9rem;
  isolation: isolate;
}

.brand::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  width: 72px;
  height: 72px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,202,97,.18), rgba(216,154,43,.05) 45%, transparent 72%);
  filter: blur(7px);
  opacity: .8;
  pointer-events: none;
  z-index: -1;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 0;
  filter: drop-shadow(0 0 7px rgba(255,202,97,.2)) drop-shadow(0 0 20px rgba(216,154,43,.16));
  transform: translateZ(0);
  transition: transform .35s ease, filter .35s ease, opacity .35s ease;
}

.brand:hover img,
.brand:focus-visible img {
  transform: scale(1.055);
  filter: drop-shadow(0 0 9px rgba(255,202,97,.36)) drop-shadow(0 0 28px rgba(216,154,43,.24));
}

.brand span {
  text-shadow: 0 0 22px rgba(216,154,43,.14);
}

.site-header.scrolled {
  background: linear-gradient(180deg, rgba(3,3,3,.94), rgba(3,3,3,.76));
  box-shadow: 0 14px 42px rgba(0,0,0,.24);
}

/* Cinematic homepage hero */
.hero {
  --hero-light-x: 72%;
  --hero-light-y: 30%;
  --hero-parallax-x: 0px;
  --hero-parallax-y: 0px;
  background: #010101;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(0,0,0,.99) 0%, rgba(0,0,0,.94) 29%, rgba(0,0,0,.71) 50%, rgba(0,0,0,.18) 72%, rgba(0,0,0,.72) 100%),
    linear-gradient(180deg, rgba(0,0,0,.42), transparent 30%, transparent 67%, rgba(0,0,0,.9));
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(circle 430px at var(--hero-light-x) var(--hero-light-y), rgba(255,198,84,.13), rgba(216,154,43,.045) 34%, transparent 72%),
    linear-gradient(115deg, transparent 32%, rgba(255,214,127,.026) 48%, transparent 64%);
  mix-blend-mode: screen;
  transition: background-position .1s linear;
}

.hero-media {
  inset: -3% -2% -3% 38%;
  background-position: 58% 10%;
  filter: saturate(.72) contrast(1.12) brightness(.88);
  transform: translate3d(var(--hero-parallax-x), var(--hero-parallax-y), 0) scale(1.055);
  transform-origin: 58% 38%;
  will-change: transform, filter;
  animation: nocturne-breathe 17s ease-in-out infinite alternate;
}

.hero-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, transparent 38%, rgba(255,204,103,.04) 54%, transparent 65%),
    radial-gradient(circle at 58% 33%, rgba(255,196,73,.08), transparent 23%);
  mix-blend-mode: screen;
  opacity: .9;
  animation: nocturne-light-sweep 11s ease-in-out infinite alternate;
}

.hero-media::after {
  background:
    radial-gradient(circle at 56% 34%, transparent 0 19%, rgba(0,0,0,.16) 44%, rgba(0,0,0,.62) 78%, rgba(0,0,0,.96)),
    linear-gradient(90deg, rgba(0,0,0,.72), transparent 30%, transparent 75%, rgba(0,0,0,.38));
}

#stars {
  opacity: .72;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 3px rgba(255,202,97,.2));
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-copy {
  position: relative;
  max-width: 760px;
  padding-left: clamp(1rem, 2vw, 1.75rem);
}

.hero-copy::before {
  content: '';
  position: absolute;
  left: 0;
  top: .2rem;
  width: 1px;
  height: min(72%, 430px);
  background: linear-gradient(180deg, transparent, rgba(255,202,97,.7) 22%, rgba(216,154,43,.22) 72%, transparent);
  box-shadow: 0 0 18px rgba(216,154,43,.18);
}

.hero-copy::after {
  content: '';
  position: absolute;
  left: -10%;
  top: 12%;
  width: 78%;
  height: 56%;
  z-index: -1;
  background: radial-gradient(ellipse, rgba(216,154,43,.075), transparent 67%);
  filter: blur(28px);
  pointer-events: none;
}

.eyebrow {
  color: #e4aa43;
  text-shadow: 0 0 16px rgba(216,154,43,.16);
}

.hero-logo {
  width: min(760px, 100%);
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  margin-left: 0;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 16px rgba(216,154,43,.14)) drop-shadow(0 0 42px rgba(216,154,43,.08));
  animation: nocturne-logo-glow 6.5s ease-in-out infinite alternate;
}

.hero-tagline {
  color: #fff8ed;
  text-shadow: 0 2px 28px rgba(0,0,0,.82), 0 0 28px rgba(216,154,43,.05);
  letter-spacing: .01em;
}

.hero-sub {
  color: #c0b19c;
  text-shadow: 0 2px 18px rgba(0,0,0,.9);
}

.hero-actions .btn {
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 42px rgba(216,154,43,.1);
}

.hero-actions .btn::after {
  content: '';
  position: absolute;
  top: -120%;
  left: -35%;
  width: 22%;
  height: 340%;
  transform: rotate(22deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.34), transparent);
  transition: left .65s ease;
  pointer-events: none;
}

.hero-actions .btn:hover::after,
.hero-actions .btn:focus-visible::after {
  left: 118%;
}

.hero-note {
  color: #918575;
}

.scroll-cue {
  opacity: .82;
  animation: nocturne-scroll-pulse 2.4s ease-in-out infinite;
}

.hero.cinematic-ready .eyebrow,
.hero.cinematic-ready .hero-logo,
.hero.cinematic-ready .hero-tagline,
.hero.cinematic-ready .hero-sub,
.hero.cinematic-ready .hero-actions,
.hero.cinematic-ready .hero-note {
  opacity: 0;
  animation: nocturne-enter .9s cubic-bezier(.2,.8,.2,1) forwards;
}

.hero.cinematic-ready .hero-logo { animation-name: nocturne-enter, nocturne-logo-glow; animation-duration: 1s, 6.5s; animation-delay: .12s, 1.1s; animation-iteration-count: 1, infinite; animation-direction: normal, alternate; }
.hero.cinematic-ready .eyebrow { animation-delay: .02s; }
.hero.cinematic-ready .hero-tagline { animation-delay: .28s; }
.hero.cinematic-ready .hero-sub { animation-delay: .42s; }
.hero.cinematic-ready .hero-actions { animation-delay: .55s; }
.hero.cinematic-ready .hero-note { animation-delay: .68s; }

@keyframes nocturne-enter {
  from { opacity: 0; transform: translateY(18px); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes nocturne-breathe {
  0% { transform: translate3d(var(--hero-parallax-x), var(--hero-parallax-y), 0) scale(1.045); filter: saturate(.70) contrast(1.1) brightness(.86); }
  100% { transform: translate3d(var(--hero-parallax-x), var(--hero-parallax-y), 0) scale(1.085); filter: saturate(.80) contrast(1.14) brightness(.92); }
}

@keyframes nocturne-light-sweep {
  from { opacity: .55; transform: translateX(-2%); }
  to { opacity: 1; transform: translateX(3%); }
}

@keyframes nocturne-logo-glow {
  from { filter: drop-shadow(0 0 12px rgba(216,154,43,.11)) drop-shadow(0 0 34px rgba(216,154,43,.06)); }
  to { filter: drop-shadow(0 0 20px rgba(255,202,97,.22)) drop-shadow(0 0 58px rgba(216,154,43,.12)); }
}

@keyframes nocturne-scroll-pulse {
  0%, 100% { opacity: .45; transform: translateX(-50%) translateY(0); }
  50% { opacity: .92; transform: translateX(-50%) translateY(5px); }
}

@media (max-width: 900px) {
  .brand img { width: 52px; height: 52px; }
  .brand::before { width: 64px; height: 64px; left: -7px; }
  .hero-media { inset: -3%; background-position: 64% 8%; opacity: .7; }
  .hero::before {
    background:
      linear-gradient(90deg, rgba(0,0,0,.97), rgba(0,0,0,.69) 64%, rgba(0,0,0,.78)),
      linear-gradient(180deg, rgba(0,0,0,.38), transparent 30%, rgba(0,0,0,.82));
  }
  .hero-copy { margin-top: 12vh; max-width: 680px; }
}

@media (max-width: 560px) {
  .site-header { padding-top: .6rem; padding-bottom: .6rem; }
  .brand { gap: .62rem; }
  .brand img { width: 46px; height: 46px; }
  .brand::before { width: 56px; height: 56px; left: -5px; }
  .hero-copy { padding-left: .8rem; }
  .hero-copy::before { opacity: .7; }
  .hero-logo { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media,
  .hero-media::before,
  .hero-logo,
  .scroll-cue,
  .hero.cinematic-ready .eyebrow,
  .hero.cinematic-ready .hero-logo,
  .hero.cinematic-ready .hero-tagline,
  .hero.cinematic-ready .hero-sub,
  .hero.cinematic-ready .hero-actions,
  .hero.cinematic-ready .hero-note {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none;
  }
}
