/* ===================================
   SHOWSTORY — Visual Production Studio
   Main Stylesheet v2
   =================================== */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: #0e0e0e;
  color: #1a1a1a;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* --- CSS VARIABLES --- */
:root {
  --gold: #C5A55A;
  --gold-light: #d4b96e;
  --bg-dark: #0e0e0e;
  --bg-section: #141414;
  --bg-card: #1a1a1a;
  --bg-lighter: #1f1f1f;
  --bg-white: #ffffff;
  --bg-cream: #f7f5f0;
  --text-dark: #1a1a1a;
  --text-dark-secondary: #4a4a4a;
  --text-primary: #f0efe9;
  --text-secondary: #a8a8a0;
  --text-muted: #6b6b65;
  --border: #2a2a2a;
  --border-light: #e5e3de;
  --max-width: 1280px;
  --section-pad: clamp(60px, 8vw, 120px);
  --side-pad: clamp(20px, 5vw, 80px);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.15rem; }
.gold { color: var(--gold); }
.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- LAYOUT --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--side-pad);
}
.section { padding: var(--section-pad) 0; }
.section-dark { background: var(--bg-section); color: var(--text-primary); }
.section-white { background: var(--bg-white); color: var(--text-dark); }
.section-cream { background: var(--bg-cream); color: var(--text-dark); }
.section-white p, .section-cream p { color: var(--text-dark-secondary); }

/* --- NAVIGATION (1. transparent from start, 90% on scroll) --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  background: rgba(14,14,14,0.10);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background var(--transition), padding var(--transition);
}
.nav.scrolled {
  background: rgba(14,14,14,0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: white;
}
.nav-logo span { color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: color 0.3s;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: white; }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.5) !important;
  color: white !important;
  padding: 8px 24px;
  border-radius: 100px;
  font-size: 0.85rem !important;
  transition: all 0.3s !important;
  cursor: pointer;
}
.nav-cta:hover {
  background: white !important;
  color: var(--bg-dark) !important;
  border-color: white !important;
}
.nav-cta::after { display: none !important; }
.nav-socials {
  display: flex;
  gap: 12px;
  align-items: center;
}
.nav-socials a {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.3s;
}
.nav-socials a:hover { color: white; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: white;
  transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- HERO (2. video bg, 3. centered text) --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  color: white;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120vw;
  height: 120vh;
  min-width: 120%;
  min-height: 120%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}
.about-home-video-embed { background: transparent; }
.about-home-video-embed .video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
}
.about-home-video-embed .video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14,14,14,0.3) 0%,
    rgba(14,14,14,0.5) 50%,
    rgba(14,14,14,0.95) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1 {
  max-width: 800px;
  margin-bottom: 20px;
  color: white;
}
.hero h1 .gold { font-style: italic; }
.hero-sub {
  max-width: 620px;
  margin-bottom: 12px;
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}
.hero-target {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 32px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--text-primary);
  color: var(--bg-dark);
}
.btn-primary:hover {
  background: var(--gold);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--bg-dark);
  color: white;
}
.btn-dark:hover {
  background: #333;
  transform: translateY(-2px);
}

/* --- LOGO BAR (4. white bg, scrolling ticker) --- */
.logo-bar {
  padding: 20px 0 24px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}
.logo-bar-label {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.logo-bar-label span { color: var(--gold); }
.logo-ticker-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.logo-ticker {
  display: flex;
  align-items: center;
  gap: 64px;
  animation: ticker 30s linear infinite;
  width: max-content;
}
.logo-ticker img {
  height: 40px;
  width: auto;
  opacity: 0.6;
  object-fit: contain;
  filter: grayscale(1);
  transition: all 0.3s;
  flex-shrink: 0;
}
.logo-ticker img:hover {
  opacity: 1;
  filter: grayscale(0);
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- ABOUT SECTION (5. white bg) --- */
.about-home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.about-home-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.about-home-media img {
  width: 100%;
  border-radius: var(--radius);
}
.about-home-media .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid rgba(255,255,255,0.4);
}
.about-home-media .play-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translate(-50%, -50%) scale(1.1);
}
.about-home-media .play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 16px solid white;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}
.about-points {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 28px;
}
.about-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.about-point-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold);
  font-size: 0.7rem;
}
.about-point h4 { margin-bottom: 4px; color: var(--text-dark); }
.about-point p { font-size: 0.9rem; color: var(--text-dark-secondary); }

/* --- SERVICES GRID (6. 4 columns, text under images) --- */
.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}
.services-header-text { max-width: 380px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.service-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.service-card:hover .service-card-img img {
  transform: scale(1.05);
}
.service-card-text {
  padding: 16px 4px 8px;
}
.service-card-text h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--gold);
}
.service-card-text p {
  font-size: 0.82rem;
  line-height: 1.5;
}

/* --- STATS (7. cream bg, compact) --- */
.stats-section {
  padding: clamp(40px, 5vw, 70px) 0;
  background: var(--bg-cream);
  color: var(--text-dark);
}
.stats-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 40px;
  align-items: center;
}
.stats-text h2 {
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
}
.stats-text p { color: var(--text-dark-secondary); }
.stat-item .stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-dark);
}
.stat-item .stat-number .plus { color: var(--gold); }
.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-dark-secondary);
  margin-top: 4px;
}

/* --- PORTFOLIO GRID (8. white bg, hover darkens 40%, bigger text) --- */
.portfolio-header {
  text-align: center;
  margin-bottom: 48px;
}
.portfolio-header p { max-width: 500px; margin: 12px auto 0; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: pointer;
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s, filter 0.4s;
}
.project-card:hover img {
  transform: scale(1.05);
  filter: brightness(0.6);
}
.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.05) 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
}
.project-card .project-cat {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 8px;
}
.project-card h3 {
  font-size: 1.55rem;
  color: white;
  margin-bottom: 6px;
}
.project-card .project-tags {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
}

/* Brand color overlays */
.project-card[data-brand="oriens"] .project-card-overlay { background: linear-gradient(to top, rgba(10,25,50,0.9) 0%, rgba(10,25,50,0.1) 50%); }
.project-card[data-brand="noble"] .project-card-overlay { background: linear-gradient(to top, rgba(50,35,15,0.9) 0%, rgba(50,35,15,0.1) 50%); }
.project-card[data-brand="bistro"] .project-card-overlay { background: linear-gradient(to top, rgba(30,30,35,0.9) 0%, rgba(30,30,35,0.1) 50%); }
.project-card[data-brand="microdelta"] .project-card-overlay { background: linear-gradient(to top, rgba(15,45,50,0.9) 0%, rgba(15,45,50,0.1) 50%); }
.project-card[data-brand="thrive"] .project-card-overlay { background: linear-gradient(to top, rgba(15,35,25,0.9) 0%, rgba(15,35,25,0.1) 50%); }
.project-card[data-brand="barnfather"] .project-card-overlay { background: linear-gradient(to top, rgba(30,20,15,0.9) 0%, rgba(30,20,15,0.1) 50%); }

/* --- TESTIMONIALS (9. keep dark) --- */
.testimonials { background: var(--bg-section); color: var(--text-primary); }
.testimonials-header { text-align: center; margin-bottom: 48px; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
}
.testimonial-stars {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author-info .name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}
.testimonial-author-info .role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- CONTACT (10. white bg) --- */
.contact-section { background: var(--bg-white); color: var(--text-dark); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-info { padding-top: 20px; }
.contact-info h2 {
  margin-bottom: 16px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}
.contact-info p { color: var(--text-dark-secondary); }
.contact-detail { margin-top: 28px; }
.contact-detail .detail-item { margin-bottom: 20px; }
.contact-detail .detail-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.contact-detail .detail-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}
.contact-detail .detail-value {
  font-size: 0.95rem;
  color: var(--text-dark-secondary);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form input,
.contact-form textarea {
  background: var(--bg-cream);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.95rem;
  color: var(--text-dark);
  font-family: inherit;
  transition: border-color 0.3s;
  width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #999; }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .btn { align-self: stretch; justify-content: center; }

/* --- FOOTER (11. only LinkedIn, Facebook, YouTube) --- */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-dark);
  color: var(--text-primary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .nav-logo {
  margin-bottom: 8px;
  display: inline-block;
}
.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-col-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col-title::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}
.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--text-primary); }
.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.footer-socials a:hover { background: var(--gold); }
.footer-socials a svg { width: 16px; height: 16px; fill: var(--text-secondary); }
.footer-socials a:hover svg { fill: var(--bg-dark); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- SCROLL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- LIGHTBOX --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.95);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 90vh; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .nav-links { display: none; }
  .nav-socials { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(14,14,14,0.98);
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 1000;
  }
  .nav-links.open a { font-size: 1.3rem; color: white; }
  .about-home { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-text { grid-column: 1 / -1; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .logo-bar .container { flex-direction: column; align-items: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ===================================
   CASE STUDY PAGES
   =================================== */
.case-hero {
  padding: 140px 0 40px;
  background: var(--bg-dark);
  color: white;
}
.case-hero .eyebrow { color: var(--gold); }
.case-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 8px; }
.case-hero .case-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.case-hero .case-tag {
  font-size: 0.75rem;
  padding: 4px 14px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  color: rgba(255,255,255,0.7);
}
.case-hero-img {
  margin-top: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 500px;
}
.case-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Brief & Our Work */
.case-brief {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.case-brief-img { border-radius: var(--radius); overflow: hidden; }
.case-brief-img img { width: 100%; border-radius: var(--radius); }
.case-brief h2 { margin-bottom: 12px; }
.case-brief p { margin-bottom: 12px; }
.case-brief .case-url {
  font-size: 0.85rem;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 16px;
}

/* Films Section */
.case-films { background: var(--bg-section); color: var(--text-primary); }
.case-films h2 { margin-bottom: 32px; }
.films-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.film-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}
.film-item .video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}
.film-item .video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.film-item .film-label {
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Gallery Section */
.case-gallery h2 { margin-bottom: 32px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.3s, filter 0.3s;
}
.gallery-grid img:hover {
  transform: scale(1.03);
  filter: brightness(0.85);
}

/* 360 Section */
.case-360 { background: var(--bg-dark); color: white; }
.case-360 h2 { margin-bottom: 24px; }
.case-360-frame {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}
.case-360-frame iframe {
  width: 100%;
  height: 500px;
  border: none;
}

/* Other Projects */
.other-projects h3 { margin-bottom: 24px; }
.other-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Case Testimonial */
.case-testimonial {
  background: var(--bg-section);
  color: var(--text-primary);
}
.case-testimonial blockquote {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.8;
}
.case-testimonial .testi-author {
  text-align: center;
  margin-top: 20px;
}
.case-testimonial .testi-name {
  font-weight: 600;
  color: var(--text-primary);
}
.case-testimonial .testi-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Case CTA */
.case-cta {
  text-align: center;
  background: var(--gold);
  color: var(--bg-dark);
  padding: 60px 0;
}
.case-cta h2 { color: var(--bg-dark); margin-bottom: 16px; }

/* Case nav */
.case-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--border-light);
  font-size: 0.9rem;
}
.case-nav a { color: var(--text-dark-secondary); transition: color 0.3s; }
.case-nav a:hover { color: var(--gold); }
.case-nav .all-work { font-weight: 600; color: var(--text-dark); }

@media (max-width: 992px) {
  .case-brief { grid-template-columns: 1fr; }
  .films-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .other-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* === YOUTUBE CLICK-TO-PLAY === */
.yt-thumb {
  position: relative;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #000;
}
.yt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s, filter 0.3s;
}
.yt-thumb:hover img {
  transform: scale(1.05);
  filter: brightness(0.7);
}
.yt-thumb .yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  background: rgba(255,0,0,0.85);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s;
}
.yt-thumb:hover .yt-play {
  background: rgba(255,0,0,1);
  transform: translate(-50%, -50%) scale(1.1);
}
.yt-thumb .yt-play::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 18px solid white;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 4px;
}

/* Hero video fallback - thumbnail */
.hero-bg-thumb {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(14,14,14,0.3) 0%, rgba(14,14,14,0.5) 50%, rgba(14,14,14,0.95) 100%);
}

/* Testimonial carousel */
.testimonials-carousel {
  position: relative;
  overflow: hidden;
}
.testimonials-track {
  display: flex;
  transition: transform 0.5s ease;
}
.testimonials-track .testimonial-card {
  min-width: calc(50% - 14px);
  margin-right: 28px;
  flex-shrink: 0;
}
.testi-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.testi-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.3s;
}
.testi-dot.active { background: var(--gold); }

/* Website showcase section */
.case-website {
  background: var(--bg-cream);
  color: var(--text-dark);
}
.case-website h2 { margin-bottom: 16px; }
.case-website .website-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 28px;
  background: var(--gold);
  color: var(--bg-dark);
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
}
.case-website .website-link:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}
.case-website-preview {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  margin-top: 32px;
}
.case-website-preview img {
  width: 100%;
}

/* === VIDEO MODAL (plays on page, not YouTube) === */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.95);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.video-modal.active { display: flex; }
.video-modal-inner {
  width: 90%;
  max-width: 960px;
  aspect-ratio: 16/9;
  position: relative;
  cursor: default;
}
.video-modal-inner iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius);
}
.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero video background - YouTube API */
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-video-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120vw;
  height: 120vh;
  min-width: 120%;
  min-height: 120%;
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none;
}
.hero-video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(14,14,14,0.4) 0%, rgba(14,14,14,0.55) 50%, rgba(14,14,14,0.95) 100%);
  z-index: 1;
}

/* === VIDEO MODAL v2 (robust, with nav arrows) === */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.video-modal.active { display: flex; }
.video-modal-inner {
  width: 100%;
  max-width: 900px;
  position: relative;
}
.video-modal-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}
.video-modal-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: background 0.3s;
  z-index: 2;
}
.video-modal-close:hover { background: rgba(255,255,255,0.25); }
.video-modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 2;
  color: white;
  font-size: 1.4rem;
  border: none;
}
.video-modal-arrow:hover { background: var(--gold); color: var(--bg-dark); }
.video-modal-arrow.prev { left: -64px; }
.video-modal-arrow.next { right: -64px; }
.video-modal-arrow.hidden { display: none; }
.video-modal-label {
  text-align: center;
  color: white;
  margin-top: 16px;
  font-size: 0.9rem;
  opacity: 0.8;
}

@media (max-width: 992px) {
  .video-modal-arrow.prev { left: 8px; }
  .video-modal-arrow.next { right: 8px; }
  .video-modal-arrow {
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
  }
  .video-modal-close { top: -40px; }
}

/* === COMPREHENSIVE MOBILE FIXES === */
@media (max-width: 768px) {
  /* Hero mobile */
  .hero { min-height: 90vh; text-align: center; }
  .hero h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .hero-sub { font-size: 0.9rem; }
  .hero-video-bg iframe {
    width: 300vw;
    height: 300vh;
  }

  /* Testimonial carousel - one card per view on mobile */
  .testimonials-track .testimonial-card {
    min-width: calc(100% - 0px);
    margin-right: 0;
  }

  /* Case study mobile */
  .case-hero { padding: 120px 0 30px; }
  .case-hero h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .case-hero-img { max-height: 300px; margin-top: 24px; }
  .films-grid { grid-template-columns: 1fr; gap: 16px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* Services detail mobile */
  .svc-detail { padding: 40px 0; gap: 24px; }

  /* Stats mobile */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .stat-item .stat-number { font-size: 2.2rem; }

  /* Logo ticker mobile */
  .logo-ticker img { height: 32px; }
  .logo-bar-label { font-size: 1.3rem; }

  /* Section padding mobile */
  .section { padding: 50px 0; }

  /* Contact form mobile */
  .contact-grid { gap: 32px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 20px; }
  .stat-item { text-align: center; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .btn { padding: 12px 24px; font-size: 0.85rem; }
  .case-tags { justify-content: flex-start; }
}

/* === TESTIMONIAL SLIDER v2 (two columns, fade transition) === */
.testi-slider { position: relative; }
.testi-slide {
  display: none;
  animation: testiFadeIn 0.6s ease;
}
.testi-slide.active { display: block; }
@keyframes testiFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.testi-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 36px 32px;
  border: 1px solid var(--border);
}
.testimonial-card-empty {
  background: transparent;
  border: none;
}
.testimonial-stars {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 20px;
  letter-spacing: 2px;
}
.testimonial-card blockquote {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author-info .name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}
.testimonial-author-info .role {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.testi-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}
.testi-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.testi-dot.active {
  background: var(--gold);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .testi-pair { grid-template-columns: 1fr; }
  .testimonial-card { padding: 28px 24px; }
  .testimonial-card-empty { display: none; }
}

/* === TESTIMONIAL TICKER v3 (two visible, slide one at a time) === */
.testi-ticker-wrap {
  overflow: hidden;
  position: relative;
}
.testi-ticker-track {
  display: flex;
  gap: 28px;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  align-items: stretch;
}
.testi-ticker-track .testimonial-card {
  min-width: calc(50% - 14px);
  max-width: calc(50% - 14px);
  flex-shrink: 0;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 36px 32px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.testi-ticker-track .testimonial-card blockquote {
  flex: 1;
  overflow: visible;
}
@media (max-width: 768px) {
  .testi-ticker-track .testimonial-card {
    min-width: 100%;
    max-width: 100%;
    padding: 28px 24px;
  }
}

/* 360 mobile fix */
@media (max-width: 768px) {
  .case-360-frame iframe { height: 300px; }
  .case-360 div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}
