/* ============================================================
   BeMax Studios — Design System & Styles
   Version: 1.0
   ============================================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Core Palette */
  --color-violet: #6844CE;
  --color-cloud-white: #FAF9FD;
  --color-deep-ink: #211B31;
  --color-lavender: #D7C9FF;
  --color-soft-lilac: #ECE8F5;

  /* Functional & Neutral */
  --color-white: #FFFFFF;
  --color-muted: #706B7D;
  --color-border: #E5E0EF;
  --color-success: #287A55;
  --color-error: #B42332;

  /* Interactive Violet States */
  --color-violet-hover: #5A38BE;
  --color-violet-active: #4E2FAF;
  --color-violet-10: rgba(104, 68, 206, 0.10);
  --color-violet-5: rgba(104, 68, 206, 0.05);

  /* Typography Scale — Desktop */
  --text-hero: 4.5rem;
  --text-h1: 3.5rem;
  --text-h2: 2.5rem;
  --text-h3: 1.75rem;
  --text-body-lg: 1.25rem;
  --text-body: 1.0625rem;
  --text-body-sm: 0.9375rem;
  --text-label: 0.8125rem;
  --text-button: 1rem;
  --text-nav: 0.9375rem;

  /* Spacing Scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Layout */
  --container-max: 1200px;
  --container-hero-max: 1280px;
  --container-padding: 80px;
  --header-height: 72px;

  /* Motion Tokens */
  --duration-fast: 200ms;
  --duration-normal: 400ms;
  --duration-slow: 700ms;
  --duration-stagger: 120ms;
  --ease-default: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Borders & Radius */
  --radius-button: 8px;
  --radius-pill: 20px;
  --radius-card: 12px;
  --radius-input: 8px;
  --radius-modal: 16px;
}

/* --- Tablet Breakpoint --- */
@media (max-width: 1024px) {
  :root {
    --text-hero: 3.5rem;
    --text-h1: 2.75rem;
    --text-h2: 2rem;
    --text-h3: 1.5rem;
    --text-body-lg: 1.125rem;
    --text-body: 1rem;
    --text-body-sm: 0.875rem;
    --text-label: 0.8125rem;
    --text-button: 1rem;
    --text-nav: 0.9375rem;
    --container-padding: 40px;
    --header-height: 64px;
  }
}

/* --- Mobile Breakpoint --- */
@media (max-width: 640px) {
  :root {
    --text-hero: 2.5rem;
    --text-h1: 2rem;
    --text-h2: 1.625rem;
    --text-h3: 1.25rem;
    --text-body-lg: 1.0625rem;
    --text-body: 1rem;
    --text-body-sm: 0.875rem;
    --text-label: 0.75rem;
    --text-button: 0.9375rem;
    --text-nav: 1rem;
    --container-padding: 20px;
  }
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-deep-ink);
  background-color: var(--color-cloud-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --- Skip to Content --- */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 9999;
  padding: var(--space-3) var(--space-5);
  background: var(--color-violet);
  color: var(--color-white);
  font-size: var(--text-body-sm);
  font-weight: 500;
  border-radius: var(--radius-button);
  transition: top var(--duration-fast) var(--ease-default);
}

.skip-to-content:focus {
  top: var(--space-4);
}

/* --- Focus States --- */
:focus-visible {
  outline: 2px solid var(--color-violet);
  outline-offset: 3px;
}

.dark-section :focus-visible {
  outline-color: var(--color-lavender);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.font-display {
  font-family: 'Space Grotesk', sans-serif;
}

.text-hero {
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--text-hero);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-deep-ink);
}

.text-h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--text-h1);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--color-deep-ink);
}

.text-h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--text-h2);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-deep-ink);
}

.text-h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--text-h3);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--color-deep-ink);
}

.text-body-lg {
  font-size: var(--text-body-lg);
  line-height: 1.6;
}

.text-body {
  font-size: var(--text-body);
  line-height: 1.65;
}

.text-body-sm {
  font-size: var(--text-body-sm);
  line-height: 1.6;
}

.text-label {
  font-size: var(--text-label);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.text-muted {
  color: var(--color-muted);
}

.text-violet {
  color: var(--color-violet);
}

.max-reading {
  max-width: 65ch;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.container--hero {
  max-width: var(--container-hero-max);
}

.section {
  padding-top: var(--space-9);
  padding-bottom: var(--space-9);
}

@media (max-width: 1024px) {
  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }
}

@media (max-width: 640px) {
  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}

.section-label {
  font-size: var(--text-label);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-violet);
  margin-bottom: var(--space-4);
}

.section-heading {
  margin-bottom: var(--space-7);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-button);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  border-radius: var(--radius-button);
  transition: all var(--duration-fast) var(--ease-default);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-violet);
  color: var(--color-white);
  padding: 12px 28px;
}

.btn--primary:hover {
  background: var(--color-violet-hover);
}

.btn--primary:active {
  background: var(--color-violet-active);
}

.btn--primary-lg {
  background: var(--color-violet);
  color: var(--color-white);
  padding: 16px 40px;
  font-size: 1.0625rem;
}

.btn--primary-lg:hover {
  background: var(--color-violet-hover);
}

.btn--primary-lg:active {
  background: var(--color-violet-active);
}

.btn--secondary {
  background: transparent;
  color: var(--color-deep-ink);
  padding: 12px 28px;
  border: 1px solid var(--color-border);
}

.btn--secondary:hover {
  border-color: var(--color-violet);
  color: var(--color-violet);
}

.btn--ghost {
  background: transparent;
  color: var(--color-deep-ink);
  padding: 12px 28px;
}

.btn--ghost:hover {
  background: var(--color-violet-5);
}

.btn--nav {
  background: var(--color-violet);
  color: var(--color-white);
  padding: 10px 24px;
}

.btn--nav:hover {
  background: var(--color-violet-hover);
}

.btn-arrow {
  transition: transform var(--duration-fast) var(--ease-default);
}

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

@media (max-width: 640px) {
  .btn--full-mobile {
    width: 100%;
  }
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background-color var(--duration-normal) var(--ease-default),
              border-color var(--duration-normal) var(--ease-default),
              box-shadow var(--duration-normal) var(--ease-default);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background-color: rgba(250, 249, 253, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--color-border);
  box-shadow: 0 4px 24px rgba(33, 27, 49, 0.04);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-hero-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* --- Logo / Wordmark --- */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  z-index: 1001;
}

.logo__symbol {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.logo__wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo__be {
  color: var(--color-deep-ink);
}

.logo__max {
  color: var(--color-violet);
}

.logo__studios {
  color: var(--color-deep-ink);
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  margin-left: 2px;
}

/* --- Desktop Navigation --- */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-7);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav__link {
  font-size: var(--text-nav);
  font-weight: 450;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--color-deep-ink);
  transition: color var(--duration-fast) var(--ease-default);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-violet);
  transition: width var(--duration-normal) var(--ease-default);
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-violet);
}

.nav__link.active::after {
  width: 100%;
}

/* --- Hamburger --- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  z-index: 1001;
  cursor: pointer;
}

.hamburger__line {
  width: 22px;
  height: 2px;
  background: var(--color-deep-ink);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-default);
}

.hamburger__line + .hamburger__line {
  margin-top: 6px;
}

.hamburger.open .hamburger__line:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}

.hamburger.open .hamburger__line:nth-child(2) {
  opacity: 0;
  transform: translateX(-8px);
}

.hamburger.open .hamburger__line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Mobile Menu Overlay --- */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--color-cloud-white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-7);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-default);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-deep-ink);
  transition: color var(--duration-fast) var(--ease-default);
}

.mobile-menu__link:hover {
  color: var(--color-violet);
}

.mobile-menu__cta {
  margin-top: var(--space-5);
}

@media (max-width: 840px) {
  .nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .mobile-menu {
    display: flex;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: min(90vh, 800px);
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + var(--space-8));
  padding-bottom: var(--space-9);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 55% 45%;
  align-items: center;
  gap: var(--space-8);
  width: 100%;
  max-width: var(--container-hero-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.hero__content {
  max-width: 620px;
}

.hero__headline {
  margin-bottom: var(--space-5);
}

.hero__subtitle {
  font-size: var(--text-body-lg);
  line-height: 1.6;
  color: var(--color-deep-ink);
  max-width: 520px;
  margin-bottom: var(--space-7);
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* --- Hero Visual --- */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
  perspective: 1200px;
}

.hero__frames {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 540px;
}

.hero__frame {
  position: absolute;
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-spring), box-shadow var(--duration-normal) var(--ease-default);
}

/* Center primary frame (iPhone style mockup) */
.hero__frame--center {
  width: 240px;
  height: 440px;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  z-index: 5;
  border-radius: 36px;
  border: 7px solid #1E172E;
  box-shadow: 0 24px 60px rgba(33, 27, 49, 0.22), 0 0 0 1px rgba(104, 68, 206, 0.25);
  background: #120E1E;
}

.hero__frame--center:hover {
  transform: translate(-50%, -52%) scale(1.02);
  box-shadow: 0 30px 70px rgba(104, 68, 206, 0.3), 0 0 0 2px var(--color-violet);
}

.hero__phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 14px;
  background: #1E172E;
  border-radius: 8px;
  z-index: 10;
}

/* Side preview frames */
.hero__frame--left {
  width: 175px;
  height: 320px;
  left: 2%;
  top: 15%;
  z-index: 2;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 16px 40px rgba(33, 27, 49, 0.12);
  transform: rotate(-4.5deg);
  animation: floatLeft 7s ease-in-out infinite alternate;
}

.hero__frame--right {
  width: 175px;
  height: 320px;
  right: 2%;
  bottom: 12%;
  z-index: 2;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 16px 40px rgba(33, 27, 49, 0.12);
  transform: rotate(3.5deg);
  animation: floatRight 7s ease-in-out infinite alternate 1.2s;
}

@keyframes floatLeft {
  0% { transform: rotate(-4.5deg) translateY(0); }
  100% { transform: rotate(-3.5deg) translateY(-12px); }
}

@keyframes floatRight {
  0% { transform: rotate(3.5deg) translateY(0); }
  100% { transform: rotate(4.5deg) translateY(-10px); }
}

.hero__frame-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease-out);
}

.hero__frame:hover .hero__frame-media {
  transform: scale(1.05);
}

.hero__frame-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(33, 27, 49, 0.35) 0%, rgba(33, 27, 49, 0.1) 40%, rgba(33, 27, 49, 0.85) 100%);
  pointer-events: none;
}

.hero__frame-overlay--center {
  background: linear-gradient(180deg, rgba(30, 23, 46, 0.5) 0%, rgba(30, 23, 46, 0.15) 30%, rgba(20, 15, 32, 0.9) 100%);
}

.hero__frame-content {
  position: absolute;
  inset: 0;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 3;
}

.hero__frame-content--center {
  padding: 32px 14px 14px;
}

.hero__frame-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero__badge {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(33, 27, 49, 0.7);
  color: #fff;
  backdrop-filter: blur(4px);
}

.hero__badge--blur {
  background: rgba(255, 255, 255, 0.2);
}

.hero__badge--violet {
  background: var(--color-violet);
  color: #fff;
}

.hero__creator-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__creator-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--color-violet);
}

.hero__creator-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__creator-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero__creator-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.hero__creator-tag {
  font-size: 0.625rem;
  color: var(--color-lavender);
}

/* Play indicator */
.hero__play-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-violet);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(104, 68, 206, 0.5);
  margin: auto;
  transition: transform var(--duration-fast) var(--ease-spring);
}

.hero__play-icon--sm {
  width: 36px;
  height: 36px;
}

.hero__play-icon--pulse {
  animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(104, 68, 206, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(104, 68, 206, 0); }
  100% { box-shadow: 0 0 0 0 rgba(104, 68, 206, 0); }
}

.hero__play-icon svg {
  width: 16px;
  height: 16px;
  fill: var(--color-white);
  margin-left: 2px;
}

.hero__frame-bottom {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero__frame-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.hero__frame-stat {
  font-size: 0.6875rem;
  color: var(--color-lavender);
}

/* Animated Captions Preview */
.hero__captions-box {
  background: rgba(30, 23, 46, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 8px;
}

.hero__captions-text {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  color: #fff;
  text-align: center;
}

.hero__highlight {
  color: #FFE600;
  font-weight: 700;
}

/* Bottom Player Bar in center frame */
.hero__player-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero__player-scrubber {
  position: relative;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.hero__player-progress {
  width: 62%;
  height: 100%;
  background: var(--color-violet);
  border-radius: 2px;
  animation: scrubAnim 8s infinite linear;
}

.hero__player-head {
  position: absolute;
  top: 50%;
  left: 62%;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px rgba(104, 68, 206, 0.8);
  animation: headAnim 8s infinite linear;
}

@keyframes scrubAnim {
  0% { width: 10%; }
  100% { width: 92%; }
}

@keyframes headAnim {
  0% { left: 10%; }
  100% { left: 92%; }
}

.hero__player-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero__player-metric {
  color: var(--color-lavender);
  font-weight: 600;
}

/* Source timeline behind frames */
.hero__timeline {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 96%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 30px rgba(33, 27, 49, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
  z-index: 6;
}

.hero__timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.6875rem;
}

.hero__timeline-label {
  font-weight: 600;
  color: var(--color-deep-ink);
  letter-spacing: 0.02em;
}

.hero__timeline-dur {
  color: var(--color-muted);
}

.hero__timeline-bar {
  width: 100%;
  height: 8px;
  background: var(--color-soft-lilac);
  border-radius: 4px;
  position: relative;
  overflow: visible;
}

.hero__timeline-wave {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, var(--color-lavender) 0px, var(--color-lavender) 3px, transparent 3px, transparent 6px);
  opacity: 0.7;
}

.hero__timeline-marker {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  background: var(--color-violet);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  box-shadow: 0 0 0 2px #fff;
  transition: transform 0.2s ease;
}

.hero__timeline-marker:hover {
  transform: translate(-50%, -50%) scale(1.3);
}

.hero__timeline-marker--featured {
  background: #FFE600;
  box-shadow: 0 0 0 2px var(--color-violet);
}

.hero__marker-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-deep-ink);
  color: #fff;
  font-size: 0.5625rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.hero__timeline-marker:hover .hero__marker-tooltip,
.hero__timeline-marker--active .hero__marker-tooltip {
  opacity: 1;
}

.hero__timeline-scanline {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-violet);
  box-shadow: 0 0 8px var(--color-violet);
  animation: scanTimeline 4s infinite linear;
}

@keyframes scanTimeline {
  0% { left: 0%; }
  100% { left: 100%; }
}

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 55% 45%;
    gap: var(--space-6);
  }
  .hero__frames {
    max-width: 360px;
    height: 440px;
  }
  .hero__frame--center {
    width: 170px;
    height: 302px;
  }
  .hero__frame--left {
    width: 136px;
    height: 242px;
  }
  .hero__frame--right {
    width: 136px;
    height: 242px;
  }
}

@media (max-width: 840px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + var(--space-7));
    padding-bottom: var(--space-8);
  }
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__content {
    max-width: 100%;
  }
  .hero__subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .hero__ctas {
    justify-content: center;
  }
  .hero__visual {
    min-height: 360px;
    margin-top: var(--space-5);
  }
  .hero__frames {
    max-width: 320px;
    height: 380px;
  }
  .hero__frame--center {
    width: 150px;
    height: 267px;
  }
  .hero__frame--left {
    width: 120px;
    height: 213px;
  }
  .hero__frame--right {
    width: 120px;
    height: 213px;
  }
}

@media (max-width: 640px) {
  .hero__ctas {
    flex-direction: column;
    width: 100%;
  }
  .hero__ctas .btn {
    width: 100%;
  }
  .hero__timeline {
    display: none;
  }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  background: var(--color-cloud-white);
}

.services__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-8);
  align-items: start;
}

.services__visual {
  position: relative;
  background: var(--color-soft-lilac);
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services__visual-frame {
  width: 58%;
  aspect-ratio: 9 / 16;
  background: #120E1E;
  border-radius: 28px;
  border: 5px solid #1E172E;
  box-shadow: 0 20px 50px rgba(33, 27, 49, 0.18), 0 0 0 1px rgba(104, 68, 206, 0.2);
  position: relative;
}

.services__phone-screen {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 12px;
}

.services__phone-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
}

.services__phone-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 14, 30, 0.45) 0%, rgba(18, 14, 30, 0.2) 40%, rgba(18, 14, 30, 0.88) 100%);
}

.services__phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 10px;
  background: #1E172E;
  border-radius: 6px;
  z-index: 5;
}

.services__phone-hook-pill {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  margin-top: 14px;
  background: rgba(30, 23, 46, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 230, 0, 0.4);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.services__phone-hook-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFE600;
  box-shadow: 0 0 6px #FFE600;
  animation: hookPulse 2s infinite ease-in-out;
}

@keyframes hookPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.services__phone-captions {
  position: relative;
  z-index: 2;
  background: rgba(30, 23, 46, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.services__phone-caption-word--highlight {
  color: #FFE600;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 230, 0, 0.4);
}

.services__phone-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.services__phone-timeline {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.services__timeline-bar {
  width: 48%;
  height: 100%;
  background: var(--color-violet);
  border-radius: 3px;
}

.services__timeline-cut {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #fff;
  opacity: 0.8;
  z-index: 2;
}

.services__phone-soundbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(30, 23, 46, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(215, 201, 255, 0.2);
  border-radius: 6px;
  padding: 4px 8px;
}

.services__sound-eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.services__sound-eq span {
  width: 2px;
  background: var(--color-lavender);
  border-radius: 1px;
  animation: eqBounce 1.2s ease-in-out infinite alternate;
}

.services__sound-eq span:nth-child(1) { height: 4px; animation-delay: 0.1s; }
.services__sound-eq span:nth-child(2) { height: 9px; animation-delay: 0.3s; }
.services__sound-eq span:nth-child(3) { height: 12px; animation-delay: 0.15s; }
.services__sound-eq span:nth-child(4) { height: 6px; animation-delay: 0.4s; }
.services__sound-eq span:nth-child(5) { height: 10px; animation-delay: 0.25s; }
.services__sound-eq span:nth-child(6) { height: 12px; animation-delay: 0.05s; }
.services__sound-eq span:nth-child(7) { height: 7px; animation-delay: 0.35s; }
.services__sound-eq span:nth-child(8) { height: 4px; animation-delay: 0.2s; }

@keyframes eqBounce {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

.services__sound-title {
  font-size: 0.5625rem;
  color: var(--color-lavender);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Annotation callouts */
.services__callout {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-deep-ink);
  white-space: nowrap;
  z-index: 10;
}

.services__callout-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-violet);
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 0 0 3px rgba(104, 68, 206, 0.2);
}

.services__callout-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--color-violet);
  animation: calloutPulse 2.4s infinite;
}

@keyframes calloutPulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.services__callout-line {
  width: 24px;
  height: 2px;
  background: var(--color-violet);
  flex-shrink: 0;
}

.services__callout--hook {
  top: 12%;
  right: -8%;
}

.services__callout--caption {
  top: 45%;
  right: -10%;
}

.services__callout--pacing {
  bottom: 26%;
  left: -8%;
}

.services__callout--sound {
  bottom: 10%;
  left: -10%;
}

.services__callout--hook,
.services__callout--caption {
  flex-direction: row-reverse;
}

.services__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
}

.service-block {
  display: flex;
  gap: var(--space-5);
}

.service-block__accent {
  width: 3px;
  background: var(--color-violet);
  border-radius: 2px;
  flex-shrink: 0;
  align-self: stretch;
}

.service-block__body {
  flex: 1;
}

.service-block__name {
  margin-bottom: var(--space-3);
}

.service-block__desc {
  color: var(--color-deep-ink);
  line-height: 1.65;
  max-width: 55ch;
}

/* Service C — wide card */
.service-block--wide {
  grid-column: 1 / -1;
  background: var(--color-soft-lilac);
  border-radius: var(--radius-card);
  padding: var(--space-6) var(--space-7);
}

.service-block--wide .service-block__desc {
  max-width: 65ch;
}

@media (max-width: 840px) {
  .services__grid {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }
  .services__visual {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .service-block--wide {
    padding: var(--space-5);
  }
}

/* ============================================================
   WHY CLIPPING
   ============================================================ */
.why-clipping {
  background: var(--color-soft-lilac);
}

/* Visualization */
.why-clipping__viz {
  margin-bottom: var(--space-9);
  position: relative;
  overflow: hidden;
}

.why-clipping__viz-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-7) 0;
}

/* Source bar */
.viz__source {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  max-width: 700px;
}

.viz__source-label {
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  white-space: nowrap;
}

.viz__source-bar {
  position: relative;
  flex: 1;
  height: 6px;
  background: var(--color-deep-ink);
  border-radius: 3px;
}

.viz__source-marker {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  background: var(--color-violet);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid var(--color-cloud-white);
}

/* Connector lines */
.viz__connectors {
  display: flex;
  justify-content: center;
  gap: 80px;
  width: 100%;
  max-width: 700px;
  position: relative;
  height: 48px;
}

.viz__connector-line {
  width: 1px;
  height: 100%;
  background: var(--color-lavender);
}

/* Output clips */
.viz__outputs {
  display: flex;
  gap: var(--space-5);
  justify-content: center;
  flex-wrap: wrap;
}

.viz__clip {
  width: 110px;
  height: 195px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  border: 2px solid var(--color-border);
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(33, 27, 49, 0.08);
  transition: transform var(--duration-normal) var(--ease-spring),
              box-shadow var(--duration-normal) var(--ease-default),
              border-color var(--duration-fast);
  cursor: pointer;
}

.viz__clip:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 16px 36px rgba(104, 68, 206, 0.25);
  border-color: var(--color-violet);
}

.viz__clip-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(33, 27, 49, 0.35) 0%, rgba(33, 27, 49, 0.1) 40%, rgba(20, 16, 30, 0.85) 100%);
  transition: opacity 0.3s ease;
}

.viz__clip-content {
  position: absolute;
  inset: 0;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.viz__clip-dur {
  font-size: 0.5625rem;
  font-weight: 600;
  color: #fff;
  background: rgba(33, 27, 49, 0.75);
  backdrop-filter: blur(4px);
  padding: 2px 6px;
  border-radius: 4px;
  align-self: flex-end;
}

.viz__clip-play {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-violet);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(104, 68, 206, 0.45);
  transition: transform var(--duration-fast) var(--ease-spring);
}

.viz__clip:hover .viz__clip-play {
  transform: scale(1.15);
}

.viz__clip-play svg {
  width: 12px;
  height: 12px;
  fill: var(--color-white);
  margin-left: 2px;
}

.viz__clip-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

@media (max-width: 640px) {
  .viz__source {
    flex-direction: column;
    gap: var(--space-2);
  }
  .viz__source-bar {
    width: 100%;
  }
  .viz__connectors {
    gap: 40px;
    height: 32px;
  }
  .viz__clip {
    width: 80px;
    height: 142px;
  }
}

/* Benefits grid */
.why-clipping__benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
}

.benefit {
  display: flex;
  gap: var(--space-5);
}

.benefit__number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-violet);
  line-height: 1.2;
  flex-shrink: 0;
  width: 28px;
}

.benefit__content {
  flex: 1;
}

.benefit__title {
  margin-bottom: var(--space-3);
}

.benefit__desc {
  color: var(--color-deep-ink);
  line-height: 1.65;
  max-width: 45ch;
}

@media (max-width: 840px) {
  .why-clipping__benefits {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
}

@media (max-width: 640px) {
  .why-clipping__benefits {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio {
  background: var(--color-cloud-white);
}

.portfolio__header {
  margin-bottom: var(--space-7);
}

.portfolio__subtitle {
  margin-top: var(--space-4);
}

/* Filters */
.portfolio__filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
}

.filter-pill {
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: var(--text-body-sm);
  font-weight: 500;
  transition: all var(--duration-fast) var(--ease-default);
  cursor: pointer;
  border: none;
}

.filter-pill--active {
  background: var(--color-violet);
  color: var(--color-white);
}

.filter-pill--inactive {
  background: var(--color-soft-lilac);
  color: var(--color-deep-ink);
}

.filter-pill--inactive:hover {
  background: var(--color-lavender);
}

@media (max-width: 640px) {
  .portfolio__filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: var(--space-2);
  }
  .portfolio__filters::-webkit-scrollbar {
    display: none;
  }
  .filter-pill {
    flex-shrink: 0;
  }
}

/* Portfolio Grid */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.portfolio__item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 9 / 16;
  background: var(--color-deep-ink);
  box-shadow: 0 10px 30px rgba(33, 27, 49, 0.08);
  transition: transform var(--duration-normal) var(--ease-spring),
              box-shadow var(--duration-normal) var(--ease-default),
              border-color var(--duration-fast);
  border: 1px solid var(--color-border);
}

.portfolio__item:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 24px 50px rgba(104, 68, 206, 0.22), 0 0 0 2px var(--color-violet);
  border-color: var(--color-violet);
}

.portfolio__thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease-out);
}

.portfolio__item:hover .portfolio__thumb {
  transform: scale(1.06);
}

.portfolio__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(33, 27, 49, 0.5) 0%, rgba(33, 27, 49, 0.1) 35%, rgba(18, 14, 28, 0.95) 100%);
  transition: background 0.3s ease;
}

.portfolio__badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.portfolio__tag {
  padding: 4px 10px;
  background: rgba(33, 27, 49, 0.75);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.portfolio__dur {
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: 6px;
}

.portfolio__play-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.portfolio__play-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--color-violet);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(104, 68, 206, 0.45);
  transform: scale(0.9);
  transition: transform var(--duration-fast) var(--ease-spring),
              box-shadow var(--duration-fast) var(--ease-default);
}

.portfolio__item:hover .portfolio__play-btn {
  transform: scale(1.15);
  box-shadow: 0 8px 30px rgba(104, 68, 206, 0.6);
}

.portfolio__play-btn svg {
  width: 20px;
  height: 20px;
  fill: var(--color-white);
  margin-left: 2px;
}

.portfolio__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.portfolio__creator-pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-lavender);
}

.portfolio__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
}

.portfolio__quote {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
  line-height: 1.35;
}

.portfolio__footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.portfolio__metric {
  font-size: 0.75rem;
  font-weight: 600;
  color: #FFE600;
}

.portfolio__platform-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.04em;
}

@media (max-width: 960px) {
  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }
}

@media (max-width: 600px) {
  .portfolio__grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}

/* ============================================================
   VIDEO LIGHTBOX (Interactive Case Study Player)
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-default);
}

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

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 14, 28, 0.88);
  backdrop-filter: blur(14px);
}

.lightbox__dialog {
  position: relative;
  z-index: 2;
  width: 92%;
  max-width: 960px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--color-cloud-white);
  border-radius: 24px;
  border: 1px solid var(--color-border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  padding: 32px;
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-soft-lilac);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-deep-ink);
  transition: all var(--duration-fast) var(--ease-default);
  z-index: 10;
}

.lightbox__close:hover {
  background: var(--color-lavender);
  transform: rotate(90deg);
}

.lightbox__close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.lightbox__layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  align-items: center;
}

/* Phone Player Simulator */
.lightbox__player-container {
  display: flex;
  justify-content: center;
}

.lightbox__player {
  position: relative;
  width: 280px;
  height: 498px;
  border-radius: 32px;
  border: 7px solid #1E172E;
  background: #120E1E;
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(33, 27, 49, 0.25);
}

.lightbox__notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 12px;
  background: #1E172E;
  border-radius: 6px;
  z-index: 10;
}

.lightbox__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s var(--ease-out);
}

.lightbox__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 16, 30, 0.5) 0%, rgba(20, 16, 30, 0.1) 30%, rgba(16, 12, 24, 0.92) 100%);
}

.lightbox__topbar {
  position: absolute;
  top: 26px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}

.lightbox__badge-category {
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--color-violet);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
}

.lightbox__badge-platform {
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.6875rem;
}

.lightbox__audio-badge {
  position: absolute;
  top: 60px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  background: rgba(20, 16, 30, 0.75);
  border-radius: 12px;
  backdrop-filter: blur(4px);
  z-index: 5;
}

.lightbox__eq-bar {
  width: 2px;
  height: 10px;
  background: var(--color-lavender);
  border-radius: 1px;
  animation: eqDance 1.2s infinite ease-in-out alternate;
}

.lightbox__eq-bar:nth-child(2) { animation-delay: 0.2s; height: 14px; }
.lightbox__eq-bar:nth-child(3) { animation-delay: 0.4s; height: 8px; }
.lightbox__eq-bar:nth-child(4) { animation-delay: 0.6s; height: 12px; }

@keyframes eqDance {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1.4); }
}

.lightbox__audio-label {
  font-size: 0.5625rem;
  color: #fff;
  font-weight: 500;
  margin-left: 2px;
}

.lightbox__play-toggle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-violet);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(104, 68, 206, 0.5);
  transition: transform var(--duration-fast) var(--ease-spring);
  z-index: 6;
}

.lightbox__play-toggle:hover {
  transform: translate(-50%, -50%) scale(1.12);
}

.lightbox__play-toggle svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.lightbox__play-toggle svg.icon-play {
  margin-left: 3px;
}

.lightbox__captions {
  position: absolute;
  bottom: 60px;
  left: 12px;
  right: 12px;
  background: rgba(20, 16, 30, 0.8);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 10px;
  z-index: 5;
}

.lightbox__captions-text {
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
  text-align: center;
  line-height: 1.35;
}

.lightbox__scrubber-bar {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 5;
}

.lightbox__progress-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.lightbox__progress-fill {
  height: 100%;
  background: var(--color-violet);
  border-radius: 2px;
  transition: width 0.1s linear;
}

.lightbox__progress-handle {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

.lightbox__scrubber-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Details Column */
.lightbox__details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lightbox__title {
  font-size: 1.75rem;
  color: var(--color-deep-ink);
  line-height: 1.2;
  margin-top: 4px;
}

.lightbox__creator {
  font-size: 0.9375rem;
  color: var(--color-muted);
}

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

.lightbox__stat-card {
  background: var(--color-soft-lilac);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
}

.lightbox__stat-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-violet);
  display: block;
}

.lightbox__stat-lbl {
  font-size: 0.6875rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lightbox__breakdown {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 14px 16px;
}

.lightbox__breakdown-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-deep-ink);
  margin-bottom: 8px;
}

.lightbox__breakdown-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.lightbox__breakdown-list li {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--color-deep-ink);
}

.lightbox__breakdown-list strong {
  color: var(--color-violet);
  font-weight: 600;
  display: inline;
  margin-right: 4px;
}

.lightbox__source-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.lightbox__source-note svg {
  stroke: var(--color-violet);
  flex-shrink: 0;
}

.lightbox__cta {
  margin-top: 6px;
}

.btn--full {
  width: 100%;
  text-align: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .lightbox__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .lightbox__dialog {
    padding: 24px 16px;
  }
}

/* ============================================================
   PROCESS
   ============================================================ */
.process {
  background: var(--color-cloud-white);
}

.process__header {
  text-align: center;
  margin-bottom: var(--space-9);
}

.process__timeline {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding-left: var(--space-8);
}

/* Vertical line */
.process__line {
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.process__line-fill {
  width: 100%;
  height: 0%;
  background: var(--color-violet);
  transition: height 0.1s linear;
  border-radius: 1px;
}

/* Individual step */
.process__step {
  position: relative;
  padding-bottom: var(--space-9);
}

.process__step:last-child {
  padding-bottom: 0;
}

/* Dot on the line */
.process__dot {
  position: absolute;
  left: calc(-1 * var(--space-8) + 12px);
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-cloud-white);
  border: 2px solid var(--color-border);
  z-index: 2;
  transition: all var(--duration-normal) var(--ease-default);
}

.process__step.in-view .process__dot {
  background: var(--color-violet);
  border-color: var(--color-violet);
  box-shadow: 0 0 0 4px var(--color-violet-10);
}

.process__step-number {
  margin-bottom: var(--space-2);
}

.process__step-name {
  margin-bottom: var(--space-4);
}

.process__step-desc {
  color: var(--color-deep-ink);
  line-height: 1.65;
  max-width: 55ch;
}

@media (max-width: 640px) {
  .process__timeline {
    padding-left: var(--space-7);
  }
  .process__line {
    left: 12px;
  }
  .process__dot {
    left: calc(-1 * var(--space-7) + 6px);
    width: 12px;
    height: 12px;
  }
}

/* ============================================================
   WHY BEMAX
   ============================================================ */
.why-bemax {
  background: var(--color-soft-lilac);
}

.why-bemax__grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--space-9);
  align-items: start;
}

.why-bemax__quote {
  position: sticky;
  top: calc(var(--header-height) + var(--space-7));
}

.why-bemax__quote-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--text-h2);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--color-deep-ink);
}

.why-bemax__differentiators {
  display: flex;
  flex-direction: column;
}

.differentiator {
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-border);
}

.differentiator:first-child {
  padding-top: 0;
}

.differentiator:last-child {
  border-bottom: none;
}

.differentiator__name {
  margin-bottom: var(--space-3);
}

.differentiator__desc {
  color: var(--color-deep-ink);
  line-height: 1.65;
  max-width: 50ch;
}

@media (max-width: 840px) {
  .why-bemax__grid {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }
  .why-bemax__quote {
    position: static;
  }
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-section {
  background: var(--color-deep-ink);
  text-align: center;
}

.dark-section {
  color: var(--color-white);
}

.cta-section__heading {
  color: var(--color-white);
  margin-bottom: var(--space-5);
}

.cta-section__subtitle {
  font-size: var(--text-body-lg);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  max-width: 540px;
  margin: 0 auto var(--space-7);
}

.cta-section__trust {
  margin-top: var(--space-5);
  font-size: var(--text-body-sm);
  color: rgba(255, 255, 255, 0.5);
}

/* --- Contact Form --- */
.contact-form {
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-body-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-2);
}

/* Creator category tags */
.form-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.form-tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-default);
}

.form-tag:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.form-tag.active {
  background: var(--color-violet);
  border-color: var(--color-violet);
  color: #fff;
  box-shadow: 0 2px 10px rgba(104, 68, 206, 0.4);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-input);
  color: var(--color-white);
  font-size: var(--text-body);
  line-height: 1.5;
  transition: border-color var(--duration-fast) var(--ease-default),
              box-shadow var(--duration-fast) var(--ease-default);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-violet);
  box-shadow: 0 0 0 3px var(--color-violet-10);
}

.form-input.error,
.form-textarea.error {
  border-color: var(--color-error);
}

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

.form-error {
  font-size: var(--text-body-sm);
  color: var(--color-error);
  margin-top: var(--space-2);
  display: none;
}

.form-error.visible {
  display: block;
}

.form-char-count {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  text-align: right;
  margin-top: var(--space-1);
}

.form-submit {
  width: 100%;
  margin-top: var(--space-4);
}

.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-submit:disabled:hover {
  background: var(--color-violet);
}

/* Success state */
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-8) var(--space-5);
}

.form-success.visible {
  display: block;
}

.form-success__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
}

.form-success__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-white);
  fill: none;
  stroke-width: 2.5;
}

.form-success__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--text-h3);
  font-weight: 500;
  color: var(--color-white);
  margin-bottom: var(--space-3);
}

.form-success__text {
  font-size: var(--text-body);
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-deep-ink);
  padding-top: var(--space-8);
  padding-bottom: var(--space-6);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer__brand-statement {
  font-size: var(--text-body-sm);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  margin-top: var(--space-4);
  max-width: 300px;
}

.footer__col-title {
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: var(--space-5);
}

.footer__link {
  display: block;
  font-size: var(--text-body-sm);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-2) 0;
  transition: color var(--duration-fast) var(--ease-default);
}

.footer__link:hover {
  color: var(--color-white);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__copyright {
  font-size: var(--text-body-sm);
  color: rgba(255, 255, 255, 0.4);
}

.footer__legal {
  display: flex;
  gap: var(--space-5);
}

.footer__legal-link {
  font-size: var(--text-body-sm);
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--duration-fast) var(--ease-default);
}

.footer__legal-link:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* Footer logo */
.footer .logo__be,
.footer .logo__studios {
  color: var(--color-white);
}

.footer .logo__max {
  color: var(--color-lavender);
}

@media (max-width: 840px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
  .footer__grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   SCROLL ANIMATION — Initial & Revealed States
   (Smooth GPU-accelerated reveals + IntersectionObserver/GSAP)
   ============================================================ */
.reveal,
.reveal--left,
.reveal--scale {
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal {
  transform: translateY(28px);
}

.reveal--left {
  transform: translateX(-28px);
}

.reveal--scale {
  transform: translateY(24px) scale(0.95);
}

/* Hero entrance initial state */
.hero-reveal {
  opacity: 0;
  transform: translateY(24px);
  will-change: opacity, transform;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* When revealed (via GSAP or native IntersectionObserver) */
.reveal.is-revealed,
.reveal--left.is-revealed,
.reveal--scale.is-revealed,
.hero-reveal.is-revealed {
  opacity: 1 !important;
  transform: none !important;
}

/* Stagger transition delays for child reveals */
.services__grid > .reveal:nth-child(2) { transition-delay: 0.1s; }
.services__grid > .reveal:nth-child(3) { transition-delay: 0.2s; }
.portfolio__grid > .reveal--scale:nth-child(2) { transition-delay: 0.08s; }
.portfolio__grid > .reveal--scale:nth-child(3) { transition-delay: 0.16s; }
.portfolio__grid > .reveal--scale:nth-child(4) { transition-delay: 0.08s; }
.portfolio__grid > .reveal--scale:nth-child(5) { transition-delay: 0.16s; }
.portfolio__grid > .reveal--scale:nth-child(6) { transition-delay: 0.24s; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .reveal--left,
  .reveal--scale,
  .hero-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
