/* ==========================================
   SABRES PRODUCTION — style.css v3
   ========================================== */

:root {
  --dark-bg:       #0B0618;
  --dark-bg-2:     #0F0A22;
  --light-bg:      #F2EEFF;
  --purple:        #5533FF;
  --purple-light:  #7A60FF;
  --purple-glow:   rgba(85, 51, 255, 0.28);
  --lime:          #39E05A;
  --lime-dim:      rgba(57, 224, 90, 0.14);
  --off-white:     #F8F6FF;
  --dark-text:     #0B0618;
  --muted-dark:    #5A4899;
  --font-display:  'Bebas Neue', sans-serif;
  --font-body:     'Inter', sans-serif;
  --nav-h:         72px;
  --ease:          cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition:    0.45s var(--ease);
  --tf:            0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--dark-bg);
  color: var(--off-white);
  cursor: none;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ---- Cursor ---- */
.cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 8px; height: 8px; background: var(--lime);
  border-radius: 50%; pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
}
.cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9998;
  width: 36px; height: 36px;
  border: 1.5px solid var(--purple-light);
  border-radius: 50%; pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
  opacity: 0.6;
}

/* ---- Navbar ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(11, 6, 24, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(85, 51, 255, 0.2);
}

/* Logo Coin Flip */
.logo-flip {
  perspective: 500px;
  width: 56px; height: 56px;
  display: block; flex-shrink: 0;
}
.logo-flip-inner {
  width: 100%; height: 100%; position: relative;
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease);
}
.logo-flip:hover .logo-flip-inner { transform: rotateY(180deg); }
.logo-front, .logo-back {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  border-radius: 50%; overflow: hidden;
}
.logo-front img, .logo-back img { width: 100%; height: 100%; object-fit: cover; }
.logo-back { transform: rotateY(180deg); }

.nav-links { display: flex; gap: 36px; }
.nav-link {
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--off-white); opacity: 0.7;
  position: relative; transition: opacity var(--tf);
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--lime);
  transition: width var(--transition);
}
.nav-link:hover { opacity: 1; }
.nav-link:hover::after { width: 100%; }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 24px; height: 1.5px; background: var(--off-white); transition: var(--transition); }

/* ---- Mobile Menu ---- */
.mobile-menu {
  position: fixed; inset: 0;
  background: rgba(11, 6, 24, 0.98);
  z-index: 999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 40px; text-align: center; }
.mobile-link {
  font-family: var(--font-display);
  font-size: clamp(40px, 10vw, 72px);
  letter-spacing: 0.1em; color: var(--off-white); opacity: 0.8;
  transition: opacity var(--tf), color var(--tf);
}
.mobile-link:hover { opacity: 1; color: var(--lime); }

/* ---- Shared ---- */
.section-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.25em; text-transform: uppercase;
  margin-bottom: 12px; opacity: 0.5;
}
.section-label.light     { color: var(--off-white); }
.section-label.dark-label { color: var(--dark-text); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.92; letter-spacing: 0.02em;
  margin-bottom: 40px;
}
.section-title.dark  { color: var(--dark-text); }
.section-title.light { color: var(--off-white); }

.reveal-up {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s !important; }
.delay-2 { transition-delay: 0.30s !important; }
.delay-3 { transition-delay: 0.45s !important; }

/* ---- HERO ---- */
.hero {
  position: relative; z-index: 1;
  height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--dark-bg);
}
.hero-grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
.hero-glow {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 55% 65% at 25% 55%, rgba(85,51,255,0.14) 0%, transparent 70%),
    radial-gradient(ellipse 35% 35% at 80% 20%, rgba(57,224,90,0.07) 0%, transparent 60%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 0 24px; max-width: 920px;
}
.hero-tag {
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 24px; display: inline-block;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(72px, 16vw, 200px);
  line-height: 0.85; letter-spacing: 0.02em;
  display: flex; flex-direction: column; align-items: center;
  margin-bottom: 28px;
}
.hero-title-line { display: block; color: var(--off-white); }
.accent-line     { color: var(--purple-light); }
.hero-sub {
  font-size: clamp(14px, 1.6vw, 17px);
  font-weight: 300; color: var(--off-white); opacity: 0.6;
  max-width: 520px; margin: 0 auto 40px; line-height: 1.7;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center;
  padding: 14px 32px;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 2px; transition: var(--transition);
}
.btn-primary {
  background: var(--purple); color: #fff;
  border: 1.5px solid var(--purple);
}
.btn-primary:hover {
  background: var(--purple-light); border-color: var(--purple-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--purple-glow);
}
.btn-ghost {
  background: transparent; color: var(--off-white);
  border: 1.5px solid rgba(248,246,255,0.25);
}
.btn-ghost:hover {
  background: var(--lime); color: var(--dark-bg);
  border-color: var(--lime); transform: translateY(-2px);
}

.hero-scroll-indicator {
  margin-top: 56px; /* Place below buttons without overlap */
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--off-white); opacity: 0.3;
  animation: scrollBob 2s ease-in-out infinite;
}
.scroll-line { width: 1px; height: 48px; background: linear-gradient(to bottom, rgba(248,246,255,0.4), transparent); }
@keyframes scrollBob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ---- ABOUT ---- */
.about {
  position: relative; z-index: 1;
  background: var(--light-bg);
  padding: 120px 48px;
}
.about-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 2fr; gap: 80px;
  align-items: start;
}
.about-text {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.85; color: var(--dark-text); opacity: 0.72;
  margin-bottom: 28px;
}
.about-stats {
  display: flex; gap: 48px;
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid rgba(85, 51, 255, 0.18);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 52px; line-height: 1; color: var(--purple);
}
.stat-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--dark-text); opacity: 0.38;
}

/* ---- SERVICES ---- */
.services {
  position: relative; z-index: 1;
  background: var(--dark-bg-2);
  padding: 120px 48px; overflow: hidden;
}
.services-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
.services-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; }
.services-grid  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 8px; }

.service-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(85, 51, 255, 0.15);
  padding: 48px 36px;
  position: relative; overflow: hidden;
  transition: var(--transition); cursor: default;
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(85,51,255,0.09) 0%, rgba(57,224,90,0.04) 100%);
  opacity: 0; transition: opacity var(--transition);
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(85,51,255,0.42); }
.service-card:hover::before { opacity: 1; }
.service-card:hover .service-line { width: 100%; }
.service-card:hover .service-icon { transform: scale(1.1); }
.service-icon { color: var(--lime); margin-bottom: 28px; transition: transform var(--transition); }
.service-title { font-family: var(--font-display); font-size: 28px; letter-spacing: 0.05em; color: var(--off-white); margin-bottom: 16px; }
.service-desc  { font-size: 14px; line-height: 1.75; color: var(--off-white); opacity: 0.5; }
.service-line  {
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--lime));
  transition: width 0.6s ease;
}

/* ---- WORK ---- */
.work {
  position: relative; z-index: 1;
  background: var(--light-bg);
}
.work-inner {
  max-width: 1300px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* Preview Panel */
.work-preview-panel {
  position: sticky; top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  display: flex; align-items: center; justify-content: center;
  padding: 60px 48px 60px 60px;
  overflow: hidden;
}
.preview-inner {
  position: relative;
  width: 100%; aspect-ratio: 16 / 9;
}

/* All states are absolutely positioned inside preview-inner */
.preview-state {
  position: absolute; inset: 0;
  border-radius: 12px; overflow: hidden;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.preview-state.active { opacity: 1; pointer-events: all; }

/* Default: logo */
.preview-default {
  display: flex; align-items: center; justify-content: center;
  background: transparent;
}
.preview-logo { width: 180px; height: 180px; object-fit: contain; opacity: 0.1; }

/* Thumbnail */
.preview-thumb-wrap { background: var(--dark-bg); }
.preview-thumb-img  { width: 100%; height: 100%; object-fit: cover; }
.preview-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(11, 6, 24, 0.36);
  transition: background 0.3s ease;
}
.preview-thumb-wrap:hover .preview-overlay { background: rgba(11, 6, 24, 0.55); }
.preview-play-btn {
  width: 68px; height: 68px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 50%;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.preview-thumb-wrap:hover .preview-play-btn {
  border-color: var(--lime); transform: scale(1.1);
  background: rgba(57, 224, 90, 0.12);
}
.preview-multi-badge {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  background: var(--purple); color: #fff;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px;
  white-space: nowrap;
}

/* Inline Player */
.preview-player-wrap { background: #000; }
.preview-iframe { width: 100%; height: 100%; border: none; display: block; }
.preview-back-btn {
  position: absolute; top: 14px; left: 14px;
  background: rgba(11, 6, 24, 0.82);
  color: var(--off-white);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px; padding: 7px 14px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em; cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.preview-back-btn:hover { background: var(--purple); border-color: var(--purple); }

/* List Panel */
.work-list-panel {
  padding: 80px 60px 120px 48px;
  border-left: 1px solid rgba(85, 51, 255, 0.1);
}

/* Tabs */
.work-tabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid rgba(85, 51, 255, 0.12);
  margin-bottom: 0;
}
.tab-btn {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--dark-text); opacity: 0.35;
  background: none; border: none;
  padding: 12px 20px; cursor: pointer;
  position: relative; transition: opacity var(--tf);
}
.tab-btn::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--lime));
  transform: scaleX(0); transition: transform var(--transition);
}
.tab-btn.active { opacity: 1; }
.tab-btn.active::after { transform: scaleX(1); }
.tab-btn:hover { opacity: 0.7; }

/* Project List — clean, no dividers, no numbers */
.project-list {
  padding-top: 32px;
}
.project-list.hidden { display: none; }

.project-item {
  padding: 22px 0;
  cursor: pointer;
  position: relative;
}

/* Header: always visible */
.proj-header {
  display: flex; flex-direction: column; gap: 0;
}

/* Name */
.proj-name {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 48px);
  letter-spacing: 0.02em;
  color: var(--dark-text);
  opacity: 0.32;
  line-height: 1;
  transition: opacity 0.35s ease, color 0.35s ease, letter-spacing 0.4s ease, font-size 0.3s ease;
}
.project-item:hover .proj-name,
.project-item.open .proj-name {
  opacity: 1;
  color: var(--purple);
  letter-spacing: 0.05em;
}

/* Meta tags — hidden, reveal on hover */
.proj-meta {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  max-height: 0; overflow: hidden;
  opacity: 0; transform: translateY(4px);
  transition:
    max-height 0.35s ease,
    opacity    0.3s ease 0.06s,
    transform  0.3s ease 0.06s,
    margin-top 0.3s ease;
}
.project-item:hover .proj-meta,
.project-item.open .proj-meta {
  max-height: 48px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 10px;
}
.proj-tag {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  background: rgba(85, 51, 255, 0.1); color: var(--purple);
  padding: 3px 7px; border-radius: 2px;
}
.proj-tag--multi { background: var(--lime-dim); color: #1A7A35; }
.proj-client {
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted-dark); opacity: 0.7;
}

/* Body: description (only when clicked/open) */
.proj-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.6s var(--ease);
}
.project-item.open .proj-body { max-height: 700px; }

.proj-desc {
  font-size: 14px; line-height: 1.78;
  color: var(--dark-text); opacity: 0.62;
  padding: 16px 0 12px;
  border-top: 1px solid rgba(85, 51, 255, 0.1);
  margin-top: 12px;
}

/* UGC 3-video grid (inside proj-body) */
.expand-videos {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; padding-bottom: 8px; margin-top: 16px;
}
.expand-vid { display: flex; flex-direction: column; }
.expand-yt-wrap {
  position: relative; width: 100%;
  padding-bottom: 177.78%; /* 9:16 shorts */
  background: #111; border-radius: 8px; overflow: hidden;
}
.expand-yt-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: none;
}
.expand-vid-label {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dark-text); opacity: 0.42;
  margin-top: 8px; text-align: center;
}

/* ---- CONTACT ---- */
.contact {
  position: relative; z-index: 1;
  background: var(--dark-bg);
  padding: 140px 48px; overflow: hidden;
}
.contact-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
.contact-inner {
  position: relative; z-index: 1;
  max-width: 700px; margin: 0 auto; text-align: center;
}
.contact-sub {
  font-size: 16px; font-weight: 300;
  color: var(--off-white); opacity: 0.5;
  margin-bottom: 56px; line-height: 1.7;
}
.contact-links { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.contact-item {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 32px;
  border: 1px solid rgba(85, 51, 255, 0.22);
  border-radius: 3px; width: 100%; max-width: 440px;
  font-size: 14px; color: var(--off-white); opacity: 0.75;
  transition: var(--transition); position: relative; overflow: hidden;
}
.contact-item::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(85,51,255,0.1) 0%, rgba(57,224,90,0.05) 100%);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.contact-item:hover { opacity: 1; border-color: var(--purple); transform: translateX(4px); }
.contact-item:hover::before { transform: scaleX(1); }
.contact-icon { color: var(--lime); flex-shrink: 0; }

/* ---- FOOTER ---- */
.footer {
  position: relative; z-index: 1;
  background: var(--dark-bg-2);
  border-top: 1px solid rgba(85, 51, 255, 0.15);
  padding: 48px 48px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo-wrap { display: flex; align-items: center; gap: 12px; }
.footer-logo-img  { width: 40px; height: 40px; object-fit: contain; border-radius: 50%; }
.footer-logo-text {
  font-family: var(--font-display); font-size: 16px;
  letter-spacing: 0.15em; color: var(--off-white); opacity: 0.4;
}
.footer-copy { font-size: 12px; color: var(--off-white); opacity: 0.18; letter-spacing: 0.05em; }

/* ---- Responsive ---- */
@media (max-width: 1050px) {
  .work-inner { grid-template-columns: 1fr; }
  .work-preview-panel { display: none; }
  .work-list-panel { padding: 80px 32px; border-left: none; }
}
@media (max-width: 900px) {
  .navbar { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .about-inner { grid-template-columns: 1fr; gap: 32px; }
  .services-grid { grid-template-columns: 1fr; }
  .about, .services, .contact { padding: 80px 24px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 600px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .contact-item { max-width: 100%; }
}
