:root {
  /* Option D: NLE Slate Grey (Not Black) */
  --bg: #1E2433;
  --card: #283044;
  --card-hover: #2E374E;
  --border: #3B4661;
  --ink: #F1F5F9;
  --muted: #94A3B8;
  --cyan: #38BDF8;
  --purple: #A78BFA;
  --mint: #34D399;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  background-image: radial-gradient(rgba(148, 163, 184, 0.16) 1px, transparent 1px);
  background-size: 26px 26px;
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.mono-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}

.mono-muted {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}

/* Premiere / AE Rendering Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #171C28;
  background-image: radial-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.render-top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.render-top-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transition: width 0.12s linear;
}

.render-window {
  width: 100%;
  max-width: 620px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.render-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: #202637;
  border-bottom: 1px solid var(--border);
}

.render-dots {
  display: flex;
  gap: 7px;
}
.render-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.render-dots span:first-child { background: #F87171; }
.render-dots span:nth-child(2) { background: #FBBF24; }
.render-dots span:last-child { background: var(--mint); }

.skip-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
}
.skip-btn:hover { color: var(--ink); border-color: var(--cyan); }

.render-body {
  padding: 28px;
}

.render-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.cyan-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.1em;
}

.mono-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.render-body h2 {
  font-size: 22px;
  margin-bottom: 18px;
}

.nle-timeline {
  position: relative;
  background: #1A202E;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}

.nle-track {
  display: flex;
  gap: 8px;
}

.clip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 6px 10px;
  border-radius: 5px;
  color: #0F172A;
  font-weight: 700;
  white-space: nowrap;
}
.clip.c1 { background: var(--cyan); width: 42%; }
.clip.c2 { background: #60A5FA; width: 55%; }
.clip.c3 { background: var(--purple); width: 58%; }
.clip.c4 { background: #C084FC; width: 39%; }
.clip.c5 { background: var(--mint); width: 48%; }
.clip.c6 { background: #2DD4BF; width: 49%; }

.nle-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0%;
  width: 2px;
  background: #FFFFFF;
  box-shadow: 0 0 10px var(--cyan);
  transition: left 0.12s linear;
}

/* Header */
.hud {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(30, 36, 51, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.scroll-playhead {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  pointer-events: none;
  z-index: 2;
}

.hud-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 17px;
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
}

.handle-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--cyan);
  text-decoration: none;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 999px;
  padding: 4px 12px;
  transition: background 0.15s ease;
}
.handle-pill:hover { background: rgba(56, 189, 248, 0.2); }

.nav {
  display: flex;
  gap: 28px;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav a:hover, .nav a.active { color: var(--ink); }

.sound-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}
.sound-btn:hover { border-color: var(--cyan); color: var(--cyan); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--cyan);
  color: #0F172A;
}
.btn-primary:hover { background: #67CEFA; }

.btn-secondary {
  background: var(--card);
  color: var(--ink);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--cyan); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  padding-top: 76px;
  padding-bottom: 84px;
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.08;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--cyan); }

.lead {
  font-size: 16.5px;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 32px;
}
.lead strong { color: var(--ink); }

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.reel-frame {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 14px;
  max-width: 310px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.reel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.reel-frame video {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  background: #141926;
  display: block;
  object-fit: cover;
}

/* Scrolling Brand Logos Marquee */
.brands-section {
  min-height: 68vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 0;
  border-top: 1px solid rgba(59, 70, 97, 0.5);
  border-bottom: 1px solid rgba(59, 70, 97, 0.5);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 12px;
}

.marquee-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  padding: 12px 28px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}
.marquee-wrap::-webkit-scrollbar { display: none; }

.marquee-track {
  display: flex;
  gap: 26px;
  width: max-content;
}

.brand-logo-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 240px;
  height: 150px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
  flex-shrink: 0;
}

.brand-logo-btn.static {
  cursor: default;
}
.brand-logo-btn.static:hover {
  transform: none;
  border-color: var(--border);
  background: var(--card);
}

.brand-logo-btn:hover {
  border-color: var(--cyan);
  background: var(--card-hover);
  transform: translateY(-4px);
}

.brand-logo-stage {
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-logo-stage svg {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.brand-wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-align: center;
}

.brand-logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.brand-logo-text strong { font-size: 14px; line-height: 1.2; }
.brand-logo-text span { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); margin-top: 2px; }

/* Work Section */
.work-section {
  padding-top: 88px;
  padding-bottom: 88px;
}

.work-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 38px;
  flex-wrap: wrap;
}
.work-header h2 { font-size: 34px; }

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-btn:hover { color: var(--ink); border-color: var(--cyan); }
.filter-btn.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #0F172A;
  font-weight: 700;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.video-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.video-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
}

.video-card.landscape {
  grid-column: span 2;
}

.thumb-wrap {
  position: relative;
  background: #141926;
  aspect-ratio: 9 / 16;
  overflow: hidden;
}

.video-card.landscape .thumb-wrap {
  aspect-ratio: 16 / 9;
}

.thumb-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-pill {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  background: rgba(30, 36, 51, 0.88);
  color: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: 999px;
  padding: 5px 12px;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-body h3 { font-size: 18px; line-height: 1.25; }
.card-body p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

.video-card.placeholder {
  border-style: dashed;
  background: rgba(40, 48, 68, 0.45);
  cursor: default;
}
.video-card.placeholder:hover {
  transform: none;
  border-color: var(--border);
}
.placeholder-stage {
  aspect-ratio: 9 / 16;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  background: rgba(20, 25, 38, 0.55);
}

/* Dedicated Short Film Section */
.narrative-section {
  padding-top: 12px;
  padding-bottom: 88px;
}
.narrative-card {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.narrative-card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
}
.narrative-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #141926;
}
.narrative-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.narrative-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.narrative-body h3 { font-size: 24px; }
.narrative-body p { font-size: 14.5px; color: var(--muted); }

@media (max-width: 920px) {
  .narrative-card { grid-template-columns: 1fr; }
}

/* Open Scroll-Reactive Journey Timeline */
.journey-section {
  padding-top: 40px;
  padding-bottom: 96px;
}
.journey-section h2 { font-size: 34px; margin-bottom: 36px; }

.journey-flow {
  position: relative;
  padding-left: 34px;
}

.journey-rail {
  position: absolute;
  left: 9px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.journey-rail-fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--cyan), var(--purple));
  transition: height 0.15s ease-out;
}

.journey-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.journey-item {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 30px;
  opacity: 0.35;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease, border-color 0.3s ease;
}

.journey-item.in-view {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(56, 189, 248, 0.45);
}

.journey-item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 30px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.journey-item.in-view::before {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

.journey-step {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 6px;
}

.journey-item h3 { font-size: 20px; margin-bottom: 8px; }
.journey-item p { font-size: 14.5px; color: var(--muted); max-width: 780px; }

/* Scroll-reveal flow for portfolio cards */
.reveal-card {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.18s ease;
}
.reveal-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* CTA Section */
.cta-section {
  padding-bottom: 84px;
}
.cta-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-card h2 { font-size: 26px; margin-bottom: 6px; }
.lead-sm { font-size: 15px; color: var(--muted); }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  padding-bottom: 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 32, 0.8);
  backdrop-filter: blur(6px);
}
.modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 780px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  border-radius: 18px;
  padding: 22px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.close-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}
.close-btn:hover { border-color: var(--cyan); color: var(--cyan); }

.modal-body {
  background: #141926;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  border: 1px solid var(--border);
}
.modal-body video {
  max-height: 66vh;
  max-width: 100%;
  width: auto;
  display: block;
}
.modal-foot {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.modal-foot p { font-size: 13.5px; color: var(--ink); margin-bottom: 4px; }
.modal-nav { display: flex; gap: 10px; }

/* Contact Page */
.contact-page {
  padding-top: 72px;
  padding-bottom: 96px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 32px;
}
.contact-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
}
.contact-panel h2 { font-size: 22px; margin-bottom: 12px; }
.link-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}
.contact-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.contact-link:hover { border-color: var(--cyan); transform: translateY(-2px); }
.contact-link-left {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 15px;
}
.contact-link-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--cyan);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}
.form-group label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--muted);
  text-transform: uppercase;
}
.form-group input, .form-group select, .form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
}

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .video-card.landscape { grid-column: span 2; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .nav { display: none; }
  .video-grid { grid-template-columns: 1fr; }
  .video-card.landscape { grid-column: span 1; }
}
