/* ==========================================================================
   SREERAG RAJEEVAN — CINEMATIC PORTFOLIO DESIGN SYSTEM
   Dark Burgundy Palette, Outlined Rounded Frames, Vivid Red Accents
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400&family=Permanent+Marker&family=Rock+Salt&display=swap');

:root {
  --bg-dark: #12040A;
  --bg-darker: #0c0206;
  --bg-frame: rgba(22, 6, 12, 0.45);
  --bg-card: rgba(28, 8, 16, 0.6);
  --bg-card-hover: rgba(38, 10, 20, 0.8);
  --accent-red: #E5261F;
  --accent-red-glow: rgba(229, 38, 31, 0.35);
  --accent-red-subtle: rgba(229, 38, 31, 0.12);
  --border-light: rgba(255, 255, 255, 0.14);
  --border-hover: rgba(255, 255, 255, 0.3);
  --border-active: #E5261F;
  --text-white: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.68);
  --text-dim: rgba(255, 255, 255, 0.45);
  --radius-frame: 44px;
  --radius-card: 26px;
  --radius-pill: 9999px;
  --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-logo: 'Permanent Marker', 'Rock Salt', cursive;
  --container-max: 1380px;
}

/* Base & Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: var(--font-main);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 50% 10%, rgba(180, 20, 30, 0.15) 0%, transparent 60%),
              radial-gradient(circle at 80% 50%, rgba(140, 15, 25, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(160, 18, 28, 0.12) 0%, transparent 60%),
              var(--bg-dark);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Subtle Film Grain & Vignette Overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(10, 2, 5, 0.8) 100%);
  pointer-events: none;
  z-index: 999;
}

/* Sleek Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
  background: rgba(229, 38, 31, 0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-red);
}

/* ==========================================================================
   NAVBAR (Fixed Glassmorphic Bar)
   ========================================================================== */
.cinematic-nav-wrap {
  position: fixed;
  top: 24px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 1000;
  padding: 0 24px;
  pointer-events: none;
}

.cinematic-nav {
  position: relative;
  pointer-events: auto;
  max-width: var(--container-max);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  background: rgba(18, 4, 10, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
}

.cinematic-nav.scrolled {
  background: rgba(14, 3, 8, 0.9);
  border-color: rgba(229, 38, 31, 0.25);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(229, 38, 31, 0.1);
}

.nav-logo {
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.nav-logo:hover {
  color: var(--accent-red);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.2s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-white);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-red);
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}

.nav-icon-btn:hover {
  border-color: var(--accent-red);
  background: rgba(229, 38, 31, 0.15);
  color: var(--accent-red);
  transform: translateY(-2px);
  box-shadow: 0 0 15px var(--accent-red-glow);
}

.nav-icon-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Mobile Menu Toggle Button (Visible on Tablets & Phones) */
.mobile-menu-toggle {
  display: none;
}

.mobile-menu-toggle svg {
  stroke: currentColor;
  fill: none;
}

/* Mobile Navigation Drawer (Dropdown from Fixed Nav) */
.mobile-nav-drawer {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 100%;
  background: rgba(16, 3, 9, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(229, 38, 31, 0.4);
  border-radius: 24px;
  padding: 18px 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(229, 38, 31, 0.2);
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px) scale(0.98);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1001;
}

.mobile-nav-drawer.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  margin: 0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  background: rgba(229, 38, 31, 0.14);
  color: #ffffff;
  border-color: rgba(229, 38, 31, 0.35);
  transform: translateX(4px);
}

.mobile-drawer-bottom {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}

.cinematic-backdrop-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(229, 38, 31, 0.05) 0%, rgba(18, 4, 10, 0.45) 60%, rgba(10, 2, 6, 0.88) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   FRAME CONTAINER (Outlined Rounded Cinematic Sections)
   ========================================================================== */
.main-wrapper {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.cinematic-frame {
  position: relative;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-frame);
  background: rgba(18, 4, 10, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 64px 54px;
  margin-bottom: 72px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s ease;
}

.cinematic-frame:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   SECTION 1: HERO OPENING EXPERIENCE WITH SCROLL ANIMATION
   ========================================================================== */
.hero-scroll-track {
  position: relative;
  z-index: 2;
  height: 200vh; /* Controlled scroll track: completes animation to last frame */
  width: 100%;
}

.hero-sticky-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.hero-frame-container {
  position: relative;
  width: 100%;
  max-width: var(--container-max);
  height: calc(100vh - 48px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-frame);
  background: rgba(18, 4, 10, 0.15); /* Transparent glass showing full background canvas */
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 0 60px rgba(255, 255, 255, 0.02);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 80px 54px 36px 54px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hero Content Layer */
.hero-content-grid {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  pointer-events: none;
}

.hero-badge-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-red);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(229, 38, 31, 0.35);
  background: rgba(229, 38, 31, 0.08);
}

.hero-intro-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 20px;
  pointer-events: auto;
}

.hero-intro-text {
  max-width: 440px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 400;
}

/* Big Name across bottom of Hero in Standard White */
.hero-bottom-area {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
  pointer-events: none;
}

.hero-big-name {
  font-size: clamp(2.4rem, 5.6vw, 5.4rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #FFFFFF; /* Standard clean white */
  line-height: 1;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.95);
}

/* 4-Column Stats Row */
.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.stat-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.stat-number {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 800;
  color: var(--text-white);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  font-weight: 500;
}

/* Pill Buttons */
.pill-btn-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  background: #FFFFFF;
  color: #0E0308;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
  pointer-events: auto;
}

.pill-btn-white:hover {
  background: #F0F0F0;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 255, 255, 0.25);
}

.pill-btn-white svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

.pill-btn-white:hover svg {
  transform: translateY(2px);
}

.pill-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  background: transparent;
  color: var(--text-white);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.25s ease;
}

.pill-btn-outline:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
  background: var(--accent-red-subtle);
  transform: translateY(-2px);
}

/* ==========================================================================
   SECTION 2: WHAT I DO (2x2 Grid + Media Showcase)
   ========================================================================== */
.services-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.service-num {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-dim);
  transition: color 0.3s ease;
}

.service-icon {
  width: 26px;
  height: 26px;
  stroke: var(--text-dim);
  transition: stroke 0.3s ease;
}

.service-card-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-white);
  line-height: 1.3;
}

.service-card-body p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.service-card-btn {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
}

/* Active & Hover States */
.service-card.active,
.service-card:hover {
  border-color: var(--accent-red);
  background: var(--bg-card-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(229, 38, 31, 0.2);
  transform: translateY(-4px);
}

.service-card.active .service-num,
.service-card:hover .service-num {
  color: var(--accent-red);
}

.service-card.active .service-icon,
.service-card:hover .service-icon {
  stroke: var(--accent-red);
}

.service-card.active .service-card-btn,
.service-card:hover .service-card-btn {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Right Column: Heading & Media Thumbnails */
.what-i-do-media-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-red);
  margin-bottom: 8px;
}

.section-heading-lg {
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-subhead {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.media-thumbnail-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.media-thumb {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: #000;
  cursor: pointer;
  transition: all 0.3s ease;
}

.media-thumb:hover {
  border-color: rgba(229, 38, 31, 0.6);
  transform: scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(229, 38, 31, 0.25);
}

.media-thumb img,
.media-thumb svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.media-thumb:hover img,
.media-thumb:hover svg {
  transform: scale(1.05);
}

.media-thumb-main {
  width: 100%;
  height: 230px;
}

.media-thumb-duo {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.media-thumb-duo .media-thumb {
  width: 100%;
  height: 200px;
}

.play-circle-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(18, 4, 10, 0.6);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  z-index: 2;
}

.media-thumb:hover .play-circle-btn {
  border-color: var(--accent-red);
  background: var(--accent-red);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--accent-red-glow);
}

.play-circle-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  margin-left: 2px;
}

/* ==========================================================================
   SECTION 3: EXPERIENCE (Vertical Studio Timeline)
   ========================================================================== */
.experience-header {
  margin-bottom: 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.timeline-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.timeline-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 30px 36px;
  display: grid;
  grid-template-columns: 200px 1.8fr 1fr;
  align-items: center;
  gap: 32px;
  transition: all 0.3s ease;
}

.timeline-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: var(--bg-card-hover);
  transform: translateX(6px);
}

.timeline-card.current {
  border-color: var(--accent-red);
  background: radial-gradient(circle at 10% 50%, rgba(229, 38, 31, 0.15), transparent 70%),
              var(--bg-card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(229, 38, 31, 0.18);
}

.timeline-studio {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.studio-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 1px;
}

.studio-badge-current {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  background: var(--accent-red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 6px;
}

.timeline-role-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.timeline-role {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-white);
}

.timeline-card.current .timeline-role {
  color: var(--accent-red);
}

.timeline-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.timeline-period {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-white);
  letter-spacing: 1px;
}

.timeline-location {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ==========================================================================
   SECTION 4: PROJECTS / FILMOGRAPHY ("WORK ON SCREEN")
   ========================================================================== */
.projects-header {
  margin-bottom: 36px;
}

.filter-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.filter-pill {
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-pill:hover,
.filter-pill.active {
  border-color: var(--accent-red);
  background: var(--accent-red);
  color: #ffffff;
  box-shadow: 0 0 20px var(--accent-red-glow);
}

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

.project-poster-card {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: #080204;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-poster-card:hover {
  border-color: var(--accent-red);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 30px var(--accent-red-glow);
}

.poster-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-poster-card:hover .poster-media {
  transform: scale(1.06);
}

.poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 2, 5, 0.95) 0%, rgba(10, 2, 5, 0.6) 40%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.project-poster-card:hover .poster-overlay {
  opacity: 1;
}

.poster-studio {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-red);
  margin-bottom: 6px;
}

.poster-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 6px;
}

.poster-genre {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.poster-contrib {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.5px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.wip-ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(18, 4, 10, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(229, 38, 31, 0.55);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #fff;
  z-index: 3;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 15px rgba(229, 38, 31, 0.25);
}

.project-poster-card.wip-card {
  border-color: rgba(229, 38, 31, 0.4);
}

.project-poster-card.wip-card:hover {
  border-color: var(--accent-red);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 35px var(--accent-red-glow);
}

/* ==========================================================================
   SECTION: AI WORKS (4 Video Cards & Instagram Redirect)
   ========================================================================== */
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  gap: 24px;
}

.ai-works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 36px;
}

.ai-video-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: #090205;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.ai-video-card:hover {
  border-color: var(--accent-red);
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 25px var(--accent-red-glow);
}

.ai-video-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ai-video-card:hover .ai-video-media {
  transform: scale(1.06);
}

.ai-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 2, 5, 0.95) 0%, rgba(10, 2, 5, 0.25) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.ai-video-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.25;
}

.ai-video-tools {
  font-size: 0.75rem;
  color: var(--accent-red);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.ai-video-card .play-circle-btn {
  top: 16px;
  right: 16px;
}

.ai-video-card:hover .play-circle-btn {
  border-color: var(--accent-red);
  background: var(--accent-red);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--accent-red-glow);
}

.ai-instagram-banner {
  padding: 28px 36px;
  border-radius: 22px;
  border: 1px solid rgba(229, 38, 31, 0.3);
  background: radial-gradient(circle at 10% 50%, rgba(229, 38, 31, 0.15), transparent 70%),
              rgba(20, 5, 12, 0.7);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.ai-banner-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.ai-banner-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   SECTION 6: TOOLS (VFX & AI Pill Groups)
   ========================================================================== */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.tools-group {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tools-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tools-group-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-white);
}

.tools-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-pill {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-white);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
}

.tool-pill:hover {
  border-color: var(--accent-red);
  background: var(--accent-red-subtle);
  color: var(--accent-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(229, 38, 31, 0.2);
}

/* ==========================================================================
   SECTION 7: CONTACT / FOOTER
   ========================================================================== */
.contact-frame {
  text-align: center;
  padding: 72px 48px;
  background: radial-gradient(circle at 50% 20%, rgba(229, 38, 31, 0.18), transparent 70%),
              var(--bg-frame);
}

.contact-huge-tagline {
  font-size: clamp(2rem, 4.4vw, 3.8rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-red);
  line-height: 1.1;
  margin-bottom: 16px;
  text-shadow: 0 0 35px rgba(229, 38, 31, 0.4);
}

.contact-subtext {
  max-width: 600px;
  margin: 0 auto 36px auto;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-form-wrap {
  max-width: 620px;
  margin: 0 auto 48px auto;
  text-align: left;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dim);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(14, 3, 8, 0.7);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.9rem;
  transition: all 0.25s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-red);
  background: rgba(24, 5, 12, 0.9);
  box-shadow: 0 0 20px var(--accent-red-glow);
}

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

.form-submit-row {
  display: flex;
  justify-content: flex-end;
}

.contact-meta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.contact-meta-link {
  color: var(--text-white);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.contact-meta-link:hover {
  color: var(--accent-red);
}

/* Footer inside final frame */
.footer-bottom {
  margin-top: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-logo {
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-white);
}

/* ==========================================================================
   MODAL COMPONENT (Accessible Breakdown Player / Project Details)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 1, 4, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  position: relative;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 32px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 40px rgba(229, 38, 31, 0.2);
  padding: 40px;
  transform: translateY(20px) scale(0.96);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  transform: scale(1.1);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.modal-media-slot {
  width: 100%;
  max-height: 62vh;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: rgba(10, 2, 6, 0.85);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.85);
}

.modal-media-slot.video-mode {
  aspect-ratio: 16 / 9;
}

.modal-media-slot img,
.modal-media-slot svg,
.modal-poster-img {
  max-width: 100%;
  max-height: 62vh;
  width: auto;
  height: auto;
  object-fit: contain !important;
  display: block;
  border-radius: 12px;
}

.modal-info-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.modal-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
}

.modal-contrib {
  font-size: 0.95rem;
  color: var(--accent-red);
  font-weight: 600;
}

.modal-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   ABOUT BRIEF CARD (Within #what-i-do)
   ========================================================================== */
.about-brief-card {
  position: relative;
  margin-bottom: 36px;
  padding: 34px 38px;
  background: linear-gradient(135deg, rgba(229, 38, 31, 0.08) 0%, rgba(26, 12, 14, 0.8) 50%, rgba(12, 9, 11, 0.9) 100%);
  border: 1px solid rgba(229, 38, 31, 0.28);
  border-radius: var(--radius-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.about-brief-card:hover {
  border-color: rgba(229, 38, 31, 0.48);
  box-shadow: 0 25px 60px rgba(229, 38, 31, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.about-brief-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.about-brief-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: rgba(229, 38, 31, 0.14);
  border: 1px solid rgba(229, 38, 31, 0.35);
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-red);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 10px var(--accent-red);
  animation: pulseGlow 2s infinite ease-in-out;
}

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

.about-brief-period {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.about-brief-content {
  margin-bottom: 26px;
}

.about-brief-lead {
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--text-white);
  font-weight: 400;
  margin-bottom: 14px;
}

.about-brief-lead strong {
  color: #fff;
  font-weight: 700;
}

.about-brief-body {
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

.about-brief-body strong {
  color: var(--text-white);
  font-weight: 600;
}

.about-link {
  color: var(--accent-red);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.about-link:hover {
  color: #ff5247;
}

.about-highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.about-stat-pill {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
}

.about-stat-pill:hover {
  background: rgba(229, 38, 31, 0.08);
  border-color: rgba(229, 38, 31, 0.3);
  transform: translateY(-2px);
}

.about-stat-pill .pill-number {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: 0.5px;
}

.about-stat-pill .pill-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ==========================================================================
   DIRECT EMAIL CLIENT ROW (Contact Form Helpers)
   ========================================================================== */
.email-helper-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.email-helper-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: var(--text-dim);
}

.email-helper-btns {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.email-helper-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  color: var(--text-white);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.email-helper-chip svg {
  flex-shrink: 0;
}

.email-helper-chip:hover {
  background: rgba(229, 38, 31, 0.15);
  border-color: rgba(229, 38, 31, 0.45);
  color: #fff;
  transform: translateY(-1px);
}

.email-helper-chip.whatsapp-chip:hover {
  background: rgba(37, 211, 102, 0.15);
  border-color: rgba(37, 211, 102, 0.45);
  color: #25d366;
}

.email-helper-chip.linkedin-chip:hover {
  background: rgba(10, 102, 194, 0.2);
  border-color: #0A66C2;
  color: #70b5f9;
}

/* Enhanced Top Right Navbar Play Button */
#open-reel-btn {
  border-color: rgba(229, 38, 31, 0.6);
  color: var(--accent-red);
  background: rgba(229, 38, 31, 0.12);
}

#open-reel-btn:hover {
  background: var(--accent-red);
  color: #ffffff;
  border-color: var(--accent-red);
  box-shadow: 0 0 20px var(--accent-red-glow);
  transform: translateY(-2px) scale(1.08);
}

/* ==========================================================================
   FEATURED VFX SHOWREEL SHOWCASE (Within #what-i-do)
   ========================================================================== */
.vfx-showreel-showcase {
  position: relative;
  background: linear-gradient(135deg, rgba(32, 10, 18, 0.75) 0%, rgba(14, 3, 8, 0.95) 100%);
  border: 1px solid rgba(229, 38, 31, 0.38);
  border-radius: var(--radius-card);
  padding: 28px;
  margin-bottom: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(229, 38, 31, 0.14);
  transition: all 0.3s ease;
  overflow: hidden;
}

.vfx-showreel-showcase:hover {
  border-color: rgba(229, 38, 31, 0.65);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 45px rgba(229, 38, 31, 0.22);
}

.showreel-video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85);
}

.vfx-showreel-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.showreel-custom-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: radial-gradient(circle at center, rgba(14, 3, 8, 0.35) 0%, rgba(8, 1, 4, 0.7) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  cursor: pointer;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 3;
}

.showreel-custom-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.showreel-big-play-btn {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--accent-red);
  border: 3px solid rgba(255, 255, 255, 0.9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 35px var(--accent-red-glow), 0 10px 30px rgba(0, 0, 0, 0.8);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.showreel-big-play-btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  margin-left: 4px;
}

.showreel-custom-overlay:hover .showreel-big-play-btn {
  transform: scale(1.14);
  box-shadow: 0 0 50px rgba(229, 38, 31, 0.8), 0 15px 40px rgba(0, 0, 0, 0.9);
}

.showreel-overlay-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(18, 4, 10, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(229, 38, 31, 0.45);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
}

.showreel-overlay-prompt {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.25s ease;
}

.showreel-custom-overlay:hover .showreel-overlay-prompt {
  background: rgba(229, 38, 31, 0.25);
  border-color: var(--accent-red);
  color: #fff;
}

.showreel-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.showreel-info-left {
  flex: 1;
  min-width: 280px;
}

.showreel-badge-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.showreel-dot-sep {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.showreel-runtime-tag {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.showreel-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
}

.showreel-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
  max-width: 780px;
}

.showreel-desc strong {
  color: var(--text-white);
  font-weight: 600;
}

.showreel-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.showreel-actions-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* ==========================================================================
   MASTER RESPONSIVE SYSTEM (Tablet & Mobile Optimization)
   ========================================================================== */

/* 1. Large Tablets & Small Laptops (<= 1080px) */
@media (max-width: 1080px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .ai-works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .timeline-card {
    grid-template-columns: 180px 1.6fr 1fr;
    gap: 20px;
    padding: 26px 28px;
  }
}

/* 2. Tablets (iPad Portrait, Tablets <= 960px) */
@media (max-width: 960px) {
  .nav-links {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
  }

  .cinematic-nav {
    padding: 10px 20px;
  }

  .hero-scroll-track {
    position: relative;
    height: 200svh;
    width: 100%;
  }

  .hero-sticky-stage {
    position: sticky;
    top: 0;
    height: 100svh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 76px 20px 20px 20px;
  }

  .hero-frame-container {
    position: relative;
    width: 100%;
    height: calc(100svh - 96px);
    max-height: calc(100svh - 96px);
    padding: 28px 24px 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
  }

  .hero-content-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .hero-intro-col {
    align-items: flex-start;
    text-align: left;
    gap: 16px;
  }

  .hero-stats-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .about-highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showreel-info-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .showreel-actions-right {
    width: 100%;
  }

  .showreel-actions-right .pill-btn-white {
    width: 100%;
    justify-content: center;
  }

  .timeline-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px;
  }

  .timeline-meta {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* 3. Small Tablets & Standard Mobile Phones (<= 768px) */
@media (max-width: 768px) {
  :root {
    --radius-frame: 26px;
    --radius-card: 20px;
  }

  .cinematic-nav-wrap {
    top: 10px;
    padding: 0 12px;
  }

  .cinematic-nav {
    padding: 8px 16px;
  }

  .nav-logo {
    font-size: 0.92rem;
    letter-spacing: 1px;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }

  .nav-icon-btn svg {
    width: 15px;
    height: 15px;
  }

  .main-wrapper {
    padding: 0 12px;
  }

  .cinematic-frame {
    padding: 32px 18px;
    margin-bottom: 32px;
    border-radius: var(--radius-frame);
  }

  .section-heading-lg {
    font-size: 1.48rem;
    letter-spacing: 1.2px;
    line-height: 1.25;
  }

  .section-subhead {
    font-size: 0.86rem;
    line-height: 1.55;
    margin-bottom: 18px;
  }

  .hero-scroll-track {
    position: relative;
    height: 220svh;
    width: 100%;
  }

  .hero-sticky-stage {
    position: sticky;
    top: 0;
    height: 100svh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 66px 12px 14px 12px;
  }

  .hero-frame-container {
    position: relative;
    width: 100%;
    height: calc(100svh - 84px);
    max-height: calc(100svh - 84px);
    padding: 18px 14px 14px 14px;
    border-radius: var(--radius-frame);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
  }

  .hero-badge-tag {
    font-size: 0.72rem;
    padding: 5px 12px;
    letter-spacing: 2px;
  }

  .hero-intro-text {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .hero-big-name {
    font-size: clamp(1.9rem, 7.6vw, 3rem);
    letter-spacing: 1px;
    line-height: 1.1;
  }

  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 16px;
    padding-top: 14px;
  }

  .stat-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .stat-label {
    font-size: 0.7rem;
    letter-spacing: 0.5px;
  }

  /* About Brief Card */
  .about-brief-card {
    padding: 22px 16px;
    margin-bottom: 24px;
    border-radius: var(--radius-card);
  }

  .about-brief-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }

  .about-brief-lead {
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 12px;
  }

  .about-brief-body {
    font-size: 0.86rem;
    line-height: 1.65;
  }

  .about-highlights-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding-top: 14px;
  }

  .about-stat-pill {
    padding: 10px 12px;
  }

  .about-stat-pill .pill-number {
    font-size: 1.1rem;
  }

  .about-stat-pill .pill-label {
    font-size: 0.68rem;
  }

  /* Showreel Player Card */
  .vfx-showreel-showcase {
    padding: 16px 14px;
    margin-bottom: 24px;
    border-radius: var(--radius-card);
  }

  .showreel-video-container {
    border-radius: 14px;
  }

  .showreel-big-play-btn {
    width: 58px;
    height: 58px;
  }

  .showreel-big-play-btn svg {
    width: 20px;
    height: 20px;
  }

  .showreel-overlay-badge {
    top: 10px;
    left: 10px;
    font-size: 0.68rem;
    padding: 4px 10px;
  }

  .showreel-overlay-prompt {
    font-size: 0.76rem;
    padding: 4px 12px;
  }

  .showreel-title {
    font-size: 1.15rem;
    line-height: 1.3;
  }

  .showreel-desc {
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 12px;
  }

  .showreel-tags-row {
    gap: 6px;
  }

  .tool-pill {
    font-size: 0.72rem;
    padding: 4px 10px;
  }

  /* Services Cards */
  .services-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-card {
    padding: 22px 18px;
    min-height: auto;
    border-radius: var(--radius-card);
  }

  .service-num {
    font-size: 2.2rem;
  }

  /* Critical for mobile: buttons must always be visible on touch devices! */
  .service-card-btn {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    margin-top: 10px;
  }

  /* Timeline */
  .timeline-container {
    gap: 14px;
  }

  .timeline-card {
    padding: 18px 16px;
    border-radius: var(--radius-card);
    gap: 10px;
  }

  .studio-name {
    font-size: 1.18rem;
  }

  .timeline-role {
    font-size: 0.95rem;
  }

  .timeline-desc {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .timeline-meta {
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    padding-top: 10px;
    font-size: 0.78rem;
  }

  /* Filter Pills & Projects */
  .filter-pills-row {
    gap: 8px;
    margin-bottom: 22px;
  }

  .filter-pill {
    padding: 8px 14px;
    font-size: 0.75rem;
    min-height: 38px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .project-poster-card {
    border-radius: 16px;
  }

  .poster-overlay {
    padding: 14px 12px;
    opacity: 1;
    background: linear-gradient(to top, rgba(8, 2, 5, 0.96) 0%, rgba(8, 2, 5, 0.6) 50%, transparent 100%);
  }

  .poster-studio {
    font-size: 0.65rem;
    margin-bottom: 2px;
  }

  .poster-title {
    font-size: 1rem;
    line-height: 1.25;
    margin-bottom: 2px;
  }

  .poster-genre {
    font-size: 0.72rem;
    margin-bottom: 6px;
  }

  .poster-contrib {
    font-size: 0.68rem;
    padding-top: 6px;
  }

  .wip-ribbon {
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    font-size: 0.66rem;
  }

  /* AI Works */
  .ai-works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .ai-video-card {
    border-radius: 16px;
  }

  .ai-video-overlay {
    padding: 12px;
  }

  .ai-video-title {
    font-size: 0.92rem;
  }

  .ai-video-tools {
    font-size: 0.7rem;
  }

  .ai-instagram-banner {
    padding: 20px 16px;
    border-radius: var(--radius-card);
    gap: 16px;
  }

  .ai-banner-content h3 {
    font-size: 1.05rem;
  }

  .ai-banner-content p {
    font-size: 0.8rem;
  }

  .ai-instagram-banner a {
    width: 100%;
    justify-content: center;
  }

  /* Tools */
  .tools-group {
    padding: 20px 16px;
    border-radius: var(--radius-card);
  }

  /* Contact & Form */
  .contact-huge-tagline {
    font-size: clamp(1.5rem, 6.5vw, 2.2rem);
    margin-bottom: 10px;
  }

  .contact-subtext {
    font-size: 0.85rem;
    margin-bottom: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .form-input,
  .form-textarea {
    font-size: 16px !important; /* Critical: prevents iOS Safari auto-zoom */
    padding: 14px 16px;
    border-radius: 14px;
  }

  .form-textarea {
    min-height: 110px;
  }

  .form-submit-row .pill-btn-white {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
    font-size: 0.82rem;
  }

  .email-helper-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
  }

  .email-helper-btns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
  }

  .email-helper-chip {
    width: 100%;
    justify-content: center;
    padding: 9px 8px;
    font-size: 0.74rem;
  }

  .contact-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.84rem;
    margin-top: 24px;
    padding-top: 18px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    font-size: 0.76rem;
    margin-top: 36px;
    padding-top: 18px;
  }

  /* Modal System Mobile */
  .modal-backdrop {
    padding: 10px;
  }

  .modal-dialog {
    max-width: 100%;
    max-height: 94vh;
    padding: 20px 14px 18px 14px;
    border-radius: 20px;
  }

  .modal-media-slot {
    max-height: 50vh;
    min-height: 180px;
    border-radius: 16px;
  }

  .modal-media-slot img,
  .modal-media-slot svg,
  .modal-poster-img {
    max-height: 50vh;
  }

  .modal-close-btn {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    z-index: 10;
  }

  .modal-title {
    font-size: 1.25rem;
    line-height: 1.25;
  }

  .modal-contrib {
    font-size: 0.82rem;
  }

  .modal-desc {
    font-size: 0.82rem;
    line-height: 1.5;
  }
}

/* 4. Compact Mobile Phones (<= 440px, e.g. iPhone SE, 360px phones) */
@media (max-width: 440px) {
  .hero-big-name {
    font-size: clamp(1.7rem, 7.8vw, 2.3rem);
  }

  .hero-stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stat-number {
    font-size: 1.45rem;
  }

  .about-highlights-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ai-works-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .email-helper-btns {
    grid-template-columns: 1fr;
  }
}
