/* ============================================================
   VIDEO PRODUCTION PAGE — Dustin Hill Productions
   Inherits global tokens from style.css
   Type system: SIZE 1 hero, SIZE 2 headings, SIZE 3 body, SIZE 4 labels
============================================================ */

/* ── IMAGE PLACEHOLDER ──────────────────────────────────── */
.img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(255,255,255,0.04);
  border: 1.5px dashed rgba(255,255,255,0.12);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
}
.img-placeholder span {
  font-size: 0.8125rem;
  font-weight: var(--fw-500);
  color: var(--c-text-muted);
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.6;
  max-width: 320px;
}
.img-placeholder--hero   { aspect-ratio: 4 / 3; }
.img-placeholder--feature { aspect-ratio: 4 / 3; }
.img-placeholder--storyboard { aspect-ratio: 4 / 3; }

/* ── HERO ────────────────────────────────────────────────── */
.vp-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%,  rgba(26,127,212,0.22) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 82% 50%,  rgba(74,163,245,0.10) 0%, transparent 55%),
    linear-gradient(180deg, #020d1c 0%, #010810 40%, #000 75%);
  overflow: hidden;
  padding-top: var(--nav-h);
}
.vp-hero-canvas {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0.35;
  pointer-events: none;
}
.vp-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 80% 50%, transparent, var(--c-black) 70%),
              linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 40%, transparent 60%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}
.vp-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
  align-items: center;
}
@media (min-width: 1024px) {
  .vp-hero-inner { grid-template-columns: 1fr 1fr; gap: var(--space-7); }
}

.vp-hero-heading {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem); /* SIZE 1 — Display */
  font-weight: var(--fw-700);
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-white);
  margin-bottom: var(--space-3);
}
.vp-hero-sub {
  font-size: 1.125rem; /* SIZE 3 — Body */
  color: var(--c-text-muted);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: var(--space-4);
}
.vp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ── STATS ───────────────────────────────────────────────── */
.vp-stats { padding: var(--space-6) 0; }
.vp-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4) var(--space-3);
}
@media (min-width: 768px)  { .vp-stats-grid { grid-template-columns: repeat(4, 1fr); } }

.vp-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 2px solid rgba(26,127,212,0.4);
  padding-left: var(--space-2);
}
.vp-stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--fw-700);
  line-height: 1;
  color: var(--c-white);
  letter-spacing: 0.02em;
}
.vp-stat-label {
  font-size: 0.875rem; /* SIZE 4 — Label */
  color: var(--c-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── OVERVIEW ────────────────────────────────────────────── */
.vp-overview-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
}
@media (min-width: 1024px) {
  .vp-overview-inner { grid-template-columns: 1fr 1fr; gap: var(--space-7); }
}
.vp-overview-body p {
  font-size: 1.125rem; /* SIZE 3 — Body */
  color: var(--c-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-2);
}
.vp-overview-body p:last-child { margin-bottom: 0; }

/* ── SECTION DNA CANVAS (shared by questions + capabilities) ─ */
.vp-dna-section {
  position: relative;
  overflow: hidden;
}
.vp-section-dna {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0.18;
  pointer-events: none;
}
/* Ensure section content sits above the canvas */
.vp-dna-section .container { position: relative; z-index: 1; }

/* ── BEFORE WE START — QUESTIONS GRID ───────────────────── */
.vp-questions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}
@media (min-width: 640px)  { .vp-questions-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .vp-questions-grid { grid-template-columns: repeat(3, 1fr); } }

.vp-question {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--c-dark);
  border: 1px solid var(--c-border);
  border-radius: 4px;
  padding: var(--space-3) var(--space-3);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.vp-question:hover {
  border-color: rgba(26,127,212,0.3);
  background: rgba(26,127,212,0.04);
}

/* Low-opacity accent blue number — matches the homepage's blue glow aesthetic */
.vp-question-num {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: var(--fw-700);
  color: rgba(74,163,245,0.35);
  line-height: 1;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  min-width: 2.2ch;
}

/* Question text — sleek, muted, keywords in white */
.vp-question-text {
  font-size: 1.125rem; /* SIZE 3 */
  color: var(--c-text-muted);
  line-height: 1.5;
}
.vp-question-text strong {
  color: var(--c-white);
  font-weight: var(--fw-700);
}

/* ── STORYBOARD CHECKLIST (inside process step) ──────────── */
.vp-storyboard-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: var(--space-2) 0;
}
.vp-storyboard-checklist li {
  font-size: 1.125rem; /* SIZE 3 */
  color: var(--c-text-muted);
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1.5;
}
.vp-storyboard-checklist li .hi {
  font-weight: var(--fw-700);
  flex-shrink: 0;
}

/* ── PROCESS ─────────────────────────────────────────────── */
.vp-process { background: var(--c-dark); }
.vp-process-sub {
  font-size: 1.125rem;
  margin-top: var(--space-2);
  line-height: 1.7;
}
.vp-process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Each step: stacked on mobile, 2-col (content | visual) on desktop */
.vp-step {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--c-border);
  align-items: center;
}
.vp-step:last-child { border-bottom: none; }

@media (min-width: 1024px) {
  /* Row 1: number only — image column is empty (dot = empty cell).
     Row 2: content and image side by side.
     Image top therefore aligns exactly with the tags row. */
  .vp-step {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "num     ."
      "content visual";
    column-gap: var(--space-6);
    row-gap: 0;
    align-items: start;
  }
  .vp-step-num     { grid-area: num; }
  .vp-step-content { grid-area: content; }
  .vp-step-visual  { grid-area: visual; }

  /* Flip: image left, number+content right */
  .vp-step--flip {
    grid-template-areas:
      ".       num"
      "visual  content";
  }
  /* Clear old order-based flip — grid-areas handle it now */
  .vp-step--flip .vp-step-content { order: unset; }
  .vp-step--flip .vp-step-visual  { order: unset; }
}

/* Step number — ghost dim, lives at top of content block */
.vp-step-num {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: var(--fw-900);
  color: rgba(255,255,255,0.06);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-1);
}

.vp-step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-2);
}
.step-tag {
  font-size: 0.75rem;
  font-weight: var(--fw-600);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--c-accent-hi);
  background: rgba(26,127,212,0.1);
  border: 1px solid rgba(26,127,212,0.2);
  padding: 3px 8px;
  border-radius: 2px;
  white-space: nowrap;
}
.vp-step-title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: var(--fw-700);
  color: var(--c-white);
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-2);
}
.vp-step-desc {
  font-size: 1.125rem;
  color: var(--c-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-2);
}
.vp-step-desc:last-of-type { margin-bottom: 0; }

/* Storyboard step — top-align so the landscape GIF sits flush at top alongside long copy */
.vp-step--featured { align-items: flex-start; }

/* Storyboard featured highlight */
.vp-step--featured .vp-step-content {
  background: rgba(26,127,212,0.04);
  border: 1px solid rgba(26,127,212,0.12);
  border-radius: 4px;
  padding: var(--space-4);
}

/* Storyboard GIF — constrain height, add subtle dark border so white sketch doesn't float */
.vp-step--featured .vp-step-img {
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.08);
  max-height: 420px;
  width: 100%;
  object-fit: cover;
  object-position: center;
}
.vp-step-callout {
  display: flex;
  align-items: flex-start;
  gap: var(--space-1);
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: rgba(26,127,212,0.08);
  border-left: 3px solid var(--c-accent);
  border-radius: 0 2px 2px 0;
}
.vp-step-callout svg { stroke: var(--c-accent-hi); flex-shrink: 0; margin-top: 2px; }
.vp-step-callout span {
  font-size: 1rem;
  font-weight: var(--fw-600);
  color: var(--c-accent-hi);
  line-height: 1.5;
}

/* ── HERO VISUAL — glow standard (matches 3D page) ──────── */
/* Applies to both real images and the placeholder while it's in use */
.vp-hero-visual .img-placeholder,
.vp-hero-img {
  box-shadow: 0 0 60px rgba(26,127,212,0.15), 0 24px 64px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
}

/* Visual side — image or placeholder */
.vp-step-visual { width: 100%; }
.vp-step-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

/* Stacked GIFs — two images stacked vertically with a small gap */
.vp-step-visual--stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Storyboard checklist */
.vp-storyboard-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: var(--space-2) 0;
}
.vp-storyboard-checklist li {
  font-size: 1.125rem;
  color: var(--c-text-muted);
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1.5;
}
.vp-storyboard-checklist li .hi { font-weight: var(--fw-700); flex-shrink: 0; }

/* ── MOBILE REORDER ──────────────────────────────────────────
   Below 1024px, image sits between heading and body copy.
   Desktop layout is untouched via grid-area scoping above. */
@media (max-width: 1023.98px) {
  /* Hero: heading → image → sub copy → actions */
  .vp-hero-content { display: contents; }
  .vp-hero-sub,
  .vp-hero-actions { order: 1; }

  /* Process steps: num → tags → title → image → body */
  .vp-step-content { display: contents; }
  .vp-step-visual { order: 1; }
  .vp-step-desc,
  .vp-storyboard-checklist,
  .vp-step-callout { order: 2; }

  /* Featured Step 02 stacked pair: keep first image on mobile */
  .vp-step-visual--stack .vp-step-img:nth-child(2) { display: none; }

  /* Tighter paragraph spacing in step body */
  .vp-step-desc { margin-bottom: var(--space-1); }

  /* Hero center alignment */
  .vp-hero-heading,
  .vp-hero-sub { text-align: center; }
  .vp-hero-sub { margin-left: auto; margin-right: auto; }
  .vp-hero-actions { justify-content: center; }

  /* Section headers center alignment */
  .section-header { text-align: center; }

  /* Section subtitles + feature copy center alignment */
  .vp-process-sub,
  .vp-sb-text,
  .vp-sb-body { text-align: center; }
  .vp-sb-body { margin-left: auto; margin-right: auto; }

  /* Center eyebrow (hero + section eyebrows) */
  .section-eyebrow { text-align: center; }

  /* Compress hero vertical space so CTAs sit above the fold.
     min-height: auto lets hero shrink to content — no dead space below CTAs
     on copy-light pages. Hero grows naturally if copy is longer. */
  .vp-hero { min-height: auto; align-items: flex-start; }
  .vp-hero-inner {
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
    gap: var(--space-2);
  }
  .vp-hero-heading,
  .vp-hero-sub { margin-bottom: 0; }

  /* Force 16:9 hero image, center-cropped */
  .vp-hero-img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
  }

  /* Storyboard feature section: image between heading and body on mobile */
  .vp-sb-text { display: contents; }
  .vp-sb-visual { order: 1; }
  .vp-sb-body,
  .vp-sb-text .btn { order: 2; }

  /* Tighten feature-section spacing on mobile (was var(--space-6) gap stacked
     on paragraph margins) */
  .vp-sb-inner { gap: var(--space-2); }
  .vp-sb-text .section-heading { margin-bottom: 0; }
  .vp-sb-body,
  .vp-sb-body:last-of-type { margin-bottom: 0; }
}

/* ── STORYBOARD FEATURE SECTION ─────────────────────────── */
.vp-storyboard-feature {
  position: relative;
  background: var(--c-black);
  overflow: hidden;
  padding: var(--space-6) 0;
}
@media (min-width: 1280px) { .vp-storyboard-feature { padding: var(--space-7) 0; } }
.vp-sb-canvas {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0.25;
  pointer-events: none;
}
.vp-sb-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
}
@media (min-width: 1024px) {
  .vp-sb-inner { grid-template-columns: 1fr 1fr; gap: var(--space-7); }
}
.vp-sb-body {
  font-size: 1.125rem; /* SIZE 3 */
  color: var(--c-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-2);
}
.vp-sb-body:last-of-type { margin-bottom: var(--space-4); }

/* ── CAPABILITIES GRID ───────────────────────────────────── */
.vp-cap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}
@media (min-width: 640px)  { .vp-cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .vp-cap-grid { grid-template-columns: repeat(3, 1fr); } }

/* Horizontal layout — icon left, title + desc right */
.vp-cap-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: var(--c-dark);
  border: 1px solid var(--c-border);
  border-radius: 4px;
  padding: var(--space-3);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.vp-cap-card:hover {
  border-color: rgba(26,127,212,0.3);
  background: rgba(26,127,212,0.04);
}
.vp-cap-icon {
  width: 46px;
  height: 46px;
  border-radius: 4px;
  background: rgba(26,127,212,0.08);
  border: 1px solid rgba(26,127,212,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vp-cap-icon svg { stroke: var(--c-accent-hi); }
.vp-cap-body { flex: 1; min-width: 0; }
.vp-cap-title {
  font-size: 1rem;
  font-weight: var(--fw-700);
  color: var(--c-white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
  line-height: 1.3;
}
.vp-cap-desc {
  font-size: 0.9375rem;
  color: var(--c-text-muted);
  line-height: 1.6;
}

/* ── CTA STRIP ───────────────────────────────────────────── */
.vp-cta { background: var(--c-dark); }
.vp-cta-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
@media (min-width: 1024px) {
  .vp-cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
  }
}
.vp-cta-text p.muted {
  font-size: 1.125rem; /* SIZE 3 */
  margin-top: var(--space-2);
}
.vp-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  flex-shrink: 0;
}

/* ── MOBILE SPACING + REORDER (LATE-CASCADE OVERRIDES) ─────────
   This block sits at end-of-file so it wins the cascade against
   feature/overview default rules defined further up in the file. */
@media (max-width: 1023.98px) {
  /* OVERVIEW — image between heading and body */
  .vp-overview-text { display: contents; }
  .vp-overview-body { order: 1; }
  .vp-overview-inner { gap: var(--space-2); }
  .vp-overview-body p { margin-bottom: var(--space-1); }
  .vp-overview-body p:last-child { margin-bottom: 0; }

  /* PROCESS STEPS — uniform 16px gap, zero per-element margins */
  .vp-step {
    gap: var(--space-2);
    padding: var(--space-3) 0;
  }
  .vp-step-num,
  .vp-step-tags,
  .vp-step-title,
  .vp-step-desc,
  .vp-step-desc:last-of-type,
  .vp-storyboard-checklist { margin-bottom: 0; }

  /* STORYBOARD FEATURE — late-cascade override */
  .vp-sb-inner { gap: var(--space-2); }
  .vp-sb-text .section-heading { margin-bottom: 0; }
  .vp-sb-body,
  .vp-sb-body:last-of-type { margin-bottom: 0; }
  .vp-storyboard-feature { padding: var(--space-4) 0; }
}
