/* =========================================================
   KUBE — Design System
   Palette: near-black + crimson red + off-white + beige/greige
   No purple. No gradients. Big rounded cards. Glass nav.
   ========================================================= */

:root {
  /* Brand palette */
  --c-bg: #0a0a0b;
  --c-bg-alt: #131315;
  --c-bg-raised: #1a1a1d;
  --c-line: rgba(255, 255, 255, 0.1);
  --c-line-soft: rgba(255, 255, 255, 0.06);
  --c-text: #f5f4f2;
  --c-text-muted: #a3a1a0;
  --c-text-dim: #706e6d;
  --c-red: #ff1b3c;
  --c-red-dim: #c4152e;
  --c-red-glow: rgba(255, 27, 60, 0.35);
  --c-beige: #d9cfc4;
  --c-beige-dim: #a89c8d;

  /* Nav glass */
  --nav-bg: rgba(10, 10, 11, 0.45);
  --nav-bg-scrolled: rgba(10, 10, 11, 0.72);
  --nav-border: rgba(255, 255, 255, 0.12);

  /* Radius scale */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --r-pill: 999px;

  /* Spacing */
  --gap-section: clamp(64px, 9vw, 140px);
  --pad-page: clamp(20px, 5vw, 64px);

  /* Type */
  --font-ar: "Tajawal", "Segoe UI", sans-serif;
  --font-en: "Poppins", "Segoe UI", sans-serif;
  --font-display: "Archivo Black", "Poppins", sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================
   Reset / base
   ========================================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html[dir="rtl"] body { font-family: var(--font-ar); }
html[dir="ltr"] body { font-family: var(--font-en); }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--pad-page);
}

section { position: relative; }

.section-pad { padding-block: var(--gap-section); }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
html[dir="ltr"] h1, html[dir="ltr"] h2, html[dir="ltr"] h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
}

p { margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--c-red);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--c-red);
  display: inline-block;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 56px);
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); max-width: 720px; }
.section-head .section-desc { color: var(--c-text-muted); max-width: 420px; font-size: 0.98rem; }

/* K-motif diagonal accent, replaces reference's purple blobs */
.k-motif {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.k-motif span {
  position: absolute;
  width: 2px;
  background: linear-gradient(var(--c-red), transparent);
  opacity: 0.35;
  transform: rotate(28deg);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.3s, border-color 0.3s, color 0.3s;
  white-space: nowrap;
}
html[dir="ltr"] .btn { text-transform: uppercase; }
.btn-primary { background: var(--c-red); color: #fff; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -10px var(--c-red-glow); }
.btn-outline { background: transparent; color: var(--c-text); border-color: var(--c-line); }
.btn-outline:hover { border-color: var(--c-red); color: var(--c-red); transform: translateY(-3px); }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--c-text); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
html[dir="rtl"] .btn svg { transform: scaleX(-1); }

/* =========================================================
   Glass nav (design-reference header-5 pattern, recolored)
   ========================================================= */
.site-header {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 999;
  padding-inline: var(--pad-page);
}
.nav-capsule {
  max-width: 1320px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 14px 12px 24px;
  border-radius: var(--r-pill);
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 10px 40px -18px rgba(0,0,0,0.6);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease);
}
html[dir="rtl"] .nav-capsule { padding: 12px 24px 12px 14px; }
.site-header.is-scrolled .nav-capsule { background: var(--nav-bg-scrolled); padding-block: 8px; }

.nav-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
/* wide wordmark lockup: size by height, no crop, no rounding */
.nav-brand img { height: 30px; width: auto; object-fit: contain; }
@media (max-width: 480px) { .nav-brand img { height: 24px; } }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-text-muted);
  transition: color 0.25s;
  position: relative;
}
html[dir="ltr"] .nav-links a { text-transform: uppercase; letter-spacing: 0.04em; }
.nav-links a:hover { color: var(--c-text); }
/* base underline: always white */
.nav-links a::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 2px;
}
/* red overlay: section scroll-spy progress (0..1 via --spy) */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--c-red);
  border-radius: 2px;
  transform: scaleX(var(--spy, 0));
  transform-origin: 0 50%;
  transition: transform 0.12s linear;
}
html[dir="rtl"] .nav-links a::after { transform-origin: 100% 50%; }

.nav-right { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: flex;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  padding: 3px;
  gap: 2px;
}
.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--c-text-dim);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 0.3s, color 0.3s;
}
.lang-switch button.active { background: var(--c-red); color: #fff; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  background: transparent;
  color: var(--c-text);
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

.nav-mobile-panel {
  position: fixed;
  inset: 96px 16px auto 16px;
  background: var(--c-bg-raised);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 22px;
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 998;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7);
}
.nav-mobile-panel.open { display: flex; }
.nav-mobile-panel a {
  padding: 14px 10px;
  border-radius: var(--r-sm);
  font-weight: 700;
  color: var(--c-text);
}
.nav-mobile-panel a:hover { background: rgba(255,255,255,0.06); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--c-bg);
}
.hero-video, .hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,11,0.35) 0%, rgba(10,10,11,0.35) 40%, rgba(10,10,11,0.92) 96%),
    linear-gradient(90deg, rgba(10,10,11,0.55) 0%, rgba(10,10,11,0) 45%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--pad-page) 90px;
}
.hero-tag { color: var(--c-beige); font-weight: 700; letter-spacing: 0.16em; font-size: 0.8rem; text-transform: uppercase; margin-bottom: 18px; display: block;}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 6rem);
  max-width: 15ch;
  color: var(--c-text);
}
.hero h1 em { color: var(--c-red); font-style: normal; }
.hero-sub { margin-top: 22px; max-width: 46ch; color: var(--c-text-muted); font-size: clamp(1rem, 1.4vw, 1.15rem); }
.hero-actions { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }

.hero-mute {
  position: absolute;
  z-index: 3;
  bottom: 28px;
  inset-inline-end: var(--pad-page);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(10,10,11,0.5);
  border: 1px solid var(--c-line);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-text);
}
.hero-mute svg { width: 18px; height: 18px; }

.hero-scroll {
  position: absolute;
  z-index: 3;
  bottom: 28px;
  inset-inline-start: var(--pad-page);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-text-muted);
}
html[dir="ltr"] .hero-scroll { text-transform: uppercase; }
.hero-scroll .dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  display: flex; align-items: center; justify-content: center;
  animation: bob 1.8s ease-in-out infinite;
}
.hero-scroll svg { width: 14px; height: 14px; }
@keyframes bob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(6px);} }

/* page hero (category/project pages, image based) */
.page-hero {
  position: relative;
  height: min(78vh, 720px);
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,11,0.25) 10%, rgba(10,10,11,0.95) 96%);
}
.page-hero-content { position: relative; z-index: 2; padding: 0 var(--pad-page) 60px; width: 100%; }
.page-hero .crumb { display: flex; gap: 8px; align-items: center; color: var(--c-text-muted); font-size: 0.85rem; margin-bottom: 18px; }
.page-hero .crumb a:hover { color: var(--c-red); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); max-width: 18ch; }
.page-hero .tag-pill {
  display: inline-block;
  margin-bottom: 16px;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line);
  color: var(--c-beige);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
html[dir="ltr"] .page-hero .tag-pill { text-transform: uppercase; }

/* =========================================================
   About / intro
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid h2 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); }
.about-copy p { color: var(--c-text-muted); margin-bottom: 18px; font-size: 1.02rem; }
.about-copy p:last-child { margin-bottom: 0; }
.about-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 34px; }
.about-stats .stat { padding: 20px; border-radius: var(--r-md); background: var(--c-bg-alt); border: 1px solid var(--c-line-soft); }
.about-stats .stat b { display: block; font-size: 1.8rem; color: var(--c-red); font-weight: 800; }
.about-stats .stat span { font-size: 0.8rem; color: var(--c-text-muted); }

/* =========================================================
   Big rounded cards — services (pillars)
   ========================================================= */
.pillar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
@media (max-width: 860px) { .pillar-grid { grid-template-columns: 1fr; } }

.pillar-card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--c-line);
  isolation: isolate;
}
.pillar-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease);
  z-index: -2;
}
.pillar-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,11,0.1) 20%, rgba(10,10,11,0.96) 92%);
  z-index: -1;
}
.pillar-card:hover img { transform: scale(1.06); }
.pillar-card .pillar-body { padding: clamp(24px, 3vw, 44px); width: 100%; }
.pillar-card .num { color: var(--c-red); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.1em; margin-bottom: 10px; display: block; }
.pillar-card h3 { font-size: clamp(1.5rem, 2.6vw, 2.3rem); margin-bottom: 12px; }
.pillar-card p { color: var(--c-text-muted); max-width: 46ch; margin-bottom: 20px; }
.pillar-card .pillar-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 0.85rem; color: var(--c-text);
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 4px;
  transition: border-color 0.3s, color 0.3s, gap 0.3s;
}
html[dir="ltr"] .pillar-card .pillar-link { text-transform: uppercase; letter-spacing: 0.05em; }
.pillar-card:hover .pillar-link { color: var(--c-red); border-color: var(--c-red); gap: 16px; }
.pillar-card .pillar-link svg { width: 14px; height: 14px; }
html[dir="rtl"] .pillar-card .pillar-link svg { transform: scaleX(-1); }

/* services grid — 8 image cards (alsayegh structure, KUBE skin) */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .service-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 400px) { .service-grid { grid-template-columns: 1fr; } }

.service-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  display: block;
  border: 1px solid var(--c-line);
  isolation: isolate;
  transition: border-color 0.4s;
}
.service-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.5s;
  filter: saturate(0.85) brightness(0.9);
  z-index: -2;
}
.service-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,11,0.05) 30%, rgba(10,10,11,0.93) 100%);
  z-index: -1;
}
.service-card:hover { border-color: var(--c-red); }
.service-card:hover img { transform: scale(1.07); filter: saturate(1) brightness(1); }
.service-card .sc-body { position: absolute; inset-inline: 0; bottom: 0; padding: 22px; }
.service-card .sc-num { color: var(--c-red); font-weight: 800; font-size: 0.75rem; letter-spacing: 0.12em; display: block; margin-bottom: 8px; }
.service-card h3 { font-size: clamp(1rem, 1.6vw, 1.25rem); line-height: 1.3; }
@media (max-width: 820px) {
  .service-card { aspect-ratio: 1/1.15; }
  .service-card .sc-body { padding: 16px; }
}

/* department strip (5 cards, homepage only) */
.dept-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .dept-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .dept-strip { grid-template-columns: 1fr; } }

.dept-card {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--r-lg);
  padding: 28px 22px;
  transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s;
}
.dept-card:hover { transform: translateY(-6px); border-color: var(--c-red); background: var(--c-bg-raised); }
.dept-card .dept-icon {
  width: 50px; height: 50px;
  border-radius: var(--r-sm);
  background: rgba(255,27,60,0.12);
  color: var(--c-red);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.dept-card .dept-icon svg { width: 24px; height: 24px; }
.dept-card .dept-num { color: var(--c-text-dim); font-weight: 800; font-size: 0.75rem; letter-spacing: 0.08em; margin-bottom: 8px; display: block; }
.dept-card h4 { font-size: 1.05rem; margin-bottom: 10px; }
.dept-card p { color: var(--c-text-muted); font-size: 0.88rem; }

/* generic content section list (exhibitions sub-services) */
.check-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 30px; margin-top: 26px; }
@media (max-width: 640px) { .check-list { grid-template-columns: 1fr; } }
.check-list li { display: flex; align-items: center; gap: 12px; color: var(--c-text); font-weight: 600; font-size: 0.98rem; }
.check-list li svg { width: 20px; height: 20px; color: var(--c-red); flex-shrink: 0; }

/* =========================================================
   Clients marquee
   ========================================================= */
/* marquee motion is JS-driven (main.js) so it can pause for hover,
   be dragged freely, and resume from wherever the user leaves it */
.marquee-wrap { overflow: hidden; position: relative; padding-block: 10px;
  cursor: grab;
  user-select: none;
  touch-action: pan-y; /* horizontal drags are ours, vertical still scrolls the page */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-wrap.dragging { cursor: grabbing; }
.marquee-track { display: flex; gap: 56px; width: max-content; will-change: transform; }

.marquee-track img {
  height: 56px;
  width: auto;
  object-fit: contain;
  /* logo crops sit on white — invert to blend into the dark theme;
     source marks are light gray, so lift brightness after inverting.
     lighten blend melts the (now pure-black) tile background into the page. */
  filter: invert(0) grayscale(1) brightness(1) contrast(1.1);
  mix-blend-mode: lighten;
  opacity: 0.75;
  transition: opacity 0.3s;
  -webkit-user-drag: none; /* image ghost-drag would swallow the marquee drag */
}
.marquee-track img:hover { opacity: 1; }

/* =========================================================
   Project cards + carousel
   ========================================================= */
.project-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  display: block;
  border: 1px solid var(--c-line);
  isolation: isolate;
}
.project-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); z-index: -2; }
.project-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,11,0) 40%, rgba(10,10,11,0.92) 100%);
  z-index: -1;
}
.project-card:hover img { transform: scale(1.08); }
.project-card .pc-body { position: absolute; inset-inline: 0; bottom: 0; padding: 24px; }
.project-card .pc-cat { color: var(--c-red); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em; margin-bottom: 8px; display: block; }
html[dir="ltr"] .project-card .pc-cat { text-transform: uppercase; }
.project-card h4 { font-size: 1.15rem; margin-bottom: 4px; }
.project-card .pc-client { color: var(--c-text-muted); font-size: 0.85rem; }

.projects-swiper { padding-bottom: 8px !important; }
.projects-swiper .swiper-slide { height: auto; }
.projects-nav { display: flex; gap: 12px; margin-top: 30px; justify-content: flex-end; }
.projects-nav button {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--c-line); background: transparent; color: var(--c-text);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s, border-color 0.3s;
}
.projects-nav button:hover { background: var(--c-red); border-color: var(--c-red); }
.projects-nav svg { width: 18px; height: 18px; }
html[dir="rtl"] .projects-nav .prev svg,
html[dir="rtl"] .projects-nav .next svg { transform: scaleX(-1); }

/* project grid (category pages) */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 980px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .project-grid { grid-template-columns: 1fr; } }

/* photo gallery (project detail pages) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 700px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-grid figure {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-line);
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform 0.7s var(--ease); }
.gallery-grid figure:hover img { transform: scale(1.05); }

.project-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 28px;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--r-lg);
  margin-bottom: 50px;
}
@media (max-width: 700px) { .project-meta { grid-template-columns: 1fr; } }
.project-meta .m-label { font-size: 0.75rem; letter-spacing: 0.08em; color: var(--c-text-dim); margin-bottom: 6px; }
html[dir="ltr"] .project-meta .m-label { text-transform: uppercase; }
.project-meta .m-value { font-weight: 700; font-size: 1.05rem; }

/* =========================================================
   Contact
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(30px, 5vw, 70px);
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info .ci-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info .ci-icon {
  width: 46px; height: 46px; border-radius: var(--r-sm);
  background: var(--c-bg-alt); border: 1px solid var(--c-line-soft);
  display: flex; align-items: center; justify-content: center; color: var(--c-red); flex-shrink: 0;
}
.contact-info .ci-icon svg { width: 20px; height: 20px; }
.contact-info .ci-label { font-size: 0.78rem; color: var(--c-text-dim); letter-spacing: 0.06em; margin-bottom: 4px; }
html[dir="ltr"] .contact-info .ci-label { text-transform: uppercase; }
.contact-info .ci-value { font-weight: 700; font-size: 1.05rem; }
.contact-social { display: flex; gap: 12px; margin-top: 10px; }
.contact-social a {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--c-line);
  display: flex; align-items: center; justify-content: center; transition: background .3s, border-color .3s;
}
.contact-social a:hover { background: var(--c-red); border-color: var(--c-red); }
.contact-social svg { width: 17px; height: 17px; }

.contact-form { background: var(--c-bg-alt); border: 1px solid var(--c-line-soft); border-radius: var(--r-xl); padding: clamp(22px, 3vw, 40px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.78rem; letter-spacing: 0.06em; color: var(--c-text-dim); margin-bottom: 8px; }
html[dir="ltr"] .field label { text-transform: uppercase; }
.field input, .field textarea {
  width: 100%;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  color: var(--c-text);
  transition: border-color 0.3s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--c-red); }
.field textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: #101012; /* dark gray, a step above the page black */
  border-top: 1px solid var(--c-line-soft);
  padding-block: 60px 30px;
  margin-top: var(--gap-section);
  position: relative; /* keeps the cube-field canvas from showing through */
}
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; margin-bottom: 16px; }
.footer-brand img { height: 34px; width: auto; object-fit: contain; }
.footer-col h5 { font-size: 0.78rem; letter-spacing: 0.08em; color: var(--c-text-dim); margin-bottom: 18px; }
html[dir="ltr"] .footer-col h5 { text-transform: uppercase; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col p { color: var(--c-text-muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--c-red); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  border-top: 1px solid var(--c-line-soft); padding-top: 24px; flex-wrap: wrap;
  color: var(--c-text-dim); font-size: 0.82rem;
}

/* muted photographic section backgrounds */
.has-bg { position: relative; isolation: isolate; }
.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  filter: grayscale(0.6) brightness(0.5);
  opacity: 0.44;
}
.has-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* fade the photo into the page background at both section edges */
  background: linear-gradient(180deg,
    var(--c-bg) 0%,
    rgba(10, 10, 11, 0.35) 25%,
    rgba(10, 10, 11, 0.35) 70%,
    var(--c-bg) 100%);
}
#services.has-bg::before { background-image: url("../images/sections/bg-01.jpg"); }
#contact.has-bg::before { background-image: url("../images/sections/bg-02.jpg"); }

/* floating cube-field background */
#bgCubes {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* side page-scroll indicator */
.scroll-progress {
  position: fixed;
  top: 50%;
  inset-inline-end: 16px;
  transform: translateY(-50%);
  width: 3px;
  height: 180px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: var(--r-pill);
  z-index: 890;
  pointer-events: none;
}
.scroll-progress .bar {
  display: block;
  width: 100%;
  height: 0%;
  background: var(--c-red);
  border-radius: inherit;
  box-shadow: 0 0 12px var(--c-red-glow);
}
@media (max-width: 700px) { .scroll-progress { height: 110px; inset-inline-end: 8px; width: 2px; } }

/* scroll-to-top */
.scroll-top {
  position: fixed;
  bottom: 96px;
  inset-inline-end: 26px;
  z-index: 900;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(10, 10, 11, 0.55);
  border: 1px solid var(--c-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--c-text);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s, background 0.3s, border-color 0.3s;
}
.scroll-top.show { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { background: var(--c-red); border-color: var(--c-red); }
.scroll-top svg { width: 18px; height: 18px; }

/* floating CTA */
.float-cta {
  position: fixed;
  bottom: 26px;
  inset-inline-end: 26px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  border-radius: var(--r-pill);
  background: var(--c-red);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 16px 40px -14px var(--c-red-glow);
  transition: transform 0.3s var(--ease);
}
html[dir="ltr"] .float-cta { text-transform: uppercase; }
.float-cta:hover { transform: translateY(-4px); }
.float-cta svg { width: 16px; height: 16px; }

/* =========================================================
   Scroll reveal
   ========================================================= */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-reveal].in-view { opacity: 1; transform: translateY(0); }
[data-reveal="fade"] { transform: none; }
[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* utility */
.text-muted { color: var(--c-text-muted); }
.mt-0 { margin-top: 0 !important; }
.mx-auto { margin-inline: auto; }
.center { text-align: center; }
