/* ===== D.E. Visions LLC — cinematic site ===== */

:root {
  --bg: #0a0a0a;
  --bg-soft: #121212;
  --ink: #f2efe9;
  --muted: #948f86;
  --accent: #b8934f;
  --accent-soft: rgba(184, 147, 79, 0.14);
  --border: rgba(242, 239, 233, 0.12);
  --display: 'Space Grotesk', sans-serif;
  --body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.5;
  overflow-x: hidden;
  cursor: default;
}

img, video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.eyebrow {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

section { position: relative; padding: 8rem 6vw; }

@media (max-width: 780px) {
  section { padding: 5.5rem 6vw; }
}

/* ---- Intro splash ---- */
.intro-splash {
  position: fixed; inset: 0; z-index: 9999;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}
.intro-splash.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-mark { width: 80px; height: auto; opacity: 0; animation: introFade 1.1s var(--ease) forwards; }
@keyframes introFade {
  0% { opacity: 0; transform: scale(0.92); }
  60% { opacity: 1; transform: scale(1); }
  100% { opacity: 1; transform: scale(1); }
}

/* ---- Custom cursor ---- */
.cursor-dot {
  position: fixed; top: 0; left: 0; width: 10px; height: 10px;
  background: var(--accent); border-radius: 50%;
  pointer-events: none; z-index: 9998; mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s var(--ease);
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .cursor-dot { display: block; }
}
.cursor-dot.grow { width: 44px; height: 44px; background: rgba(242,239,233,0.9); }

/* ---- Nav ---- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 6vw;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(10,10,10,0.82);
  backdrop-filter: blur(14px);
  padding: 1rem 6vw;
  border-color: var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 0.65rem; font-family: var(--display); font-size: 0.85rem; letter-spacing: 0.12em; }
.nav-logo { width: 28px; height: auto; }
.nav-links { display: flex; gap: 2.4rem; }
.nav-links a {
  font-size: 0.82rem; letter-spacing: 0.04em; color: var(--muted);
  position: relative; transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px;
  background: var(--accent); transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-ig { color: var(--muted); transition: color 0.3s var(--ease); display: flex; }
.nav-ig:hover { color: var(--accent); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 22px; height: 1px; background: var(--ink); }

.mobile-menu {
  position: fixed; inset: 0; background: var(--bg); z-index: 480;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 1.8rem; padding: 6vw; transform: translateY(-100%); transition: transform 0.5s var(--ease);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a { font-family: var(--display); font-size: 2rem; }

@media (max-width: 780px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ---- Hero ---- */
.hero {
  height: 100dvh; padding: 0; display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.25) 35%, rgba(10,10,10,0.85) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 0 6vw 7rem; max-width: 900px; }
.hero-headline { font-size: clamp(2.6rem, 6.2vw, 5.4rem); margin-bottom: 1.4rem; }
.hero-sub { font-size: 1.05rem; color: rgba(242,239,233,0.82); max-width: 46ch; margin-bottom: 2.2rem; font-weight: 300; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; bottom: 2.4rem; right: 6vw; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  color: rgba(242,239,233,0.6); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.scroll-cue span {
  width: 1px; height: 40px; background: rgba(242,239,233,0.35); position: relative; overflow: hidden;
}
.scroll-cue span::after {
  content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--accent); animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 50% { top: 100%; } 100% { top: 100%; } 0% { top: -100%; } }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95rem 1.8rem; font-size: 0.82rem; letter-spacing: 0.04em;
  border-radius: 2px; transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn span { position: relative; }
.btn-primary { background: var(--accent); color: #0a0a0a; font-weight: 500; }
.btn-primary:hover { transform: translateY(-2px); background: #cba668; }
.btn-ghost { border: 1px solid rgba(242,239,233,0.35); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---- Mission ---- */
.mission { padding: 10rem 6vw; text-align: center; }
.mission-statement {
  font-family: var(--display); font-size: clamp(1.6rem, 4vw, 3rem);
  max-width: 1000px; margin: 0 auto; line-height: 1.25; color: var(--muted); font-weight: 500;
}
.mission-statement .accent, .mission-statement span { color: var(--muted); }
.reveal-word { color: var(--ink); opacity: 1; }

/* ---- Section head ---- */
.section-head { margin-bottom: 3.5rem; }
.section-head h2, .work h2, .services h2 { font-size: clamp(2rem, 4vw, 3.2rem); }

/* ---- Work grid ---- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
@media (max-width: 900px) { .work-grid { grid-template-columns: 1fr; } }

.work-card { position: relative; }
.work-media {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-soft);
  border: 1px solid var(--border);
}
.work-media video { width: 100%; height: 100%; object-fit: cover; }
.play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(10,10,10,0.55); border: 1px solid rgba(242,239,233,0.5);
  color: var(--ink); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.3s var(--ease), transform 0.3s var(--ease), opacity 0.3s var(--ease);
  backdrop-filter: blur(6px);
}
.play-btn:hover { background: var(--accent); border-color: var(--accent); color: #0a0a0a; }
.work-card.playing .play-btn { opacity: 0; pointer-events: none; }
.work-meta { display: flex; align-items: baseline; justify-content: space-between; margin-top: 1rem; }
.work-meta h3 { font-size: 1.1rem; }
.work-meta span { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---- About ---- */
.about {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 5rem; align-items: center;
}
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 2.5rem; } }
.about-media { overflow: hidden; border: 1px solid var(--border); }
.about-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.25); }
.about-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin-bottom: 1.6rem; }
.about-copy p { color: var(--muted); max-width: 52ch; margin-bottom: 1.1rem; }

/* ---- Services ---- */
.services-list { border-top: 1px solid var(--border); }
.service-row {
  display: grid; grid-template-columns: 80px 1fr 1.4fr; gap: 2rem; align-items: baseline;
  padding: 2.4rem 0; border-bottom: 1px solid var(--border);
  transition: padding-left 0.4s var(--ease);
}
.service-row:hover { padding-left: 0.6rem; }
.service-num { font-family: var(--display); color: var(--accent); font-size: 0.9rem; }
.service-row h3 { font-size: 1.3rem; }
.service-row p { color: var(--muted); max-width: 48ch; font-size: 0.92rem; }
@media (max-width: 780px) {
  .service-row { grid-template-columns: 1fr; gap: 0.6rem; }
}

/* ---- Contact ---- */
.contact { text-align: center; padding-bottom: 10rem; }
.contact h2 { font-size: clamp(2.4rem, 6vw, 4.4rem); margin-bottom: 2.4rem; }
.contact-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- Footer ---- */
.site-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2.4rem 6vw; border-top: 1px solid var(--border);
  font-size: 0.78rem; color: var(--muted);
}
.footer-logo { width: 24px; height: auto; opacity: 0.7; }
.site-footer a { transition: color 0.3s var(--ease); }
.site-footer a:hover { color: var(--accent); }
@media (max-width: 600px) {
  .site-footer { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ---- Reveal animation base state (GSAP controls the rest) ---- */
.reveal { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro-splash { display: none; }
  .cursor-dot { display: none !important; }
}
