/* =====================================================================
   VIMOK FILMS — stylesheet
   Design language: academy-leader countdown motif, 35mm grain,
   near-black editorial cinema. See tokens below.
   ===================================================================== */

:root {
  /* ---- color ---- */
  --bg:            #0a0a09;
  --bg-raised:     #111110;
  --bg-raised-2:   #171614;
  --text:          #f2efe9;
  --text-muted:    #8f8b83;
  --text-faint:    #565349;
  --border:        rgba(242, 239, 233, 0.12);
  --border-soft:   rgba(242, 239, 233, 0.06);
  --accent:        #c1451f;   /* academy-leader safety orange */
  --accent-soft:   rgba(193, 69, 31, 0.35);

  /* ---- type ---- */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* ---- spacing ---- */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 3rem;
  --space-5: 5rem;
  --space-6: 8rem;

  --nav-h: 84px;
  --nav-h-scrolled: 60px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------------------------------------------------
   Reset
--------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

ul, ol { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, p { margin: 0; }

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.section { padding: var(--space-6) 0; }

@media (max-width: 700px) {
  .section { padding: var(--space-5) 0; }
  .container { padding: 0 var(--space-2); }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #0a0a09;
  padding: 0.75rem 1.25rem;
  z-index: 999;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.skip-link:focus { left: var(--space-2); top: var(--space-2); }

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

/* ---------------------------------------------------------------------
   Film grain overlay
--------------------------------------------------------------------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0.05;
  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");
  animation: grain-shift 1.1s steps(4) infinite;
}
@keyframes grain-shift {
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-2%, 1%); }
  50%  { transform: translate(1%, -2%); }
  75%  { transform: translate(-1%, -1%); }
  100% { transform: translate(0,0); }
}

/* ---------------------------------------------------------------------
   Custom cursor — academy-leader ring (desktop only, JS-enabled)
--------------------------------------------------------------------- */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 28px; height: 28px;
  border: 1px solid var(--accent-soft);
  border-radius: 50%;
  pointer-events: none;
  z-index: 400;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s var(--ease), width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s var(--ease);
  opacity: 0;
  will-change: transform;
}
.cursor-dot::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 3px; height: 3px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot.is-active { opacity: 1; }
.cursor-dot.is-hover {
  width: 64px; height: 64px;
  border-color: var(--accent);
}

/* ---------------------------------------------------------------------
   Navigation
--------------------------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: height 0.4s var(--ease), background-color 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-nav.is-scrolled {
  height: var(--nav-h-scrolled);
  background: rgba(10, 10, 9, 0.86);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--border-soft);
}

.nav-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: var(--space-4);
}

.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
  position: relative;
  padding: 0.25rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--text); }
.nav-links a:hover::after,
.nav-links a:focus-visible::after { width: 100%; }

.nav-toggle {
  display: none;
  width: 28px;
  height: 18px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.3s var(--ease), top 0.35s var(--ease);
}
.nav-toggle span:first-child { top: 0; }
.nav-toggle span:last-child { top: 100%; transform: translateY(-1px); }

.nav-toggle[aria-expanded="true"] span:first-child {
  top: 50%; transform: translateY(-50%) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:last-child {
  top: 50%; transform: translateY(-50%) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-3);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  z-index: 190;
}
.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: var(--space-2);
}

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

/* ---------------------------------------------------------------------
   Hero
--------------------------------------------------------------------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video,
.hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
}
.hero-fallback { z-index: 0; }
.hero-video { z-index: 1; }

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(10,10,9,0.55) 0%, rgba(10,10,9,0.25) 35%, rgba(10,10,9,0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 var(--space-3) var(--space-5);
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.5rem, 12vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
}

.hero-tags {
  margin-top: var(--space-3);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.hero-line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text);
  margin-top: var(--space-2);
}

.btn {
  display: inline-block;
  margin-top: var(--space-4);
  padding: 0.9rem 2rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}
.btn-outline {
  border: 1px solid var(--border);
  transition: border-color 0.35s var(--ease), background-color 0.35s var(--ease), color 0.35s var(--ease);
}
.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--accent);
  background: var(--accent);
  color: #0a0a09;
}

.hero-corner {
  position: absolute;
  z-index: 3;
  left: var(--space-3);
  bottom: var(--space-2);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  display: none;
}

.scroll-indicator {
  position: absolute;
  z-index: 3;
  right: var(--space-3);
  bottom: var(--space-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.scroll-line {
  width: 1px;
  height: 42px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0; right: 0;
  height: 100%;
  background: var(--accent);
  animation: scroll-run 2.4s var(--ease) infinite;
}
@keyframes scroll-run {
  0%   { top: -100%; }
  60%  { top: 100%; }
  100% { top: 100%; }
}
.scroll-text {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  writing-mode: vertical-rl;
}

@media (min-width: 900px) {
  .hero-corner { display: block; }
}

/* ---------------------------------------------------------------------
   Reveal-on-scroll
--------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.hero-title .reveal,
.hero-content .eyebrow.reveal { transition-delay: 0.05s; }

/* ---------------------------------------------------------------------
   Typography helpers
--------------------------------------------------------------------- */
.display-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
}

.section-head { margin-bottom: var(--space-4); }

/* ---------------------------------------------------------------------
   Introduction
--------------------------------------------------------------------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-4);
  align-items: start;
}
.intro-copy p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 42ch;
  margin-bottom: var(--space-2);
}
.intro-copy p:last-child { margin-bottom: 0; }

@media (max-width: 800px) {
  .intro-grid { grid-template-columns: 1fr; gap: var(--space-3); }
}

/* ---------------------------------------------------------------------
   Work / Portfolio
--------------------------------------------------------------------- */
.work-list {
  display: flex;
  flex-direction: column;
}

.work-item {
  border-top: 1px solid var(--border-soft);
}
.work-item:last-child { border-bottom: 1px solid var(--border-soft); }

.work-trigger {
  display: block;
  width: 100%;
  text-align: left;
  position: relative;
}

.work-media {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: var(--bg-raised);
}
.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.1s var(--ease), filter 0.6s var(--ease);
  filter: grayscale(35%) brightness(0.78);
}
.work-trigger:hover .work-media img,
.work-trigger:focus-visible .work-media img {
  transform: scale(1.08);
  filter: grayscale(0%) brightness(0.9);
}

.work-meta {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding: var(--space-3) 0;
}
.work-index {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.work-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.work-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  transition: color 0.3s var(--ease), letter-spacing 0.3s var(--ease);
}
.work-trigger:hover .work-title,
.work-trigger:focus-visible .work-title {
  color: var(--accent);
  letter-spacing: 0.01em;
}
.work-sub {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

@media (max-width: 700px) {
  .work-media { aspect-ratio: 4 / 5; }
}

/* ---------------------------------------------------------------------
   Project overlay
--------------------------------------------------------------------- */
.project-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(8, 8, 7, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.project-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.overlay-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 40px; height: 40px;
}
.overlay-close span {
  position: absolute;
  top: 50%; left: 50%;
  width: 22px; height: 1px;
  background: var(--text);
}
.overlay-close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.overlay-close span:last-child  { transform: translate(-50%, -50%) rotate(-45deg); }

.overlay-inner {
  max-width: 900px;
  width: 100%;
  text-align: center;
}
.overlay-index {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: var(--space-1);
}
.overlay-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
}
.overlay-sub {
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin-top: var(--space-1);
}
.overlay-media {
  margin-top: var(--space-4);
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-raised);
}
.overlay-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.overlay-note {
  margin-top: var(--space-3);
  color: var(--text-faint);
  font-size: 0.8rem;
  font-style: italic;
  font-family: var(--font-display);
}

/* ---------------------------------------------------------------------
   Showreel
--------------------------------------------------------------------- */
.showreel-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8.2;
  background: var(--bg-raised);
  margin-top: var(--space-3);
}
.showreel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.showreel-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 92px; height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.showreel-play.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.85);
}
.play-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(242,239,233,0.6);
  border-radius: 50%;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.showreel-play:hover .play-ring,
.showreel-play:focus-visible .play-ring {
  border-color: var(--accent);
  transform: scale(1.08);
}
.play-triangle {
  width: 0; height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 15px solid var(--text);
  margin-left: 4px;
}

/* ---------------------------------------------------------------------
   Services
--------------------------------------------------------------------- */
.services-list { margin-top: var(--space-4); }
.service-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border-soft);
  align-items: baseline;
}
.services-list .service-row:last-child { border-bottom: 1px solid var(--border-soft); }
.service-name {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  letter-spacing: 0.01em;
}
.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 46ch;
}
@media (max-width: 700px) {
  .service-row { grid-template-columns: 1fr; gap: var(--space-1); }
}

/* ---------------------------------------------------------------------
   About
--------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: center;
}
.about-media {
  aspect-ratio: 4 / 5;
  background: var(--bg-raised);
  overflow: hidden;
}
.about-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(20%); }
.about-copy p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 46ch;
  margin-top: var(--space-2);
}
.about-copy h2 { margin-bottom: var(--space-2); }

@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; }
}

/* ---------------------------------------------------------------------
   Crew
--------------------------------------------------------------------- */
.crew-list {
  margin-top: var(--space-4);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.crew-photo {
  aspect-ratio: 3/4;
  background: var(--bg-raised);
  background-size: cover;
  background-position: center;
  margin-bottom: var(--space-2);
  position: relative;
}
.placeholder-photo::after {
  content: "IMAGE";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  border: 1px solid var(--border-soft);
}
.crew-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.crew-role {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}

@media (max-width: 700px) {
  .crew-list { grid-template-columns: 1fr 1fr; }
  .crew-list .crew-item:last-child { grid-column: 1 / -1; max-width: 50%; }
}

/* ---------------------------------------------------------------------
   Process
--------------------------------------------------------------------- */
.process-list {
  margin-top: var(--space-4);
  border-top: 1px solid var(--border-soft);
}
.process-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border-soft);
}
.process-index {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 0.85rem;
  width: 2ch;
}
.process-name {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.9rem);
  letter-spacing: 0.02em;
}

/* ---------------------------------------------------------------------
   Contact
--------------------------------------------------------------------- */
.contact { text-align: center; }
.contact-text {
  color: var(--text-muted);
  margin-top: var(--space-3);
  font-size: 0.95rem;
}
.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  margin-top: var(--space-2);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.3rem;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.contact-email:hover,
.contact-email:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}
.contact-social {
  margin-top: var(--space-4);
  display: flex;
  justify-content: center;
  gap: var(--space-3);
}
.contact-social a {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
}
.contact-social a:hover,
.contact-social a:focus-visible { color: var(--accent); }

/* ---------------------------------------------------------------------
   Footer
--------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: var(--space-4) 0;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.footer-tagline {
  color: var(--text-faint);
  font-size: 0.78rem;
  margin-top: 0.4rem;
}
.footer-links {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.footer-links a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
}
.footer-links a:hover,
.footer-links a:focus-visible { color: var(--text); }
.footer-meta {
  text-align: right;
  font-size: 0.78rem;
  color: var(--text-faint);
}
.footer-note { margin-top: 0.4rem; font-style: italic; font-family: var(--font-display); }

@media (max-width: 700px) {
  .footer-grid { flex-direction: column; text-align: left; }
  .footer-meta { text-align: left; }
}

/* ---------------------------------------------------------------------
   Reduced motion
--------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; opacity: 0.035; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-line::after { animation: none; top: 0; height: 40%; }
  .work-media img { transition: none; }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Hide custom cursor on touch devices */
@media (hover: none), (pointer: coarse) {
  .cursor-dot { display: none; }
}
