/* ---------- Tokens (default = LIGHT theme) ---------- */
:root {
  --bg: #ffffff;
  --bg-2: #f6f6f6;
  --bg-3: #fbfbfb;
  --line: #e5e5e5;
  --line-2: #cfcfcf;
  --gray: #6b6b6b;
  --gray-2: #4a4a4a;
  --fg: #0a0a0a;
  --fg-mute: #777777;
  --nav-bg: rgba(255, 255, 255, 0.92);
  --overlay-strong: rgba(0, 0, 0, 0.55);
  --shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);

  --led-r: #e6262a;
  --led-g: #1ec449;
  --led-b: #1f6fe6;
  --led-y: #f5d020;

  --display: "Montserrat", "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: "Nunito Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1440px;
  --pad: clamp(20px, 4vw, 56px);
}

html[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-2: #121212;
  --bg-3: #1a1a1a;
  --line: #2a2a2a;
  --line-2: #3a3a3a;
  --gray: #8a8a8a;
  --gray-2: #b8b8b8;
  --fg: #f5f5f5;
  --fg-mute: #9a9a9a;
  --nav-bg: rgba(10, 10, 10, 0.92);
  --overlay-strong: rgba(0, 0, 0, 0.65);
  --shadow: 0 1px 2px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.6);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); }
body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

::selection { background: var(--led-r); color: white; }

/* ---------- Reusable ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gray);
}

.h-display {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 0.98;
  margin: 0;
}

.section-h {
  font-size: clamp(40px, 6.5vw, 90px);
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1.5px solid currentColor;
  background: transparent;
  color: var(--fg);
  font-family: var(--display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  border-radius: 50px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  text-transform: uppercase;
  white-space: nowrap;
}
.btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-primary {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.btn-primary:hover { background: transparent; color: var(--fg); border-color: var(--fg); }
/* light buttons over photos */
.on-photo .btn,
.hero-content .btn {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.on-photo .btn:hover,
.hero-content .btn:hover { background: #fff; color: #0a0a0a; border-color: #fff; }
.on-photo .btn-primary,
.hero-content .btn-primary {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
}
.on-photo .btn-primary:hover,
.hero-content .btn-primary:hover { background: transparent; color: #fff; border-color: #fff; }
.btn .arrow {
  width: 18px; height: 18px;
  transition: transform 0.2s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- LED dot ---------- */
.led {
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  border-radius: 50%;
  vertical-align: -0.05em;
  position: relative;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.6), transparent 40%), var(--c);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.4) inset,
    0 0 12px var(--c),
    0 0 24px color-mix(in oklab, var(--c) 60%, transparent);
}
.led.r { --c: var(--led-r); }
.led.g { --c: var(--led-g); }
.led.b { --c: var(--led-b); }

@keyframes ledPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(0,0,0,0.4) inset, 0 0 8px var(--c), 0 0 16px color-mix(in oklab, var(--c) 50%, transparent); }
  50% { box-shadow: 0 0 0 1px rgba(0,0,0,0.4) inset, 0 0 18px var(--c), 0 0 34px color-mix(in oklab, var(--c) 80%, transparent); }
}
.led.pulse { animation: ledPulse 2.4s ease-in-out infinite; }
.led.pulse.g { animation-delay: 0.4s; }
.led.pulse.b { animation-delay: 0.8s; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: transparent;
  color: #ffffff;
  border-bottom: 1px solid transparent;
  transition: padding 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.scrolled {
  padding: 10px 0;
  background: var(--nav-bg);
  color: var(--fg);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav .nav-brand-text,
.nav .nav-brand-suffix,
.nav .nav-links a,
.nav .lang-switch button,
.nav .menu-toggle,
.nav .theme-toggle { color: inherit; }
.nav.scrolled .nav-links a { color: var(--gray-2); }
.nav.scrolled .nav-links a:hover { color: var(--fg); }
.nav.scrolled .lang-switch button { color: var(--gray); }
.nav.scrolled .lang-switch button.active { color: var(--bg); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.nav-brand-mark {
  width: 32px; height: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  transform: rotate(0deg);
}
.nav-brand-mark span {
  background: var(--fg);
}
.nav-brand-mark span:nth-child(2),
.nav-brand-mark span:nth-child(3) {
  background: var(--gray);
}
.nav-brand-text { display: flex; align-items: baseline; gap: 4px; }
.nav-brand-text .dots {
  display: inline-flex; gap: 3px; margin-left: 2px;
}
.nav-brand-text .dots i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c, var(--led-r));
  box-shadow: 0 0 6px var(--c);
}
.nav-links {
  display: flex; gap: 32px;
  font-size: 14px;
  color: #ffffff;
}
.nav:not(.scrolled) .nav-links a {
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 0;
  background: var(--led-r);
  transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  display: flex;
  font-family: var(--display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.15em;
  border: 1px solid currentColor;
  border-radius: 999px;
  overflow: hidden;
  opacity: 0.85;
}
.nav.scrolled .lang-switch { opacity: 1; }
.lang-switch button {
  background: transparent;
  border: 0;
  color: inherit;
  padding: 6px 10px;
  transition: all 0.15s;
  cursor: pointer;
}
/* nav over hero: white text → active pill = white bg, dark text */
.nav .lang-switch button.active { background: #ffffff; color: #0a0a0a; }
/* nav after scroll (theme-driven) */
.nav.scrolled .lang-switch button.active { background: var(--fg); color: var(--bg); }
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid currentColor;
  width: 40px; height: 40px; border-radius: 999px;
  color: inherit;
  align-items: center; justify-content: center;
  flex: 0 0 auto;
  opacity: 0.85;
  transition: opacity 0.2s, background 0.2s;
}
.menu-toggle:hover { opacity: 1; background: rgba(127,127,127,0.1); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.3s ease, background 0.2s;
  flex: 0 0 auto;
}
.theme-toggle:hover {
  opacity: 1;
  transform: rotate(20deg);
  background: rgba(127,127,127,0.12);
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  top: 64px;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.mobile-drawer.open { opacity: 1; pointer-events: auto; }
.mobile-drawer-inner {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: 24px var(--pad) 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-12px);
  transition: transform 0.25s ease;
}
.mobile-drawer.open .mobile-drawer-inner { transform: translateY(0); }
.mobile-drawer-inner > a {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-drawer-inner > a:last-child { border-bottom: 0; }
.mobile-drawer-cta {
  margin-top: 20px;
  align-self: stretch;
  justify-content: center;
  font-size: 14px !important;
}
.mobile-drawer-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}
.nav .mobile-drawer-controls .drawer-lang {
  border-color: var(--line);
  opacity: 1;
  flex: 1 1 auto;
  justify-content: space-between;
}
.nav .mobile-drawer-controls .drawer-lang button {
  flex: 1 1 0;
  color: var(--gray);
  padding: 10px 14px;
  font-size: 12px;
}
.nav .mobile-drawer-controls .drawer-lang button.active,
.nav.scrolled .mobile-drawer-controls .drawer-lang button.active {
  background: var(--fg);
  color: var(--bg);
}
.nav .mobile-drawer-controls .drawer-theme {
  width: 42px;
  height: 42px;
  border-color: var(--line);
  color: var(--fg);
  opacity: 1;
  flex: 0 0 auto;
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-devis { display: none; }
  .nav-cta > .lang-switch,
  .nav-cta > .theme-toggle { display: none; }
  .nav-brand-logo { width: 28px; height: 28px; }
  .nav-brand { font-size: 16px; gap: 8px; }
  .nav-cta { gap: 8px; }
  .lang-switch button { padding: 6px 8px; }
}
@media (min-width: 881px) {
  .mobile-drawer { display: none; }
}

/* ---------- Hero (full-bleed photo carousel) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 200px 0 140px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  transform: scale(1.04);
  animation: heroKenBurns 18s ease-in-out infinite alternate;
  animation-play-state: paused;
}
.hero-slide.active {
  opacity: 1;
  animation-play-state: running;
}
@keyframes heroKenBurns {
  from { transform: scale(1.04); }
  to   { transform: scale(1.12); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 18%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.85) 100%),
    radial-gradient(ellipse at center, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 70%, rgba(0,0,0,0.75) 100%);
  pointer-events: none;
}
.hero-grid-bg { display: none; }
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1100px;
}
.hero-copy h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(48px, 8.5vw, 130px);
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 24px 0 0;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.55),
    0 8px 32px rgba(0, 0, 0, 0.4);
}
.hero-copy h1 .row { display: block; }
.hero-copy h1 .accent-r { color: var(--led-r); }
.hero-copy h1 .outline {
  -webkit-text-stroke: 1.5px #ffffff;
  color: transparent;
  text-shadow:
    0 2px 14px rgba(0, 0, 0, 0.7),
    0 6px 28px rgba(0, 0, 0, 0.55);
}
.hero-sub {
  margin: 28px auto 0;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 300;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}
.hero-cta {
  margin-top: 44px;
  display: flex; gap: 16px; flex-wrap: wrap;
  justify-content: center;
}
.hero-cta .btn {
  background: rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.85);
  color: #ffffff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.hero-cta .btn:hover {
  background: #ffffff;
  color: #0a0a0a;
  border-color: #ffffff;
}
.hero-cta .btn-primary {
  background: #ffffff;
  color: #0a0a0a;
  border-color: #ffffff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}
.hero-cta .btn-primary:hover {
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  border-color: #ffffff;
}
.hero-dots {
  display: none;
}
.hero-dots-legacy {
  position: absolute;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  gap: 10px;
}
.hero-dots button {
  width: 28px;
  height: 3px;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, width 0.3s ease;
}
.hero-dots button.active {
  background: #ffffff;
  width: 44px;
}
.hero-dots button:hover { background: rgba(255, 255, 255, 0.7); }
.hero-scroll {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  animation: heroScrollPulse 2s ease-in-out infinite;
  text-decoration: none;
}
@keyframes heroScrollPulse {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.7; }
  50%      { transform: translate(-50%, 6px); opacity: 1; }
}
.hero .eyebrow,
.hero-eyebrow {
  position: absolute;
  top: 110px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.25em;
  font-size: 11px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
  max-width: calc(100% - 32px);
  text-align: center;
}
.hero .eyebrow::before,
.hero-eyebrow::before { background: rgba(255, 255, 255, 0.6); }
.hero-meta {
  display: none;
}
.hero-visual { display: none; }

/* hero visual: stacked LED panel */
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 20%, rgba(230,38,42,0.08), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(31,111,230,0.08), transparent 55%),
    var(--bg-2);
  overflow: hidden;
  border-radius: 4px;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1.4px);
  background-size: 14px 14px;
  pointer-events: none;
}
.hero-cube {
  position: absolute;
  left: 50%; top: 48%;
  transform: translate(-50%, -50%);
  width: 60%;
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
}
.hero-cube i {
  background: var(--bg-3);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero-cube i::after {
  content: "";
  position: absolute;
  inset: 25%;
  border-radius: 50%;
  background: var(--gray);
  opacity: 0.15;
  filter: blur(0.5px);
}
.hero-cube i.lit-r::after { background: var(--led-r); opacity: 1; box-shadow: 0 0 16px var(--led-r), 0 0 32px var(--led-r); animation: cellBlink 3s ease-in-out infinite; }
.hero-cube i.lit-g::after { background: var(--led-g); opacity: 1; box-shadow: 0 0 16px var(--led-g), 0 0 32px var(--led-g); animation: cellBlink 3s ease-in-out infinite 0.6s; }
.hero-cube i.lit-b::after { background: var(--led-b); opacity: 1; box-shadow: 0 0 16px var(--led-b), 0 0 32px var(--led-b); animation: cellBlink 3s ease-in-out infinite 1.2s; }
@keyframes cellBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.hero-visual-label {
  position: absolute;
  left: 16px;
  top: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--gray);
  text-transform: uppercase;
}
.hero-visual-label .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--led-r); box-shadow: 0 0 6px var(--led-r);
  margin-right: 6px; vertical-align: 1px;
  animation: ledPulse 1.6s ease-in-out infinite;
}
.hero-visual-corner {
  position: absolute;
  right: 16px; bottom: 16px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--gray);
  text-align: right;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-2);
}
.marquee-track {
  display: flex;
  gap: 48px;
  padding: 22px 0;
  animation: scroll 40s linear infinite;
  white-space: nowrap;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  color: var(--gray-2);
  letter-spacing: -0.01em;
}
.marquee-track span::after {
  content: "";
  width: 6px; height: 6px;
  background: var(--led-r);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--led-r);
}
.marquee-track span:nth-child(3n)::after { background: var(--led-g); box-shadow: 0 0 8px var(--led-g); }
.marquee-track span:nth-child(3n+1)::after { background: var(--led-b); box-shadow: 0 0 8px var(--led-b); }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 56px;
}
.section-head .lead {
  max-width: 420px;
  color: var(--gray-2);
  font-size: 16px;
  line-height: 1.55;
}

/* ---------- Services ---------- */
.services {
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  cursor: pointer;
  background: var(--bg);
  transition: background 0.25s ease;
  min-height: 280px;
  display: flex; flex-direction: column;
}
.service:hover { background: var(--bg-2); }
.service-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.1em;
}
.service-icon {
  width: 56px; height: 56px;
  margin: 28px 0 24px;
  position: relative;
}
.service h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  line-height: 1.1;
}
.service p {
  margin: 0;
  color: var(--gray-2);
  font-size: 13.5px;
  line-height: 1.5;
}
.service-arrow {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 24px;
}
.service:hover .service-arrow { color: var(--fg); }
.service:hover .service-arrow svg { transform: translateX(4px); }
.service-arrow svg { transition: transform 0.2s; width: 14px; height: 14px; }

/* glow accent on hover, color depends on data attr */
.service[data-led="r"]:hover { box-shadow: inset 0 1px 0 0 var(--led-r); }
.service[data-led="g"]:hover { box-shadow: inset 0 1px 0 0 var(--led-g); }
.service[data-led="b"]:hover { box-shadow: inset 0 1px 0 0 var(--led-b); }
.service[data-led="r"] .service-icon-dot { background: var(--led-r); box-shadow: 0 0 10px var(--led-r); }
.service[data-led="g"] .service-icon-dot { background: var(--led-g); box-shadow: 0 0 10px var(--led-g); }
.service[data-led="b"] .service-icon-dot { background: var(--led-b); box-shadow: 0 0 10px var(--led-b); }
.service[data-led="y"] .service-icon-dot { background: var(--led-y); box-shadow: 0 0 10px var(--led-y); }

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

/* ---------- Projects ---------- */
.projects { background: var(--bg-2); }
.filter-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 40px;
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--gray-2);
  padding: 10px 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all 0.2s;
}
.filter-btn:hover { color: var(--fg); border-color: var(--gray); }
.filter-btn.active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.filter-btn .count { color: var(--gray); margin-left: 6px; }
.filter-btn.active .count { color: var(--gray); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.project {
  background: var(--bg-3);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}
.project:hover { border-color: var(--gray); transform: translateY(-2px); }
.project-img {
  aspect-ratio: 4/3;
  position: relative;
  background: #0d0d0d;
  overflow: hidden;
}
.project-img svg { display: block; width: 100%; height: 100%; }
.project-meta { padding: 20px 22px 22px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.project-meta h4 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.project-meta .loc { font-family: var(--mono); font-size: 11px; color: var(--gray); letter-spacing: 0.08em; text-transform: uppercase; }
.project-tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--gray);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 5px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}
@media (max-width: 1000px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .projects-grid { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.process { background: var(--bg); border-top: 1px solid var(--line); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.process-step {
  padding: 40px 28px 48px;
  border-right: 1px solid var(--line);
  position: relative;
}
.process-step:last-child { border-right: 0; }
.process-step .step-num {
  font-family: var(--display);
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--gray);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.process-step .step-num .led {
  width: 10px; height: 10px;
  font-size: 0;
}
.process-step h4 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.process-step p {
  color: var(--gray-2);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 1000px) { .process-steps { grid-template-columns: repeat(2, 1fr); } .process-step { border-bottom: 1px solid var(--line); } }
@media (max-width: 600px) { .process-steps { grid-template-columns: 1fr; } }

/* ---------- Materials ---------- */
.materials { background: var(--bg-2); }
.materials-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
.materials-list {
  display: flex; flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}
.mat {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  cursor: pointer;
  transition: padding 0.2s;
}
.mat:hover { padding-left: 8px; }
.mat .mat-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.1em;
}
.mat .mat-name {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.mat:hover .mat-name { color: var(--led-r); }
.mat .mat-arrow {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--gray);
}
.mat-preview {
  position: sticky;
  top: 100px;
  aspect-ratio: 4/5;
  border: 1px solid var(--line);
  background: var(--bg-3);
  overflow: hidden;
  position: relative;
}
.mat-preview-inner {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.mat-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: mat-fade 0.35s ease;
}
.mat-preview-inner > div {
  position: absolute;
  z-index: 2;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}
@keyframes mat-fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 900px) {
  .materials-layout { grid-template-columns: 1fr; }
  .mat-preview { display: none; }
}

/* Inline preview shown only on mobile, when a material is selected */
.mat-mobile-preview { display: none; }
@media (max-width: 900px) {
  .mat-mobile-preview {
    display: block;
    padding: 0 0 22px;
    animation: mat-mobile-fade 0.25s ease;
  }
  .mat-mobile-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--bg-3);
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
  }
  .mat-mobile-photo .mat-photo,
  .mat-mobile-photo svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .mat-mobile-desc {
    margin: 14px 0 0;
    color: var(--gray-2);
    font-size: 14px;
    line-height: 1.5;
  }
  .mat.active .mat-name { color: var(--led-r); }
  .mat.active .mat-arrow { transform: rotate(90deg); }
}
@keyframes mat-mobile-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Stats / Counters ---------- */
.stats {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 60px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat-num {
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  display: flex; align-items: baseline; gap: 8px;
}
.stat-num .plus { color: var(--led-r); font-size: 0.6em; }
.stat-label {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Clients ---------- */
.clients { background: var(--bg); }
.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.client {
  padding: 36px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  text-align: center;
  min-height: 160px;
  transition: background 0.2s;
}
.client:hover { background: var(--bg-2); }
.client-icon {
  width: 36px; height: 36px;
  color: var(--gray);
  transition: color 0.2s;
}
.client:hover .client-icon { color: var(--fg); }
.client-name {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-2);
}
@media (max-width: 1100px) { .clients-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .clients-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- CTA / Quote ---------- */
.quote {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.quote-copy h2 {
  font-size: clamp(40px, 5.5vw, 76px);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 0.98;
  margin: 24px 0 0;
}
.quote-copy h2 .accent { color: var(--led-r); }
.quote-copy p {
  margin-top: 24px;
  color: var(--gray-2);
  max-width: 460px;
}
.quote-contacts {
  margin-top: 40px;
  display: flex; flex-direction: column; gap: 18px;
}
.qc {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.qc:last-child { border-bottom: 1px solid var(--line); }
.qc .qc-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  width: 80px;
  flex-shrink: 0;
}
.qc .qc-val {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
}

/* form */
.form-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  padding: 36px;
}
.form-progress {
  display: flex; gap: 4px;
  margin-bottom: 28px;
}
.form-progress i {
  flex: 1;
  height: 3px;
  background: var(--line-2);
  transition: background 0.3s;
}
.form-progress i.active { background: var(--fg); }
.form-progress i.done { background: var(--led-g); box-shadow: 0 0 6px var(--led-g); }
.form-step-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.form-step h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  color: var(--fg);
  padding: 14px 16px;
  font-family: var(--body);
  font-size: 15px;
  border-radius: 0;
  transition: border-color 0.15s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--fg);
}
.field.error input,
.field.error textarea,
.field.error select { border-color: var(--led-r); }
.field .err-msg {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--led-r);
  letter-spacing: 0.05em;
  margin-top: 6px;
  display: block;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

.svc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--gray-2);
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all 0.2s;
}
.chip:hover { border-color: var(--gray); color: var(--fg); }
.chip.active { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  gap: 12px;
}

.form-success {
  text-align: center;
  padding: 30px 10px;
}
.form-success .led {
  width: 18px; height: 18px;
  font-size: 0;
  margin-bottom: 16px;
}
.form-success h3 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  margin: 8px 0 12px;
  letter-spacing: -0.01em;
}
.form-success p { color: var(--gray-2); max-width: 360px; margin: 0 auto; }

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

/* ---------- Footer ---------- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 80px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
.footer h5 {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 18px;
  font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 14px; color: var(--gray-2); }
.footer ul a:hover { color: var(--fg); }
.footer-brand h2 {
  font-family: var(--display);
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 0;
  line-height: 0.95;
}
.footer-brand h2 .led { width: 0.32em; height: 0.32em; }
.footer-brand p { color: var(--gray-2); margin: 16px 0 0; max-width: 320px; }
.footer-bot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 28px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* ---------- Hero responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-meta { display: none; }
  .hero { padding-top: 170px; min-height: 100vh; padding-bottom: 110px; }
  .hero .eyebrow,
  .hero-eyebrow { top: 96px; font-size: 10px; letter-spacing: 0.18em; white-space: normal; line-height: 1.6; }
  .hero-scroll { bottom: 28px; }
  .section-head { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .hero-copy h1 { font-size: clamp(36px, 10vw, 72px); letter-spacing: -0.025em; word-wrap: break-word; overflow-wrap: break-word; }
  .hero-copy { width: 100%; min-width: 0; }
  .hero-sub { font-size: 15px; margin-top: 18px; max-width: 100%; word-wrap: break-word; overflow-wrap: break-word; padding: 0 4px; }
  .hero-cta { margin-top: 26px; flex-direction: column; gap: 12px; width: 100%; max-width: 340px; }
  .hero-cta .btn { padding: 13px 20px; font-size: 12px; width: 100%; justify-content: center; }
  .hero { padding-top: 150px; padding-bottom: 100px; }
  .hero .eyebrow,
  .hero-eyebrow { top: 88px; }
  .hero-scroll { bottom: 22px; width: 32px; height: 32px; }
  .section-h { font-size: clamp(34px, 9vw, 56px); word-wrap: break-word; overflow-wrap: break-word; }
  .section-head { margin-bottom: 36px; gap: 16px; }
  .section-head .lead { font-size: 15px; }
  .footer-top { grid-template-columns: 1fr !important; gap: 32px; }
  .footer-bot { flex-direction: column; align-items: flex-start; gap: 8px; }
  .container { padding-left: 18px; padding-right: 18px; }
  .cursor-glow { display: none; }

  /* Quote / contact section on mobile */
  .quote-grid { gap: 32px; }
  .quote-copy h2 { font-size: clamp(38px, 11vw, 60px); }
  .qc { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 0; }
  .qc .qc-label { width: auto; }
  .qc .qc-val { font-size: 16px; word-break: break-word; overflow-wrap: anywhere; max-width: 100%; }
  .qc-val a { word-break: break-word; overflow-wrap: anywhere; }

  /* Quote form card */
  .form-card { padding: 22px 18px; }
  .form-step-label { font-size: 10px; }
  .chip { padding: 9px 12px; font-size: 10.5px; letter-spacing: 0.06em; }
  .svc-chips { gap: 6px; }
  .form-actions { flex-wrap: wrap; }
  .form-actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 420px) {
  .nav-brand-text { font-size: 14px; }
  .lang-switch { font-size: 10px; }
  .lang-switch button { padding: 6px 7px; }
  .hero-copy h1 { font-size: clamp(34px, 11vw, 60px); }
  .hero { padding-top: 140px; padding-bottom: 90px; }
  .hero .eyebrow,
  .hero-eyebrow { top: 84px; font-size: 9.5px; }
  .hero-cta { margin-top: 22px; max-width: 300px; }
}
/* Belt-and-suspenders against horizontal overflow on mobile */
html, body { overflow-x: hidden; max-width: 100%; }
section, .container { min-width: 0; }

/* ---------- Misc ---------- */
.dim { color: var(--gray); }

.cursor-glow {
  position: fixed;
  pointer-events: none;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230,38,42,0.08), transparent 60%);
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: opacity 0.3s;
  mix-blend-mode: screen;
}

/* ---------- RTL / Arabic language ---------- */
html[dir="rtl"] body,
body.lang-ar {
  font-family: "Cairo", "Tajawal", var(--body);
}
body.lang-ar {
  --display: "Cairo", "Tajawal", "Space Grotesk", system-ui, sans-serif;
  --body: "Cairo", "Tajawal", "Inter", system-ui, sans-serif;
}
html[dir="rtl"] .marquee-track { animation-direction: reverse; }
html[dir="rtl"] .nav-cta { flex-direction: row-reverse; }
html[dir="rtl"] .hero-cta { flex-direction: row-reverse; justify-content: flex-end; }
html[dir="rtl"] .form-actions { flex-direction: row-reverse; }
html[dir="rtl"] .btn svg,
html[dir="rtl"] .service-arrow svg {
  transform: scaleX(-1);
}
html[dir="rtl"] .accent-r,
html[dir="rtl"] .accent {
  display: inline;
}
html[dir="rtl"] .h-display .row.outline { letter-spacing: 0; }
html[dir="rtl"] .lightbox-close { right: auto; left: 22px; }
html[dir="rtl"] .qc-label,
html[dir="rtl"] .stat-label,
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .filter-btn,
html[dir="rtl"] .project-tag,
html[dir="rtl"] .form-step-label,
html[dir="rtl"] .service-num {
  letter-spacing: 0;
}
html[dir="rtl"] .hero-meta { direction: rtl; }
html[dir="rtl"] .nav-brand-text { unicode-bidi: bidi-override; direction: ltr; }

/* ---------- Brand logo (real image in nav) ---------- */
.nav-brand-logo {
  width: 36px; height: 36px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
  border: 1px solid rgba(0,0,0,0.08);
}
.nav-brand-suffix {
  margin-left: 6px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}

/* ---------- Project gallery: real photo images ---------- */
.project { cursor: pointer; }
.project-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.project:hover .project-img img { transform: scale(1.04); }
.project-count {
  position: absolute;
  top: 10px; right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--fg);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
}

/* ---------- Projects "Voir plus" button ---------- */
.projects-more {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}
.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 14px 26px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}
.btn-more:hover {
  border-color: var(--fg);
  background: var(--bg-3);
  transform: translateY(-1px);
}
.btn-more svg {
  transition: transform 0.3s ease;
}
.btn-more:hover svg { transform: translateY(2px); }
.btn-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.btn-more[aria-expanded="true"]:hover svg { transform: rotate(180deg) translateY(2px); }
.more-count {
  color: var(--gray);
  font-weight: 400;
}

/* ---------- Lightbox ---------- */
.lightbox-overlay {
  position: fixed; inset: 0;
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  animation: lb-fade 0.18s ease;
}
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }

.lightbox-content {
  position: relative;
  max-width: min(1200px, 95vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #000;
}
.lightbox-meta {
  font-family: var(--display);
  text-align: center;
  color: var(--fg);
}
.lightbox-meta h4 {
  margin: 0 0 4px;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.lightbox-meta span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lightbox-close {
  position: fixed;
  top: 22px; right: 22px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-3);
  color: var(--fg);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.2s;
}
.lightbox-close:hover { border-color: var(--fg); background: var(--bg-2); }

/* lightbox gallery */
.lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: var(--fg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.lightbox-nav:hover { background: rgba(0, 0, 0, 0.8); border-color: var(--fg); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-prev svg { transform: rotate(90deg); }
.lightbox-next svg { transform: rotate(-90deg); }
.lightbox-counter {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.lightbox-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  max-width: 100%;
  padding: 4px 0 2px;
  scrollbar-width: thin;
}
.lightbox-thumb {
  flex: 0 0 auto;
  width: 72px;
  aspect-ratio: 4/3;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: #0a0a0a;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
}
.lightbox-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox-thumb:hover { opacity: 0.85; }
.lightbox-thumb.active { opacity: 1; border-color: var(--fg); }

@media (max-width: 640px) {
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .lightbox-thumb { width: 56px; }
}

/* ---------- Quote contact links ---------- */
.qc a.qc-val { color: var(--fg); transition: color 0.2s; }
.qc a.qc-val:hover { color: var(--led-r); }
.qc-val a { color: var(--gray-2); transition: color 0.2s; }
.qc-val a:hover { color: var(--led-r); }

/* ---------- Client logos (real images) ---------- */
.clients-marquee {
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
html[dir="rtl"] .clients-marquee,
html[dir="rtl"] .clients-marquee-row,
html[dir="rtl"] .clients-marquee-track { direction: ltr; }
.clients-marquee-row {
  overflow: hidden;
  width: 100%;
}
.clients-marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  will-change: transform;
}
.clients-marquee-rtl .clients-marquee-track {
  animation: clients-marquee-rtl 40s linear infinite;
}
.clients-marquee-ltr .clients-marquee-track {
  animation: clients-marquee-ltr 40s linear infinite;
}
.clients-marquee:hover .clients-marquee-track {
  animation-play-state: paused;
}
@keyframes clients-marquee-rtl {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes clients-marquee-ltr {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
.client-logo {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 180px;
  aspect-ratio: 16/10;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: filter 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  filter: grayscale(0.2);
}
.client-logo:hover {
  filter: grayscale(0);
  transform: translateY(-2px);
  border-color: var(--gray);
}
.client-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
@media (max-width: 1000px) { .client-logo { width: 150px; } }
@media (max-width: 600px)  { .client-logo { width: 120px; } }
@media (prefers-reduced-motion: reduce) {
  .clients-marquee-rtl .clients-marquee-track,
  .clients-marquee-ltr .clients-marquee-track { animation: none; }
}

