/* ========================
   NAZARA MEDIA - CSS
   Premium Dark Agency Site
   ======================== */

/* ---------- PRELOADER ---------- */
.preloader {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.7, 0, 0.3, 1), transform 0.8s cubic-bezier(0.7, 0, 0.3, 1);
}

.preloader.fade-out {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.preloader-word-wrap {
  height: 80px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-word-wrap span {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 500;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
}

.preloader-progress {
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.preloader-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--accent-1);
  animation: preloaderLine 2s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

@keyframes preloaderLine {
  to {
    width: 100%;
  }
}

/* Base site state during/after preloader */
body.preloading {
  overflow: hidden;
}

body.site-revealed #hero .hero-title,
body.site-revealed #hero .hero-subtitle,
body.site-revealed #hero .hero-actions {
  animation: none !important;
  /* Let the reveal handle it */
}

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

:root {
  /* Color Palette — Orange / Black / White */
  --bg-primary: #060606;
  --bg-secondary: #0c0c0c;
  --bg-card: #101010;
  --bg-card-hover: #161616;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.14);

  --accent-1: #f55800;
  /* primary orange */
  --accent-2: #ff8130;
  /* lighter orange */
  --accent-3: #c94200;
  /* deep orange */
  --accent-gradient: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
  --accent-gradient-2: linear-gradient(135deg, var(--accent-3) 0%, var(--accent-1) 100%);

  --text-primary: #f2f2f2;
  --text-secondary: rgba(242, 242, 242, 0.5);
  --text-muted: rgba(242, 242, 242, 0.3);

  /* Typography */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-py: 120px;
  --container: 1280px;
  --header-h: 64px;
  --banner-h: 36px;

  /* Shadows */
  --glow-1: 0 0 60px rgba(245, 88, 0, 0.18);
  --glow-2: 0 0 40px rgba(245, 88, 0, 0.12);

  /* Easing */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  outline: none;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (pointer: coarse) {
  body {
    cursor: auto;
  }
}

body.menu-open {
  overflow: hidden;
}

/* Remove any browser default focus rings that add blue outlines */
*:focus {
  outline: none;
}

/* ---------- CUSTOM CURSOR ---------- */
.cursor {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.18s var(--ease-out), height 0.18s var(--ease-out), background 0.2s, opacity 0.2s;
}

.cursor.expanded {
  width: 36px;
  height: 36px;
  background: rgba(245, 88, 0, 0.15);
  border: 1px solid rgba(245, 88, 0, 0.6);
}

.cursor.cursor-orange {
  background: var(--accent-1);
}

.cursor-follower.cursor-orange {
  border-color: var(--accent-1);
}

.cursor-follower {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(245, 88, 0, 0.35);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.12s var(--ease-out);
}

@media (pointer: coarse) {

  .cursor,
  .cursor-follower {
    display: none;
  }
}

/* Main reveal transition */
main {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
  will-change: opacity, transform;
}

body.site-revealed main {
  opacity: 1;
  transform: scale(1);
}

/* ---------- TYPOGRAPHY ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-desc {
  margin-left: auto;
  margin-right: auto;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- CONTAINER ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 40px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
  cursor: none;
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

@media (pointer: coarse) {
  .btn {
    cursor: pointer;
  }
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background 0.2s;
  border-radius: inherit;
  /* Fix edgy corners on hover overlay */
}

.btn:hover::before {
  background: rgba(255, 255, 255, 0.06);
}

/* Primary — solid white background, black text (ref-style) */
.btn-primary {
  background: #fff;
  color: #0a0a0a;
  font-weight: 600;
  box-shadow: none;
}

.btn-primary:hover {
  background: var(--accent-1);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(245, 88, 0, 0.35);
}

/* Header-specific CTA (matching reference image) */
.header .header-actions .btn {
  background: #fff;
  color: #0c0c0c;
  font-weight: 700;
  border-radius: 40px;
  /* same radius as menu */
  padding: 10px 24px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.header .header-actions .btn:hover {
  background: var(--accent-1);
  color: #fff;
  box-shadow: 0 4px 15px rgba(245, 88, 0, 0.4);
}

/* Ghost — transparent with subtle border */
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

/* Outline — orange border accent */
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-outline:hover {
  border-color: var(--accent-1);
  color: var(--accent-2);
  transform: translateY(-1px);
}

.form-opt-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.6;
}

.form-opt-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.form-service-opt.selected .form-opt-icon {
  opacity: 1;
}

.btn-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.btn-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.btn-large {
  padding: 15px 32px;
  font-size: 0.95rem;
}

/* ---------- PREMIUM GLOW BUTTON ---------- */
@property --glow-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.hero-cta-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 40px;
  /* Match button radius */
}

.btn-glow-animate {
  position: relative;
  z-index: 2;
  overflow: visible !important;
}

/* Thin rotating border */
.btn-glow-animate::after {
  content: '';
  position: absolute;
  inset: -1.2px;
  padding: 1.2px;
  border-radius: inherit;
  background: conic-gradient(from var(--glow-angle),
      transparent 0%,
      var(--accent-1) 20%,
      #ffffff 50%,
      #ff0a74 80%,
      transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotate-glow 4s linear infinite;
  pointer-events: none;
  z-index: 3;
}

/* Soft blurred outer glow shadow */
.btn-glow-blur {
  position: absolute;
  inset: -4px;
  background: conic-gradient(from var(--glow-angle),
      transparent 0%,
      var(--accent-1) 20%,
      #ffffff 50%,
      #ff0a74 80%,
      transparent 100%);
  border-radius: inherit;
  filter: blur(10px);
  opacity: 0.35;
  animation: rotate-glow 4s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes rotate-glow {
  to {
    --glow-angle: 360deg;
  }
}

/* ---------- HEADER ---------- */
/* ---------- TOP BANNER ---------- */
.top-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--banner-h);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.top-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  /* Fill parent for vertical centering */
  max-width: var(--container);
  margin: 0 auto;
}

.top-banner p {
  margin: 0;
  padding: 0;
  text-align: center;
  line-height: 1;
  /* Prevents text from shifting down */
  display: flex;
  align-items: center;
  gap: 8px;
}

.banner-badge {
  background: var(--accent-gradient);
  color: #fff;
  padding: 2px 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.top-banner a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--accent-1);
  transition: all 0.2s;
}

.top-banner a:hover {
  color: var(--accent-1);
}

.header {
  position: absolute;
  top: var(--banner-h);
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 900;
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}

.header.scrolled {
  /* Removed background strip to keep elements floating */
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 20px;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.main-logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.footer-logo-img {
  height: 80px;
}

@media (max-width: 768px) {
  .main-logo-img, .footer-logo-img {
    height: 60px;
  }
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(25, 25, 25, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 40px;
  padding: 4px 8px;
}

@media (min-width: 901px) {
  .nav-desktop {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

.nav-link {
  display: inline-block;
  padding: 10px 22px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #a0a0a0;
  text-decoration: none;
  border-radius: 40px;
  /* Full pill to match container */
  transition: all 0.3s var(--ease-out);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  background: var(--accent-1);
  color: #fff;
  box-shadow: 0 4px 15px rgba(245, 88, 0, 0.2);
}

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

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  padding: 10px;
  transition: background 0.2s;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}

@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* ---------- MOBILE MENU ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}

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

.menu-overlay-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  padding: 40px 20px;
}

.menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-nav-link {
  display: block;
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: -0.02em;
}

.menu-nav-link:hover {
  color: var(--text-primary);
}

.menu-cta {
  font-size: 1rem;
}

.menu-socials {
  display: flex;
  gap: 16px;
}

.menu-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.menu-socials a:hover {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + var(--banner-h) + 60px) 20px 100px;
  text-align: center;
}

@media (max-width: 768px) {
  .hero {
    padding: calc(var(--header-h) + var(--banner-h) + 24px) 20px 0;
    min-height: auto;
    justify-content: flex-start;
  }
}

/* Cursor-following spotlight inside hero */
.hero-spotlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 88, 0, 0.09) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}



.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  will-change: transform, opacity;
  transition: opacity 0.05s linear;
}

@media (max-width: 768px) {
  .hero-content {
    gap: 20px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.6);
  animation: fadeUp 0.8s var(--ease-out) both;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-2);
  border-radius: 50%;
  box-shadow: 0 0 6px 2px rgba(255, 129, 48, 0.6);
  animation: pulse 2.5s ease infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7.5vw, 5.2rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  animation: fadeUp 0.8s var(--ease-out) 0.1s both;
}

.hero-title-gradient {
  background: linear-gradient(180deg, var(--accent-2) 0%, var(--accent-1) 60%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.8;
  animation: fadeUp 0.8s var(--ease-out) 0.2s both;
  padding: 0 4px;
}

@media (max-width: 480px) {
  .hero-subtitle br {
    display: none;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  animation: fadeUp 0.8s var(--ease-out) 0.3s both;
  width: 100%;
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    max-width: 320px;
  }

  .hero-cta-wrap {
    width: 100%;
    max-width: 320px;
  }
}

.btn-play-icon {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 16px;
  animation: fadeUp 0.8s var(--ease-out) 0.4s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 20px;
  right: 24px;
  left: auto;
  transform: none;
  z-index: 1;
  animation: fadeUp 1s var(--ease-out) 0.8s both;
}

@media (max-width: 480px) {
  .hero-scroll-indicator {
    display: none;
  }
}

.scroll-circle {
  width: 90px;
  height: 90px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin 12s linear infinite;
}

.scroll-text-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scroll-text-svg text {
  font-size: 9px;
  fill: var(--text-muted);
  letter-spacing: 1.5px;
  font-family: var(--font-body);
}

.scroll-arrow {
  font-size: 1rem;
  color: var(--text-secondary);
  animation: bounce 2s ease infinite;
  position: relative;
  z-index: 1;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

/* ---------- MARQUEE ---------- */
.marquee-section {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 94, 0, 0.04);
  padding: 0;
}

@media (max-width: 768px) {
  .marquee-section {
    position: relative;
    z-index: 20;
    background: linear-gradient(rgba(255, 94, 0, 0.04), rgba(255, 94, 0, 0.04)), #000;
  }
}

.marquee-track {
  display: flex;
  overflow: hidden;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 0;
  animation: marqueeScroll 30s linear infinite;
  white-space: nowrap;
  flex-shrink: 0;
}

.marquee-content span {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 20px 28px;
  display: inline-block;
  transition: color 0.2s;
}

.marquee-content span:hover {
  color: var(--accent-1);
}

.marquee-dot {
  color: var(--accent-1) !important;
  padding: 20px 8px !important;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-33.333%);
  }
}

/* ---------- SERVICES ---------- */
.services {
  padding: var(--section-py) 0;
  background: #ffffff;
  position: relative;
  z-index: 1;
}

.services .section-title {
  color: #0c0c0c;
}

.services .section-desc {
  color: rgba(12, 12, 12, 0.6);
}

.services-categories {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.services-category-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.services-category-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.services-category-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.services-category-label span {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-1);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-categories {
    gap: 44px;
  }
}

@media (max-width: 500px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.service-card {
  position: relative;
  height: 260px;
  perspective: 1200px;
  cursor: pointer;
  background: none !important;
  border: none !important;
}

@media (max-width: 768px) {
  .service-card {
    height: 290px;
  }
}


.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: left;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
  transform: rotateY(180deg);
}

/* Touch device: flipped state triggered by JS class */
.service-card.touch-flipped .service-card-inner {
  transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}


.service-card:hover .service-card-front,
.service-card:hover .service-card-back {
  border-color: var(--accent-1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.service-card-front {
  z-index: 2;
  transform: rotateY(0deg);
  align-items: center;
  justify-content: center;
}

.service-card-back {
  z-index: 1;
  transform: rotateY(180deg);
  align-items: center;
  justify-content: center;
  padding: 32px;
}

@media (max-width: 768px) {
  .service-card-back {
    padding: 20px;
  }
}

.service-front-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 24px;
}

.service-icon-large {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0c0c0c;
  opacity: 0.9;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.02);
  transition: transform 0.4s var(--ease-out), background 0.4s var(--ease-out);
}

.service-card:hover .service-icon-large {
  transform: scale(1.1);
  background: rgba(0, 0, 0, 0.05);
}

.service-icon-large svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.2px;
}

.service-title-front {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  color: #0c0c0c;
  letter-spacing: 0.01em;
}

.service-back-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-back-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444444;
  font-weight: 400;
  text-align: center;
}

@media (max-width: 768px) {
  .service-back-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: left;
  }
}



/* ---------- WORK (Scroll-driven Horizontal Rail) ---------- */

/* Section has no padding — sticky inner fills 100vh */
.work {
  padding: 0;
  position: relative;
}

/* Outer container becomes normal block */
.work-sticky-outer {
  position: relative;
  width: 100%;
}

/* Inner panel becomes normal */
.work-sticky-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--section-py) 0;
  background: #ffffff;
}

/* Match services-section typography on light background */
.work .section-title,
.work-section-header .section-title {
  color: #0c0c0c;
}

.work .section-desc,
.work-section-header .section-desc {
  color: rgba(12, 12, 12, 0.6);
}

/* Header inside panel */
.work-section-header {
  margin-bottom: 32px;
  padding: 0;
  text-align: center;
  flex-shrink: 0;
}

/* Rail wrapper */
.work-rail-wrap {
  position: relative;
  width: 100%;
}

/* The actual flex row — now swipable natively */
.work-rail {
  display: flex;
  flex-direction: row;
  gap: 20px;
  /* Aligns perfectly with the 1280px max-width container */
  padding: 16px max(32px, calc((100vw - 1280px) / 2 + 32px));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  background: transparent;
  /* Hide scrollbar */
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.work-rail::-webkit-scrollbar {
  display: none;
}

/* Forces browsers to respect right padding when scrolling */
.work-rail::after {
  content: '';
  flex: 0 0 max(32px, calc((100vw - 1280px) / 2 + 32px));
}

.work-rail.active-drag {
  cursor: grabbing;
  scroll-behavior: auto;
}

/* Edge fade overlays */
.work-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 200px;
  /* Increased width */
  pointer-events: none;
  z-index: 4;
}

.work-fade-left {
  left: 0;
  background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0.8) 15%, transparent 40%);
}

.work-fade-right {
  right: 0;
  background: linear-gradient(to left, white 0%, rgba(255, 255, 255, 0.8) 15%, transparent 40%);
}

/* ---------- Work Cards ---------- */
.work-item {
  flex: 0 0 auto;
  width: 290px;
  /* portrait width  */
  height: 480px;
  /* portrait height — ~9:16-ish video ratio */
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  position: relative;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
  scroll-snap-align: start;
}

/* Featured card: wider, same height */
.work-item.featured {
  width: 420px;
}

.work-item:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(245, 88, 0, 0.25);
}

.work-item-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.7s var(--ease-out);
  border-radius: inherit;
}

.work-item:hover .work-item-bg {
  transform: scale(1.07);
}

/* Overlay is ALWAYS visible (not hover-only) */
.work-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(6, 6, 6, 0.96) 0%,
      rgba(6, 6, 6, 0.4) 52%,
      transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 24px;
  z-index: 2;
  border-radius: inherit;
}

.work-item-tag {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-1);
  background: rgba(255, 94, 0, 0.15);
  border: 1px solid rgba(255, 94, 0, 0.3);
  border-radius: 50px;
  padding: 4px 12px;
  display: inline-block;
  width: fit-content;
  margin-bottom: 10px;
}

.work-item-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.2;
}

.work-item-services {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

/* Arrow hint on card */
.work-item-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background 0.3s, transform 0.3s;
}

.work-item:hover .work-item-arrow {
  background: var(--accent-1);
  border-color: transparent;
  transform: rotate(45deg);
}

.work-item-arrow svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
}

/* ---- Progress bar ---- */
.work-progress-track {
  height: 2px;
  background: rgba(0, 0, 0, 0.08);
  margin: 28px 72px 0;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

.work-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  border-radius: 2px;
  transition: width 0.1s linear;
}

/* ---- Mobile — Sticky Parallax Optimized ---- */
@media (max-width: 768px) {
  .work-sticky-inner {
    padding: 60px 0 40px;
    background: #ffffff;
    justify-content: flex-start;
  }

  .work-section-header {
    margin-bottom: 24px;
    padding: 0 20px;
  }

  .work-rail {
    padding: 12px 20px;
    gap: 16px;
    /* JS-driven translateX still active */
  }

  .work-item {
    width: 250px;
    height: 400px;
  }

  .work-item.featured {
    width: 280px;
  }

  .work-progress-track {
    margin: 20px 20px 0;
  }

  .work-fade-left,
  .work-fade-right {
    width: 40px;
  }
}

@media (max-width: 400px) {
  .work-item {
    width: 210px;
    height: 340px;
  }

  .work-item.featured {
    width: 230px;
  }
}

/* ---------- BRANDS ---------- */
.brands {
  padding: 140px 0 100px;
  /* Increased top padding */
  background: #ffffff;
  background-image: radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  z-index: 5;
}

.brands .container {
  position: relative;
  z-index: 10;
}

.brands .section-header {
  margin-bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brands .section-title {
  color: #111111;
}

.brands .section-desc {
  color: #666666;
}

.brands .section-desc sup {
  color: var(--accent-1);
  font-weight: 700;
}

.brands-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: #aaaaaa;
  margin-top: 40px;
  letter-spacing: 0.02em;
}

.brands::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #fff, transparent 15%, transparent 85%, #fff);
  z-index: 2;
  pointer-events: none;
}

.brands-track-wrap {
  overflow: hidden;
}

.brands-track {
  display: flex;
  overflow: hidden;
}

.brands-content {
  display: flex;
  align-items: center;
  gap: 80px;
  animation: brandsScroll 40s linear infinite;
  flex-shrink: 0;
  padding: 24px 0;
}

.brands-track-reverse .brands-content {
  animation-direction: reverse;
}

@keyframes brandsScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.brand-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: #222222;
  filter: grayscale(1);
  opacity: 0.35;
  transition: all 0.5s var(--ease-out);
}

.brand-logo:hover {
  filter: grayscale(0);
  opacity: 1;
  color: var(--accent-1);
  transform: scale(1.1);
}

.brand-logo-img {
  max-height: 50px;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.35;
  transition: all 0.5s var(--ease-out);
}

.brand-logo-img:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.1);
}

/* Brands Grid */
.brands-grid-container {
  margin-top: 80px;
  position: relative;
  z-index: 3;
}

.brands-grid-title {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 40px;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  margin: 0 auto;
  gap: 1px;
  background: rgba(0, 0, 0, 0.08);
  /* Grid line color */
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.brands-grid-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  height: 160px;
  background: #fcfcfc;
  /* Bright, almost white background */
  transition: background 0.3s ease;
}

.brands-grid-item:hover {
  background: #ffffff;
}

.brands-grid-img {
  max-width: 220px;
  max-height: 85px;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.65;
  transition: all 0.3s ease;
}

.brands-grid-item:hover .brands-grid-img {
  filter: grayscale(0);
  opacity: 1;
}

@media (max-width: 900px) {
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .brands-grid-item {
    height: 120px;
    padding: 20px 15px;
  }

  .brands-grid-img {
    max-width: 140px;
    max-height: 50px;
  }
}

@media (max-width: 400px) {
  .brands-grid-item {
    height: 100px;
    padding: 15px 10px;
  }

  .brands-grid-img {
    max-width: 110px;
    max-height: 40px;
  }
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  padding: var(--section-py) 0;
  background: #ffffff;
  overflow: hidden;
}

.testimonials .section-title {
  color: #0c0c0c;
}

.testimonials .section-desc {
  color: rgba(12, 12, 12, 0.6);
}

.testimonial-rail-layout .testimonial-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
  padding: 40px 32px;
  user-select: none;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .testimonial-rail-layout .testimonial-track {
    padding: 24px 20px;
    gap: 16px;
  }
}

.testimonial-rail-layout .testimonial-track::-webkit-scrollbar {
  display: none;
}

.testimonial-rail-layout .testimonial-track.active-drag {
  cursor: grabbing;
  scroll-snap-type: none;
  /* Disable snap while dragging for fluid feel */
  scroll-behavior: auto;
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 340px;
  scroll-snap-align: center;
  /* Snap cards to center */
  background: #f9f9f9;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 10px;
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  height: auto;
}

@media (max-width: 1100px) {
  .testimonial-card {
    flex: 0 0 calc(50% - 12px);
    /* 2 cards */
  }
}

@media (max-width: 700px) {
  .testimonial-card {
    flex: 0 0 calc(100% - 0px);
    /* 1 card */
  }
}

.testi-card-inner {
  padding: 48px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.testi-gradient-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 110%, rgba(245, 88, 0, 0.12) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  /* Fix edgy corners */
}

.testimonial-card:hover {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover .testi-gradient-bg {
  opacity: 1;
}

.testi-quote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: #1a1a1a;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.testi-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555555;
  margin-bottom: 54px;
  flex-grow: 1;
}

.testi-user {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}

.testi-avatar-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid #ffffff;
  background: #eee;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.testi-avatar-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-1);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.testi-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.testi-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1a1a1a;
}

.testi-role {
  font-size: 0.78rem;
  color: #888888;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}

.testi-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #1a1a1a;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.testi-btn:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 10px 20px rgba(245, 88, 0, 0.2);
}

.testi-dots {
  display: none;
  /* Hidden for rail layout */
}

/* ---------- WHY US ---------- */
.why-us {
  padding: var(--section-py) 0;
}

.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

@media (max-width: 900px) {
  .why-us-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .why-us-left {
    position: static !important;
    top: auto !important;
  }
}

.why-us-left .section-title {
  margin-bottom: 32px;
}

.why-visual-card {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 94, 0, 0.25);
  border-radius: 10px;
  box-shadow: var(--glow-1);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.why-visual-icon {
  display: flex;
  align-items: center;
}

.why-visual-icon svg {
  stroke: var(--accent-1);
  width: 24px;
  height: 24px;
}

.why-us-left {
  position: sticky;
  top: calc(var(--header-h) + 60px);
  align-self: start;
}

.sticky-title {
  /* Inherits from parent sticky behavior */
}

.pillar {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 20px;
  background: var(--bg-card);
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  .pillar {
    padding: 24px 20px;
    min-height: auto;
    margin-bottom: 16px;
  }

  .pillar:hover {
    transform: none;
  }
}

.pillar::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-gradient);
  border-radius: 4px 0 0 4px;
  transform: scaleY(0);
  transition: transform 0.3s var(--ease-out);
  transform-origin: bottom;
}

.pillar:hover {
  border-color: rgba(255, 94, 0, 0.3);
  transform: translateX(6px);
}

.pillar:hover::before {
  transform: scaleY(1);
}

.pillar-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.pillar-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- ABOUT ---------- */
.about {
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}

.about-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.about-orb {
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255, 94, 0, 0.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.about .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 900px) {
  .about .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.about-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  color: var(--text-primary);
}

.about-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 520px;
}

.about-actions {
  margin-top: 8px;
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-card {
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s var(--ease-out);
}

.about-card:hover {
  border-color: rgba(255, 94, 0, 0.3);
  transform: translateX(6px);
  box-shadow: var(--glow-1);
}

.about-card-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}

.about-card-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- CTA SECTION ---------- */
.cta-section {
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 94, 0, 0.18), transparent 60%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.cta-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  padding: 0 8px;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 60px;
}

@media (max-width: 480px) {
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

/* ---------- QUOTE FORM ---------- */
.quote-form-wrap {
  width: 100%;
  max-width: 580px;
}

.quote-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 40px;
  text-align: left;
}

@media (max-width: 480px) {
  .quote-form {
    padding: 24px 20px;
    border-radius: 10px;
  }
}

.form-step {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.form-step.active {
  display: flex;
}

.form-step-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-step-actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(255, 94, 0, 0.5);
  background: rgba(255, 94, 0, 0.05);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-step-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.form-categories {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 20px;
}

.form-category {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.category-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

@media (max-width: 480px) {
  .category-options {
    grid-template-columns: 1fr;
  }
}

.form-service-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.form-service-opt input[type=checkbox] {
  display: none;
}

.form-service-opt.selected {
  background: rgba(255, 94, 0, 0.15);
  border-color: rgba(255, 94, 0, 0.5);
  color: var(--accent-1);
}

.form-service-opt:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.form-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.form-success {
  text-align: center;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.form-success-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 94, 0, 0.12);
  border: 1px solid rgba(255, 94, 0, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.form-success-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent-1);
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.form-success p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 64px 0 0;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  overflow: hidden;
  /* contain full-width physics canvas */
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 0;
  /* removed — physics wrap provides its own spacing */
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer {
    padding: 48px 0 0;
  }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 12px 0;
  }

  .footer-bottom-links {
    gap: 12px;
    width: 100%;
    justify-content: center;
  }
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.6;
  max-width: 240px;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.25s;
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.social-icon:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--glow-1);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: var(--text-primary);
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   SCROLL ANIMATION SYSTEM — Apple-Grade
   ============================================ */

/* Base reveal — fade + rise */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Variant: fade from left */
.reveal-left {
  opacity: 0;
  transform: translateX(-52px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  will-change: opacity, transform;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Variant: fade from right */
.reveal-right {
  opacity: 0;
  transform: translateX(52px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  will-change: opacity, transform;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Variant: scale + fade (Apple-style cards) */
.reveal-scale {
  opacity: 0;
  transform: scale(0.88) translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  will-change: opacity, transform;
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Variant: clip reveal (text/line sweep) */
.reveal-clip {
  clip-path: inset(0 0 100% 0);
  opacity: 1;
  transition: clip-path 0.95s var(--ease-out);
  will-change: clip-path;
}

.reveal-clip.visible {
  clip-path: inset(0 0 0% 0);
}

/* Stagger delays */
.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.18s;
}

.reveal-delay-3 {
  transition-delay: 0.28s;
}

.reveal-delay-4 {
  transition-delay: 0.38s;
}

.reveal-delay-5 {
  transition-delay: 0.48s;
}

.reveal-delay-6 {
  transition-delay: 0.58s;
}

/* Word / char split animation */
.word-split {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: inherit;
}

.word-split span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.75s var(--ease-out), opacity 0.75s var(--ease-out);
  will-change: transform, opacity;
}

.word-split.visible span {
  transform: translateY(0);
  opacity: 1;
}

/* Ensure gradient classes work inside word-split inner spans */
.word-split span.text-gradient,
.word-split span.hero-title-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  color: transparent;
}

.word-split span.hero-title-gradient {
  background: linear-gradient(180deg, var(--accent-2) 0%, var(--accent-1) 60%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Section entry: scale-up background panels */
.section-panel-reveal {
  transform-origin: bottom center;
  animation: none;
}

/* Scroll Progress Bar */
#scrollProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-3), var(--accent-1), var(--accent-2));
  z-index: 9999;
  pointer-events: none;
  transition: width 0.08s linear;
  box-shadow: 0 0 8px var(--accent-1);
}

/* Parallax container — prevents overflow issues */
.parallax-wrap {
  overflow: clip;
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--accent-1), var(--accent-2));
  border-radius: 3px;
}

/* ---------- SELECTION ---------- */
::selection {
  background: rgba(255, 94, 0, 0.35);
  color: #fff;
}

/* ============================================
   MOBILE OVERHAUL — Comprehensive Touch UX
   ============================================ */

/* Reduce section padding on mobile */
@media (max-width: 768px) {
  :root {
    --section-py: 72px;
  }

  .section-header {
    margin-bottom: 40px;
    padding: 0 4px;
  }

  .section-title {
    font-size: clamp(1.75rem, 7vw, 2.6rem);
  }

  .section-desc {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  :root {
    --section-py: 56px;
  }
}

/* Top banner: prevent text overflow on smallest screens */
@media (max-width: 480px) {
  .top-banner {
    font-size: 0.68rem;
    height: auto;
    min-height: var(--banner-h);
    padding: 6px 16px;
    text-align: center;
  }

  .top-banner-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }
}

/* Header CTA button: hide on mobile screens to avoid crowding */
@media (max-width: 768px) {
  .header .header-actions #headerCta {
    display: none;
  }
}

/* Service cards: show a subtle "tap to reveal" hint on touch */
@media (pointer: coarse) {
  .service-card-front::after {

    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.28);
    font-weight: 600;
    font-family: var(--font-body);
    white-space: nowrap;
    pointer-events: none;
  }

  .service-card.touch-flipped .service-card-front::after {
    content: 'Tap again to learn more';
  }

}

/* Work grid: ensure overlay text is legible on mobile */
@media (max-width: 768px) {
  .work-item-overlay {
    padding: 24px 20px;
  }

  .work-item-title {
    font-size: 1.1rem;
  }
}

/* Testimonial controls: larger hit targets on mobile */
@media (max-width: 768px) {
  .testi-btn {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .testimonial-controls {
    margin-top: 24px;
  }

  .testi-card-inner {
    padding: 28px 24px;
  }
}

/* About section: stack stats in a row on mobile */
@media (max-width: 600px) {
  .about-cards {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .about-card {
    flex: 1 1 calc(50% - 6px);
    min-width: 120px;
  }
}

/* Why-us: reduce visual card padding on mobile */
@media (max-width: 768px) {
  .why-visual-card {
    padding: 16px 20px;
    font-size: 0.9rem;
  }
}

/* Menu overlay: improve touch targets */
@media (pointer: coarse) {
  .menu-nav-link {
    padding: 16px 32px;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .menu-cta {
    min-height: 52px;
    padding: 14px 32px;
  }
}

/* Smooth native scrolling everywhere on touch */
@media (pointer: coarse) {
  * {
    -webkit-overflow-scrolling: touch;
  }
}

/* Remove hover transform effects on touch to prevent stuck states */
@media (pointer: coarse) {

  .about-card:hover,
  .footer-links a:hover {
    transform: none;
  }

  .social-icon:hover {
    transform: none;
  }
}

/* Form step actions: stack on mobile */
@media (max-width: 480px) {
  .form-step-actions {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .form-step-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ========================
   WORK PAGE SHOWCASE
   ======================== */
.work-page-main {
  padding-top: calc(var(--header-h) + var(--banner-h) + 120px);
  padding-bottom: 80px;
}

.work-page-header {
  margin-bottom: 48px;
}

.work-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.work-tab {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 12px 28px;
  border-radius: 40px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: none;
  transition: all 0.3s var(--ease-out);
  outline: none;
}

@media (pointer: coarse) {
  .work-tab {
    cursor: pointer;
  }
}

.work-tab:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.work-tab.active {
  background: var(--accent-1);
  color: #fff;
  border-color: var(--accent-1);
  box-shadow: 0 4px 15px rgba(245, 88, 0, 0.3);
}

/* We use Flexbox layout to allow auto-centering of 1-3 items securely */
.work-grid-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
}

.work-grid-item {
  width: calc(25% - 18px);
  /* 4 items per row */
  /* Remove break-inside and margin-bottom as gap handles it */
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: none;
  transform-origin: center;
  transition: transform 0.4s var(--ease-out), filter 0.4s, opacity 0.4s, border-color 0.4s;
}

@media (max-width: 1200px) {
  .work-grid-item {
    width: calc(33.333% - 16px);
  }
}

@media (max-width: 900px) {
  .work-grid-item {
    width: calc(50% - 12px);
  }
}

@media (max-width: 600px) {
  .work-grid-item {
    width: 100%;
  }
}

@media (pointer: coarse) {
  .work-grid-item {
    cursor: pointer;
  }
}

.work-grid-item.hidden {
  display: none;
}

.work-grid-item:hover {
  transform: translateY(-6px);
  border-color: var(--accent-1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 88, 0, 0.1);
}

.design-item {
  aspect-ratio: 4 / 3;
}

.reel-item {
  aspect-ratio: 9 / 16;
}

.video-item {
  aspect-ratio: 16 / 9;
}

/* Reset aspect ratio for items as their intrinsic size or forced */
.work-item-img,
.work-item-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  display: block;
  /* removes bottom gap */
}

.work-grid-item:hover .work-item-img,
.work-grid-item:hover .work-item-video {
  transform: scale(1.05);
}

.work-item-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 24px 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  transform: translateY(10px);
}

.work-grid-item:hover .work-item-info {
  opacity: 1;
  transform: translateY(0);
}

.work-info-tag {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--accent-1);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 6px;
}

.work-info-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

/* Ensure controls are hidden for autoplay videos */
.work-item-video::-webkit-media-controls {
  display: none !important;
}

/* =========================================
   HERO V3 — FANNED VIDEO CAROUSEL
   ========================================= */
.hero-v3 {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--header-h) + 12vh) 20px 0;
  background: #000;
  text-align: center;
}

.hero-v3 .hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-v3 .hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
}

.hero-v3 .hero-title .massive-anton {
  color: #fff;
  font-size: clamp(1.8rem, 5.8vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  word-spacing: 0.15em;
}

.hero-title-flex {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-inset-wrap {
  width: clamp(60px, 12vw, 140px);
  height: clamp(1.75rem, 5.6vw, 4.55rem);
  border-radius: 6px;
  overflow: hidden;
  background: #111;
  display: flex;
  flex-shrink: 0;
}

.hero-inset-vid {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-v3 .hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  max-width: 900px;
  margin: 0 auto 80px;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

@media (max-width: 768px) {
  .hero-v3 .hero-subtitle {
    margin-bottom: 0;
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
  }
}

/* ---------- HERO STACK (FANNED BOTTOM-ALIGNED) ---------- */
.hero-stack-wrap {
  width: 100%;
  max-width: var(--container);
  margin: auto auto 0;
  perspective: 2000px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 420px;
  position: relative;
  -webkit-mask-image: linear-gradient(to top, transparent 0%, black 15%);
  mask-image: linear-gradient(to top, transparent 0%, black 15%);
}

.hero-stack {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 20px;
}

.stack-card {
  position: absolute;
  bottom: 0px;
  width: 260px;
  height: 400px;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.9);
  transition: transform 0.8s var(--ease-out), opacity 0.8s var(--ease-out), filter 0.8s var(--ease-out), box-shadow 0.8s var(--ease-out);
  opacity: 0;
}

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

  100% {
    transform: translateY(-15px);
  }
}

.card-video-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  animation: breathe 8s ease-in-out infinite alternate;
}

.card-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Staggered breathe offsets */
.card-v-1 .card-video-wrap {
  animation-delay: 0.0s;
}

.card-v-2 .card-video-wrap {
  animation-delay: 0.3s;
}

.card-v-3 .card-video-wrap {
  animation-delay: 0.6s;
}

.card-v-4 .card-video-wrap {
  animation-delay: 0.9s;
}

.card-v-5.active .card-video-wrap {
  animation-delay: 1.2s;
}

.card-v-6 .card-video-wrap {
  animation-delay: 1.5s;
}

.card-v-7 .card-video-wrap {
  animation-delay: 1.8s;
}

.card-v-8 .card-video-wrap {
  animation-delay: 2.1s;
}

.card-v-9 .card-video-wrap {
  animation-delay: 2.4s;
}

/* Fanned card positions */
.card-v-1 {
  transform: translateX(-620px) rotateY(20deg) translateZ(-160px) scale(0.85);
  z-index: 1;
  filter: brightness(0.15) blur(6px);
  -webkit-mask-image: linear-gradient(to right, transparent, black 60%);
}

.card-v-2 {
  transform: translateX(-465px) rotateY(16deg) translateZ(-120px) scale(0.88);
  z-index: 2;
  filter: brightness(0.3) blur(2px);
}

.card-v-3 {
  transform: translateX(-310px) rotateY(12deg) translateZ(-80px) scale(0.91);
  z-index: 3;
  filter: brightness(0.5);
}

.card-v-4 {
  transform: translateX(-155px) rotateY(8deg) translateZ(-40px) scale(0.95);
  z-index: 4;
  filter: brightness(0.7);
}

.card-v-5.active {
  transform: translateX(0) rotateY(0) translateZ(80px) scale(1.08);
  z-index: 10;
  border-color: #fff;
  box-shadow: 0 0 50px rgba(138, 43, 226, 0.3);
  filter: brightness(1);
}

.card-v-6 {
  transform: translateX(155px) rotateY(-8deg) translateZ(-40px) scale(0.95);
  z-index: 4;
  filter: brightness(0.7);
}

.card-v-7 {
  transform: translateX(310px) rotateY(-12deg) translateZ(-80px) scale(0.91);
  z-index: 3;
  filter: brightness(0.5);
}

.card-v-8 {
  transform: translateX(465px) rotateY(-16deg) translateZ(-120px) scale(0.88);
  z-index: 2;
  filter: brightness(0.3) blur(2px);
}

.card-v-9 {
  transform: translateX(620px) rotateY(-20deg) translateZ(-160px) scale(0.85);
  z-index: 1;
  filter: brightness(0.15) blur(6px);
  -webkit-mask-image: linear-gradient(to left, transparent, black 60%);
}

/* Staggered reveal: opacity 0 → 1 then let filter rules take over */
.stack-card.visible {
  opacity: 1;
  filter: brightness(0.15) blur(6px);
}

.stack-card.visible.card-v-2,
.stack-card.visible.card-v-8 {
  filter: brightness(0.3) blur(2px);
}

.stack-card.visible.card-v-3,
.stack-card.visible.card-v-7 {
  filter: brightness(0.6);
}

.stack-card.visible.card-v-4,
.stack-card.visible.card-v-6 {
  filter: brightness(0.8);
}

.stack-card.visible.active {
  filter: brightness(1);
}

/* --- Responsive --- */
@media (max-width: 1200px) {
  .stack-card {
    width: 200px;
    height: 320px;
  }

  .card-v-1 {
    transform: translateX(-350px) rotateY(35deg) translateZ(-180px) scale(0.8);
  }

  .card-v-9 {
    transform: translateX(350px) rotateY(-35deg) translateZ(-180px) scale(0.8);
  }
}

@media (max-width: 900px) {
  .hero-stack-wrap {
    height: 400px;
  }

  .stack-card {
    width: 160px;
    height: 260px;
  }

  .card-v-1,
  .card-v-2,
  .card-v-8,
  .card-v-9 {
    display: none;
  }

  .card-v-3 {
    transform: translateX(-140px) rotateY(18deg) translateZ(-80px);
  }

  .card-v-7 {
    transform: translateX(140px) rotateY(-18deg) translateZ(-80px);
  }
}

@media (max-width: 768px) {
  .hero-v3 {
    min-height: auto;
    justify-content: flex-start;
    padding: calc(var(--header-h) + var(--banner-h) + 28px) 20px 0;
    gap: 0;
  }

  .hero-v3 .hero-content {
    gap: 16px;
  }

  .hero-title-flex {
    gap: 8px;
    justify-content: center;
  }

  .hero-v3 .hero-title .massive-anton {
    word-spacing: 0.05em;
  }
}

@media (max-width: 600px) {
  .hero-stack-wrap {
    height: 280px;
    margin-top: 16px;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .stack-card {
    width: 155px;
    height: 240px;
    border-width: 1px;
  }

  .card-v-3,
  .card-v-7 {
    display: none;
  }

  .card-v-4 {
    transform: translateX(-90px) rotateY(15deg) translateZ(-40px) scale(0.92);
  }

  .card-v-6 {
    transform: translateX(90px) rotateY(-15deg) translateZ(-40px) scale(0.92);
  }
}

/* Massive Anton font used in hero-v3 */
.massive-anton {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
}

/* =========================================
   PHYSICS CANVAS FOOTER
   ========================================= */

/* Wrapper for the physics section inside the footer */
.footer-physics-wrap {
  width: 100%;
  padding: 40px 0 0;
  position: relative;
}

/* Small label above the canvas */
.footer-physics-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 12px;
}

#physics-canvas-container {
  width: 100%;
  height: 450px;
  /* Desktop */
  position: relative;
  background: transparent;
  cursor: grab;
  overflow: hidden;
}

#physics-canvas-container:active {
  cursor: grabbing;
}

/* Force canvas to always fill the container regardless of JS pixel sizing */
#physics-canvas-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* === MOBILE RESPONSIVE HEIGHTS === */
/* Tablet */
@media (max-width: 1024px) {
  #physics-canvas-container {
    height: 500px;
  }
}

/* Mobile landscape / large phone */
@media (max-width: 768px) {
  .footer-physics-wrap {
    padding: 28px 0 0;
  }

  #physics-canvas-container {
    height: 340px;
    /* Increased height so blocks have plenty of room to settle and look premium */
  }
}

/* Small phone (iPhone SE, Poco X6, etc.) */
@media (max-width: 480px) {
  .footer-physics-wrap {
    padding: 20px 0 0;
  }

  #physics-canvas-container {
    height: 320px;
    /* Increased height for tall mobile screens */
  }
}


/* =========================================
   WORK FLOATING HOVER BOX
   ========================================= */
.work-floating-box {
  position: fixed;
  pointer-events: none;
  z-index: 9990;
  background: #fff;
  color: #000;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 20px;
  border-radius: 4px;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  top: 0;
  left: 0;
  will-change: transform, opacity;
}

.work-floating-box.active {
  opacity: 1;
  transform: scale(1);
}

/* Reveal-blur utility used in hero-v3 */
.reveal-blur {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(10px);
  transition: opacity 0.7s var(--ease-out), filter 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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