@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital,wght@0,400;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #FFFFFF;
  --text-primary: #0B0404;
  --accent-red: #FC0B0B;
  --accent-red-hover: #D60909;
  --accent-red-light: rgba(252, 11, 11, 0.06);
  --text-muted: #555555;
  --text-light: #8E8E8E;
  --line-color: #EBEBEB;
  --bg-alt: #FAFAFA;
  
  --font-heading: 'Instrument Serif', serif;
  --font-body: 'Inter', sans-serif;
  
  --container-width: 1280px;
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-speed: 0.6s;
}

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

html {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Native smooth scroll momentum on iOS */
  -webkit-overflow-scrolling: touch;
}

body {
  margin: 0;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom Cinematic Cursor */
.custom-cursor {
  width: 8px;
  height: 8px;
  background-color: var(--accent-red);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000;
  transition: width 0.3s var(--ease-premium), height 0.3s var(--ease-premium), background-color 0.3s var(--ease-premium);
}

.custom-cursor-follower {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(252, 11, 11, 0.3);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.08s linear, width 0.3s var(--ease-premium), height 0.3s var(--ease-premium), border-color 0.3s var(--ease-premium), background-color 0.3s var(--ease-premium);
}

body.light-theme .custom-cursor-follower {
  border-color: rgba(252, 11, 11, 0.4);
}

/* Cursor States on Hover */
.cursor-hover-project {
  width: 90px;
  height: 90px;
  background-color: var(--accent-red);
  border-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cursor-hover-project::after {
  content: 'VIEW';
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.cursor-hover-play {
  width: 90px;
  height: 90px;
  background-color: var(--accent-red);
  border-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cursor-hover-play::after {
  content: 'PLAY';
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.cursor-hide {
  opacity: 0;
}

/* Cinematic Welcome Loader Animation */
.welcome-loader {
  position: fixed;
  inset: 0;
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  /* Use clip-path for a cinematic iris-close exit instead of a snap */
  clip-path: inset(0% 0% 0% 0%);
  transition:
    clip-path 1.6s cubic-bezier(0.77, 0, 0.175, 1),
    opacity 0.6s ease 1.2s;
}

.welcome-loader.hidden {
  clip-path: inset(0% 0% 100% 0%);
  opacity: 0;
  pointer-events: none;
}

.welcome-logo-container {
  overflow: hidden;
  text-align: center;
}

.welcome-text {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 10vw, 8rem);
  color: var(--text-primary);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  display: inline-block;
  opacity: 0;
  transform: translateY(50px) scale(0.9);
  filter: blur(10px);
  animation: welcomeFadeIn 1.5s var(--ease-premium) forwards;
}

.welcome-text span {
  color: var(--accent-red);
}

@keyframes welcomeFadeIn {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    filter: blur(10px);
    letter-spacing: 0.5em;
  }
  60% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
    letter-spacing: 0.15em;
  }
}

/* Video Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(11, 4, 4, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-premium);
}

/* Inner ring — lightest blur, closest to video */
.lightbox-modal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 50% 45% at center,
    transparent 0%,
    rgba(11, 4, 4, 0.1) 55%,
    rgba(11, 4, 4, 0.2) 100%
  );
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s var(--ease-premium) 0.05s;
}

/* Mid ring — medium blur */
.lightbox-modal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 75% 65% at center,
    transparent 0%,
    rgba(11, 4, 4, 0.2) 60%,
    rgba(11, 4, 4, 0.35) 100%
  );
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.7s var(--ease-premium) 0.12s;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-modal.active::before {
  opacity: 1;
}

.lightbox-modal.active::after {
  opacity: 1;
}

/* Lightbox hint text */
.lightbox-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.5s var(--ease-premium) 0.6s, transform 0.5s var(--ease-premium) 0.6s;
}

.lightbox-hint svg {
  opacity: 0.5;
  animation: hintPulse 2.5s ease-in-out infinite;
}

.lightbox-modal.active .lightbox-hint {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes hintPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 0.8; }
}

.lightbox-close {
  position: absolute;
  top: 2.5rem;
  right: 2.5rem;
  background: none;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  padding: 0.5rem;
  transition: transform 0.3s var(--ease-premium);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.lightbox-close:hover {
  transform: rotate(90deg) scale(1.1);
  color: var(--accent-red);
}

.lightbox-content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1080px;
  aspect-ratio: 16/9;
  background-color: #000;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 100px rgba(0,0,0,0.8);
  transform: scale(0.9);
  transition: transform 0.5s var(--ease-premium);
}

.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

.lightbox-video-frame {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

.lightbox-video-file {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: contain;
  display: none;
  background-color: #000;
}

/* Video Click/Play Overlay Layer to prevent pointer event capture by child video/iframe */
.video-overlay-trigger {
  position: absolute;
  inset: 0;
  background-color: transparent;
  z-index: 10;
  cursor: pointer;
}

/* ─── Bottom-of-Viewport Blur Gradient ─────────────────────────── */
/* A fixed frosted gradient at the bottom edge adds depth and luxury */
body::after {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  pointer-events: none;
  z-index: 9000;
  /* Feather mask using CSS mask so only the very bottom blurs */
  -webkit-mask-image: linear-gradient(to top, black 0%, transparent 100%);
  mask-image: linear-gradient(to top, black 0%, transparent 100%);
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-red) 0%, #A00808 100%);
  width: 0%;
  z-index: 1001;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(252, 11, 11, 0.4);
}

/* Navigation bar */
.header {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: calc(var(--container-width) - 2rem);
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 100px;
  transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.header--scrolled {
  background-color: rgba(255, 255, 255, 0.7);
  border-color: rgba(235, 235, 235, 0.4);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.04);
}

.nav-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 400;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-red);
  border-radius: 50%;
  display: inline-block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item a {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--accent-red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-premium);
}

.nav-item a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  background-color: var(--text-primary);
  color: #FFFFFF !important;
  padding: 0.8rem 1.6rem !important;
  border-radius: 100px;
  transition: background-color 0.5s ease, transform 0.5s ease !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: linear-gradient(135deg, #FC0B0B 0%, #E80A0A 20%, #D00909 40%, #B80808 60%, #9A0606 80%, #7A0404 100%) !important;
  background-clip: padding-box !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1010;
}

.nav-toggle-line {
  display: block;
  width: 24px;
  height: 1.5px;
  background-color: var(--text-primary);
  margin: 6px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Page sweeps transitions container */
.page-transition-overlay {
  position: fixed;
  inset: 0;
  background-color: #FFFFFF;
  z-index: 99999;
  /* Initial state: hidden below viewport via clip-path */
  clip-path: inset(0% 0% 0% 0%);
  pointer-events: none;
  will-change: clip-path;
}

/* Headings & Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.95;
  color: var(--text-primary);
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
}

h3 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

p {
  margin: 0 0 1rem 0;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-red);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--accent-red);
  border-radius: 50%;
}

.text-editorial {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Layout Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section-padding {
  padding: 8rem 0;
}

.section-padding-large {
  padding: 12rem 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.2rem 2.8rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.5s var(--ease-premium), box-shadow 0.5s var(--ease-premium), background-color 0.5s ease, color 0.5s ease;
  border: 1px solid transparent;
}

.btn--primary {
  background: linear-gradient(135deg, #FC0B0B 0%, #E80A0A 20%, #D00909 40%, #B80808 60%, #9A0606 80%, #7A0404 100%);
  background-clip: padding-box;
  border: 1px solid transparent;
  color: #FFFFFF;
}

.btn--primary:hover {
  background: linear-gradient(135deg, #D60909 0%, #C00808 20%, #A80707 40%, #900606 60%, #740505 80%, #5C0303 100%);
  background-clip: padding-box;
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(252, 11, 11, 0.3), 0 0 0 1px rgba(252, 11, 11, 0.1);
}

.btn--outline {
  background-color: transparent;
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.btn--outline:hover {
  background-color: var(--text-primary);
  color: #FFFFFF;
}

/* Hero CTA — sticky on scroll */
.hero-cta.is-sticky {
  position: fixed;
  bottom: 2rem;
  left: 0;
  right: 0;
  width: fit-content;
  margin: 0 auto;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(252, 11, 11, 0.35), 0 0 0 1px rgba(252, 11, 11, 0.1);
  transition: box-shadow 0.5s var(--ease-premium), opacity 0.4s ease;
}

.hero-cta.is-sticky:hover {
  box-shadow: 0 12px 40px rgba(252, 11, 11, 0.5), 0 0 0 1px rgba(252, 11, 11, 0.2);
}

.btn--back {
  padding: 0.5rem 1.2rem;
  font-size: 0.75rem;
  margin-bottom: 2rem;
}

.btn--white {
  background-color: #FFFFFF;
  color: var(--text-primary);
}

.btn--white:hover {
  background-color: var(--text-primary);
  color: #FFFFFF;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.5s var(--ease-premium);
}

.btn:hover .btn-arrow {
  transform: translateX(6px);
}

/* Magnetic Button helper */
.magnetic-wrap {
  display: inline-block;
  position: relative;
}

/* Reveal on Scroll styling */
.reveal-fade {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-premium), transform 1s var(--ease-premium);
}

.reveal-fade.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-blur {
  opacity: 0;
  filter: blur(15px);
  transform: translateY(20px);
  transition: opacity 1.2s var(--ease-premium), filter 1.2s var(--ease-premium), transform 1.2s var(--ease-premium);
}

.reveal-blur.is-revealed {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-premium), transform 0.8s var(--ease-premium);
}

.reveal-stagger.is-revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* Specific stagger delays */
.reveal-stagger.is-revealed > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-revealed > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.is-revealed > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.is-revealed > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.is-revealed > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.is-revealed > *:nth-child(6) { transition-delay: 0.55s; }


/* HOMEPAGE SPECIFIC SECTIONS */

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #000;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0.65;
  pointer-events: none;
  filter: grayscale(20%);
}

.hero-video-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 aspect ratio */
  min-height: 100vh;
  min-width: 177.77vh; /* 16:9 aspect ratio */
  transform: translate(-50%, -50%);
  border: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11, 4, 4, 0.4) 0%, rgba(11, 4, 4, 0.1) 50%, rgba(11, 4, 4, 0.7) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #FFFFFF;
  max-width: 860px;
  padding: 0 2rem;
}

.hero-content h1 {
  color: #FFFFFF;
  margin-bottom: 2rem;
}

.hero-content h1 span.italic-font {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 300;
}

.hero-content p {
  font-size: 1.15rem;
  font-weight: 300;
  max-width: 580px;
  margin: 0 auto 3rem auto;
  opacity: 0.9;
  letter-spacing: 0.02em;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

.hero-scroll-indicator:hover {
  opacity: 1;
}

.hero-scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
}

.scroll-indicator-line {
  width: 1px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.scroll-indicator-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background-color: var(--accent-red);
  animation: scrollLineAnim 2s infinite ease-in-out;
}

@keyframes scrollLineAnim {
  0% { transform: translateY(-100%); }
  80% { transform: translateY(200%); }
  100% { transform: translateY(200%); }
}

/* Featured Work Section */
.featured-work-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 5rem;
}

.featured-work-grid {
  display: flex;
  flex-direction: column;
  gap: 8rem;
}

.project-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 5rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.project-card:nth-child(even) {
  grid-template-columns: 0.8fr 1.2fr;
}

.project-card:nth-child(even) .project-media-wrap {
  order: 2;
}

.project-media-wrap {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 4px;
  overflow: hidden;
  background-color: #FAFAFA;
}

/* Project Badge — frosted pill */
.project-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 15;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem 0.45rem 0.7rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.12),
    0 1px 4px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.5s var(--ease-premium), transform 0.5s var(--ease-premium);
  pointer-events: none;
  white-space: nowrap;
}

.project-card:hover .project-badge {
  opacity: 1;
  transform: translateY(0);
}

.project-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-red);
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(252, 11, 11, 0.6), 0 0 12px rgba(252, 11, 11, 0.3);
  animation: badgeDotPulse 2s ease-in-out infinite;
}

@keyframes badgeDotPulse {
  0%, 100% { box-shadow: 0 0 6px rgba(252, 11, 11, 0.6), 0 0 12px rgba(252, 11, 11, 0.3); }
  50% { box-shadow: 0 0 8px rgba(252, 11, 11, 0.8), 0 0 18px rgba(252, 11, 11, 0.4); }
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-premium);
}

.project-video-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.project-card:hover .project-image {
  transform: scale(1.03);
}

.project-card:hover .project-video-preview {
  opacity: 1;
}

/* Play icon on the video overlay trigger */
.video-overlay-trigger::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 4, 4, 0);
  transition: background 0.4s ease;
  z-index: 1;
}

.video-overlay-trigger::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FF5555 0%, #FF3333 15%, #FC0B0B 35%, #D00909 55%, #A00808 75%, #7A0404 100%);
  overflow: hidden;
  /* CSS triangle pointing right for play */
  clip-path: none;
  box-shadow: 0 0 0 8px rgba(255,255,255,0.15), 0 4px 20px rgba(122, 4, 4, 0.4);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s var(--ease-premium);
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 36px;
}

.video-overlay-trigger:hover::before {
  background: rgba(11, 4, 4, 0.2);
}

.video-overlay-trigger:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.project-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.project-num {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 2rem;
  color: var(--accent-red);
  margin-bottom: 1.5rem;
}

.project-info h3 {
  margin-bottom: 1.5rem;
  font-size: 2.8rem;
}

.project-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 420px;
}

.project-meta {
  display: flex;
  gap: 1.5rem;
}

.project-meta-item {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-light);
  border: 1px solid var(--line-color);
  padding: 0.4rem 1rem;
  border-radius: 50px;
}

/* Why Gleam Section */
.why-gleam {
  background-color: var(--bg-alt);
}

.why-grid {
  margin-top: 5rem;
}

.why-card {
  padding: 3rem;
  background-color: #FFFFFF;
  border: 1px solid rgba(235, 235, 235, 0.5);
  border-radius: 4px;
  transition: transform 0.4s var(--ease-premium), box-shadow 0.4s var(--ease-premium);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
}

.why-icon {
  width: 48px;
  height: 48px;
  color: var(--accent-red);
  margin-bottom: 2rem;
}

.why-card h4 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Client Logos Marquee */
.clients-marquee {
  padding: 4rem 0;
  border-top: 1px solid var(--line-color);
  border-bottom: 1px solid var(--line-color);
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-block;
  animation: marqueeAnim 25s linear infinite;
}

.marquee-track span {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--text-light);
  margin: 0 4rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.marquee-track span.logo-highlight {
  color: var(--text-primary);
}

.marquee-track span.logo-bullet {
  color: var(--accent-red);
  margin: 0;
}

@keyframes marqueeAnim {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Work Gallery Ticker ──────────────────────────────────────── */
.work-gallery {
  padding: 6rem 0 0 0;
  overflow: hidden;
}

.work-gallery__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.work-gallery__hint {
  font-size: 0.8rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.gallery-ticker {
  position: relative;
  width: 100%;
  overflow: hidden;
  cursor: grab;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.gallery-ticker:active {
  cursor: grabbing;
}

.gallery-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  will-change: transform;
}

.work-gallery .gallery-item {
  position: relative;
  flex-shrink: 0;
  width: 340px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background-color: #0B0404;
  text-decoration: none;
  display: block;
  transition: transform 0.5s var(--ease-premium), box-shadow 0.5s var(--ease-premium);
}

.work-gallery .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.work-gallery .gallery-item:hover img {
  transform: scale(1.05);
}

.work-gallery .gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 4, 4, 0.7) 0%, rgba(11, 4, 4, 0) 50%);
  display: flex;
  align-items: flex-end;
  padding: 1.2rem 1.4rem;
  opacity: 1;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.work-gallery .gallery-item__title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: #FFFFFF;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Play icon on hover */
.work-gallery .gallery-item::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FF5555 0%, #FF3333 15%, #FC0B0B 35%, #D00909 55%, #A00808 75%, #7A0404 100%);
  box-shadow: 0 0 0 6px rgba(255,255,255,0.12), 0 4px 16px rgba(122, 4, 4, 0.4);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s var(--ease-premium);
  z-index: 3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 28px;
  pointer-events: none;
}

.work-gallery .gallery-item:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.work-gallery .gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Process Section */
.process-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  margin-top: 5rem;
  position: relative;
}

.process-list::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--line-color);
  z-index: 1;
}

.process-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.process-number {
  width: 3rem;
  height: 3rem;
  background-color: #FFFFFF;
  border: 1px solid var(--line-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
  transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.process-step:hover .process-number {
  border-color: var(--accent-red);
  background-color: var(--accent-red);
  color: #FFFFFF;
}

.process-step h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.process-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Testimonials */
.testimonials {
  background-color: #FFFFFF;
}

.testimonials-slider {
  max-width: 860px;
  margin: 5rem auto 0 auto;
  text-align: center;
}

.testimonial-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 3rem;
  letter-spacing: -0.01em;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

/* Final CTA Section */
.final-cta {
  background-color: var(--text-primary);
  color: #FFFFFF;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: 'GLEAM';
  position: absolute;
  bottom: -4rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: clamp(8rem, 20vw, 18rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.02);
  line-height: 0.8;
  letter-spacing: -0.02em;
  pointer-events: none;
  user-select: none;
}

.final-cta-content {
  position: relative;
  z-index: 10;
  max-width: 720px;
  margin: 0 auto;
}

.final-cta h2 {
  color: #FFFFFF;
  margin-bottom: 2rem;
}

.final-cta p {
  font-size: 1.1rem;
  font-weight: 300;
  opacity: 0.8;
  margin-bottom: 3.5rem;
}

/* Stats / Results Section */
.stats-section {
  background-color: var(--bg-alt);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-card {
  text-align: center;
  padding: 3rem 2rem;
  background-color: #FFFFFF;
  border: 1px solid rgba(235, 235, 235, 0.5);
  border-radius: 4px;
  transition: transform 0.5s var(--ease-premium), box-shadow 0.5s var(--ease-premium);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  opacity: 0;
  transform: translateY(20px);
}

.stat-card.is-revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--ease-premium), transform 0.6s var(--ease-premium), box-shadow 0.5s var(--ease-premium);
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1;
  color: var(--accent-red);
  margin-bottom: 1rem;
}

.stat-plus {
  font-size: 0.6em;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.stat-context {
  font-size: 0.75rem;
  color: var(--text-light);
}


/* PORTFOLIO PAGE SPECIFIC */
.portfolio-intro {
  padding-top: 10rem;
  margin-bottom: 4rem;
}

.portfolio-intro h1 {
  margin-bottom: 1.5rem;
}

.portfolio-intro p {
  max-width: 600px;
  color: var(--text-muted);
}

.portfolio-filters-wrap {
  border-bottom: 1px solid var(--line-color);
  padding-bottom: 1.5rem;
  margin-bottom: 4rem;
}

.portfolio-filter-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  min-width: 100px;
}

.filter-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: none;
  border: 1px solid var(--line-color);
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-muted);
}

.filter-btn:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.filter-btn.active {
  background-color: var(--accent-red);
  border-color: var(--accent-red);
  color: #FFFFFF;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
}

.portfolio-grid .project-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.portfolio-grid .project-media-wrap {
  width: 100%;
}

.portfolio-grid .project-info h3 {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.portfolio-grid .project-desc {
  margin-bottom: 1.5rem;
  max-width: 100%;
}


/* APPLICATION FORM PAGE (apply.html) */
.apply-page-layout {
  padding-top: 10rem;
  padding-bottom: 8rem;
}

.apply-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 6rem;
  align-items: start;
}

.apply-sidebar h1 {
  margin-bottom: 2rem;
}

.apply-sidebar p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 3rem;
}

.apply-contact-details {
  border-top: 1px solid var(--line-color);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.apply-contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.apply-contact-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
}

.apply-contact-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.apply-contact-value:hover {
  color: var(--accent-red);
}

/* Premium Form Styles */
.apply-form-container {
  background-color: #FFFFFF;
  border: 1px solid var(--line-color);
  padding: 4rem;
  border-radius: 4px;
}

.form-group {
  position: relative;
  margin-bottom: 2.2rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 1.2rem 1rem 0.5rem 1rem;
  border: 1px solid var(--line-color);
  background-color: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
  pointer-events: none;
  transition: transform 0.2s var(--ease-premium), font-size 0.2s var(--ease-premium), color 0.2s var(--ease-premium);
  transform-origin: left top;
}

/* Float Label Animation */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label,
.form-textarea:focus ~ .form-label,
.form-textarea:not(:placeholder-shown) ~ .form-label,
.form-select:focus ~ .form-label,
.form-select.has-value ~ .form-label {
  transform: translateY(-0.8rem) scale(0.75);
  color: var(--accent-red);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(252, 11, 11, 0.08);
}

/* Field error state for checkbox/radio groups */
.field-error .budget-option-label,
.field-error .service-checkbox-label {
  border-color: var(--accent-red) !important;
}

/* Budget Custom Selector */
.budget-selector-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: block;
}

.budget-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.budget-option {
  position: relative;
}

.budget-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.budget-option-label {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-color);
  padding: 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.budget-option:hover .budget-option-label {
  border-color: var(--text-primary);
}

.budget-option input[type="radio"]:checked + .budget-option-label {
  background-color: var(--text-primary);
  border-color: var(--text-primary);
  color: #FFFFFF;
}

/* Form Success State */
.form-success-message {
  text-align: center;
  padding: 4rem 2rem;
}

.success-icon-wrap {
  width: 80px;
  height: 80px;
  background-color: var(--accent-red-light);
  color: var(--accent-red);
  border-radius: 50%;
  margin: 0 auto 2rem auto;
  font-size: 2rem;
}


/* EDITORIAL CASE STUDY PAGES */
.case-hero {
  padding-top: 10rem;
  padding-bottom: 5rem;
}

.case-hero-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--line-color);
  padding-top: 2rem;
  flex-wrap: wrap;
}

.case-meta-block {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.case-meta-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
}

.case-meta-value {
  font-size: 0.9rem;
  font-weight: 500;
}

.case-banner-video-wrap {
  width: 100%;
  aspect-ratio: 21/9;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8rem;
  background-color: #000000;
}

.case-banner-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-editorial-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 8rem;
  margin-bottom: 8rem;
}

.case-editorial-sidebar h2 {
  font-size: 3rem;
  line-height: 1.1;
  position: sticky;
  top: 8rem;
}

.case-editorial-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.case-editorial-content p:first-of-type {
  font-size: 1.25rem;
  color: var(--text-primary);
  font-weight: 400;
}

/* Results section */
.case-results-section {
  background-color: var(--bg-alt);
}

.results-display-grid {
  margin-top: 4rem;
}

.result-card {
  text-align: center;
  padding: 3rem 2rem;
  background-color: #FFFFFF;
  border: 1px solid rgba(235, 235, 235, 0.5);
  border-radius: 4px;
}

.result-number {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: 1;
  color: var(--accent-red);
  margin-bottom: 1rem;
}

.result-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.result-context {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

/* Videos / Galleries */
.case-media-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-bottom: 8rem;
}

.case-media-item {
  aspect-ratio: 16/9;
  border-radius: 4px;
  overflow: hidden;
  background-color: #000;
  position: relative;
  cursor: pointer;
}

.case-media-item video, .case-media-item iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

.case-media-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 4, 4, 0);
  transition: background 0.4s ease;
  z-index: 1;
  border-radius: inherit;
}

.case-media-item::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FF5555 0%, #FF3333 15%, #FC0B0B 35%, #D00909 55%, #A00808 75%, #7A0404 100%);
  box-shadow: 0 0 0 8px rgba(255,255,255,0.15), 0 4px 20px rgba(122, 4, 4, 0.4);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s var(--ease-premium);
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 36px;
}

.case-media-item:hover::before {
  background: rgba(11, 4, 4, 0.2);
}

.case-media-item:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.case-gallery-section h2 {
  margin-bottom: 4rem;
}

.case-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-premium);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Related Projects */
.related-projects-section {
  border-top: 1px solid var(--line-color);
}

.related-grid {
  margin-top: 4rem;
}


/* FOOTER */
.footer {
  background-color: #FFFFFF;
  border-top: none;
  padding: 6rem 0 3rem 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--line-color) 20%,
    var(--accent-red) 50%,
    var(--line-color) 80%,
    transparent 100%
  );
  opacity: 0.4;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 5rem;
}

.footer-brand h3 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 320px;
  font-size: 0.9rem;
}

.footer-column h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-red);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line-color);
  padding-top: 3rem;
  font-size: 0.8rem;
  color: var(--text-light);
}

.footer-bg-text {
  position: absolute;
  bottom: -4rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: clamp(8rem, 25vw, 24rem);
  font-weight: 700;
  color: rgba(11, 4, 4, 0.015);
  line-height: 0.8;
  letter-spacing: -0.02em;
  pointer-events: none;
  user-select: none;
  width: 100%;
  text-align: center;
}


/* ─── Micro Interactions ─────────────────────────────────────────── */

/* Subtle grain texture overlay for luxury feel */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9001;
  opacity: 0.4;
  mix-blend-mode: multiply;
}

@media (max-width: 773px) {
  body::before {
    opacity: 0.2;
  }
}

/* Nav link hover glow */
.nav-item a {
  transition: color 0.4s var(--ease-premium), text-shadow 0.4s var(--ease-premium);
}

.nav-item a:hover {
  text-shadow: 0 0 20px rgba(252, 11, 11, 0.15);
}

/* Project card image — subtle zoom + blur vignette on hover */
.project-media-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(11, 4, 4, 0.12) 100%);
  opacity: 0;
  transition: opacity 0.6s var(--ease-premium);
  z-index: 5;
  pointer-events: none;
  border-radius: 4px;
}

.project-card:hover .project-media-wrap::after {
  opacity: 1;
}

/* Why Gleam card — subtle red border glow on hover */
.why-card {
  transition: transform 0.5s var(--ease-premium), box-shadow 0.5s var(--ease-premium), border-color 0.5s var(--ease-premium);
}

.why-card:hover {
  border-color: rgba(252, 11, 11, 0.2);
}

/* Stat card — number scale pulse on reveal */
.stat-card.is-revealed .stat-number {
  animation: statPulse 0.8s var(--ease-premium) forwards;
}

@keyframes statPulse {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

/* Footer links — subtle underline slide on hover */
.footer-links a {
  position: relative;
  padding-bottom: 2px;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--accent-red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-premium);
}

.footer-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Eyebrow dot pulse */
.eyebrow::before {
  animation: dotPulse 2.5s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* Case study media items — subtle scale + brightness on hover */
.case-media-item {
  transition: transform 0.6s var(--ease-premium), box-shadow 0.6s var(--ease-premium);
}

.case-media-item:hover {
  transform: scale(1.01);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Gallery items — enhanced hover with blur vignette */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(11, 4, 4, 0.2) 100%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-premium);
  pointer-events: none;
  border-radius: 4px;
}

.gallery-item {
  position: relative;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Filter buttons — subtle scale on hover */
.filter-btn {
  transition: all 0.4s var(--ease-premium), transform 0.3s var(--ease-premium);
}

.filter-btn:hover {
  transform: translateY(-1px);
}

.filter-btn:active {
  transform: translateY(0) scale(0.97);
}

/* Budget option labels — subtle lift on hover */
.budget-option-label {
  transition: all 0.4s var(--ease-premium), transform 0.3s var(--ease-premium);
}

.budget-option:hover .budget-option-label {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}



/* Hero scroll indicator — subtle bounce */
.hero-scroll-indicator {
  animation: scrollBounce 2.5s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}


/* Mobile nav close button — hidden on desktop */
.nav-close {
  display: none;
}

/* ─── Mobile Nav Bottom Sheet Animations ──────────────────────────── */
@keyframes sheetSlideUp {
  0% { transform: translateY(100%); }
  100% { transform: translateY(0); }
}

@keyframes sheetSlideDown {
  0% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ─── Process Timeline (Dark Section) ──────────────────────────────── */
.process-section--dark {
  background-color: var(--text-primary);
  color: #FFFFFF;
}

.process-section--dark .eyebrow {
  color: rgba(255, 255, 255, 0.5);
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 2rem;
  left: 2rem;
  right: 2rem;
  height: 1px;
  background: linear-gradient(to right, rgba(255,255,255,0.08), rgba(255,255,255,0.15), rgba(255,255,255,0.08));
}

.process-node {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

.process-node__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2rem;
  flex-shrink: 0;
}

.process-node__icon--red {
  border-color: transparent;
  background: linear-gradient(135deg, #FC0B0B 0%, #E80A0A 20%, #D00909 40%, #B80808 60%, #9A0606 80%, #7A0404 100%);
  background-clip: padding-box;
  border: 1px solid transparent;
  color: #FFFFFF;
  box-shadow: 0 0 24px rgba(252, 11, 11, 0.3);
}

.process-node__connector {
  display: none;
}

.process-node__label {
  display: flex;
  flex-direction: column;
}

.process-node__num {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 0.75rem;
}

.process-node__label h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
}

.process-node__label p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  margin: 0;
}

/* RESPONSIVE MEDIA QUERIES */

/* Case study reels grid (used with inline styles that need override) */
.case-reels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2rem;
}

/* ─── 1024px — Tablet Landscape ──────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .grid-2 { gap: 3rem; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

  .process-timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
  .process-timeline::before { display: none; }

  .apply-grid { grid-template-columns: 1fr; gap: 4rem; }
  .case-editorial-grid { grid-template-columns: 1fr; gap: 4rem; }
  .case-editorial-sidebar h2 { position: static; }

  .results-display-grid { grid-template-columns: repeat(2, 1fr) !important; }

  .portfolio-filter-row { gap: 1rem; }
  .filter-label { min-width: auto; }

  .case-reels-grid { grid-template-columns: repeat(2, 1fr); }
  .case-media-showcase { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ─── 768px — Tablet Portrait / Large Phone ──────────────────────── */
@media (max-width: 773px) {
  /* Nav — keep pill shape, move to bottom for thumb reach */
  .header {
    top: auto;
    bottom: 3rem;
    left: 50%;
    transform: none !important;
    width: 180px;
    max-width: 180px;
    margin-left: -90px;
    padding: 0 0.5rem;
    z-index: 9500;
  }
  .nav-container { padding: 0.65rem 1.25rem; }
  .logo { font-size: 1.35rem; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  nav[aria-label="Primary Navigation"] {
    position: static;
    pointer-events: none;
  }
  .nav-links.mobile-open {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    height: auto !important;
    max-height: 85vh;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: none;
    border-radius: 24px 24px 0 0;
    padding: 1.5rem 2rem 3rem;
    gap: 0;
    z-index: 9600 !important;
    overflow-y: auto;
    animation: sheetSlideUp 0.45s var(--ease-premium) forwards;
    pointer-events: auto;
  }
  .nav-links.closing {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    height: auto !important;
    max-height: 85vh;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: none;
    border-radius: 24px 24px 0 0;
    padding: 1.5rem 2rem 3rem;
    gap: 0;
    z-index: 9600 !important;
    overflow-y: auto;
    animation: sheetSlideDown 0.35s var(--ease-premium) forwards;
    pointer-events: none;
  }
  .nav-close {
    display: block;
    align-self: flex-start;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
    line-height: 1;
  }
  .nav-close:hover {
    color: var(--accent-red);
  }
  .nav-links.mobile-open .nav-item {
    border-bottom: 1px solid var(--line-color);
  }
  .nav-links.mobile-open .nav-item:last-child {
    border-bottom: none;
    margin-top: 0.5rem;
  }
  .nav-links.mobile-open .nav-item a {
    font-size: 1.6rem;
    font-family: var(--font-heading);
    text-transform: none;
    padding: 1rem 0;
    display: block;
    width: 100%;
  }
  .nav-links.mobile-open .nav-cta {
    text-align: center;
    border-radius: 100px;
    margin-top: 0.5rem;
  }

  /* Spacing */
  .section-padding { padding: 5rem 0; }
  .section-padding-large { padding: 8rem 0; }
  .container { padding: 0 1.5rem; }

  /* Hero */
  .hero-content { padding: 0 1.25rem; }
  .hero-content p { font-size: 1rem; }
  .hero-scroll-indicator { bottom: 2rem; }

  /* Grids */
  .grid-2 { grid-template-columns: 1fr; gap: 2.5rem; }
  .grid-3 { grid-template-columns: 1fr; gap: 2rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .stat-card { padding: 2rem 1.25rem; }

  /* Featured work */
  .featured-work-header { flex-direction: column; align-items: flex-start; gap: 2rem; }
  .featured-work-grid { gap: 5rem; }
  .project-card { grid-template-columns: 1fr !important; gap: 2.5rem; }
  .project-card:nth-child(even) .project-media-wrap { order: 0; }
  .project-info h3 { font-size: 2.2rem; }

  /* Process timeline → vertical stack */
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-left: 1rem;
  }
  .process-timeline::before { display: none; }
  .process-section--dark .container > .reveal-fade { margin-bottom: 3rem !important; }

  /* Portfolio */
  .portfolio-intro { padding-top: 8rem; }
  .portfolio-grid { grid-template-columns: 1fr; gap: 3rem; }
  .portfolio-filter-row { gap: 0.75rem; }

  /* Apply page */
  .apply-page-layout { padding-top: 8rem; }
  .apply-form-container { padding: 2.5rem 1.5rem; }
  .form-group-row { grid-template-columns: 1fr; gap: 0; }
  .budget-options { grid-template-columns: 1fr; gap: 0.75rem; }
  .services-checkbox-grid { grid-template-columns: 1fr; }

  /* Case studies */
  .case-hero { padding-top: 8rem; padding-bottom: 3rem; }
  .case-hero-meta { gap: 1.5rem; }
  .case-banner-video-wrap { aspect-ratio: 16/9; margin-bottom: 4rem; }
  .case-editorial-sidebar h2 { font-size: 2.2rem; }
  .case-media-showcase { grid-template-columns: 1fr !important; }
  .case-gallery-grid { grid-template-columns: 1fr; }
  .results-display-grid { grid-template-columns: 1fr 1fr !important; }
  .result-card { padding: 2rem 1.25rem; }

  /* Reels (Index.html inline + case studies) */
  .reels-grid { grid-template-columns: 1fr; gap: 2rem; }
  .case-reels-grid { grid-template-columns: 1fr; gap: 2rem; }

  /* Work Gallery */
  .work-gallery__header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .work-gallery .gallery-item { width: 280px; }

  /* Sticky CTA */
  .hero-cta.is-sticky { bottom: 5.5rem; }

  /* Footer */
  .footer { padding: 4rem 0 2rem 0; }
  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 3rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }

  /* Bottom blur */
  body::after { height: 120px; }

  /* Hide custom cursor */
  .custom-cursor, .custom-cursor-follower { display: none !important; }
}

/* ─── 480px — Small Phone ────────────────────────────────────────── */
@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .section-padding { padding: 4rem 0; }
  .section-padding-large { padding: 6rem 0; }

  h1 { font-size: clamp(2.2rem, 9vw, 3.5rem); }
  h2 { font-size: clamp(1.8rem, 7vw, 2.5rem); }
  h3 { font-size: clamp(1.4rem, 5vw, 2rem); }

  .hero-content h1 { font-size: clamp(2.2rem, 9vw, 3.5rem); }
  .hero-content p { font-size: 0.9rem; margin-bottom: 2rem; }

  .btn { padding: 1rem 2rem; font-size: 0.8rem; }
  .nav-cta { padding: 0.6rem 1.2rem !important; }

  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { padding: 1.75rem 1rem; }
  .stat-number { font-size: clamp(2.5rem, 8vw, 3.5rem); }

  .project-info h3 { font-size: 1.8rem; }
  .project-num { font-size: 1.5rem; }
  .featured-work-grid { gap: 4rem; }

  .process-timeline { padding-left: 0; }
  .process-node__icon { width: 48px; height: 48px; }
  .process-node__icon svg { width: 22px; height: 22px; }

  .portfolio-intro { padding-top: 7rem; }
  .filter-buttons { gap: 0.5rem; }
  .filter-btn { padding: 0.4rem 0.9rem; font-size: 0.7rem; }

  .apply-page-layout { padding-top: 7rem; }
  .apply-form-container { padding: 2rem 1.25rem; }
  .apply-contact-value { font-size: 1.2rem; }

  .case-hero { padding-top: 7rem; }
  .case-editorial-sidebar h2 { font-size: 1.8rem; }
  .case-editorial-content p { font-size: 0.95rem; }
  .case-hero-meta { gap: 1rem; }
  .results-display-grid { grid-template-columns: 1fr !important; }
  .result-number { font-size: clamp(2.5rem, 8vw, 3.5rem); }

  .why-card { padding: 2rem; }

  .final-cta h2 { font-size: clamp(1.8rem, 7vw, 2.5rem); }
  .final-cta p { font-size: 0.95rem; }

  .marquee-track span { font-size: 1.5rem; margin: 0 2rem; }

  .work-gallery .gallery-item { width: 240px; }

  .footer { padding: 3rem 0 1.5rem 0; }
  .footer-brand h3 { font-size: 1.6rem; }
  .footer-brand p { font-size: 0.85rem; }

  body::after { height: 80px; }
}

/* Accessibility Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .reveal-fade, .reveal-blur, .reveal-stagger > *, .custom-cursor, .custom-cursor-follower, .page-transition-overlay {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  
  .marquee-track {
    animation-play-state: paused !important;
  }

  .gallery-track {
    animation: none !important;
  }
}
