@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Space+Mono:wght@400;700&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #06060C;
  --bg2: #0A0A14;
  --gold: #C8A96E;
  --gold2: #F0D5A0;
  --cyan: #00C9FF;
  --cyan2: #00F5FF;
  --white: #F2EEE8;
  --muted: #5A5A6E;
  --glass: rgba(12, 12, 22, 0.72);
  --glass2: rgba(200, 169, 110, 0.08);
  --border: rgba(200, 169, 110, 0.18);
  --font-display: 'Bebas Neue', sans-serif;
  --font-editorial: 'Cormorant Garamond', serif;
  --font-mono: 'Space Mono', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-editorial);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Only hide cursor on pointer (mouse) devices — never on touch */
@media (pointer: fine) {
  body.using-custom-cursor {
    cursor: none;
  }
}

::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 2px;
}

/* ── GRAIN ── */
@keyframes grain {

  0%,
  100% {
    transform: translate(0, 0)
  }

  10% {
    transform: translate(-2%, -3%)
  }

  20% {
    transform: translate(-4%, 2%)
  }

  30% {
    transform: translate(3%, -1%)
  }

  40% {
    transform: translate(-1%, 4%)
  }

  50% {
    transform: translate(2%, -3%)
  }

  60% {
    transform: translate(-3%, 1%)
  }

  70% {
    transform: translate(4%, 2%)
  }

  80% {
    transform: translate(-2%, -4%)
  }

  90% {
    transform: translate(3%, 3%)
  }
}

.grain-overlay {
  position: fixed;
  inset: -200%;
  width: 400%;
  height: 400%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  animation: grain 0.5s steps(1) infinite;
  mix-blend-mode: overlay;
}

/* ── AURORA ── */
@keyframes aurora1 {

  0%,
  100% {
    transform: translate(-20%, -20%) rotate(0deg) scale(1);
  }

  50% {
    transform: translate(10%, 10%) rotate(180deg) scale(1.2);
  }
}

@keyframes aurora2 {

  0%,
  100% {
    transform: translate(20%, 10%) rotate(0deg) scale(1.1);
  }

  50% {
    transform: translate(-10%, -20%) rotate(-120deg) scale(0.9);
  }
}

@keyframes aurora3 {

  0%,
  100% {
    transform: translate(0%, -30%) rotate(45deg) scale(0.9);
  }

  50% {
    transform: translate(-15%, 15%) rotate(225deg) scale(1.15);
  }
}

/* ── LOADING ── */
@keyframes frameFlicker {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.85
  }
}

/* ── CINEMATIC PLAYHEAD LOADER ── */
.loader-shell {
  position: fixed;
  inset: 0;
  background: var(--bg); /* Deep black background */
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loader-shell-lite .loader-rec,
.loader-shell-lite .timeline-playhead {
  animation-duration: 1.4s;
}

.loader-shell-lite .timeline-track {
  width: 220px;
}

/* Pulsing REC Indicator */
.loader-rec {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #ff4d4d;
  letter-spacing: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: pulseOpacity 1.2s infinite;
  margin-bottom: 40px;
}

.loader-rec::before {
  content: '';
  width: 10px;
  height: 10px;
  background: #ff4d4d;
  border-radius: 50%;
  box-shadow: 0 0 12px #ff4d4d;
}

/* The Timeline Track */
.timeline-track {
  width: 260px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
}

/* The Glowing Gold Playhead */
.timeline-playhead {
  position: absolute;
  top: -12px;
  left: 0;
  width: 2px;
  height: 25px;
  background: var(--gold);
  box-shadow: 0 0 15px var(--gold);
  /* Scrubs back and forth like you are editing */
  animation: scrubTimeline 2s cubic-bezier(0.65, 0, 0.35, 1) infinite; 
}

/* The triangle at the top of the playhead */
.timeline-playhead::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -5px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--gold);
}

@keyframes scrubTimeline {
  0% { left: 0%; }
  50% { left: 100%; }
  100% { left: 0%; }
}

@keyframes pulseOpacity {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes pulseOpacity {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.88);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes revealLeft {
  from {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }

  to {
    clip-path: inset(0 0% 0 0);
    opacity: 1;
  }
}

@keyframes serviceReveal {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow-pulse {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(200, 169, 110, 0.3), 0 0 60px rgba(200, 169, 110, 0.1);
  }

  50% {
    box-shadow: 0 0 40px rgba(200, 169, 110, 0.6), 0 0 100px rgba(200, 169, 110, 0.2);
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-reverse {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(-360deg);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  33% {
    transform: translateY(-18px) rotate(2deg);
  }

  66% {
    transform: translateY(-8px) rotate(-1deg);
  }
}

@keyframes float2 {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-24px) rotate(-3deg);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

@keyframes scanline {
  0% {
    top: -5%;
  }

  100% {
    top: 105%;
  }
}

@keyframes borderRotate {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes heroKickerIn {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0) scale(0.96);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes heroTitleSweep {
  from {
    opacity: 0;
    transform: translate3d(0, 72px, 0) scale(0.94);
    letter-spacing: 0.08em;
    filter: blur(18px);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    letter-spacing: normal;
    filter: blur(0);
  }
}

@keyframes heroCopyIn {
  from {
    opacity: 0;
    transform: translate3d(0, 36px, 0);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@keyframes heroHaloIn {
  from {
    opacity: 0;
    transform: scale(0.82);
    filter: blur(40px);
  }

  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

.reveal-section {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.cine-reveal {
  --delay: 0s;
  --reveal-x: 0px;
  --reveal-y: 36px;
  --reveal-scale: 0.985;
  --reveal-rotate: 0deg;
  --reveal-blur: 10px;
  opacity: 0;
  filter: blur(var(--reveal-blur));
  transform: translate3d(var(--reveal-x), var(--reveal-y), 0) scale(var(--reveal-scale)) rotate(var(--reveal-rotate));
  transition:
    opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1) var(--delay),
    transform 1.15s cubic-bezier(0.16, 1, 0.3, 1) var(--delay),
    filter 1.15s cubic-bezier(0.16, 1, 0.3, 1) var(--delay);
  will-change: transform, opacity, filter;
}

.cine-reveal.visible,
.visible > .cine-reveal,
.visible .cine-reveal {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
}

.cine-left {
  --reveal-x: -42px;
  --reveal-y: 0px;
}

.cine-right {
  --reveal-x: 42px;
  --reveal-y: 0px;
}

.cine-rise {
  --reveal-y: 46px;
}

.cine-zoom {
  --reveal-y: 22px;
  --reveal-scale: 0.94;
}

.cine-tilt-left {
  --reveal-y: 30px;
  --reveal-x: -12px;
  --reveal-rotate: -1.4deg;
}

.cine-tilt-right {
  --reveal-y: 30px;
  --reveal-x: 12px;
  --reveal-rotate: 1.4deg;
}

.cine-line {
  --reveal-y: 0px;
  transform-origin: center left;
  transform: scaleX(0.72);
}

.cine-line.visible,
.visible > .cine-line,
.visible .cine-line {
  transform: scaleX(1);
}

.hero-cinematic {
  position: relative;
}

.hero-cinematic::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(78vw, 920px);
  height: min(42vw, 420px);
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at center, rgba(200, 169, 110, 0.22) 0%, rgba(200, 169, 110, 0.08) 28%, transparent 72%),
    radial-gradient(circle at 50% 56%, rgba(0, 201, 255, 0.12) 0%, transparent 68%);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: heroHaloIn 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.16s forwards;
}

.hero-kicker,
.hero-copy-shell,
.hero-cta-row,
.hero-scroll-indicator-shell {
  opacity: 0;
  animation: heroCopyIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-kicker {
  animation-name: heroKickerIn;
  animation-delay: 0.1s;
}

.hero-title-block {
  position: relative;
  display: inline-block;
}

.hero-title-line {
  display: block;
  opacity: 0;
  animation: heroTitleSweep 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title-line:nth-child(1) {
  animation-delay: 0.18s;
}

.hero-title-line:nth-child(2) {
  animation-delay: 0.34s;
}

.hero-title-line.gold-text {
  animation:
    heroTitleSweep 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.34s forwards,
    shimmer 4s linear infinite 1.54s;
}

.hero-role {
  opacity: 0;
  animation: heroCopyIn 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.56s forwards;
}

.hero-copy-shell {
  animation-delay: 0.72s;
}

.hero-cta-row {
  animation-delay: 0.92s;
}

.hero-scroll-indicator-shell {
  animation-delay: 1.16s;
}

.hero-copy {
  will-change: transform, opacity, filter;
}

@media (max-width: 768px) {
  .loader-shell-lite .loader-rec {
    letter-spacing: 3px;
    margin-bottom: 28px;
  }

  .loader-shell-lite .timeline-playhead {
    box-shadow: 0 0 8px var(--gold);
  }

  .hero-cinematic::before,
  .grain-overlay {
    display: none;
  }

  .cine-reveal {
    --reveal-blur: 0px;
  }

  .cine-cta,
  .cine-cta-secondary,
  .cine-cta-ghost,
  .glass-card,
  .contact-dock a {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .hero-title-line {
    animation-duration: 0.95s;
  }

  .format-track {
    gap: 36px;
    animation-duration: 36s;
  }

  .services-grid {
    gap: 12px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .aurora-bg,
  .hero-cinematic::before,
  .grain-overlay {
    display: none !important;
  }
}

.cine-glow {
  position: relative;
}

.cine-glow::after {
  content: "";
  position: absolute;
  inset: -8%;
  background: radial-gradient(circle at center, rgba(200, 169, 110, 0.16), transparent 68%);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 1.2s ease var(--delay), transform 1.2s ease var(--delay);
  pointer-events: none;
  z-index: -1;
}

.cine-glow.visible::after,
.visible > .cine-glow::after,
.visible .cine-glow::after {
  opacity: 1;
  transform: scale(1);
}

.cine-cta,
.cine-cta-secondary,
.cine-cta-ghost {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease,
    background-color 0.35s ease,
    color 0.35s ease;
  overflow: hidden;
}

.cine-cta::before,
.cine-cta-secondary::before,
.cine-cta-ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.18) 50%, transparent 80%);
  transform: translateX(-130%);
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.cine-cta:hover,
.cine-cta-secondary:hover,
.cine-cta-ghost:hover {
  transform: translateY(-2px);
}

.cine-cta:hover::before,
.cine-cta-secondary:hover::before,
.cine-cta-ghost:hover::before {
  transform: translateX(130%);
}

.cine-cta {
  color: #050505;
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  border: 1px solid rgba(240, 213, 160, 0.75);
  box-shadow: 0 18px 40px rgba(200, 169, 110, 0.22);
}

.cine-cta:hover {
  box-shadow: 0 24px 50px rgba(200, 169, 110, 0.32);
}

.cine-cta-secondary {
  color: var(--white);
  background: rgba(12, 12, 22, 0.72);
  border: 1px solid rgba(200, 169, 110, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cine-cta-secondary:hover {
  border-color: rgba(240, 213, 160, 0.6);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.3);
}

.cine-cta-ghost {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(200, 169, 110, 0.28);
}

.cine-cta-ghost:hover {
  color: var(--white);
  border-color: rgba(200, 169, 110, 0.5);
  box-shadow: 0 18px 40px rgba(200, 169, 110, 0.18);
}

.cine-cta-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cine-cta-arrow {
  font-size: 13px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cine-cta:hover .cine-cta-arrow,
.cine-cta-secondary:hover .cine-cta-arrow,
.cine-cta-ghost:hover .cine-cta-arrow {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  .cine-reveal,
  .cine-glow::after {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
}

.gold-text {
  background: linear-gradient(135deg, #C8A96E 0%, #F0D5A0 40%, #C8A96E 70%, #E8C87A 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
  display: inline-block;
}

.cyan-text {
  background: linear-gradient(135deg, #00C9FF, #00F5FF, #00C9FF);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
  display: inline-block;
}

.glass-card {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.glass-card-cyan {
  background: rgba(0, 201, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 201, 255, 0.2);
  border-radius: 16px;
}

.glow-border {
  animation: glow-pulse 3s ease-in-out infinite;
}
/* -- MARQUEE -- */
@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marqueeScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.format-strip {
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.format-track {
  display: flex;
  white-space: nowrap;
  gap: 60px;
  width: max-content;
  animation: scrollMarquee 30s linear infinite;
}

.format-track > div {
  flex-shrink: 0;
}

@keyframes marqueePulse {
  0% { opacity: 0.1; transform: translateY(0); }
  100% { opacity: 0.15; transform: translateY(-10px); }
}
