/* ================================================
   WiredTechniks — Main Stylesheet
   Theme: White + Red | USB Node Aesthetic
   ================================================ */

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

:root {
  --red: #be1e2d;
  --red-dark: #961828;
  --red-light: rgba(190, 30, 45, 0.08);
  --black: #111112;
  --dark: #1c1c1e;
  --gray: #4a4a52;
  --gray-light: #8a8a93;
  --border: #e8e8ec;
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-section: #f6f6f4;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.1);
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --card-w: 260px;
  --card-h: 320px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--dark);
  line-height: 1.65;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ---------- LAYOUT ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 5rem 0; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  text-align: center;
  color: var(--black);
  margin-bottom: 0.6rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1rem;
  color: var(--gray-light);
  font-weight: 400;
  margin-bottom: 3rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.separator {
  width: 40px;
  height: 3px;
  background: var(--red);
  border-radius: 4px;
  margin: 0.75rem auto 2.5rem;
}

/* ---------- HEADER / NAV ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo { display: flex; align-items: center; }

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray);
  transition: color 0.2s;
  position: relative;
}

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

.site-nav a:hover { color: var(--black); }
.site-nav a:hover::after { width: 100%; }

.nav-cta {
  background: var(--red) !important;
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: var(--red-dark) !important;
  transform: translateY(-1px);
  color: #fff !important;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--bg);
  padding-top: 80px;
}

#node-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 0 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--red-light);
  border: 1px solid rgba(190, 30, 45, 0.18);
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 40px;
  margin-bottom: 1.8rem;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.7s 0.2s forwards;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse-dot 1.8s infinite;
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.35s forwards;
}

.hero-title .ltr { color: var(--black); }
.hero-title .ltr-i { color: var(--red); }

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--gray);
  font-weight: 400;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.5s forwards;
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.65s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary { background: var(--red); color: white; }

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(190, 30, 45, 0.3);
}

.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--dark);
  background: transparent;
}

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

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0;
  animation: fadeIn 1s 1.2s forwards;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: scrollLine 1.8s infinite;
}

.scroll-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-light);
  font-weight: 500;
}

/* ---------- WHO WE ARE ---------- */
.who-section {
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}

/* Background image layer */
.who-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.who-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.12;
  filter: blur(3px) saturate(0.6);
  transform: scale(1.05);
}

.who-section .container {
  position: relative;
  z-index: 1;
}

.who-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.who-text h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--black);
  margin-bottom: 0.5rem;
}

.who-text .accent-line {
  width: 40px;
  height: 3px;
  background: var(--red);
  border-radius: 4px;
  margin: 0.75rem 0 1.5rem;
}

.who-text p {
  color: var(--gray);
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.75;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--red);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  transition: gap 0.2s;
}

.read-more:hover { gap: 0.7rem; }

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

.stat-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--red-light);
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-box:hover {
  border-color: rgba(190, 30, 45, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.stat-box:hover::before { opacity: 1; }

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: -0.04em;
  position: relative;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--gray-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
  position: relative;
}

/* ---------- COLLECTIVE SUCCESS ---------- */
.collective-section {
  background: var(--bg);
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}

.collective-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.collective-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
}

.collective-text h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--black);
  margin-bottom: 0.5rem;
  transition: opacity 0.4s ease;
}

.collective-text p {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.2rem;
  transition: opacity 0.4s ease;
  min-height: 5.25rem;
}

.collective-text.is-fading h2,
.collective-text.is-fading p {
  opacity: 0;
}

/* Stage / 3D-ish carousel on the right */
.collective-stage {
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.collective-cards {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.collective-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 65%;
  max-width: 380px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-hover, 0 20px 40px rgba(0, 0, 0, 0.12));
  overflow: hidden;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.6s ease,
              filter 0.6s ease,
              z-index 0s linear 0.3s;
}

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

/* Active (center) card */
.collective-card.is-active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  z-index: 3;
  pointer-events: auto;
  filter: none;
}

/* Previous (left, behind) */
.collective-card.is-prev {
  transform: translate(calc(-50% - 55%), -50%) scale(0.78) rotateY(18deg);
  opacity: 0.55;
  z-index: 2;
  filter: blur(0.5px) saturate(0.85);
}

/* Next (right, behind) */
.collective-card.is-next {
  transform: translate(calc(-50% + 55%), -50%) scale(0.78) rotateY(-18deg);
  opacity: 0.55;
  z-index: 2;
  filter: blur(0.5px) saturate(0.85);
}

/* Arrows */
.collective-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--black);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.collective-arrow:hover {
  background: var(--red);
  border-color: var(--red);
  color: white;
  transform: translateY(-50%) scale(1.06);
}

.collective-arrow-left  { left: -8px; }
.collective-arrow-right { right: -8px; }

/* Dots */
.collective-dots {
  position: absolute;
  bottom: -2.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.collective-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.collective-dot.is-active {
  background: var(--red);
  width: 22px;
  border-radius: 999px;
}

/* ---------- EVENTS LIGHTBOX ---------- */
.cs-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.cs-lightbox.is-open {
  display: flex;
}

.cs-lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 21, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: csFadeIn 0.25s ease forwards;
}

.cs-lightbox-inner {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-radius: var(--radius);
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  animation: csSlideIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.cs-lightbox-media {
  background: #0f1115;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  max-height: 90vh;
  overflow: hidden;
}

.cs-lightbox-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cs-lightbox-text {
  padding: 2rem 2rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

.cs-lightbox-text h3 {
  font-size: 1.5rem;
  color: var(--black);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.cs-lightbox-text p {
  color: var(--gray);
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 0;
}

.cs-lightbox-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: white;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cs-lightbox-close:hover {
  background: var(--red);
  transform: scale(1.06);
}

/* Prev / Next nav arrows (overlay-level so they sit beside the panel) */
.cs-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.cs-lightbox-nav:hover {
  background: var(--red);
  transform: translateY(-50%) scale(1.06);
}

.cs-lightbox-nav-prev { left: 1.5rem; }
.cs-lightbox-nav-next { right: 1.5rem; }

.cs-lightbox-counter {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-light);
  font-weight: 600;
}

/* Smooth content swap when navigating inside the lightbox */
.cs-lightbox-media img,
.cs-lightbox-text h3,
.cs-lightbox-text p {
  transition: opacity 0.25s ease;
}

.cs-lightbox.is-swapping .cs-lightbox-media img,
.cs-lightbox.is-swapping .cs-lightbox-text h3,
.cs-lightbox.is-swapping .cs-lightbox-text p {
  opacity: 0;
}

/* Hint cursor on the active card */
.collective-card.is-active {
  cursor: zoom-in;
}

@keyframes csFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes csSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 760px) {
  .cs-lightbox-inner {
    grid-template-columns: 1fr;
    max-height: 92vh;
  }
  .cs-lightbox-media {
    max-height: 50vh;
  }
}

/* ---------- EVENTS LIGHTBOX — ALBUM & ZOOM MODES ---------- */

/* Album and zoom panels hidden by default; shown only when mode is set */
.cs-lb-album-panel { display: none; }
.cs-lb-zoom-panel  { display: none; }

#cs-lightbox[data-mode="album"]    .cs-lightbox-inner,
#cs-lightbox[data-mode="album"]    .cs-lb-zoom-panel,
#cs-lightbox[data-mode="album"]    .cs-lightbox-nav   { display: none !important; }
#cs-lightbox[data-mode="album"]    .cs-lb-album-panel { display: block; }

#cs-lightbox[data-mode="zoom"]     .cs-lightbox-inner,
#cs-lightbox[data-mode="zoom"]     .cs-lb-album-panel,
#cs-lightbox[data-mode="zoom"]     .cs-lightbox-nav   { display: none !important; }
#cs-lightbox[data-mode="zoom"]     .cs-lb-zoom-panel  { display: flex; }

/* Same mode rules for the Skills Development lightbox */
#skills-lightbox[data-mode="album"] .cs-lightbox-inner,
#skills-lightbox[data-mode="album"] .cs-lb-zoom-panel { display: none !important; }
#skills-lightbox[data-mode="album"] .cs-lb-album-panel { display: block; }

#skills-lightbox[data-mode="zoom"]  .cs-lightbox-inner,
#skills-lightbox[data-mode="zoom"]  .cs-lb-album-panel { display: none !important; }
#skills-lightbox[data-mode="zoom"]  .cs-lb-zoom-panel  { display: flex; }

/* Show-more hover overlay (sits over the image in the single lightbox view) */
.cs-lightbox-media {
  position: relative;
}

.cs-lb-show-more {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  cursor: pointer;
}

.cs-lightbox-media:hover .cs-lb-show-more {
  opacity: 1;
}

.cs-lb-show-more span {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(190, 30, 45, 0.88);
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  pointer-events: none;
}

/* ── ALBUM PANEL ── */
.cs-lb-album-panel {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-radius: var(--radius);
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  padding: 3rem 2.5rem 2.5rem;
  animation: csSlideIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.cs-lb-album-header {
  margin-bottom: 1.75rem;
}

.cs-lb-album-title {
  font-size: 1.55rem;
  color: var(--black);
  margin-bottom: 0.4rem;
  line-height: 1.25;
}

.cs-lb-album-desc {
  color: var(--gray);
  font-size: 0.97rem;
  line-height: 1.65;
  margin: 0;
}

.cs-lb-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  margin-bottom: 1.25rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cs-lb-back-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.cs-lb-album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
}

.cs-lb-album-thumb {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--bg-section);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cs-lb-album-thumb:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.cs-lb-album-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: var(--bg-section);
}

/* Close button positioning for album/zoom panels */
.cs-lb-album-panel .cs-lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}

/* ── ZOOM PANEL (isolated single image from album) ── */
.cs-lb-zoom-panel {
  position: relative;
  z-index: 1;
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  flex-direction: column;
  align-items: center;
  animation: csSlideIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.cs-lb-zoom-panel .cs-lb-back-btn {
  align-self: flex-start;
  margin-bottom: 0.75rem;
}

.cs-lb-zoom-panel .cs-lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
}

.cs-lb-zoom-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-height: calc(90vh - 7rem);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}

.cs-lb-zoom-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  border-radius: var(--radius);
  cursor: zoom-in;
  transition: transform 0.12s ease;
  will-change: transform;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
}

.cs-lb-zoom-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.cs-lb-zoom-nav:hover {
  background: var(--red);
  transform: translateY(-50%) scale(1.06);
}

.cs-lb-zoom-prev { left: -3.5rem; }
.cs-lb-zoom-next { right: -3.5rem; }

.cs-lb-zoom-counter {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

/* ── SKILLS DEVELOPMENT SECTION ── */
.skills-section {
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}

/* Responsive album/zoom */
@media (max-width: 760px) {
  .cs-lb-album-panel { padding: 2rem 1.25rem 1.5rem; }
  .cs-lb-album-grid  { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .cs-lb-zoom-prev   { left: -1rem; }
  .cs-lb-zoom-next   { right: -1rem; }
}

/* ---------- PRODUCTS / CAROUSEL ---------- */
.products-section {
  background: var(--bg);
  padding-bottom: 3rem;
}

.brand-section {
  margin-bottom: 4rem;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.brand-tag {
  background: var(--red);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 40px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--black);
}

.brand-desc {
  font-size: 0.82rem;
  color: var(--gray-light);
  margin-left: auto;
}

/* Carousel wrapper */
.carousel-outer {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.5rem 0 1rem;
}

.carousel-viewport {
  overflow: hidden;
  flex: 1;
  cursor: grab;
  padding: 1.2rem 0;
  /* Fade-blur both edges — same effect as the clients marquee */
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.carousel-viewport:active { cursor: grabbing; }

/* Add wide breathing room on the sides of each carousel */
.brand-section .carousel-outer {
  padding-left:  clamp(2rem, 6vw, 6rem);
  padding-right: clamp(2rem, 6vw, 6rem);
}

.carousel-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  /* CSS animation — JS sets duration & delay per carousel */
  animation: scroll-carousel 35s linear infinite;
  will-change: transform;
}

.carousel-track.paused {
  animation-play-state: paus_f-ed;
}

/* Fixed-size product cards */
.product-card {
  width: var(--card-w);
  height: var(--card-h);
  flex-shrink: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  user-select: none;
}

.product-card:hover {
  border-color: rgba(190, 30, 45, 0.3);
  box-shadow: 0 12px 36px rgba(190, 30, 45, 0.1);
  transform: translateY(-4px);
}

.product-image {
  background: var(--bg-section);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.25s;
  padding: 1.2rem;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.product-card:hover .product-image { background: #efefed; }

.product-image-icon {
  font-size: 2.8rem;
  opacity: 0.35;
}

.product-image-label {
  font-size: 0.7rem;
  color: var(--gray-light);
  background: white;
  border: 1px solid var(--border);
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  font-family: monospace;
}

.product-info {
  padding: 0.9rem 1rem;
  flex-shrink: 0;
}

.product-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-info p {
  font-size: 0.74rem;
  color: var(--gray-light);
  line-height: 1.4;
  overflow: hidden;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  max-height: calc(1.4em * 2);
}

/* "Click for details" hint overlay */
.card-click-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(190, 30, 45, 0.92), transparent);
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 1.2rem 0 0.5rem;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.product-card:hover .card-click-hint {
  opacity: 1;
  transform: translateY(0);
}

/* Carousel arrow buttons */
.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--dark);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, opacity 0.2s;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.carousel-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: white;
  box-shadow: 0 4px 16px rgba(190, 30, 45, 0.25);
}

.carousel-btn.hidden { 
  opacity: 0;
  pointer-events: none;
}

.carousel-btn-left { margin-right: 0.75rem; }
.carousel-btn-right { margin-left: 0.75rem; }

/* ---------- PRODUCT MODAL ---------- */
.product-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.product-modal.open {
  display: flex;
  animation: fadeIn 0.2s forwards;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.modal-box {
  position: relative;
  background: white;
  border-radius: 24px;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,0.22);
  animation: modalSlideIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f0f0f0;
  color: var(--dark);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}

.modal-close:hover {
  background: var(--red);
  color: white;
}

.modal-media-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0e0e10;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-media-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: #555;
  padding: 2rem;
  text-align: center;
}

.modal-media-placeholder span {
  font-size: 3rem;
  opacity: 0.4;
}

.modal-media-placeholder p {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.5;
}

.modal-body {
  padding: 1.8rem 2rem 2rem;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}

.modal-description {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.8;
}

/* ---------- CLIENTS ---------- */
.clients-section {
  background: var(--bg-soft);
}

.clients-track-wrapper {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  margin: 2rem 0 0;
  padding: 0.5rem 0;
}

.clients-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: scroll-clients 24s linear infinite;
}

.clients-track:hover {
  animation-play-state: paused;
}

.client-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  height: 60px;
  padding: 0 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray);
  white-space: nowrap;
  letter-spacing: 0.03em;
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s, color 0.25s;
  cursor: default;
}

/* If you replace the text with an <img>, it will fill the chip nicely */
.client-chip img {
  max-width: 110px;
  max-height: 36px;
  object-fit: contain;
  filter: grayscale(40%);
  transition: filter 0.25s, transform 0.25s;
}

.client-chip:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  border-color: rgba(190, 30, 45, 0.25);
  color: var(--red);
}

.client-chip:hover img {
  filter: grayscale(0%);
}

/* ---------- GUIDING PRINCIPLES ---------- */
.principles-section { background: var(--bg); }

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.principle-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.principle-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.principle-card:hover {
  transform: translateY(-5px);
  border-color: rgba(190, 30, 45, 0.2);
  box-shadow: var(--shadow-hover);
  background: var(--bg);
}

.principle-card:hover::after { transform: scaleX(1); }

.principle-icon {
  width: 48px;
  height: 48px;
  background: var(--red-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  transition: background 0.3s;
}

.principle-card:hover .principle-icon { background: var(--red-light); }

.principle-card h3 {
  font-size: 1.1rem;
  color: var(--black);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.principle-card p {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ---------- OFFICES ---------- */
.offices-section { background: var(--bg-section); }

.offices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.office-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.office-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s ease;
}

.office-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(190, 30, 45, 0.2);
}

.office-card:hover::before { transform: scaleY(1); }

.office-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 1rem;
  background: var(--red-light);
  padding: 0.3rem 0.75rem;
  border-radius: 40px;
}

.office-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.75rem;
}

.office-card address {
  font-style: normal;
  color: var(--gray);
  font-size: 0.875rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.office-contact {
  font-size: 0.825rem;
  color: var(--gray-light);
}

.contact-cta {
  text-align: center;
  padding: 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.contact-cta p { font-size: 0.9rem; color: var(--gray); }

.contact-cta a,
.contact-cta span {
  color: var(--red);
  font-weight: 600;
  font-size: 1.05rem;
}

.contact-cta a { transition: opacity 0.2s; }
.contact-cta a:hover { opacity: 0.8; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--black);
  color: #6e6e7a;
  padding: 3rem 0;
  text-align: center;
}

.footer-logo {
  /* Block-level wrapper keeps the logo on its own row, centered
     under the back-to-top arrow (parent .container is text-align: center). */
  margin: 0 0 0.9rem;
  line-height: 0;
}

.footer-logo-img {
  /* Source PNG has a baked-in white background, so we let it show
     by giving the img itself a tight white "chip" treatment that
     matches the dark footer aesthetically. */
  height: 44px;
  width: auto;
  display: inline-block;
  background: #ffffff;
  padding: 6px 8px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-logo-img:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.footer-tagline {
  font-size: 0.78rem;
  margin-bottom: 1.8rem;
  letter-spacing: 0.05em;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-nav a {
  font-size: 0.8rem;
  color: #6e6e7a;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--red); }

.footer-divider {
  width: 40px;
  height: 1px;
  background: #333;
  margin: 1.5rem auto;
}

.footer-copy { font-size: 0.75rem; color: #444; }

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--dark);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--red);
}

/* ---------- SCROLL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}

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

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}

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

.stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--transition), transform 0.6s var(--transition);
}

.stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.1s; }
.stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.2s; }
.stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.3s; }
.stagger.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.4s; }
.stagger.visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.5s; }

/* ---------- KEYFRAMES ---------- */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

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

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

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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .who-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .who-text { text-align: center; }
  .who-text .accent-line { margin: 0.75rem auto 1.5rem; }
  .brand-desc { display: none; }

  .collective-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .collective-text { text-align: center; }
  .collective-text .accent-line { margin: 0.75rem auto 1.5rem; }
  .collective-stage { height: 320px; }
}

@media (max-width: 680px) {
  .site-nav { display: none; }
  .hero-title { font-size: 2.6rem; }
  section { padding: 3.5rem 0; }
  .who-stats { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .modal-body { padding: 1.2rem 1.2rem 1.5rem; }
}