/*
Theme Name: Edgency
Theme URI: https://edgency.co.ke
Author: Edgency Team
Description: Edgency — The Agency of the Future. The Edgency is a truth-telling communication agency guiding brands through the complex digital landscape. We are a tight-knit outfit that packs an explosive punch when it comes to service delivery. That’s because our team is made up of ad agency veterans with over 50 years combined experience working with local and international brands.
Version: 5.0.0
Text Domain: edgency
*/

:root {
  --color-accent: #f5e900;
  --color-bg: #080808;
  --color-text: #f0ede6;
  --color-surface: #161616;
  --color-dim: rgba(240, 237, 230, 0.5);
  --color-border: rgba(245, 233, 0, 0.12);
  --font-heading: "Bebas Neue", sans-serif;
  --font-body: "Syne", sans-serif;
  --font-mono: "DM Mono", monospace;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
  --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ========================================
   LAYOUT MODES (Boxed vs Full Width)
   ======================================== */

/* Full Width Mode (Default - matches edgency_v2.html) */
body.layout-full-width .container {
  max-width: 100%;
  padding-left: var(--container-padding, 52px);
  padding-right: var(--container-padding, 52px);
}

/* Boxed Mode */
body.layout-boxed .container {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding, 52px);
  padding-right: var(--container-padding, 52px);
}

/* Header - Full Width Mode */
body.layout-full-width .site-header {
  padding-left: var(--container-padding, 52px);
  padding-right: var(--container-padding, 52px);
}

body.layout-full-width .site-header .header-container {
  max-width: 100%;
}

/* Header - Boxed Mode */
body.layout-boxed .site-header {
  padding-left: var(--container-padding, 52px);
  padding-right: var(--container-padding, 52px);
}

body.layout-boxed .site-header .header-container {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* Mobile Padding for Both Modes */
@media (max-width: 900px) {
  body.layout-full-width .container,
  body.layout-boxed .container {
    padding-left: var(--container-padding-mobile, 24px);
    padding-right: var(--container-padding-mobile, 24px);
  }

  body.layout-full-width .site-header,
  body.layout-boxed .site-header {
    padding-left: var(--container-padding-mobile, 24px);
    padding-right: var(--container-padding-mobile, 24px);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  cursor: none;
  font-size: 17px;
  line-height: 1.6;
}

/* Custom Cursor */
#cur,
#cur2 {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: exclusion;
  top: 0;
  left: 0;
}
#cur {
  width: 10px;
  height: 10px;
  background: var(--color-accent);
  transition: transform 0.08s;
}
#cur2 {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--color-accent);
  transition:
    transform 0.22s ease,
    width 0.2s,
    height 0.2s;
}
#cur2.big {
  width: 56px;
  height: 56px;
}
@media (hover: none) {
  #cur,
  #cur2 {
    display: none;
  }
  body {
    cursor: auto;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: 0.3s;
}
a:hover {
  color: var(--color-accent);
}
ul {
  list-style: none;
}

/* Layout */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 52px;
  width: 100%;
}
@media (max-width: 900px) {
  .container {
    padding: 0 24px;
  }
}
.section {
  padding: 120px 52px;
}
@media (max-width: 900px) {
  .section {
    padding: 80px 24px;
  }
}

.section-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--color-accent);
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(52px, 7.5vw, 110px);
  line-height: 0.93;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

/* ========================================
HEADER & NAVIGATION
======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 800;
  padding: 22px 52px;
  transition: background 0.3s;
  background: transparent;
}

/* UPDATED: Reduced Opacity for Scrolled State */
.site-header.scrolled {
  background: rgba(8, 8, 8, 0.85); /* Reduced from 0.96 */
  backdrop-filter: blur(16px);
}

/* UPDATED: Hide Hero Eye Text (Tagline) on Scroll for clean look */
.site-header.scrolled .logo-tagline {
  opacity: 0;
  height: 0;
  overflow: hidden;
  margin: 0;
}

@media (max-width: 900px) {
  .site-header {
    padding: 22px 24px;
  }
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.logo-container {
  display: flex;
  flex-direction: column;
  gap: 4px; /* Increased gap slightly */
  align-items: flex-start;
}

.logo {
  font-family: var(--font-heading);
  font-size: 26px;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  line-height: 1;
  text-decoration: none;
  /* UPDATED: Added display block for image support */
  display: block;
}

/* UPDATED: Styles for Custom Logo Image (Site Identity) */
.logo img,
.custom-logo {
  height: auto;
  max-width: 150px; /* Adjust as needed */
  display: block;
}

.logo span {
  color: var(--color-text);
}

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

/* Hero Eye Text / Tagline */
.logo-tagline {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  opacity: 0.8;
  line-height: 1.2;
  /* UPDATED: Smooth transition for showing/hiding */
  transition:
    opacity 0.3s ease,
    margin 0.3s ease,
    height 0.3s ease;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-menu {
  display: flex;
  gap: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text);
  opacity: 0.55;
  transition:
    opacity 0.2s,
    color 0.2s;
  text-decoration: none;
}

.nav-menu a:hover {
  opacity: 1;
  color: var(--color-accent);
}

.cta-btn {
  background: var(--color-accent);
  color: var(--color-bg) !important;
  opacity: 1 !important;
  padding: 10px 24px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  white-space: nowrap;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(245, 233, 0, 0.35);
  color: var(--color-bg) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  padding: 8px 16px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  z-index: 10;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }
  .logo-tagline {
    display: none;
  }
  .main-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    padding: var(--spacing-md);
    transform: translateY(-150%);
    transition: var(--transition);
    border-bottom: 1px solid var(--color-border);
    height: calc(100vh - 80px);
    overflow-y: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }
  .main-nav.active {
    transform: translateY(0);
  }
  .nav-menu {
    flex-direction: column;
    width: 100%;
    gap: var(--spacing-sm);
  }
  .nav-menu a {
    display: block;
    padding: 0.5rem 0;
    font-size: 1.2rem;
  }
  .cta-btn {
    width: 100%;
    text-align: center;
    margin-top: var(--spacing-sm);
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 52px 80px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 900px) {
  .hero {
    padding: 0 24px 60px;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--color-bg);
  z-index: 0;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 233, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 233, 0, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  animation: gridY 28s linear infinite;
  z-index: 1;
  display: none;
}
@keyframes gridY {
  to {
    transform: translateY(72px);
  }
}

.fixed-bg-text {
  position: fixed;
  top: 8%;
  right: 5%;
  font-family: var(--font-heading);
  font-size: 18vw;
  color: rgba(245, 233, 0, 0.03);
  z-index: 0;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0.5;
}
@media (max-width: 900px) {
  .fixed-bg-text {
    font-size: 25vw;
    right: 2%;
    top: 15%;
    opacity: 0.3;
  }
}

.hero-diamonds {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: none;
}
.diamond {
  position: absolute;
  border: 1px solid rgba(245, 233, 0, 0.15);
  transform: rotate(45deg);
  animation: floatDiamond 9s ease-in-out infinite;
}
.diamond-1 {
  top: 20%;
  right: 15%;
  width: 80px;
  height: 80px;
}
.diamond-2 {
  top: 50%;
  right: 8%;
  width: 40px;
  height: 40px;
  border-color: rgba(245, 233, 0, 0.08);
  animation-delay: 3s;
}
.diamond-3 {
  bottom: 25%;
  right: 12%;
  width: 100px;
  height: 100px;
  animation-delay: 6s;
}
@keyframes floatDiamond {
  0%,
  100% {
    transform: rotate(45deg) translateY(0);
    opacity: 0.3;
  }
  50% {
    transform: rotate(45deg) translateY(-15px);
    opacity: 0.6;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
}
.hero-eyetext {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 28px;
  display: block;
  opacity: 0;
  animation: up 0.9s 0.2s forwards;
}
.hero-heading {
  font-family: var(--font-heading);
  font-size: clamp(80px, 13vw, 200px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
  opacity: 0;
  animation: up 0.9s 0.4s forwards;
}
.h-line {
  display: block;
  color: var(--color-text);
}
.h-line .highlight {
  color: var(--color-accent);
}
.h-line.outline {
  -webkit-text-stroke: 1.5px rgba(245, 233, 0, 0.3);
  color: transparent;
}
.hero-desc {
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-dim);
  max-width: 500px;
  margin-top: 28px;
  opacity: 0;
  animation: up 0.9s 0.6s forwards;
}
.hero-buttons {
  display: flex;
  gap: 18px;
  margin-top: 40px;
  opacity: 0;
  animation: up 0.9s 0.8s forwards;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
  padding: 16px 40px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(245, 233, 0, 0.3);
}
.btn-outline {
  border: 1.5px solid rgba(240, 237, 230, 0.25);
  color: var(--color-text);
  padding: 15px 40px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

@keyframes up {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  right: 52px;
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-dim);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 56px;
  background: var(--color-accent);
  animation: scrl 2.2s ease-in-out infinite;
}
@keyframes scrl {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ========================================
HERO BACKGROUND VIDEO - FULLY RESPONSIVE
======================================== */
.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0; /* Ensures it sits behind grid and text */
  opacity: 0.77; /* INCREASED from 0.35 for better clarity */
  pointer-events: none;
}

.hero-video-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover; /* Desktop keeps cover to fill screen */
  object-position: center;
}

/* Tablet - Adjust opacity & Prevent Cutout */
@media (max-width: 900px) {
  .hero-video-bg {
    opacity: 0.6;
  }

  .hero-video-bg video {
    /* CHANGED: Use 'contain' to show full video without cropping */
    object-fit: contain;
    width: 100%;
    height: 100%;
    min-width: auto;
    min-height: auto;
  }
}

/* Mobile - Further adjust opacity & Prevent Cutout */
@media (max-width: 600px) {
  .hero-video-bg {
    opacity: 0.5;
  }

  .hero-video-bg video {
    object-position: center center;
    /* CHANGED: Use 'contain' to show full video without cropping */
    object-fit: contain;
    width: 100%;
    height: 100%;
    min-width: auto;
    min-height: auto;
  }
}

/* Ticker */
.ticker {
  background: var(--color-accent);
  padding: 15px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-inner {
  display: inline-flex;
  animation: tick 22s linear infinite;
}
.ticker-item {
  font-family: var(--font-heading);
  font-size: 17px;
  letter-spacing: 0.18em;
  color: var(--color-bg);
  padding: 0 36px;
}
.ticker-divider {
  font-family: var(--font-heading);
  font-size: 17px;
  color: rgba(0, 0, 0, 0.3);
  padding: 0 6px;
}
@keyframes tick {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}
.about-body {
  font-size: 17px;
  line-height: 1.85;
  color: var(--color-dim);
  margin: 28px 0;
}

/* Bullet List Styling - Yellow Color */
.about-body ul {
  list-style: none;
  padding-left: 0;
  margin: 20px 0;
}

.about-body ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--color-dim);
}

.about-body ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #f5e900; /* Yellow bullet color */
  font-size: 20px;
  line-height: 1;
}

/* Numbered List Styling */
.about-body ol {
  padding-left: 20px;
  margin: 20px 0;
}

.about-body ol li {
  margin-bottom: 12px;
  color: var(--color-dim);
}

/* Bold Text */
.about-body strong {
  color: var(--color-text);
  font-weight: 700;
}

/* Line Breaks */
.about-body br {
  margin-bottom: 10px;
}

/* About Section - Yellow Bullet Lists */
.about-body ul {
  list-style: none;
  padding-left: 0;
  margin: 20px 0;
}

.about-body ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--color-dim);
}

.about-body ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #f5e900; /* Yellow bullet color */
  font-size: 20px;
  line-height: 1;
}

.about-body ol {
  padding-left: 20px;
  margin: 20px 0;
}

.about-body ol li {
  margin-bottom: 12px;
  color: var(--color-dim);
}

.about-body strong,
.about-body b {
  color: var(--color-text);
  font-weight: 700;
}

.about-body em,
.about-body i {
  font-style: italic;
}

.about-body br {
  margin-bottom: 10px;
}
.stat-card {
  background: var(--color-surface);
  padding: 52px;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-accent);
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 72px;
  color: var(--color-accent);
  line-height: 1;
}
.stat-label {
  font-size: 16px;
  color: var(--color-dim);
  margin-top: 6px;
  letter-spacing: 0.04em;
}
.stat-tag {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(240, 237, 230, 0.1);
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--color-text);
  letter-spacing: 0.04em;
  line-height: 1.25;
}

/* Approach */
.approach {
  background: var(--color-surface);
}
.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 72px;
}
@media (max-width: 900px) {
  .approach-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.approach-card {
  background: var(--color-bg);
  padding: 44px 34px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.approach-card:hover {
  background: #0d0d0d;
}
.approach-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--color-accent);
  transition: width 0.45s;
}
.approach-card:hover::after {
  width: 100%;
}
.approach-number {
  position: absolute;
  top: 12px;
  right: 20px;
  font-family: var(--font-heading);
  font-size: 90px;
  color: rgba(245, 233, 0, 0.05);
  line-height: 1;
}
.approach-icon {
  width: 44px;
  height: 44px;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 18px;
}
.approach-name {
  font-family: var(--font-heading);
  font-size: 30px;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  margin-bottom: 14px;
}
.approach-desc {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--color-dim);
}

/* Portfolio */
.work-section {
  background: var(--color-bg);
  padding: 0;
}
.work-header {
  padding: 100px 52px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}
@media (max-width: 900px) {
  .work-header {
    padding: 80px 24px 0;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}
.work-filter {
  display: flex;
  gap: 8px;
}
.filter-btn {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: none;
  border: 1.5px solid rgba(240, 237, 230, 0.2);
  color: rgba(240, 237, 230, 0.5);
  padding: 8px 18px;
  cursor: pointer;
}
.filter-btn.on,
.filter-btn:hover {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(250px, auto);
  gap: 3px;
  padding: 0 52px 100px;
}
@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
    padding: 0 24px 60px;
    grid-auto-rows: minmax(200px, auto);
  }
}
.pi {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-surface);
  width: 100%;
  height: 100%;
  min-height: 250px;
}
.pi:nth-child(1) {
  grid-column: span 7;
  grid-row: span 2;
}
.pi:nth-child(2) {
  grid-column: span 5;
}
.pi:nth-child(3) {
  grid-column: span 5;
}
.pi:nth-child(4),
.pi:nth-child(5),
.pi:nth-child(6) {
  grid-column: span 4;
}
@media (max-width: 900px) {
  .pi {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    min-height: 300px;
  }
}
/* FIXED: Images fill container completely */
.pi img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.65s;
}
.pi:hover img {
  transform: scale(1.06);
}
.pi-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.15) 55%,
    transparent 100%
  );
  opacity: 0.88;
  transition: opacity 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}
.pi:hover .pi-overlay {
  opacity: 1;
}
.pi-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 7px;
}
.pi-title {
  font-family: var(--font-heading);
  font-size: 26px;
  letter-spacing: 0.05em;
  color: var(--color-text);
  line-height: 1.1;
  margin-bottom: 4px;
}
.pi-view {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: 0.25s;
}
.pi:hover .pi-view {
  opacity: 1;
  transform: translateX(0);
}

/* Campaigns */
.campaigns {
  background: var(--color-surface);
  padding: 120px 52px 0;
}
@media (max-width: 900px) {
  .campaigns {
    padding: 80px 24px 0;
  }
}
.camp-item {
  border-bottom: 1px solid rgba(245, 233, 0, 0.1);
  overflow: hidden;
}
.camp-header {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 36px 52px;
  cursor: pointer;
  transition: background 0.25s;
}
@media (max-width: 900px) {
  .camp-header {
    padding: 36px 24px;
    grid-template-columns: 50px 1fr auto;
  }
}
.camp-header:hover {
  background: rgba(245, 233, 0, 0.04);
}
.camp-number {
  font-family: var(--font-heading);
  font-size: 44px;
  color: rgba(245, 233, 0, 0.2);
  line-height: 1;
}
.camp-client {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 6px;
  font-weight: 600;
}
.camp-name {
  font-family: var(--font-body);
  font-size: 21px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}
.camp-arrow {
  font-size: 22px;
  color: var(--color-accent);
  transition: transform 0.35s;
  display: flex;
  align-items: center;
  user-select: none;
}
.camp-header.open .camp-arrow {
  transform: rotate(45deg);
}
.camp-body {
  display: none;
  background: var(--color-bg);
}
.camp-body.open {
  display: block;
}
.camp-inner {
  padding: 48px 52px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .camp-inner {
    padding: 48px 24px 64px;
    grid-template-columns: 1fr;
    gap: 48px;
  }
}
.camp-content {
  width: 100%;
}
.content-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 10px;
  display: block;
}
.content-paragraph {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--color-text);
}
.content-paragraph ul,
.content-paragraph ol {
  margin: 16px 0;
  padding-left: 24px;
}
.content-paragraph li {
  margin-bottom: 8px;
  color: var(--color-text);
}
.content-paragraph strong {
  color: var(--color-text);
  font-weight: 700;
}
.content-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}
.content-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid rgba(245, 233, 0, 0.4);
  color: var(--color-accent);
  padding: 8px 16px;
  background: rgba(245, 233, 0, 0.05);
  transition: all 0.3s ease;
  display: inline-block;
}
.content-tag:hover {
  background: rgba(245, 233, 0, 0.15);
  border-color: var(--color-accent);
}
.camp-visuals {
  width: 100%;
}
.visual-two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.visual-two .vis-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border: 1px solid var(--color-border);
}
.vis-solo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border: 1px solid var(--color-border);
}

/* Campaigns Accordion - Content Lists */
.content-paragraph ul {
  list-style: none; /* Remove default bullet */
  padding-left: 0;
  margin: 16px 0;
}

.content-paragraph ul li {
  position: relative;
  padding-left: 24px; /* Space for custom bullet */
  margin-bottom: 8px;
  color: var(--color-text);
}

.content-paragraph ul li::before {
  content: "•"; /* Custom bullet */
  position: absolute;
  left: 0;
  color: #f5e900; /* Yellow bullet color */
  font-size: 18px;
  line-height: 1.2;
}

.content-paragraph ol {
  padding-left: 20px;
  margin: 16px 0;
}

.content-paragraph ol li {
  margin-bottom: 8px;
  color: var(--color-text);
}

/* Services */
.services {
  background: var(--color-bg);
}
.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
}
@media (max-width: 900px) {
  .services-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .services-header p {
    text-align: left;
  }
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}
.svc {
  background: var(--color-surface);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
  min-height: 200px;
}
.svc:hover {
  background: #242424;
}
.svc:hover .sva {
  transform: translate(4px, -4px);
}
.service-number {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(245, 233, 0, 0.35);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.service-name {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
  line-height: 1.3;
}
.service-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-dim);
}
.sva {
  position: absolute;
  top: 38px;
  right: 38px;
  color: var(--color-accent);
  font-size: 17px;
  transition: transform 0.22s;
  line-height: 1;
  font-style: normal;
}

/* Clients */
.clients {
  background: var(--color-surface);
  padding: 80px 52px;
}
@media (max-width: 900px) {
  .clients {
    padding: 80px 24px;
  }
}
.cl-track {
  overflow: hidden;
  margin-top: 44px;
}
.cl-inner {
  display: flex;
  animation: clients-scroll 20s linear infinite;
}
.cl-inner:hover {
  animation-play-state: paused;
}
@keyframes clients-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
/*-----------------------------------------------------------------------------------------------------*/

/* ========================================
CLIENTS SECTION - FIXED (NO SCROLL REVEAL)
======================================== */
.clients {
  background: var(--color-surface);
  padding: 80px 0;
  overflow: hidden;
}

@media (max-width: 900px) {
  .clients {
    padding: 80px 24px;
  }
}

.cl-track {
  overflow: hidden;
  margin-top: 44px;
  position: relative;
  width: 100%;
}

.cl-inner {
  display: flex;
  width: max-content;
  animation: clients-scroll 25s linear infinite;
}

.cl-inner:hover {
  animation-play-state: paused;
}

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

/* Client Logo Items - FIXED VALUES */
.cl-logo {
  flex: 0 0 265px;
  width: 265px;
  height: 109px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(240, 237, 230, 0.07);
  margin: 0 1px;
  padding: 15px;
  background: rgba(240, 237, 230, 0.02);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.cl-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.35;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.cl-logo:hover img {
  opacity: 1;
  filter: grayscale(0%);
}

.cl-logo:hover {
  border-color: rgba(245, 233, 0, 0.4);
  background: rgba(245, 233, 0, 0.05);
}

.cl-logo span {
  font-family: var(--font-heading);
  font-size: 15px;
  letter-spacing: 0.12em;
  color: rgba(240, 237, 230, 0.4);
  text-transform: uppercase;
  white-space: nowrap;
}

.cl-logo:hover span {
  color: var(--color-accent);
}

/* Tablet */
@media (max-width: 900px) {
  .cl-logo {
    flex: 0 0 200px;
    width: 200px;
    height: 82px;
    padding: 12px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .cl-logo {
    flex: 0 0 160px;
    width: 160px;
    height: 65px;
    padding: 10px;
    margin: 0 2px;
  }
  .cl-logo span {
    font-size: 12px;
    letter-spacing: 0.08em;
  }
}

/*-----------------------------------------------------------------------------------------------------*/

/* Why Edgency */
.why {
  background: var(--color-accent);
  padding: 120px 52px;
}
@media (max-width: 900px) {
  .why {
    padding: 80px 24px;
  }
}
.why .section-label {
  color: var(--color-bg);
}
.why .section-label::before {
  background: var(--color-bg);
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 60px;
}
@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}
.why-heading {
  font-family: var(--font-heading);
  font-size: clamp(52px, 8vw, 120px);
  line-height: 0.93;
  color: var(--color-bg);
}
.why-body {
  font-size: 17px;
  line-height: 1.85;
  color: rgba(0, 0, 0, 0.62);
  margin-top: 28px;
  max-width: 480px;
}
.wi {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.wi:last-child {
  border-bottom: none;
}
.wi-n {
  font-family: var(--font-heading);
  font-size: 56px;
  color: rgba(0, 0, 0, 0.12);
  line-height: 1;
  flex-shrink: 0;
  width: 64px;
}
.wi-t {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 800;
  color: var(--color-bg);
  margin-bottom: 6px;
}
.wi-d {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.58);
}

/* CTA */
.cta {
  background: var(--color-bg);
  padding: 180px 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 900px) {
  .cta {
    padding: 120px 24px;
  }
}
.cta::before {
  content: "EDGENCY";
  position: absolute;
  font-family: var(--font-heading);
  font-size: 28vw;
  color: rgba(245, 233, 0, 0.025);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}
.cta-heading {
  font-family: var(--font-heading);
  font-size: clamp(60px, 10vw, 150px);
  line-height: 0.93;
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
  text-transform: uppercase;
}
.cta-line1 {
  display: block;
  color: var(--color-text);
}
.cta-line2 {
  display: block;
  color: var(--color-text);
}
.cta-line2 span {
  color: var(--color-accent);
}
.cta-sub {
  font-size: 17px;
  color: var(--color-dim);
  max-width: 480px;
  margin: 0 auto 48px;
  line-height: 1.75;
  position: relative;
  z-index: 1;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}
.cta-buttons .btn {
  padding: 16px 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  min-width: 280px;
}
.cta-buttons .btn-primary {
  background: var(--color-accent);
  color: #000;
  border: 1px solid var(--color-accent);
}
.cta-buttons .btn-primary:hover {
  background: #fff;
  border-color: #fff;
  color: #000;
}
.cta-buttons .btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.cta-buttons .btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
@media (max-width: 600px) {
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .cta-buttons .btn {
    width: 100%;
    max-width: 320px;
  }
}

/* ========================================
FOOTER - UPDATED SIZES & LOGO
======================================== */
footer {
  background: var(--color-surface);
  padding: 100px 52px 40px; /* Increased top padding */
  border-top: 1px solid var(--color-border);
}

@media (max-width: 900px) {
  footer {
    padding: 60px 24px 30px;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px; /* Increased bottom margin */
}

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

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

/* Footer Logo Styling */
.footer-logo {
  display: block;
  margin-bottom: 24px;
  line-height: 1;
}
.footer-logo img {
  max-width: 140px; /* Controls logo size */
  height: auto;
}
.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 34px;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  text-decoration: none;
}

.footer-tag {
  font-size: 15px; /* INCREASED from 14px */
  line-height: 1.7;
  color: var(--color-dim);
  max-width: 300px;
  margin-bottom: 32px;
}

.footer-contact {
  font-family: var(--font-mono);
  font-size: 13px; /* INCREASED from 10px */
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 18px;
  display: block;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 13px; /* INCREASED from 10.5px */
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 24px; /* INCREASED from 18px */
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px; /* INCREASED gap */
}

.footer-links a {
  font-size: 15px; /* INCREASED from 14px */
  color: var(--color-dim);
  transition: color 0.2s;
  line-height: 1.5;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

.footer-copyright {
  font-family: var(--font-mono);
  font-size: 12px; /* Increased slightly */
  color: rgba(240, 237, 230, 0.3);
  letter-spacing: 0.05em;
}

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

.footer-social a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240, 237, 230, 0.4);
  transition: color 0.2s;
}

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

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.d1 {
  transition-delay: 0.1s;
}
.d2 {
  transition-delay: 0.2s;
}
.d3 {
  transition-delay: 0.3s;
}
.d4 {
  transition-delay: 0.4s;
}

/* ========================================
APPROACH SECTION - RESPONSIVE SLIDER
Mobile & Tablet Only (≤900px)
======================================== */

/* Desktop - Keep Grid Layout */
@media (min-width: 901px) {
  .approach-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    overflow-x: visible !important;
    scroll-snap-type: none !important;
    -webkit-overflow-scrolling: auto;
  }
  .approach-card {
    flex: none !important;
    max-width: none !important;
    scroll-snap-align: none !important;
    width: auto !important;
  }
}

/* Mobile & Tablet - Horizontal Slider */
@media (max-width: 900px) {
  .approach-grid {
    display: flex !important;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 0 24px 40px 24px;
    margin-top: 48px;
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) var(--color-surface);
    position: relative;
  }

  /* Custom Scrollbar Styling */
  .approach-grid::-webkit-scrollbar {
    height: 4px;
  }
  .approach-grid::-webkit-scrollbar-track {
    background: var(--color-surface);
    border-radius: 2px;
  }
  .approach-grid::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 2px;
  }

  /* Approach Cards - Full Width on Mobile */
  .approach-card {
    flex: 0 0 85vw;
    max-width: 85vw;
    width: 85vw;
    scroll-snap-align: center;
    min-height: 340px;
    background: var(--color-bg);
    padding: 44px 34px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
    border: 1px solid rgba(245, 233, 0, 0.05);
  }

  /* Scroll Indicator Arrow */
  .approach-grid::after {
    content: "→";
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-accent);
    font-size: 28px;
    animation: approachPulse 2s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.7;
    z-index: 2;
    font-family: var(--font-mono);
  }

  /* Card Content Adjustments for Mobile */
  .approach-number {
    font-size: 72px;
    top: 10px;
    right: 15px;
  }
  .approach-icon {
    width: 52px;
    height: 52px;
    font-size: 22px;
    margin-bottom: 24px;
  }
  .approach-name {
    font-size: 26px;
    margin-bottom: 16px;
  }
  .approach-desc {
    font-size: 14px;
    line-height: 1.7;
  }
}

/* Pulse Animation for Scroll Indicator */
@keyframes approachPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(-50%) translateX(0);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-50%) translateX(8px);
  }
}

/* ========================================
SERVICES SECTION - RESPONSIVE SLIDER
Mobile & Tablet Only (≤900px)
======================================== */

/* Desktop - Keep Grid Layout */
@media (min-width: 901px) {
  .services-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    overflow-x: visible !important;
    scroll-snap-type: none !important;
  }
  .svc {
    flex: none !important;
    max-width: none !important;
    scroll-snap-align: none !important;
    width: auto !important;
  }
}

/* Mobile & Tablet - Horizontal Slider */
@media (max-width: 900px) {
  .services-grid {
    display: flex !important;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 0 24px 40px 24px;
    margin-top: 48px;
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) var(--color-surface);
    position: relative;
  }

  /* Custom Scrollbar Styling */
  .services-grid::-webkit-scrollbar {
    height: 4px;
  }
  .services-grid::-webkit-scrollbar-track {
    background: var(--color-surface);
    border-radius: 2px;
  }
  .services-grid::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 2px;
  }

  /* Service Cards - Full Width on Mobile */
  .svc {
    flex: 0 0 85vw;
    max-width: 85vw;
    width: 85vw;
    scroll-snap-align: center;
    min-height: 340px;
    background: var(--color-surface);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
    border: 1px solid rgba(245, 233, 0, 0.05);
  }

  /* Scroll Indicator Arrow */
  .services-grid::after {
    content: "→";
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-accent);
    font-size: 28px;
    animation: servicesPulse 2s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.7;
    z-index: 2;
    font-family: var(--font-mono);
  }

  /* Service Card Content Adjustments for Mobile */
  .service-number {
    font-size: 10.5px;
    margin-bottom: 20px;
  }
  .service-name {
    font-size: 22px;
    margin-bottom: 12px;
  }
  .service-desc {
    font-size: 14px;
    line-height: 1.7;
  }
  .sva {
    top: 30px;
    right: 30px;
    font-size: 17px;
  }
}

/* Pulse Animation for Scroll Indicator */
@keyframes servicesPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(-50%) translateX(0);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-50%) translateX(8px);
  }
}
/* ========================================
PORTFOLIO SECTION - FIXED IMAGE SIZING
======================================== */
.work-section {
  background: var(--color-bg);
  padding: 0;
}

.work-header {
  padding: 100px 52px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

@media (max-width: 900px) {
  .work-header {
    padding: 80px 24px 0;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}

.work-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: none;
  border: 1.5px solid rgba(240, 237, 230, 0.2);
  color: rgba(240, 237, 230, 0.5);
  padding: 8px 18px;
  cursor: pointer;
}

.filter-btn.on,
.filter-btn:hover {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}

/* Portfolio Grid - Desktop */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(250px, auto);
  gap: 3px;
  padding: 0 52px 100px;
}

/* Portfolio Item Container */
.pi {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-surface);
  width: 100%;
  height: 100%;
  min-height: 250px;
}

/* Grid Spans - Desktop */
.pi:nth-child(1) {
  grid-column: span 7;
  grid-row: span 2;
}

.pi:nth-child(2) {
  grid-column: span 5;
}

.pi:nth-child(3) {
  grid-column: span 5;
}

.pi:nth-child(4),
.pi:nth-child(5),
.pi:nth-child(6) {
  grid-column: span 4;
}

/* FIXED: Images ALWAYS fill container completely */
.pi img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  transition: transform 0.65s ease;
}

.pi:hover img {
  transform: scale(1.06);
}

.pi-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.15) 55%,
    transparent 100%
  );
  opacity: 0.88;
  transition: opacity 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}

.pi:hover .pi-overlay {
  opacity: 1;
}

.pi-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 7px;
}

.pi-title {
  font-family: var(--font-heading);
  font-size: 26px;
  letter-spacing: 0.05em;
  color: var(--color-text);
  line-height: 1.1;
  margin-bottom: 4px;
}

.pi-view {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: 0.25s;
}

.pi:hover .pi-view {
  opacity: 1;
  transform: translateX(0);
}

/* ========================================
PORTFOLIO - MOBILE/TABLET SLIDER
======================================== */
@media (max-width: 900px) {
  .portfolio-grid {
    display: flex !important;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 0 24px 60px !important;
    grid-template-columns: none !important;
    grid-auto-rows: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) var(--color-surface);
  }

  .portfolio-grid::-webkit-scrollbar {
    height: 6px;
  }

  .portfolio-grid::-webkit-scrollbar-track {
    background: var(--color-surface);
    border-radius: 3px;
  }

  .portfolio-grid::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 3px;
  }

  /* Portfolio Items - Mobile Slider */
  .pi {
    flex: 0 0 85vw !important;
    max-width: 85vw !important;
    width: 85vw !important;
    scroll-snap-align: center;
    min-height: 400px !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }

  /* FIXED: Mobile images also fill container */
  .pi img {
    min-height: 400px !important;
  }

  /* Filter Buttons - Scrollable */
  .work-filter {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .work-filter::-webkit-scrollbar {
    height: 4px;
  }

  .work-filter::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 2px;
  }
}

/* ========================================
DESKTOP - KEEP GRID LAYOUT
======================================== */
@media (min-width: 901px) {
  .portfolio-grid {
    display: grid !important;
    overflow-x: visible !important;
    scroll-snap-type: none !important;
  }

  .pi {
    flex: none !important;
    max-width: none !important;
    scroll-snap-align: none !important;
  }
}

/* Portfolio Filter Animation */
.pi {
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.pi.hide {
  display: none !important;
}

.pi.show {
  display: block;
}
/* Envira Gallery Integration */
.envira-gallery-wrapper {
  width: 100%;
}

.envira-gallery-wrapper .envira-gallery {
  margin: 0 !important;
  padding: 0 !important;
}

.envira-gallery-wrapper .envira-gallery-item {
  margin: 0 !important;
  padding: 0 !important;
}

.envira-gallery-wrapper .envira-gallery-img img {
  width: 100% !important;
  height: auto !important;
  object-fit: cover;
  border-radius: 4px;
}

/* Adjust Envira columns for campaign accordion */
.envira-gallery-wrapper .envira-gallery-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -5px !important;
}

.envira-gallery-wrapper .envira-gallery-item-inner {
  padding: 5px !important;
}

/* Campaign Visuals Container */
.camp-visuals {
  width: 100%;
}

/* Video Embed Container */
.camp-video-embed,
.camp-video-player {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
  padding-bottom: 100px;
}

/* ========================================
MENU TOGGLE - FIX DOUBLE ICON
======================================== */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  z-index: 1002;
  position: relative;
  border-radius: 4px;
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
}

.menu-toggle::before {
  content: "☰";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.menu-toggle.active::before {
  content: "✕";
}

.menu-toggle:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ========================================
RESPONSIVE MENU - FIX LAYOUT
======================================== */
@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .logo-tagline {
    display: none;
  }

  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--color-bg);
    padding: 24px;
    transform: translateY(-150%);
    transition: transform 0.35s ease;
    border-bottom: 1px solid var(--color-border);
    z-index: 1001;
    overflow-y: auto;
    height: calc(100vh - 70px);
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .main-nav.active {
    transform: translateY(0);
  }

  .nav-menu {
    flex-direction: column;
    width: 100%;
    gap: 0;
    margin: 0;
    padding: 0;
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(245, 233, 0, 0.1);
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-menu a {
    display: block;
    padding: 16px 0;
    font-size: 20px;
    color: var(--color-text);
    white-space: normal;
    text-decoration: none;
  }

  .cta-btn {
    width: 100%;
    text-align: center;
    margin-top: 20px;
    display: block;
  }

  .site-header {
    padding: 22px 24px;
  }

  .container {
    padding: 0 24px;
  }
}

/* ========================================
APPROACH SECTION - FIX GRID LAYOUT
======================================== */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 72px;
}

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

.approach-card {
  background: var(--color-bg);
  padding: 44px 34px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.approach-card:hover {
  background: #0d0d0d;
}

.approach-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--color-accent);
  transition: width 0.45s;
}

.approach-card:hover::after {
  width: 100%;
}

/* ========================================
PORTFOLIO SECTION - FIX GRID LAYOUT
======================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: auto;
  gap: 3px;
  padding: 0 52px 100px;
}

@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
    padding: 0 24px 60px;
  }
}

.pi {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-surface);
  min-height: 220px;
}

.pi:nth-child(1) {
  grid-column: span 7;
  grid-row: span 2;
}

.pi:nth-child(2) {
  grid-column: span 5;
}

.pi:nth-child(3) {
  grid-column: span 5;
}

.pi:nth-child(4),
.pi:nth-child(5),
.pi:nth-child(6) {
  grid-column: span 4;
}

@media (max-width: 900px) {
  .pi {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
}

/* Work Filter Buttons */
.work-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .work-filter {
    gap: 8px;
  }
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: none;
  border: 1.5px solid rgba(240, 237, 230, 0.2);
  color: rgba(240, 237, 230, 0.5);
  padding: 8px 18px;
  cursor: pointer;
}

.filter-btn.on,
.filter-btn:hover {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}

/* ========================================
CAMPAIGNS SECTION - FIX ACCORDION
======================================== */
.campaigns {
  background: var(--color-surface);
  padding: 120px 52px 0;
}

@media (max-width: 900px) {
  .campaigns {
    padding: 80px 24px 0;
  }
}

.camp-item {
  border-bottom: 1px solid rgba(245, 233, 0, 0.1);
  overflow: hidden;
}

.camp-header {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 36px 52px;
  cursor: pointer;
  transition: background 0.25s;
}

@media (max-width: 900px) {
  .camp-header {
    padding: 36px 24px;
    grid-template-columns: 50px 1fr auto;
  }
}

.camp-header:hover {
  background: rgba(245, 233, 0, 0.04);
}

.camp-number {
  font-family: var(--font-heading);
  font-size: 44px;
  color: rgba(245, 233, 0, 0.2);
  line-height: 1;
}

.camp-client {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 6px;
  font-weight: 600;
}

.camp-name {
  font-family: var(--font-body);
  font-size: 21px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.camp-arrow {
  font-size: 22px;
  color: var(--color-accent);
  transition: transform 0.35s;
  display: flex;
  align-items: center;
  user-select: none;
}

.camp-header.open .camp-arrow {
  transform: rotate(45deg);
}

.camp-body {
  display: none;
  background: var(--color-bg);
}

.camp-body.open {
  display: block;
}

.camp-inner {
  padding: 48px 52px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 900px) {
  .camp-inner {
    padding: 48px 24px 64px;
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ========================================
CAMPAIGNS ACCORDION - SCROLL REVEAL
======================================== */

/* 1. Initial State: Hidden and slightly lower */
.camp-item {
  opacity: 0;
  transform: translateY(50px);
  /* Premium easing: Starts slightly fast, slows down smoothly */
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* 2. Active State: Visible and in final position */
.camp-item.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
CUSTOM CURSOR - FIX MOVEMENT
======================================== */
#cur,
#cur2 {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: exclusion;
  top: 0;
  left: 0;
}

#cur {
  width: 10px;
  height: 10px;
  background: var(--color-accent);
  transition: transform 0.08s;
}

#cur2 {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--color-accent);
  transition:
    transform 0.22s ease,
    width 0.2s,
    height 0.2s;
}

#cur2.big {
  width: 56px;
  height: 56px;
}

@media (hover: none) {
  #cur,
  #cur2 {
    display: none;
  }
  body {
    cursor: auto;
  }
}
/* ========================================
CUSTOM CURSOR - FIXED POSITIONING
======================================== */
#cur,
#cur2 {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: exclusion;
  top: 0;
  left: 0;
  /* Ensure they don't block clicks */
  will-change: transform;
}

#cur {
  width: 10px;
  height: 10px;
  background: var(--color-accent);
  /* Fast transition for the dot */
  transition: transform 0.05s linear;
}

#cur2 {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--color-accent);
  /* Slightly slower for the circle follow effect */
  transition: transform 0.15s ease-out;
}

#cur2.big {
  width: 56px;
  height: 56px;
}

/* Disable cursor on touch devices */
@media (hover: none) {
  #cur,
  #cur2 {
    display: none;
  }
  body {
    cursor: auto;
  }
}

/* ========================================
HAMBURGER MENU - ICON ONLY (NO TEXT)
======================================== */
.menu-toggle {
  display: none; /* Hidden on desktop */
  background: none;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  font-size: 0; /* CRITICAL: Hides the word "MENU" */
  line-height: 0; /* CRITICAL: Collapses text space */
  z-index: 1002;
  position: relative;
  border-radius: 4px;
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
}

/* The Icon */
.menu-toggle::before {
  content: "☰";
  font-size: 22px; /* Restore icon size */
  line-height: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
  color: var(--color-text); /* Ensure icon has color */
}

/* Close Icon When Active */
.menu-toggle.active::before {
  content: "✕";
}

.menu-toggle:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

@media (max-width: 900px) {
  .menu-toggle {
    display: flex; /* Show on mobile */
  }

  /* Mobile Nav Styles */
  .logo-tagline {
    display: none;
  }

  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--color-bg);
    padding: 24px;
    transform: translateY(-150%);
    transition: transform 0.35s ease;
    border-bottom: 1px solid var(--color-border);
    z-index: 1001;
    overflow-y: auto;
    height: calc(100vh - 70px);
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .main-nav.active {
    transform: translateY(0);
  }

  .nav-menu {
    flex-direction: column;
    width: 100%;
    gap: 0;
    margin: 0;
    padding: 0;
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(245, 233, 0, 0.1);
  }
  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-menu a {
    display: block;
    padding: 16px 0;
    font-size: 20px;
    color: var(--color-text);
    white-space: normal;
    text-decoration: none;
  }

  .cta-btn {
    width: 100%;
    text-align: center;
    margin-top: 20px;
    display: block;
  }
}
/* Custom Cursor */
#cur,
#cur2 {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: exclusion;
  top: 0;
  left: 0;
  will-change: transform;
}

#cur {
  width: 10px;
  height: 10px;
  background: var(--color-accent);
  /* Inner dot moves instantly */
  transition: transform 0.05s linear;
}

#cur2 {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--color-accent);
  /* UPDATED: Slower transition (0.45s) + Smooth Ease-Out for lag effect */
  transition:
    transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    width 0.2s,
    height 0.2s;
}

#cur2.big {
  width: 56px;
  height: 56px;
}

@media (hover: none) {
  #cur,
  #cur2 {
    display: none;
  }
  body {
    cursor: auto;
  }
}
/* ========================================
SERVICES SECTION - PULSE BEAM ANIMATIONS
======================================== */
.services {
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

/* Pulse Beam Background SVG */
.services-beams-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 858px;
  height: auto;
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
}

.services-beams-bg svg {
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .services-beams-bg {
    opacity: 0.08;
  }
}

/* Service Card Glow Effect */
.svc {
  background: var(--color-surface);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
  min-height: 200px;
}

.svc-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(245, 233, 0, 0.08) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.svc:hover {
  background: #242424;
}

.svc:hover .svc-glow {
  opacity: 1;
}

.svc:hover .sva {
  transform: translate(4px, -4px);
}

/* Reveal Animation for Service Cards */
.svc.reveal {
  opacity: 0;
  transform: translateY(30px);
  animation: svcReveal 0.8s ease forwards;
}

@keyframes svcReveal {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered Delays */
.svc.d1 {
  animation-delay: 0.1s;
}
.svc.d2 {
  animation-delay: 0.2s;
}
.svc.d3 {
  animation-delay: 0.3s;
}
.svc.d4 {
  animation-delay: 0.4s;
}
.svc.d5 {
  animation-delay: 0.5s;
}
.svc.d6 {
  animation-delay: 0.6s;
}
.svc.d7 {
  animation-delay: 0.7s;
}
.svc.d8 {
  animation-delay: 0.8s;
}
.svc.d9 {
  animation-delay: 0.9s;
}
/* ========================================
LIGHTBOX FOR CAMPAIGN GALLERY
======================================== */
.lightbox-trigger {
  display: block;
  cursor: zoom-in;
  transition: opacity 0.3s ease;
}

.lightbox-trigger:hover {
  opacity: 0.85;
}

.lightbox-trigger::after {
  content: "🔍";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.lightbox-trigger:hover::after {
  opacity: 0.8;
}

/* Lightbox Overlay */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border: 2px solid var(--color-accent);
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 32px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.lightbox-close:hover {
  transform: scale(1.2);
  color: #fff;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 48px;
  cursor: pointer;
  padding: 20px;
  transition: all 0.3s ease;
}

.lightbox-nav:hover {
  color: #fff;
  transform: translateY(-50%) scale(1.2);
}

.lightbox-prev {
  left: -60px;
}

.lightbox-next {
  right: -60px;
}

@media (max-width: 900px) {
  .lightbox-nav {
    font-size: 32px;
    padding: 10px;
  }
  .lightbox-prev {
    left: 10px;
  }
  .lightbox-next {
    right: 10px;
  }
  .lightbox-close {
    top: 10px;
    right: 10px;
  }
}
/* ========================================
CAMPAIGN VIDEO SLIDER - FIXED
======================================== */
.camp-video-slider {
  position: relative;
  margin-top: 20px;
  overflow: hidden; /* CRITICAL: Hides non-active slides */
  border-radius: 4px;
  border: 1px solid var(--color-border);
  background: #000;
}

.video-slider-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%; /* CRITICAL: Track takes full width */
}

.video-slide {
  min-width: 100%; /* CRITICAL: Each slide takes full width */
  width: 100%; /* CRITICAL: Forces exact 100% width */
  flex-shrink: 0; /* CRITICAL: Prevents slides from shrinking */
  position: relative;
}

/* Ensure videos fill their slide */
.video-slide video,
.video-slide iframe {
  width: 100%;
  height: auto;
  display: block;
  border: none;
  border-radius: 4px;
}

/* Responsive Embed Container (16:9 Aspect Ratio) */
.video-embed-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--color-accent);
  padding: 4px 10px;
  font-size: 11px;
  font-family: var(--font-mono);
  border-radius: 20px;
  pointer-events: none;
  z-index: 2;
}

/* Slider Navigation Buttons */
.video-slider-prev,
.video-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(8, 8, 8, 0.8);
  color: var(--color-accent);
  border: 1px solid rgba(245, 233, 0, 0.3);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 3;
  opacity: 0;
}

.camp-video-slider:hover .video-slider-prev,
.camp-video-slider:hover .video-slider-next {
  opacity: 1;
}

.video-slider-prev:hover,
.video-slider-next:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

.video-slider-prev {
  left: 10px;
}
.video-slider-next {
  right: 10px;
}

/* Slider Dots */
.video-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.video-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(240, 237, 230, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.video-dot.active {
  background: var(--color-accent);
  transform: scale(1.3);
}

.video-dot:hover {
  background: rgba(245, 233, 0, 0.6);
}
/* ========================================
SCROLL REVEAL ANIMATIONS
======================================== */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

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

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

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

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.d1 {
  transition-delay: 0.1s;
}
.d2 {
  transition-delay: 0.2s;
}
.d3 {
  transition-delay: 0.3s;
}
.d4 {
  transition-delay: 0.4s;
}
.d5 {
  transition-delay: 0.5s;
}
.d6 {
  transition-delay: 0.6s;
}
.d7 {
  transition-delay: 0.7s;
}
.d8 {
  transition-delay: 0.8s;
}
.d9 {
  transition-delay: 0.9s;
}

/* Section labels and titles */
.section-label {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.section-label.active {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.section-title.active {
  opacity: 1;
  transform: translateY(0);
}
/* ========================================
HERO VIDEO - FINAL RESPONSIVE FIX & REDUCED SPACE
======================================== */

/* Desktop: Full coverage (no change) */
.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  opacity: 1;
  pointer-events: none;
}

.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tablet (768px - 900px): Show full video + Reduced Space */
@media (max-width: 900px) {
  .hero-video-bg {
    opacity: 1;
  }
  /* Force video to cover height even in 'contain' mode if possible, or just shrink container */
  .hero-video-bg video {
    object-fit: contain;
    background: #000;
  }

  /* Reducing the Hero Container Height on Tablet */
  .hero {
    min-height: 70vh !important; /* Lowered from 85vh */
    padding: 80px 24px 32px; /* Added Top Padding back slightly for Header clearance */
  }
}

/* Mobile (< 768px): Show full video + Reduced Space */
@media (max-width: 768px) {
  .hero-video-bg {
    opacity: 1;
  }
  .hero-video-bg video {
    object-fit: contain;
    background: #000;
  }

  /* Aggressively reducing Hero Container Height on Mobile */
  .hero {
    min-height: 60vh !important; /* Lowered from 70vh */
    padding: 70px 24px 10px; /* Tighter padding */
  }
}

/* Very small mobile (< 400px) */
@media (max-width: 400px) {
  .hero-video-bg {
    opacity: 1;
  }
  .hero {
    min-height: 50vh !important;
    padding: 60px 24px 20px;
  }
}
/* ========================================
PORTFOLIO SECTION - FIX IMAGE SIZING
======================================== */
.work-section {
  background: var(--color-bg);
  padding: 0;
}

.work-header {
  padding: 100px 52px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

@media (max-width: 900px) {
  .work-header {
    padding: 80px 24px 0;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}

.work-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: none;
  border: 1.5px solid rgba(240, 237, 230, 0.2);
  color: rgba(240, 237, 230, 0.5);
  padding: 8px 18px;
  cursor: pointer;
}

.filter-btn.on,
.filter-btn:hover {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}

/* Portfolio Grid - Desktop */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(250px, auto);
  gap: 2px; /* Reduced from 3px for tighter fit */
  padding: 0 52px 100px;
}

/* Portfolio Item Container */
.pi {
  position: relative; /* Essential anchor for absolute image */
  overflow: hidden;
  cursor: pointer;
  background: var(--color-surface);
  width: 100%;
  height: 100%;
  min-height: 250px;
}

/* Grid Spans - Desktop */
.pi:nth-child(1) {
  grid-column: span 7;
  grid-row: span 2;
}

.pi:nth-child(2) {
  grid-column: span 5;
}

.pi:nth-child(3) {
  grid-column: span 5;
}

.pi:nth-child(4),
.pi:nth-child(5),
.pi:nth-child(6) {
  grid-column: span 4;
}

/* FIXED: Images ALWAYS fill container completely */
.pi img {
  position: absolute; /* Forces image to fill box */
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
  transition: transform 0.65s ease;
}

.pi:hover img {
  transform: scale(1.06);
}

.pi-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.15) 55%,
    transparent 100%
  );
  opacity: 0.88;
  transition: opacity 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}

.pi:hover .pi-overlay {
  opacity: 1;
}

.pi-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 7px;
}

.pi-title {
  font-family: var(--font-heading);
  font-size: 26px;
  letter-spacing: 0.05em;
  color: var(--color-text);
  line-height: 1.1;
  margin-bottom: 4px;
}

.pi-view {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: 0.25s;
}

.pi:hover .pi-view {
  opacity: 1;
  transform: translateX(0);
}

/* ========================================
PORTFOLIO - MOBILE/TABLET SLIDER
======================================== */
@media (max-width: 900px) {
  .portfolio-grid {
    display: flex !important;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 0 24px 60px !important;
    grid-template-columns: none !important;
    grid-auto-rows: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) var(--color-surface);
  }

  .portfolio-grid::-webkit-scrollbar {
    height: 6px;
  }

  .portfolio-grid::-webkit-scrollbar-track {
    background: var(--color-surface);
    border-radius: 3px;
  }

  .portfolio-grid::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 3px;
  }

  /* Portfolio Items - Mobile Slider */
  .pi {
    flex: 0 0 85vw !important;
    max-width: 85vw !important;
    width: 85vw !important;
    scroll-snap-align: center;
    min-height: 400px !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }

  /* FIXED: Mobile images also fill container */
  .pi img {
    position: absolute !important;
    min-height: 400px !important;
  }

  /* Filter Buttons - Scrollable */
  .work-filter {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .work-filter::-webkit-scrollbar {
    height: 4px;
  }

  .work-filter::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 2px;
  }
}

/* ========================================
DESKTOP - KEEP GRID LAYOUT
======================================== */
@media (min-width: 901px) {
  .portfolio-grid {
    display: grid !important;
    overflow-x: visible !important;
    scroll-snap-type: none !important;
  }

  .pi {
    flex: none !important;
    max-width: none !important;
    scroll-snap-align: none !important;
  }
}
