/* ==========================================================================
   SPIDER VFX - DESIGN SYSTEM & STYLESHEET
   Aesthetics: 100% Pure Noir Black (#000000), Cinematic Precision Typography,
   Clean Cards, Expandable Case Study Drawer with Gallery & Flexible Video.
   ========================================================================== */

/* --- Custom Properties / Design Tokens --- */
:root {
  --bg-primary: #000000;
  --bg-secondary: #000000;
  --bg-card: #080808;
  --bg-card-hover: #121214;
  --bg-drawer: #070708;
  --bg-glass: rgba(0, 0, 0, 0.88);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 255, 255, 0.25);
  --border-accent: rgba(255, 255, 255, 0.9);

  --text-main: #f5f5f7;
  --text-muted: #8e909a;
  --text-dim: #555761;

  --accent-yellow: #d4d4d8;
  --accent-blue: #3b82f6;
  --accent-gold: #d4af37;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Roboto Slab', 'Zilla Slab', Georgia, serif;
  --font-mono: 'Space Mono', 'JetBrains Mono', Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  --container-max: 1360px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: #000000 !important;
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
  background-color: #000000 !important;
  background-image: none !important;
}

/* Pure Black Canvas with very subtle border separators */
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* --- Top Scroll Progress Bar --- */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #71717a 0%, #d4d4d8 50%, #ffffff 100%);
  z-index: 9999;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
  transition: width 0.08s ease-out;
  pointer-events: none;
}

/* --- Hero Cinematic Entrance (Page Load) --- */
@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(35px);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero-anim-1 {
  animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}
.hero-anim-2 {
  animation: heroFadeUp 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}
.hero-anim-3 {
  animation: heroFadeUp 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.38s both;
}
.hero-anim-4 {
  animation: heroFadeUp 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.52s both;
}
.hero-anim-5 {
  animation: heroFadeUp 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.68s both;
}

/* --- Scroll Assembly / Reveal Animations --- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), 
              filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
  filter: blur(4px);
}

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

.reveal-on-scroll.reveal-left {
  transform: translateX(-50px);
}
.reveal-on-scroll.reveal-left.is-visible {
  transform: translateX(0);
}

.reveal-on-scroll.reveal-right {
  transform: translateX(50px);
}
.reveal-on-scroll.reveal-right.is-visible {
  transform: translateX(0);
}

.reveal-on-scroll.reveal-zoom {
  transform: scale(0.92);
}
.reveal-on-scroll.reveal-zoom.is-visible {
  transform: scale(1);
}

.reveal-on-scroll.reveal-up {
  transform: translateY(45px);
}
.reveal-on-scroll.reveal-up.is-visible {
  transform: translateY(0);
}

/* Staggered items inside containers */
.stagger-container.is-visible > * {
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.stagger-container.is-visible > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-container.is-visible > *:nth-child(2) { animation-delay: 0.12s; }
.stagger-container.is-visible > *:nth-child(3) { animation-delay: 0.19s; }
.stagger-container.is-visible > *:nth-child(4) { animation-delay: 0.26s; }

/* Staggered tools grid */
.tools-grid .tool-card {
  opacity: 0;
  transform: translateY(35px) scale(0.97);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              border-color var(--transition-fast),
              box-shadow var(--transition-fast),
              filter 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  filter: blur(3px);
}

.tools-grid .tool-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.tools-grid .tool-card:nth-child(1) { transition-delay: 0.05s; }
.tools-grid .tool-card:nth-child(2) { transition-delay: 0.12s; }
.tools-grid .tool-card:nth-child(3) { transition-delay: 0.19s; }
.tools-grid .tool-card:nth-child(4) { transition-delay: 0.26s; }
.tools-grid .tool-card:nth-child(5) { transition-delay: 0.33s; }
.tools-grid .tool-card:nth-child(6) { transition-delay: 0.40s; }
.tools-grid .tool-card:nth-child(7) { transition-delay: 0.47s; }
.tools-grid .tool-card:nth-child(8) { transition-delay: 0.54s; }

/* Projects Grid Assembly Cascade */
.project-card.card-assemble,
.category-span-card.card-assemble {
  opacity: 0;
  transform: translateY(35px) scale(0.96);
  animation: cardAssemble 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--card-idx, 0) * 0.075s);
}

@keyframes cardAssemble {
  0% {
    opacity: 0;
    transform: translateY(35px) scale(0.96);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Floating Back-To-Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(18, 18, 22, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.back-to-top-btn:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  transform: translateY(0) scale(1.08);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.back-to-top-btn.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* --- Navigation Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  padding: 1.25rem 0;
  background-color: transparent;
}

.site-header.scrolled {
  background-color: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.9rem 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo-icon {
  display: none !important;
}

.logo-main {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
}

.logo-sep {
  color: var(--text-dim);
  font-weight: 300;
}

.logo-sub {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

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

.nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  letter-spacing: 0.02em;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #ffffff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.mobile-only-menu-item {
  display: none;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 1.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-contact:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 102;
  flex-shrink: 0;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  transform-origin: center;
}

.mobile-menu-toggle.is-active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.mobile-menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.mobile-menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero Section (Exact look of Print 1) --- */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 8.5rem;
  padding-bottom: 2.5rem;
  position: relative;
  background-color: #000000;
}

.hero-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4rem;
}

.hero-content {
  max-width: 980px;
  margin: 1.5rem 0 3.5rem 0;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(3.4rem, 6.8vw, 6.2rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: #ffffff;
  margin-bottom: 3.5rem;
  overflow-wrap: break-word;
}

.hero-title .title-italic {
  font-family: var(--font-sans);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: #ffffff;
  display: block;
}

.hero-title .title-gradient {
  background: linear-gradient(180deg, #ffffff 35%, #9499a8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.hero-lower {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3rem;
  flex-wrap: wrap;
}

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

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #ffffff;
  color: #000000;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
  background-color: #f0f0f0;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.hero-meta-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.75rem;
  margin-top: 4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* --- Quem Sou / About Section (Exact look of Print 2) --- */
.section-about {
  padding: 8rem 0;
  position: relative;
  background-color: #000000;
  border-top: 1px solid var(--border-subtle);
}

.about-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 5.5rem;
  align-items: start;
}

.about-media-col {
  position: sticky;
  top: 7rem;
}

.about-card-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.about-image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: contrast(1.05) brightness(0.95);
  transition: transform 0.6s ease;
}

.about-card-frame:hover .about-image {
  transform: scale(1.02);
}

.about-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0.25rem 0 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.about-text-col {
  display: flex;
  flex-direction: column;
}

.about-headline {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 2.2rem;
}

.about-bio {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3.5rem 0 2.5rem 0;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 3rem;
  font-weight: 300;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.6rem;
  font-family: var(--font-sans);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.about-clients-block {
  margin-top: 1rem;
}

.clients-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.clients-list {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #b0b3c0;
  line-height: 2;
}

.about-social-links {
  display: flex;
  gap: 1.8rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.social-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 10;
  padding: 0.4rem 0.75rem;
  margin: -0.4rem -0.75rem;
  border-radius: var(--radius-sm);
  background: transparent;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-user-select: none;
  user-select: none;
}

.social-link:hover {
  color: var(--accent-yellow);
  background: rgba(229, 184, 66, 0.1);
  transform: translateY(-2px);
}

.social-link:active {
  transform: translateY(0);
}

.social-link .social-arrow {
  display: inline-block;
  font-size: 0.95rem;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), color 0.22s ease;
  color: inherit;
}

.social-link:hover .social-arrow {
  transform: translate(3px, -3px);
  color: var(--accent-yellow);
}

/* --- Projects / Trabalhos Showcase Section --- */
.section-works {
  padding: 8rem 0;
  position: relative;
  background-color: #000000;
  border-top: 1px solid var(--border-subtle);
}

.works-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
}

.works-title-area {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 100%;
}

.works-heading {
  font-size: 1.8rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.works-counter {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

/* Controls bar: Category filter, sort, search */
.works-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 100%;
  min-width: 0;
}

.filter-categories {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  padding: 0.25rem 0.4rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filter-categories::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  padding: 0.4rem 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-pill:hover {
  color: #ffffff;
}

.filter-pill.active {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  gap: 0.5rem;
}

.search-box svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-muted);
}

.search-box input {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 0.78rem;
  outline: none;
  width: 120px;
  transition: width 0.3s ease;
}

.search-box input:focus {
  width: 160px;
}

.search-box input::placeholder {
  color: var(--text-dim);
}

/* --- Dynamic Works Section Description --- */
.works-description-wrap {
  width: 100%;
  max-width: 100%;
  margin-top: -1.25rem;
  margin-bottom: 2.5rem;
}

.works-description-text {
  width: 100%;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #a1a1aa;
  font-weight: 400;
  text-wrap: pretty;
}

.works-description-text p {
  margin-bottom: 0.75rem;
}

.works-description-text p:last-child {
  margin-bottom: 0;
}

.works-description-text strong {
  color: #ffffff;
  font-weight: 600;
}

.works-description-text a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.works-description-text a:hover {
  color: var(--text-dim);
}

/* --- Project Cards Grid (Clean, No Ribbons, No Authors, No Likes) --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.project-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.15);
  touch-action: manipulation;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.9);
}

.project-card.active {
  border-color: #ffffff;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.28);
}

/* Thumbnail container */
.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
  pointer-events: none;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-touch-callout: none;
  pointer-events: none;
}

.project-card:hover .card-media img {
  transform: scale(1.05);
}

/* Overlay gradient & title only (visible only on hover / active) */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.35) 45%, transparent 75%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.card-header-info {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
  letter-spacing: -0.01em;
  transform: translateY(6px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .card-overlay,
.project-card:focus-visible .card-overlay,
.project-card.active .card-overlay {
  opacity: 1;
  visibility: visible;
}

.project-card:hover .card-title,
.project-card:focus-visible .card-title,
.project-card.active .card-title {
  transform: translateY(0);
}

/* Pointer arrow pointing down to expanded drawer */
.active-pointer {
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 9px solid #ffffff;
  z-index: 5;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.project-card.active .active-pointer {
  opacity: 1;
}

/* --- Asymmetric Category Span Card (Editorial Option 2) --- */
.category-span-card {
  grid-column: span 2;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(145deg, #0e0e12 0%, #060608 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.6rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.15);
  touch-action: manipulation;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.category-span-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 255, 255, 0.04);
}

/* Background Large Numeral Watermark */
.cat-span-watermark {
  position: absolute;
  right: 1.2rem;
  bottom: -0.9rem;
  font-family: var(--font-mono);
  font-size: 5.6rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.025);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* Top metadata row */
.cat-span-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.cat-span-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-main);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cat-span-count {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
}

/* Main title body */
.cat-span-body {
  position: relative;
  z-index: 1;
  margin: 0.75rem 0 1rem 0;
}

.cat-span-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 0.35rem;
}

.cat-span-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* Footer row */
.cat-span-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.85rem;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  letter-spacing: 0.08em;
  position: relative;
  z-index: 1;
}

.cat-span-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.category-span-card:hover .cat-span-action {
  color: #ffffff;
  transform: translateX(3px);
}

.cat-span-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  animation: pulseDot 2.5s infinite ease-in-out;
}

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

/* --- Inline Expandable Drawer (Rich Case Study + Stills Gallery + Flexible Video) --- */
.project-drawer-wrapper {
  grid-column: 1 / -1;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, margin 0.4s ease;
  margin: 0;
}

.project-drawer-wrapper.is-open {
  max-height: 3500px;
  opacity: 1;
  margin: 1.5rem 0 2.5rem 0;
}

.project-drawer {
  position: relative;
  width: 100%;
  min-height: 480px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-active);
  background-color: var(--bg-drawer);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95);
  display: flex;
}

/* Backdrop image */
.drawer-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  width: 65%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  mask-image: linear-gradient(to right, transparent 0%, black 25%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 25%);
  filter: brightness(0.92);
  transition: opacity 0.4s ease, filter 0.4s ease;
}

.drawer-gradient-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #070708 42%, rgba(7, 7, 8, 0.88) 58%, transparent 100%),
              linear-gradient(to top, #070708 0%, transparent 35%);
  z-index: 1;
}

/* Content Area inside Drawer */
.drawer-content {
  position: relative;
  z-index: 2;
  padding: 3.2rem 3.2rem 3.8rem 3.2rem;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.drawer-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.85rem;
}

.drawer-title {
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

/* Rich Extended Description Body */
.drawer-synopsis {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #d1d4de;
  margin-bottom: 1.25rem;
}

.drawer-synopsis a,
.drawer-rich-text a,
.drawer-inline-link {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 2;
  word-break: break-word;
  display: inline;
}

.drawer-synopsis a:hover,
.drawer-rich-text a:hover,
.drawer-inline-link:hover {
  color: var(--accent-gold, #d4af37);
  text-decoration-color: var(--accent-gold, #d4af37);
}

.drawer-rich-text {
  font-size: 0.9rem;
  line-height: 1.75;
  color: #c4c7d4;
  margin-bottom: 1.5rem;
}

.drawer-synopsis p {
  margin-bottom: 0.85rem;
  line-height: 1.65;
}

.drawer-synopsis p:last-child {
  margin-bottom: 0;
}

.drawer-rich-text p {
  margin-bottom: 1.2rem;
  line-height: 1.75;
  color: #c4c7d4;
}

.drawer-rich-text p:last-child {
  margin-bottom: 0;
}

.drawer-rich-text mark,
.drawer-rich-text .text-highlight,
.text-highlight {
  background: rgba(212, 175, 55, 0.25);
  color: #fffaf0;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.65);
  font-weight: 500;
}

.drawer-rich-text ul,
.drawer-rich-text ol {
  padding-left: 1.4rem;
  margin-bottom: 1.2rem;
}

.drawer-rich-text li {
  margin-bottom: 0.45rem;
  line-height: 1.7;
}

.drawer-rich-text strong,
.drawer-rich-text b {
  color: #ffffff;
  font-weight: 600;
}

.drawer-rich-text em,
.drawer-rich-text i {
  color: #e2e4ed;
  font-style: italic;
}

/* Technical highlights tags */
.drawer-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.8rem;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #c0c3ce;
  letter-spacing: 0.04em;
}

/* --- Image Gallery / Stills Strip --- */
.drawer-gallery-section {
  margin-bottom: 2.2rem;
}

.gallery-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.drawer-gallery-grid {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.35rem 0.2rem 0.85rem 0.2rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  -webkit-overflow-scrolling: touch;
}

.drawer-gallery-grid::-webkit-scrollbar {
  height: 5px;
}

.drawer-gallery-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.gallery-thumbnail {
  flex-shrink: 0;
  width: 156px;
  height: 94px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  background: #000;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity var(--transition-fast), transform 0.3s ease;
}

.gallery-thumbnail:hover img,
.gallery-thumbnail.active img {
  opacity: 1;
  transform: scale(1.05);
}

.gallery-thumbnail:hover,
.gallery-thumbnail.active {
  border-color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
}

.gallery-thumbnail::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center center no-repeat;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

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

/* Actions in Drawer */
.drawer-actions-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn-play-action {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.8rem;
  background-color: #ffffff;
  color: #000000;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-play-action:hover {
  transform: scale(1.03);
  background-color: #ffffff;
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.35);
}

.btn-play-action svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.btn-gallery-action {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.8rem;
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-active);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-gallery-action:hover {
  background-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.drawer-creator-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.drawer-creator-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.drawer-creator-info {
  display: flex;
  flex-direction: column;
}

.creator-role {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.creator-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
}

/* Close & Utility buttons on drawer */
.drawer-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.drawer-utility-controls {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  display: flex;
  gap: 0.75rem;
  z-index: 10;
}

.drawer-util-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.drawer-util-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* --- Fullscreen Cinematic Video Player Modal --- */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 2rem;
}

.video-modal.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.video-modal-container {
  width: 100%;
  max-width: 1100px;
  background: #000000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 50px rgba(0, 0, 0, 0.9);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-modal.is-active .video-modal-container {
  transform: scale(1);
}

.video-player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000000;
}

.video-player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-modal-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 70%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  z-index: 10;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.video-modal-title {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.modal-close-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

/* Buffering / Loading Spinner */
.video-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  z-index: 8;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-loader.is-loading {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.spinner-ring {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent-yellow);
  border-radius: 50%;
  animation: videoSpin 0.75s linear infinite;
}

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

.video-custom-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 10;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Auto-hide controls during video playback */
.video-modal.controls-hidden .video-modal-header,
.video-modal.controls-hidden .video-custom-controls {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.video-modal.controls-hidden {
  cursor: none;
}

.video-progress-bar {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}

.video-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-yellow);
  border-radius: 3px;
  position: relative;
}

.video-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.controls-left, .controls-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.control-btn {
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.control-btn:hover {
  opacity: 0.8;
  transform: scale(1.08);
}

.video-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #cfd2db;
}

/* Fullscreen support for video modal container */
.video-modal-container:fullscreen,
.video-modal-container:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #000000 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
}

.video-modal-container:fullscreen .video-player-wrap,
.video-modal-container:-webkit-full-screen .video-player-wrap {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.video-modal-container:fullscreen video,
.video-modal-container:-webkit-full-screen video {
  width: 100% !important;
  height: 100% !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  object-fit: contain !important;
}

/* --- Lightbox Image Viewer Modal --- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1.5rem;
  overflow: hidden !important;
  overscroll-behavior: contain;
  touch-action: none;
}

.lightbox-modal.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  width: 100%;
  max-width: 92vw;
  max-height: calc(100dvh - 110px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto;
}

#lightboxCloseBtn {
  position: fixed;
  top: max(1.25rem, env(safe-area-inset-top, 1.25rem));
  right: max(1.25rem, env(safe-area-inset-right, 1.25rem));
  z-index: 10020;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(22, 22, 26, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-fast);
}

#lightboxCloseBtn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

/* Lightbox Prev / Next Arrows */
.lightbox-nav-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(20, 20, 25, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10015;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-prev-btn {
  left: 1.5rem;
}

.lightbox-next-btn {
  right: 1.5rem;
}

.lightbox-nav-btn:hover {
  background: rgba(248, 231, 28, 0.15);
  border-color: var(--accent-yellow);
  color: var(--accent-yellow);
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 0 25px rgba(248, 231, 28, 0.35);
}

@media (max-width: 768px) {
  .lightbox-nav-btn {
    width: 44px;
    height: 44px;
  }
  .lightbox-prev-btn {
    left: 0.6rem;
  }
  .lightbox-next-btn {
    right: 0.6rem;
  }
  #lightboxCloseBtn {
    top: max(0.85rem, env(safe-area-inset-top, 0.85rem));
    right: max(0.85rem, env(safe-area-inset-right, 0.85rem));
    width: 42px;
    height: 42px;
  }
}

.lightbox-image {
  max-width: 100%;
  max-height: calc(100dvh - 150px);
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95);
  transition: opacity 0.2s ease, transform 0.2s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 900px;
  margin-top: 0.75rem;
  padding: 0 0.5rem;
  gap: 1.5rem;
}

.lightbox-caption {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #c5c8d4;
  letter-spacing: 0.08em;
  flex: 1;
}

.lightbox-counter {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #a1a1aa;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

/* --- Section Tagline Monospace Style --- */
.section-tagline {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a1a1aa;
  display: inline-block;
}

/* --- Tools & Pipeline Section --- */
.section-tools {
  padding: 8rem 0;
  position: relative;
  background-color: #000000;
  border-top: 1px solid var(--border-subtle);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.2rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.15);
  touch-action: manipulation;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.tool-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 255, 255, 0.05);
}

.tool-card-arrow {
  position: absolute;
  top: 1.8rem;
  right: 1.8rem;
  color: var(--text-muted);
  opacity: 0.35;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-card:hover .tool-card-arrow {
  color: var(--accent-yellow);
  opacity: 1;
  transform: translate(3px, -3px);
}

.tool-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.6rem;
  color: #ffffff;
  transition: all var(--transition-fast);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  position: relative;
}

.tool-card:hover .tool-card-icon {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.35);
  transform: scale(1.08);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.tool-card-icon svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.tool-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tool-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.tool-card-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* --- Contact & Footer Section --- */
.section-contact {
  padding: 8rem 0 3rem 0;
  position: relative;
  background-color: #000000;
  border-top: 1px solid var(--border-subtle);
}

.contact-wrap {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.contact-tagline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a1a1aa;
  margin-bottom: 1.2rem;
}

.contact-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.contact-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.contact-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.contact-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #000000;
  background: #ffffff;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}

.contact-email-btn:hover {
  background: #f4f4f5;
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 255, 255, 0.2);
}

.contact-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-active);
  padding: 1rem 2.5rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
}

.contact-whatsapp-btn:hover {
  background: rgba(37, 211, 102, 0.12);
  border-color: #25d366;
  color: #25d366;
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.22);
}

.site-footer {
  margin-top: 6rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 1rem;
  background-color: #000000;
}

/* --- Media Queries / Responsive --- */
@media (max-width: 1100px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-grid {
    grid-template-columns: 380px 1fr;
    gap: 3.5rem;
  }
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-media-col {
    position: static;
    max-width: 420px;
    margin: 0 auto;
  }

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

  .category-span-card {
    grid-column: span 2;
    padding: 1.35rem 1.5rem;
  }

  .cat-span-title {
    font-size: 1.5rem;
  }

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

  .project-drawer-wrapper.is-open {
    max-height: 2800px;
  }

  .drawer-backdrop {
    width: 100%;
    opacity: 0.25;
  }

  .drawer-gradient-scrim {
    background: linear-gradient(to top, #070708 20%, rgba(7, 7, 8, 0.95) 100%);
  }

  .drawer-content {
    max-width: 100%;
    padding: 2.5rem 2rem 3rem 2rem;
  }

  .header-btn-contact,
  .header-btn-admin {
    display: none !important;
  }

  .nav-links {
    display: none;
  }

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

  .mobile-only-menu-item {
    display: block;
    width: 100%;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    background: rgba(6, 6, 8, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.5rem 1.5rem 2.5rem 1.5rem;
    gap: 0.4rem;
    z-index: 999;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95);
    animation: mobileNavFade 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .nav-links.mobile-open li {
    width: 100%;
  }

  .nav-links.mobile-open .nav-link {
    font-size: 1.15rem;
    font-weight: 500;
    color: #ffffff;
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: block;
    letter-spacing: 0.03em;
    transition: color var(--transition-fast), padding-left var(--transition-fast);
  }

  .nav-links.mobile-open .nav-link:hover,
  .nav-links.mobile-open .nav-link.active {
    color: #ffffff;
    padding-left: 0.85rem;
  }

  .nav-links.mobile-open .nav-link.active::after {
    display: none;
  }

  .mobile-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.85rem;
    margin-top: 1rem;
    background: #ffffff;
    color: #000000;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    text-align: center;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
  }

  .mobile-nav-admin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    color: var(--text-dim);
    font-size: 0.82rem;
    text-align: center;
  }
}

@keyframes mobileNavFade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 580px) {
  .container {
    padding: 0 1.25rem;
  }

  .logo-sep,
  .logo-sub {
    display: none;
  }

  .hero-section {
    padding-top: 6.5rem;
    padding-bottom: 2rem;
    min-height: auto;
  }

  .hero-meta-top {
    margin-bottom: 2rem;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    gap: 0.4rem;
  }

  .hero-title {
    font-size: clamp(2.15rem, 9.4vw, 2.95rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .hero-desc {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .hero-meta-bottom {
    margin-top: 2.5rem;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    gap: 0.4rem;
  }

  .about-headline {
    font-size: clamp(1.5rem, 6vw, 2.1rem);
    line-height: 1.25;
    overflow-wrap: break-word;
  }

  .about-bio {
    font-size: 0.92rem;
  }

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

  .category-span-card {
    grid-column: span 1;
    padding: 1.25rem 1.35rem;
    min-height: auto;
  }

  .cat-span-title {
    font-size: 1.35rem;
  }

  .works-description-wrap {
    margin-top: -0.5rem;
    margin-bottom: 1.8rem;
  }

  .works-description-text {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .hero-meta-top,
  .hero-meta-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-lower {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .works-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .works-title-area {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    width: 100%;
    max-width: 100%;
  }

  .works-heading {
    font-size: clamp(1.4rem, 6vw, 1.75rem);
    word-break: break-word;
  }

  .works-counter {
    font-size: 0.72rem;
  }

  .works-controls {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .filter-categories {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 0.35rem 0.5rem;
    scrollbar-width: none;
    box-sizing: border-box;
  }

  .filter-categories::-webkit-scrollbar {
    display: none;
  }

  .filter-pill {
    padding: 0.4rem 0.85rem;
    font-size: 0.75rem;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .search-box {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .search-box input {
    width: 100%;
    flex: 1;
  }

  .project-drawer-wrapper.is-open {
    max-height: 3400px;
  }

  .drawer-content {
    padding: 2.2rem 1.4rem 3.5rem 1.4rem;
  }

  .gallery-thumbnail {
    width: 138px;
    height: 84px;
  }

  .drawer-actions-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    margin-top: 1.5rem;
  }

  .btn-play-action,
  .btn-gallery-action {
    width: 100%;
    justify-content: center;
  }

  .drawer-creator-chip {
    justify-content: center;
    margin-top: 0.5rem;
  }

  .contact-title {
    font-size: clamp(1.85rem, 7vw, 2.6rem);
    line-height: 1.15;
    overflow-wrap: break-word;
  }

  .video-modal {
    padding: 0.25rem;
  }

  .video-modal-header {
    padding: 0.75rem 0.85rem;
    gap: 0.65rem;
  }

  .video-modal-title {
    font-size: 0.85rem;
  }

  .modal-close-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
  }

  .video-custom-controls {
    padding: 0.75rem 0.85rem;
    gap: 0.5rem;
  }

  .video-time {
    font-size: 0.68rem;
  }

  .controls-left, .controls-right {
    gap: 0.65rem;
  }

  .lightbox-modal {
    padding: 0.75rem;
    overflow: hidden !important;
  }

  #lightboxCloseBtn {
    top: max(0.85rem, env(safe-area-inset-top, 0.85rem));
    right: max(0.85rem, env(safe-area-inset-right, 0.85rem));
    width: 42px;
    height: 42px;
  }

  .lightbox-content {
    max-width: 96vw;
    max-height: calc(100dvh - 90px);
  }

  .lightbox-image {
    max-height: calc(100dvh - 150px);
  }

  .lightbox-footer-bar {
    padding: 0 0.25rem;
    gap: 0.75rem;
  }

  .lightbox-caption {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .lightbox-counter {
    font-size: 0.72rem;
  }

  .contact-actions {
    flex-direction: column;
    width: 100%;
  }

  .contact-email-btn,
  .contact-whatsapp-btn {
    width: 100%;
    justify-content: center;
  }
}

/* --- Social Quick Copy Feedback Toast --- */
.social-toast {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: rgba(14, 14, 18, 0.96);
  border: 1px solid rgba(229, 184, 66, 0.55);
  color: #ffffff;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85), 0 0 25px rgba(229, 184, 66, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10050;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.social-toast.is-active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

