/* ==========================================================================
   THE CAMPAIGN INDEX — DARK THEATER
   Mohamed Ouail Boudraa · Social Media Manager | AI Creative Designer
   ========================================================================== */

:root {
  --bg: #0A0A0B;
  --panel: #121214;
  --panel-elev: #18181B;
  --text: #F4F4F0;
  --muted: #9A9A93;
  --hairline: rgba(244, 244, 240, 0.12);
  --hairline-solid: #26261F;
  --lime: #C7F36B;
  --lime-ink: #0A0A0B;
  --dot: #3DDC84;

  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --container: 1380px;
  --gutter: clamp(18px, 3vw, 44px);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.05vw, 1.125rem);
  line-height: 1.55;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  image-rendering: -webkit-optimize-contrast;
}

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

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

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--font-mono);
  font-size: clamp(0.6875rem, 0.75vw, 0.75rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.display-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.display-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.display-h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* ==========================================================================
   SCROLL PROGRESS HAIRLINE & PAGE TRANSITION
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--lime);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 900;
  pointer-events: none;
}

.page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 950;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.page-transition.is-leaving {
  opacity: 1;
  pointer-events: all;
}

/* ==========================================================================
   SESSION LOADER (Hidden by default for 100% No-JS / Fallback safety)
   ========================================================================== */
.loader {
  display: none;
}

html.js-loader-active .loader {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 4vw, 48px);
  cursor: pointer;
}

.loader-top,
.loader-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.loader-center {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.loader-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 5.2rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  overflow: hidden;
}

.loader-counter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 11vw, 9rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}

.loader-bar-track {
  width: 100%;
  height: 1px;
  background: var(--hairline);
  position: relative;
  overflow: hidden;
}

.loader-bar-fill {
  position: absolute;
  inset: 0;
  background: var(--lime);
  transform-origin: left center;
  transform: scaleX(0);
}

.loader-skip {
  color: var(--muted);
  border: 1px solid var(--hairline);
  padding: 6px 12px;
  border-radius: 999px;
}

/* ==========================================================================
   CUSTOM CURSOR (Desktop pointer: fine only)
   ========================================================================== */
.custom-cursor {
  display: none;
}

@media (pointer: fine) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .custom-cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 980;
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .custom-cursor.is-visible {
    opacity: 1;
  }

  .cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: var(--lime);
    will-change: transform;
  }

  .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    border-radius: 999px;
    border: 1px solid rgba(244, 244, 240, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.22s var(--ease-out), height 0.22s var(--ease-out), margin 0.22s var(--ease-out), background-color 0.22s ease, border-color 0.22s ease;
    will-change: transform;
  }

  .cursor-pill-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--lime-ink);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.16s ease, transform 0.16s ease;
    white-space: nowrap;
  }

  .custom-cursor.has-label .cursor-dot {
    opacity: 0;
  }

  .custom-cursor.has-label .cursor-ring {
    width: 76px;
    height: 34px;
    margin: -17px 0 0 -38px;
    background: var(--lime);
    border-color: var(--lime);
  }

  .custom-cursor.has-label .cursor-pill-label {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(10, 10, 11, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--hairline);
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--panel);
  display: grid;
  place-items: center;
}

.brand-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-monogram {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-monogram-sub {
  color: var(--muted);
  display: none;
}

@media (min-width: 1060px) {
  .brand-monogram-sub {
    display: inline;
  }
}

.main-nav {
  display: none;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--muted);
  transition: color 0.2s ease;
  position: relative;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
}

@media (min-width: 900px) {
  .main-nav {
    display: flex;
  }
}

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

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(18, 18, 20, 0.72);
  color: var(--muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.lang-btn:hover {
  border-color: var(--lime);
  color: var(--text);
}

.lang-btn .is-active-lang {
  color: var(--lime);
}

.btn-lime {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--lime-ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-lime:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -8px rgba(199, 243, 107, 0.5);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(18, 18, 20, 0.7);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s var(--ease-out);
  white-space: nowrap;
}

.btn-ghost:hover {
  border-color: var(--lime);
  background: var(--panel-elev);
  transform: translateY(-2px);
}

.header-cta {
  padding: 9px 16px;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: 108px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}

.hero-halo {
  position: absolute;
  top: 14%;
  right: 6%;
  width: min(62vw, 680px);
  height: min(62vw, 680px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 243, 107, 0.14) 0%, rgba(244, 244, 240, 0.05) 38%, rgba(10, 10, 11, 0) 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.hero-stage {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
  padding-block: clamp(20px, 4vh, 48px);
}

@media (min-width: 1024px) {
  .hero-stage {
    grid-template-columns: 1.25fr 0.75fr;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.avail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 12px rgba(61, 220, 132, 0.75);
  flex-shrink: 0;
}

.hero-title {
  margin-bottom: 22px;
}

/* FR headline runs longer — scale it down so the full hero fits one screen */
html[lang="fr"] .hero-title {
  font-size: clamp(2.5rem, 7.2vw, 6.1rem);
}

.hero-title .line-mask {
  display: block;
  overflow: hidden;
}

.hero-title .line-inner {
  display: block;
}

.hero-title .accent-word {
  color: var(--lime);
}

.hero-sub {
  max-width: 580px;
  color: var(--muted);
  margin-bottom: 30px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  max-width: 560px;
}

.hero-stat-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  line-height: 1;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}

.hero-stat-lbl {
  color: var(--muted);
  margin-top: 6px;
  display: block;
}

/* Floating Hero Tiles */
.hero-tiles {
  position: relative;
  min-height: 360px;
  height: clamp(360px, 46vh, 520px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 1024px) {
  .hero-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    min-height: 480px;
    height: 520px;
  }
  .hero-tile {
    position: relative;
    width: auto;
    height: auto;
    aspect-ratio: auto;
  }
}

/* Marquee */
.marquee-band {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--hairline);
  background: rgba(18, 18, 20, 0.65);
  overflow: hidden;
  padding-block: 14px;
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marqueeScroll 34s linear infinite;
}

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

.marquee-group {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  color: var(--muted);
}

.marquee-item::after {
  content: "◆";
  font-size: 0.65rem;
  color: var(--lime);
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   SECTIONS & HEADERS
   ========================================================================== */
.section {
  padding-block: clamp(72px, 10vw, 132px);
  border-bottom: 1px solid var(--hairline);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--lime);
  margin-bottom: 12px;
}

.section-desc {
  max-width: 440px;
  color: var(--muted);
}

/* ==========================================================================
   SELECTED CAMPAIGNS (ASYMMETRIC EDITORIAL GRID — 6 FLAGSHIP)
   ========================================================================== */
.selected-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 2.6vw, 34px);
}

@media (min-width: 768px) {
  .selected-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .campaign-card.span-7 { grid-column: span 7; }
  .campaign-card.span-5 { grid-column: span 5; }
  .campaign-card.span-6 { grid-column: span 6; }
}

.campaign-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.28s ease;
}

.campaign-card:hover {
  border-color: rgba(199, 243, 107, 0.55);
}

.campaign-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0D0D10;
}

.span-5 .campaign-media {
  aspect-ratio: 4 / 3.4;
}

.campaign-media img,
.campaign-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.campaign-media img {
  transition: transform 0.6s var(--ease-out);
}

.campaign-card:hover .campaign-media img {
  transform: scale(1.04);
}

.campaign-media video {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 2;
}

.campaign-card.is-playing .campaign-media video {
  opacity: 1;
}

.campaign-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  background: radial-gradient(circle at top right, rgba(199, 243, 107, 0.14), transparent 55%), #121214;
}

.campaign-media img.is-loaded + .campaign-fallback,
.campaign-fallback.is-hidden {
  display: none;
}

.campaign-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 3;
  pointer-events: none;
}

.badge-pill {
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid var(--hairline);
  color: var(--text);
  padding: 5px 10px;
  border-radius: 999px;
}

.badge-pill.is-motion {
  border-color: rgba(199, 243, 107, 0.45);
  color: var(--lime);
}

.card-hover-pill {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--lime-ink);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.85);
  transition: opacity 0.18s ease, transform 0.18s var(--ease-out);
}

.campaign-card:hover .card-hover-pill {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) scale(1);
}

@media (hover: none) {
  .card-hover-pill {
    display: none;
  }
}

.campaign-body {
  padding: clamp(18px, 2.2vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.campaign-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.campaign-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.campaign-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.campaign-arrow {
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  transition: transform 0.22s var(--ease-out);
}

.campaign-card:hover .campaign-arrow {
  transform: translate(3px, -3px);
}

.campaign-summary {
  color: var(--muted);
  font-size: 0.94rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.campaign-deliverables {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.deliv-tag {
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid var(--hairline);
  color: var(--muted);
}

/* ==========================================================================
   ALL CAMPAIGNS INDEX (OBYS-STYLE ON DESKTOP + GRID FALLBACK ON MOBILE)
   ========================================================================== */
.index-block {
  margin-top: clamp(56px, 8vw, 96px);
}

.index-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
}

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

.filter-pill {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  color: var(--muted);
  background: var(--panel);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.filter-pill:hover {
  border-color: var(--lime);
  color: var(--text);
}

.filter-pill.is-active {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--lime-ink);
}

.index-list {
  display: none;
}

.index-mobile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}

@media (min-width: 560px) and (max-width: 767px) {
  .index-mobile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .index-list {
    display: block;
  }
  .index-mobile-grid {
    display: none;
  }
}

.index-row {
  display: grid;
  grid-template-columns: 52px minmax(180px, 1.2fr) minmax(180px, 1.1fr) auto 40px;
  align-items: center;
  gap: 18px;
  padding: 20px 8px;
  border-bottom: 1px solid var(--hairline);
  transition: background-color 0.2s ease, padding-inline 0.22s var(--ease-out), border-color 0.2s ease;
}

.index-row:hover,
.index-row:focus-visible {
  background: rgba(244, 244, 240, 0.03);
  padding-inline: 16px;
  border-bottom-color: rgba(199, 243, 107, 0.5);
}

.index-num {
  color: var(--muted);
}

.index-row:hover .index-num {
  color: var(--lime);
}

.index-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.3vw, 2.1rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.index-badge {
  color: var(--muted);
}

.index-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.index-arrow {
  text-align: right;
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s var(--ease-out);
}

.index-row:hover .index-arrow {
  color: var(--lime);
  transform: translate(3px, -3px);
}

.index-preview {
  display: none;
}

@media (min-width: 768px) and (pointer: fine) {
  .index-preview {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(199, 243, 107, 0.45);
    background: var(--panel);
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.85);
    pointer-events: none;
    z-index: 420;
    opacity: 0;
    transform: translate3d(-999px, -999px, 0) scale(0.92);
    transition: opacity 0.2s ease;
  }

  .index-preview.is-visible {
    opacity: 1;
  }

  .index-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* ==========================================================================
   NUMBERS BAND
   ========================================================================== */
.numbers-band {
  background: var(--panel);
}

.numbers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding-block: clamp(28px, 4vw, 48px);
}

@media (min-width: 768px) {
  .numbers-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.number-cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 768px) {
  .number-cell + .number-cell {
    border-left: 1px solid var(--hairline);
    padding-left: clamp(20px, 3vw, 40px);
  }
}

.number-figure {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}

.number-label {
  color: var(--text);
}

.numbers-tagline {
  margin-top: 24px;
  color: var(--muted);
}

/* ==========================================================================
   MOTION WALL (DARK THEATER HORIZONTAL RAIL)
   ========================================================================== */
.motion-section {
  background: #060607;
  overflow: hidden;
}

.motion-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rail-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--panel);
  color: var(--text);
  display: grid;
  place-items: center;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.rail-btn:hover {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--lime-ink);
}

.motion-rail {
  display: flex;
  gap: clamp(14px, 1.8vw, 22px);
  overflow-x: auto;
  padding-inline: var(--gutter);
  padding-bottom: 14px;
  cursor: grab;
  user-select: none;
  scrollbar-width: thin;
  scrollbar-color: var(--hairline-solid) transparent;
}

.motion-rail.is-dragging {
  cursor: grabbing;
}

.motion-rail::-webkit-scrollbar {
  height: 6px;
}

.motion-rail::-webkit-scrollbar-thumb {
  background: var(--hairline-solid);
  border-radius: 999px;
}

.reel-card {
  position: relative;
  flex: 0 0 clamp(210px, 21vw, 280px);
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--panel);
  text-align: left;
  transition: border-color 0.22s ease, transform 0.28s var(--ease-out);
}

.reel-card:hover {
  border-color: var(--lime);
  transform: translateY(-4px);
}

.reel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 0.5s var(--ease-out);
}

.reel-card:hover img {
  transform: scale(1.04);
}

.reel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 11, 0.45) 0%, rgba(10, 10, 11, 0) 35%, rgba(10, 10, 11, 0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
}

.reel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.reel-badge {
  background: rgba(10, 10, 11, 0.78);
  border: 1px solid var(--hairline);
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--text);
}

.reel-play-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(10, 10, 11, 0.75);
  border: 1px solid rgba(199, 243, 107, 0.65);
  color: var(--lime);
  display: grid;
  place-items: center;
  align-self: center;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.reel-card:hover .reel-play-icon {
  background: var(--lime);
  color: var(--lime-ink);
  transform: scale(1.08);
}

.reel-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reel-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  line-height: 1.05;
}

.reel-sub {
  color: var(--muted);
}

/* Native <dialog> Motion Theater Player */
.motion-dialog {
  margin: auto;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--panel);
  color: var(--text);
  width: min(94vw, 880px);
  max-height: 92svh;
  overflow: hidden;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.9);
}

.motion-dialog::backdrop {
  background: rgba(5, 5, 6, 0.88);
  backdrop-filter: blur(12px);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline);
}

.dialog-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dialog-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  display: grid;
  place-items: center;
  color: var(--text);
}

.dialog-close:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.dialog-stage {
  background: #050506;
  display: grid;
  place-items: center;
  padding: 16px;
}

.dialog-stage video {
  width: 100%;
  max-height: 70svh;
  border-radius: var(--radius-sm);
  background: #000;
}

.dialog-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--hairline);
}

/* ==========================================================================
   WHAT I CREATE (3 LARGE BLOCKS)
   ========================================================================== */
.create-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (min-width: 900px) {
  .create-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.create-block {
  background: var(--panel);
  padding: clamp(26px, 3.5vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background-color 0.25s ease;
}

.create-block:hover {
  background: var(--panel-elev);
}

.create-num {
  color: var(--lime);
}

.create-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.create-copy {
  color: var(--muted);
}

/* ==========================================================================
   PROCESS + BEFORE/AFTER SLIDER
   ========================================================================== */
.process-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 54px);
  align-items: center;
}

@media (min-width: 1024px) {
  .process-layout {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.process-steps {
  display: grid;
  gap: 14px;
}

.process-step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--panel);
}

.process-step-num {
  color: var(--lime);
  padding-top: 4px;
}

.process-step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.process-step p {
  color: var(--muted);
  font-size: 0.94rem;
}

/* Before / After Slider */
.ba-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ba-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.ba-slider {
  --split: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 620px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--panel);
  touch-action: none;
  user-select: none;
  cursor: ew-resize;
}

.ba-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ba-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-before {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
}

.ba-after {
  z-index: 1;
}

.ba-label {
  position: absolute;
  bottom: 14px;
  z-index: 4;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.84);
  border: 1px solid var(--hairline);
  color: var(--text);
  pointer-events: none;
}

.ba-label-before { left: 14px; }
.ba-label-after { right: 14px; border-color: rgba(199, 243, 107, 0.5); color: var(--lime); }

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 2px;
  background: var(--lime);
  z-index: 5;
  transform: translateX(-50%);
  pointer-events: none;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: var(--split);
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--lime-ink);
  z-index: 6;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.65);
  cursor: ew-resize;
}

/* ==========================================================================
   ABOUT (SHORT)
   ========================================================================== */
.about-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(28px, 4.5vw, 56px);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

@media (min-width: 960px) {
  .about-panel {
    grid-template-columns: 1.4fr 0.6fr;
    align-items: center;
  }
}

.about-copy {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.45;
  color: var(--text);
  max-width: 70ch;
  margin-block: 18px 24px;
}

.about-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
}

.about-info-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.about-info-item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
}

.about-skills {
  margin-top: 26px;
}

.about-skills-label {
  color: var(--lime);
  font-size: 11px;
  letter-spacing: 0.18em;
  margin: 18px 0 10px;
}

.skills-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(244, 244, 240, 0.03);
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease,
    opacity 0.55s ease;
}

.skill-chip:hover {
  border-color: var(--lime);
  color: var(--lime);
  transform: translateY(-3px);
}

.chip-ico {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--lime);
  transition: transform 0.3s ease;
}

.skill-chip:hover .chip-ico {
  transform: rotate(-10deg) scale(1.22);
}

/* Staggered creative entrance — armed by JS so content is visible without it */
.about-skills.skills-armed .skill-chip {
  opacity: 0;
  transform: translateY(14px) scale(0.92);
}

.about-skills.skills-in .skill-chip {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.about-skills .skills-chips .skill-chip:nth-child(1) { transition-delay: 0ms; }
.about-skills .skills-chips .skill-chip:nth-child(2) { transition-delay: 60ms; }
.about-skills .skills-chips .skill-chip:nth-child(3) { transition-delay: 120ms; }
.about-skills .skills-chips .skill-chip:nth-child(4) { transition-delay: 180ms; }
.about-skills .skills-chips .skill-chip:nth-child(5) { transition-delay: 240ms; }
.about-skills .skills-chips .skill-chip:nth-child(6) { transition-delay: 300ms; }
.about-skills .skills-chips .skill-chip:nth-child(7) { transition-delay: 360ms; }
.about-skills .skills-chips .skill-chip:nth-child(8) { transition-delay: 420ms; }

/* Tools icons breathe gently */
.tools-chips .chip-ico {
  animation: chipPulse 2.8s ease-in-out infinite;
}

.tools-chips .skill-chip:nth-child(2) .chip-ico { animation-delay: 0.35s; }
.tools-chips .skill-chip:nth-child(3) .chip-ico { animation-delay: 0.7s; }
.tools-chips .skill-chip:nth-child(4) .chip-ico { animation-delay: 1.05s; }
.tools-chips .skill-chip:nth-child(5) .chip-ico { animation-delay: 1.4s; }
.tools-chips .skill-chip:nth-child(6) .chip-ico { animation-delay: 1.75s; }
.tools-chips .skill-chip:nth-child(7) .chip-ico { animation-delay: 2.1s; }
.tools-chips .skill-chip:nth-child(8) .chip-ico { animation-delay: 2.45s; }

@keyframes chipPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

@media (prefers-reduced-motion: reduce) {
  .tools-chips .chip-ico { animation: none; }
  .about-skills.skills-armed .skill-chip { opacity: 1; transform: none; }
}

.about-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

@media (min-width: 960px) {
  .about-aside {
    align-items: flex-end;
    text-align: right;
  }
}

.about-portrait {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(199, 243, 107, 0.5);
  background: var(--bg);
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   CONTACT & FOOTER
   ========================================================================== */
.footer-marquee {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding-block: clamp(18px, 3vw, 30px);
  background: var(--panel);
  overflow: hidden;
}

.footer-marquee-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6.5vw, 5.5rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding-right: 32px;
}

.footer-marquee-text span.dot {
  color: var(--lime);
}

.contact-section {
  padding-block: clamp(68px, 9vw, 116px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 54px);
  align-items: end;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.contact-links-list {
  display: grid;
  border-top: 1px solid var(--hairline);
}

.contact-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--hairline);
  transition: padding-inline 0.2s var(--ease-out), border-color 0.2s ease;
}

.contact-link-row:hover {
  padding-inline: 10px;
  border-bottom-color: var(--lime);
}

.contact-link-row .mono {
  color: var(--muted);
}

.contact-link-row:hover .arrow {
  color: var(--lime);
}

.site-footer {
  padding-block: 28px 40px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 16px);
  background: var(--lime);
  color: var(--lime-ink);
  padding: 10px 18px;
  border-radius: 999px;
  z-index: 960;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s var(--ease-out);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.copy-toast.is-shown {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   PROJECT CASE STUDY PAGE (project.html)
   ========================================================================== */
.project-hero {
  padding-top: 108px;
  padding-bottom: clamp(44px, 6vw, 72px);
  border-bottom: 1px solid var(--hairline);
}

.project-cover-frame {
  position: relative;
  width: 100%;
  max-height: 76svh;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: radial-gradient(120% 120% at 50% 0%, #17171a 0%, var(--panel) 62%);
  margin-bottom: clamp(24px, 4vw, 44px);
}

.project-cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-title-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.spec-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 28px;
  padding: 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--panel);
}

@media (min-width: 820px) {
  .spec-bar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.spec-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spec-cell-label {
  color: var(--muted);
}

.spec-cell-value {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
}

.spec-deliverables {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

@media (min-width: 860px) {
  .overview-grid {
    grid-template-columns: 1.4fr 0.6fr;
  }
}

.overview-copy {
  font-size: clamp(1.12rem, 1.7vw, 1.5rem);
  line-height: 1.5;
  color: var(--text);
}

.overview-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

@media (min-width: 860px) {
  .overview-actions {
    align-items: flex-end;
  }
}

/* Editorial Gallery */
.editorial-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2vw, 26px);
}

@media (min-width: 720px) {
  .editorial-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(11):last-child {
    grid-column: 1 / -1;
  }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--panel);
  cursor: zoom-in;
  transition: border-color 0.22s ease;
}

.gallery-item:hover {
  border-color: var(--lime);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s var(--ease-out);
}

.gallery-item:hover img {
  transform: scale(1.02);
}

.gallery-index {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10, 10, 11, 0.8);
  border: 1px solid var(--hairline);
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--text);
}

/* Project Motion Grid */
.project-motion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}

.project-video-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: #050506;
}

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

/* Next Campaign Giant Card */
.next-campaign-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  background: var(--panel);
  transition: border-color 0.25s ease, transform 0.3s var(--ease-out);
}

@media (min-width: 820px) {
  .next-campaign-card {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.next-campaign-card:hover {
  border-color: var(--lime);
  transform: translateY(-4px);
}

.next-campaign-thumb {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: #0D0D10;
}

.next-campaign-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.next-campaign-card:hover .next-campaign-thumb img {
  transform: scale(1.04);
}

/* Lightbox Dialog */
.gallery-dialog {
  margin: auto;
  padding: 0;
  border: none;
  background: rgba(6, 6, 8, 0.96);
  color: var(--text);
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
}

.gallery-dialog::backdrop {
  background: rgba(4, 4, 6, 0.95);
}

.lb-shell {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.lb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--hairline);
}

.lb-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.lb-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 20px;
}

.lb-stage img {
  max-width: 92vw;
  max-height: 82vh;
  border-radius: var(--radius-sm);
  cursor: zoom-in;
}

.lb-stage img.is-native-zoom {
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
  cursor: zoom-out;
}

.lb-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: rgba(18, 18, 20, 0.85);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  z-index: 20;
}

.lb-arrow:hover {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--lime-ink);
}

.lb-prev { left: 16px; }
.lb-next { right: 16px; }

.not-found-box {
  padding: 48px 28px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--panel);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .marquee-track {
    animation: none;
  }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}

/* --- Mobile navigation row (added for easy browsing on phones) --- */
@media (max-width: 899px) {
  .header-inner {
    height: auto;
    flex-wrap: wrap;
    padding-top: 10px;
    row-gap: 0;
  }
  .main-nav {
    display: flex;
    order: 3;
    flex-basis: 100%;
    gap: 22px;
    overflow-x: auto;
    padding: 10px 2px 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav::-webkit-scrollbar {
    display: none;
  }
  .main-nav a {
    white-space: nowrap;
    font-size: 12px;
    letter-spacing: 0.08em;
  }
  .hero {
    padding-top: 136px;
  }
  section[id] {
    scroll-margin-top: 118px;
  }
}

/* ============ WBC SPECTRUM — brand gradient system sampled from his WBC logo
   (cyan → violet → magenta → orange). The old Signal Lime is retired: the
   --lime token now carries the logo's electric cyan so every small accent
   follows the brand; display moments use the full gradient. ============ */
:root {
  --grad-wbc: linear-gradient(115deg, #22D3EE 0%, #8B5CF6 35%, #EC4899 70%, #FB923C 100%);
  --grad-wbc-vertical: linear-gradient(180deg, #22D3EE 0%, #8B5CF6 35%, #EC4899 70%, #FB923C 100%);
  --grad-wbc-conic: conic-gradient(from 0deg, #22D3EE, #8B5CF6, #EC4899, #FB923C, #22D3EE);
  --lime: #22D3EE;
  --dot: #FB923C;
}

::selection {
  background: #EC4899;
  color: #FFFFFF;
}

/* Primary buttons: living gradient fill, dark ink stays readable */
.btn-lime {
  background-image: var(--grad-wbc);
  background-size: 180% 100%;
  background-position: 0% 50%;
  transition: background-position 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.35s ease, box-shadow 0.35s ease;
}
.btn-lime:hover,
.btn-lime:focus-visible {
  background-position: 95% 50%;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.35);
}

/* Hero headline: the accent word carries the spectrum */
.hero-title .accent-word {
  background-image: var(--grad-wbc);
  background-size: 240% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: wbcSweep 10s ease-in-out infinite alternate;
}
@keyframes wbcSweep {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

/* Scroll progress: full spectrum */
.scroll-progress {
  background-image: var(--grad-wbc);
}

/* Loader: spectrum bar + name */
.loader-bar-fill {
  background-image: var(--grad-wbc);
  background-size: 180% 100%;
}
.loader-name {
  background-image: var(--grad-wbc);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: wbcSweep 6s ease-in-out infinite alternate;
}

/* Header logo: larger, wrapped in a slowly rotating spectrum ring */
.brand-logo-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  overflow: visible;
  border: none;
  background: transparent;
  z-index: 0;
}
.brand-logo-wrap img {
  border-radius: 50%;
  position: relative;
  display: block;
}
.brand-logo-wrap::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--grad-wbc-conic);
  animation: wbcSpin 10s linear infinite;
  z-index: -1;
}
@keyframes wbcSpin {
  to { transform: rotate(360deg); }
}

/* About portrait: bigger badge, spectrum ring, quiet watermark behind section */
.about-portrait {
  position: relative;
  width: 104px;
  height: 104px;
  overflow: visible;
  border: none;
  background: transparent;
  z-index: 0;
  flex-shrink: 0;
}
.about-portrait img {
  border-radius: 50%;
  display: block;
  position: relative;
}
.about-portrait::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--grad-wbc-conic);
  animation: wbcSpin 14s linear infinite;
  z-index: -1;
}
#about {
  position: relative;
}
#about .container {
  position: relative;
  z-index: 1;
}
#about::after {
  content: "";
  position: absolute;
  top: 40px;
  right: -70px;
  width: 300px;
  height: 300px;
  background-image: url("assets/logo.jpg");
  background-size: contain;
  background-repeat: no-repeat;
  border-radius: 50%;
  opacity: 0.05;
  pointer-events: none;
}

/* Before/After slider: spectrum divider + handle */
.ba-divider {
  background-image: var(--grad-wbc-vertical);
}
.ba-handle {
  background-image: var(--grad-wbc);
  background-size: 180% 100%;
}

/* Mobile recruiter dock: CV / WhatsApp / language, thumb zone */
.mobile-dock {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 180%);
  z-index: 600;
  display: none;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(16, 16, 18, 0.82);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-dock.is-visible {
  transform: translate(-50%, 0);
}
.dock-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.dock-item.dock-cv {
  background-image: var(--grad-wbc);
  background-size: 180% 100%;
  color: var(--lime-ink);
  font-weight: 700;
}
@media (max-width: 899px) {
  .mobile-dock {
    display: inline-flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title .accent-word,
  .loader-name,
  .brand-logo-wrap::before,
  .about-portrait::before {
    animation: none;
  }
}

/* Reel live previews (touch devices): video fades in over the poster */
.reel-card video.reel-live {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.reel-card.is-playing video.reel-live {
  opacity: 1;
}
.reel-card.is-playing .reel-play-icon {
  opacity: 0;
}

/* Before/After pairs: caption chip, dots, crossfade */
.ba-layer {
  transition: opacity 0.38s ease;
}
.ba-slider.ba-fading .ba-layer,
.ba-slider.ba-fading .ba-divider,
.ba-slider.ba-fading .ba-handle {
  opacity: 0;
}
.ba-divider,
.ba-handle {
  transition: opacity 0.38s ease;
}
.ba-caption {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.84);
  border: 1px solid var(--hairline);
  color: var(--text);
  font-size: 11px;
  letter-spacing: 0.14em;
  white-space: nowrap;
  pointer-events: none;
}
.ba-dots {
  position: absolute;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
}
.ba-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(244, 244, 240, 0.55);
  background: rgba(10, 10, 11, 0.4);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}
.ba-dot.is-active {
  background-image: var(--grad-wbc);
  border-color: transparent;
  transform: scale(1.25);
}

/* BA caption + dots stay above the divider line */
.ba-caption { z-index: 6; }
.ba-dots { z-index: 6; }
