/* ============================================
   OCS — Online Construction Services
   Global Design System
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ─── 1. Tokens ─────────────────────────────── */
:root {
  --clr-bg: #000000;
  --clr-surface: #000000;
  --clr-surface2: #050508;
  --clr-border: #141419;
  --clr-border2: #22222c;
  --clr-white: #ffffff;
  --clr-grey-100: #f4f4f6;
  --clr-grey-300: #a1a1aa;
  --clr-grey-500: #71717a;
  --clr-grey-700: #33333c;
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --nav-h: 80px;
  --max-w: 1280px;
  --tr: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 8px;
}

/* ─── Premium Page-Specific Soft Dark Backgrounds ────────────────── */
body {
  position: relative;
  overflow-x: hidden;
  transition: background-color var(--tr);
}

body.page-home { background-color: #0b0c10; }
body.page-about { background-color: #080b09; }
body.page-services { background-color: #07090c; }
body.page-projects { background-color: #0c0908; }
body.page-contact { background-color: #0b080f; }
body.page-project-detail { background-color: #070c0d; }
body.page-project-house1 { background-color: #0d0a09; }
body.page-project-house2 { background-color: #080a0c; }
body.page-project-house3 { background-color: #0c080a; }
body.page-cookies { background-color: #08080a; }

/* Floating neon cyan light source */
body::before {
  content: '';
  position: fixed;
  top: -150px;
  left: -150px;
  width: 70vw;
  height: 70vw;
  max-width: 700px;
  max-height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: -2;
  animation: floatNeon1 22s ease-in-out infinite alternate;
}

/* Floating neon magenta light source */
body::after {
  content: '';
  position: fixed;
  bottom: -150px;
  right: -150px;
  width: 70vw;
  height: 70vw;
  max-width: 700px;
  max-height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 1, 154, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: -2;
  animation: floatNeon2 28s ease-in-out infinite alternate;
}

/* Holographic glowing wireframe background */
html::after {
  content: '';
  position: fixed;
  top: 5%;
  right: -15%;
  width: 70vw;
  height: 70vw;
  max-width: 800px;
  max-height: 800px;
  background-image: url('assets/images/architectural-artifact.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  mix-blend-mode: screen;
  opacity: 0.12;
  z-index: -1;
  pointer-events: none;
  filter: invert(56%) sepia(85%) saturate(1450%) hue-rotate(142deg) brightness(100%) contrast(100%) drop-shadow(0 0 15px rgba(0, 242, 254, 0.4));
  mask-image: radial-gradient(circle at center, black 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at center, black 25%, transparent 75%);
  animation: rotateWireframe 140s linear infinite;
}

@keyframes rotateWireframe {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes floatNeon1 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(100px, 60px) scale(1.15);
  }
  100% {
    transform: translate(-30px, 100px) scale(0.95);
  }
}

@keyframes floatNeon2 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-80px, -100px) scale(0.9);
  }
  100% {
    transform: translate(50px, -50px) scale(1.1);
  }
}

.section {
  position: relative;
}

.section[style*="background:var(--clr-bg)"],
.section[style*="background: var(--clr-bg)"],
section[style*="background:var(--clr-bg)"],
section[style*="background: var(--clr-bg)"] {
  background: transparent !important;
}

.page-hero {
  background: transparent !important;
}

.cta-banner {
  background: transparent !important;
}

.section-sm[style*="background:var(--clr-surface)"],
.section-sm[style*="background: var(--clr-surface)"],
section[style*="background:var(--clr-surface)"],
section[style*="background: var(--clr-surface)"] {
  background: transparent !important;
}

/* ─── 2. Reset ──────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--clr-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ─── 3. Typography ─────────────────────────── */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-head);
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

p {
  color: var(--clr-grey-300);
  font-size: 1rem;
}

/* ─── 4. Utilities ──────────────────────────── */
.container {
  width: 90%;
  max-width: var(--max-w);
  margin: 0 auto;
}

.section {
  padding: 100px 0;
}

.section-sm {
  padding: 60px 0;
}

.label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-grey-500);
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--clr-white);
  color: var(--clr-white);
  transition: var(--tr);
}

.btn:hover {
  background: var(--clr-white);
  color: #000000;
}

.btn-dark {
  background: var(--clr-white);
  color: var(--clr-bg);
}

.btn-dark:hover {
  background: transparent;
  color: var(--clr-white);
}

.divider {
  width: 48px;
  height: 1px;
  background: var(--clr-grey-500);
  margin: 1.5rem 0;
}

/* ─── 5. Navigation ─────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: background var(--tr), border-color var(--tr);
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-color: var(--clr-border);
}

#navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: var(--max-w);
  margin: 0 auto;
}

.nav-logo {
  height: 56px;
}

.nav-logo img {
  height: 100%;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-grey-300);
  transition: color var(--tr);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--clr-white);
  transition: width var(--tr);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--clr-white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-btn {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-grey-500);
  padding: 0.25rem 0.4rem;
  border: 1px solid transparent;
  transition: var(--tr);
}

.lang-btn:hover,
.lang-btn.active {
  color: var(--clr-white);
  border-color: var(--clr-border2);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--clr-white);
  transition: var(--tr);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--clr-bg);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-grey-300);
  transition: color var(--tr);
}

.nav-mobile a:hover {
  color: var(--clr-white);
}

.nav-mobile .lang-switcher {
  margin-top: 1rem;
}

.nav-mobile .lang-btn {
  font-size: 0.75rem;
}

/* ─── 6. Hero ───────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0d0d0d 100%);
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 35%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 65%, rgba(168, 85, 247, 0.08) 0%, transparent 40%);
  opacity: 0.9;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-title {
  color: var(--clr-white);
  margin-bottom: 1.5rem;
}

.hero-title span {
  color: var(--clr-grey-500);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--clr-grey-300);
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}

.hero-scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-grey-500);
}

.hero-scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--clr-grey-500), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ─── 7. Stats strip ────────────────────────── */
.stats-strip {
  background: transparent;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  padding: 2.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-num {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--clr-white);
  display: block;
}

.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-grey-500);
  margin-top: 0.25rem;
}

/* ─── 8. Before/After Slider ────────────────── */
.slider-section {
  background: transparent;
}

.slider-section .section-head {
  margin-bottom: 3rem;
}

.comparison-slider {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--clr-border);
  user-select: none;
  cursor: ew-resize;
  aspect-ratio: 28/20;
  touch-action: none;
}

.cs-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-before {
  z-index: 1;
}

.cs-after {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}

.cs-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: white;
  z-index: 3;
  transform: translateX(-50%);
}

.cs-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.cs-handle svg {
  width: 20px;
  height: 20px;
  fill: #0a0a0a;
}

.cs-label {
  position: absolute;
  top: 1rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 0.3rem 0.7rem;
  border-radius: 2px;
  z-index: 5;
}

.cs-label-before {
  left: 1rem;
}

.cs-label-after {
  right: 1rem;
}

/* ─── 9. Services ───────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--clr-border);
  border: 1px solid var(--clr-border);
}

.service-card {
  background: rgba(10, 10, 15, 0.45);
  backdrop-filter: blur(8px);
  padding: 2.5rem 1.75rem;
  transition: background var(--tr), box-shadow var(--tr);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  background: rgba(0, 242, 254, 0.04);
  box-shadow: inset 0 0 15px rgba(0, 242, 254, 0.15);
}

.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.5rem;
  opacity: 0.6;
}

.service-card h3 {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.service-card p {
  font-size: 0.85rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-grey-500);
  transition: color var(--tr);
}

.service-link:hover {
  color: var(--clr-white);
}

.service-link svg {
  width: 14px;
}

/* ─── 10. Section header ────────────────────── */
.section-head {
  max-width: 640px;
}

.section-head h2 {
  margin-bottom: 1rem;
}

.section-head p {
  font-size: 1rem;
}

/* ─── 11. Projects gallery ──────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  background: transparent;
}

.project-card {
  position: relative;
  overflow: hidden;
  background: var(--clr-surface);
  aspect-ratio: 4/3;
  border-radius: var(--radius);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: grayscale(20%);
}

.project-card:hover img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--tr);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay h3 {
  font-size: 1rem;
}

.project-overlay p {
  font-size: 0.8rem;
  color: var(--clr-grey-300);
  margin-top: 0.25rem;
}

/* ─── 12. CTA Banner ────────────────────────── */
.cta-banner {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  text-align: center;
  padding: 80px 0;
}

.cta-banner h2 {
  margin-bottom: 1rem;
}

.cta-banner p {
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* ─── 13. Footer ────────────────────────────── */
footer {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  padding: 60px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand img {
  height: 130px;

  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-grey-500);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul a {
  font-size: 0.9rem;
  color: var(--clr-grey-300);
  transition: color var(--tr);
}

.footer-col ul a:hover {
  color: var(--clr-white);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.footer-contact-item span {
  font-size: 0.9rem;
  color: var(--clr-grey-300);
}

.footer-bottom {
  border-top: 1px solid var(--clr-border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--clr-grey-500);
}

.footer-bottom a {
  font-size: 0.8rem;
  color: var(--clr-grey-500);
  transition: color var(--tr);
}

.footer-bottom a:hover {
  color: var(--clr-white);
}

/* ─── 14. About page ────────────────────────── */
/* About Page Intro Layout */
.about-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

/* Philosophy Section Layout */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  text-align: left;
  /* reset from previous centered block */
}

@media (min-width: 900px) {
  .about-intro {
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
  }

  .philosophy-grid {
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
  }
}

.about-img-wrap {
  position: relative;
}

.about-img-wrap img {
  width: 90%;
  max-width: 500px;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius);
  filter: grayscale(20%);
}

.about-img-accent {
  display: none;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.team-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  padding: 2rem;
  border-radius: var(--radius);
}

.team-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.team-card p {
  font-size: 0.85rem;
}

/* ─── 15. Services detail page ──────────────── */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  padding: 5rem 0;
  border-bottom: 1px solid var(--clr-border);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail-num {
  font-family: var(--font-head);
  font-size: 4rem;
  font-weight: 800;
  color: var(--clr-border2);
  line-height: 1;
}

.service-detail-title {
  font-size: 1.4rem;
  margin: 1rem 0 1.5rem;
}

.service-detail ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}

.service-detail ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--clr-grey-300);
}

.service-detail ul li::before {
  content: '—';
  color: var(--clr-grey-500);
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ─── 16. Services — Two-Column Sticky Layout ── */

.srv-wrapper {
  position: relative;
  width: 100%;
  display: block;
  align-items: flex-start;
  background-color: transparent;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* BACKGROUND column */
.srv-blueprint-col {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  background-color: transparent;
}

.srv-blueprint-sticky {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Service Photo ───────────────────────────────── */
.srv-photo {
  width: 80%;
  margin-left: auto;
  height: 100vh;
  object-fit: cover;
  border-radius: 0;
  filter: grayscale(30%) brightness(0.25);
  opacity: 1;
  box-shadow: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%);
  mask-image: linear-gradient(to right, transparent 0%, black 15%);
}

/* FOREGROUND column: scrolling panels */
.srv-panels-col {
  position: relative;
  z-index: 1;
  width: 95%;
  max-width: 1400px;
  margin: -100vh auto 0 auto;
  display: flex;
  flex-direction: column;
}

.srv-panel {
  min-height: 95vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 10vh 5vw 10vh 8vw;
  gap: 3vw;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.srv-panel-ghost {
  position: absolute;
  left: -0.05em;
  bottom: -0.1em;
  font-family: var(--font-head);
  font-size: clamp(10rem, 18vw, 18rem);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
  z-index: 0;
}

.srv-panel-vline {
  width: 1px;
  height: 50vh;
  background: var(--clr-border2);
  flex-shrink: 0;
  z-index: 1;
}

.srv-panel-content {
  flex: 1;
  max-width: 600px;
  z-index: 1;
}

.srv-panel-label {
  display: block;
  margin-bottom: 1.5rem;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.srv-panel-title {
  font-size: clamp(2.8rem, 5vw, 5.5rem);
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.srv-panel-content .divider {
  width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin-bottom: 2rem;
}

.srv-panel-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 520px;
  font-weight: 400;
}

.srv-panel-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
}

.srv-panel-list li {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
}

.srv-panel-list li::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  margin-right: 12px;
  border-radius: 50%;
}

/* ── Panel counter (bottom-right) */
.srv-counter {
  position: fixed;
  bottom: 2rem;
  right: 2.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  z-index: 10;
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--clr-grey-500);
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.srv-counter-cur {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-white);
  transition: opacity 0.3s ease;
}

/* ── Nav dots (right edge, vertically centered) */
.srv-dots {
  position: fixed;
  right: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 10;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.srv-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-border2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.srv-dot.active {
  background: var(--clr-white);
  transform: scale(1.5);
}

.srv-dot:hover {
  background: var(--clr-grey-300);
}

@media (max-width: 960px) {
  .srv-wrapper {
    flex-direction: column;
  }

  .srv-blueprint-col {
    display: none;
  }

  .srv-panels-col {
    width: 100%;
    margin: 0 auto;
  }

  .srv-panel {
    min-height: auto;
    padding: 3rem 1.25rem;
    gap: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .srv-panel-title {
    font-size: clamp(1.8rem, 7.5vw, 2.5rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .srv-panel-vline {
    display: none;
  }

  .srv-panel-ghost {
    font-size: clamp(6rem, 25vw, 10rem);
  }

  .srv-dots,
  .srv-counter {
    display: none;
  }
}

/* ─── 16. Page hero (inner pages) ──────────────*/
.page-hero {
  padding: calc(var(--nav-h) + 45px) 0 50px;
  border-bottom: 1px solid var(--clr-border);
}

.page-hero .label {
  margin-bottom: 1rem;
}

.page-hero h1 {
  margin-bottom: 1rem;
}

.page-hero p {
  max-width: 600px;
  font-size: 1.1rem;
}

/* ─── 17. Project detail page ───────────────── */
.project-detail-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  padding: 80px 0;
}

.project-info-list {
  margin-top: 2rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.project-info-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--clr-border);
  font-size: 0.95rem;
}

.project-info-item:last-child {
  border-bottom: none;
}

.project-info-item span:first-child {
  color: var(--clr-grey-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 600;
  flex-shrink: 0;
  width: 120px;
  line-height: 1.5;
  text-align: left;
}

.project-info-item span:last-child {
  text-align: right;
  font-weight: 400;
  color: var(--clr-white);
  line-height: 1.4;
  word-break: break-word;
  flex-grow: 1;
}

[dir="rtl"] .project-info-item span:first-child {
  text-align: right;
}

[dir="rtl"] .project-info-item span:last-child {
  text-align: left;
}

.project-gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 2rem;
}

.project-gallery-strip img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 3px;
  filter: grayscale(15%);
  transition: filter var(--tr);
}

.project-gallery-strip img:hover {
  filter: grayscale(0%);
}

/* ─── 18. Cookie policy ─────────────────────── */
.legal-content {
  max-width: 800px;
  padding: 80px 0;
}

.legal-content h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.3rem;
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  color: var(--clr-grey-300);
  margin-bottom: 0.75rem;
}

.legal-content ul {
  padding-left: 1.5rem;
  list-style: disc;
}

/* ─── 19. Animations ────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

/* ─── 20. RTL (Hebrew) ──────────────────────── */
[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}

[dir="rtl"] .hero-content {
  text-align: right;
}

[dir="rtl"] .divider {
  margin-left: auto;
}

[dir="rtl"] .footer-grid {
  direction: rtl;
}

[dir="rtl"] .service-detail {
  direction: rtl;
}

[dir="rtl"] .about-intro {
  direction: rtl;
}

[dir="rtl"] .about-img-accent {
  right: auto;
  left: -20px;
}

[dir="rtl"] .service-detail ul li {
  flex-direction: row-reverse;
}

[dir="rtl"] .service-detail ul li::before {
  margin-top: 0;
}

/* ─── 21. Responsive ────────────────────────── */
@media (max-width: 1280px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Last card spans full row when 5 cards → 3+2 layout: make 5th span full */
  .services-grid .service-card:last-child:nth-child(3n+1) {
    grid-column: 1 / -1;
    max-width: 33.33%;
  }
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .about-intro {
    gap: 3rem;
  }

  .service-detail {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-detail-num {
    font-size: 2.5rem;
  }

  .project-detail-layout {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
  }

  .nav-mobile {
    display: flex;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-mobile.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-logo {
    height: 44px;
  }

  .nav-links {
    display: none;
  }

  .nav-right .lang-switcher {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Show lang switcher in hamburger area on mobile */
  .nav-mobile .lang-switcher {
    gap: 0.6rem;
  }

  .nav-mobile .lang-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    background: transparent;
  }

  .project-overlay {
    opacity: 1;
  }

  .about-intro {
    grid-template-columns: 1fr;
  }

  .about-img-wrap {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .section {
    padding: 64px 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid .service-card:last-child:nth-child(3n+1) {
    grid-column: unset;
    max-width: unset;
  }

  /* Last service card spans full width on mobile so no orphan */
  .services-grid .service-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .btn {
    font-size: 0.75rem;
    padding: 0.75rem 1.5rem;
  }

  h1 {
    font-size: clamp(1.8rem, 7vw, 3rem);
  }

  h2 {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  .cta-banner {
    padding: 60px 0;
  }

  .page-hero {
    padding: calc(var(--nav-h) + 20px) 0 30px;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-grid .service-card:last-child:nth-child(odd) {
    grid-column: unset;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .project-gallery-strip {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .lang-switcher {
    gap: 0.25rem;
  }

  .project-info-item {
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-start;
    padding: 0.85rem 0;
  }

  .project-info-item span:first-child {
    width: auto;
  }

  .project-info-item span:last-child {
    text-align: left;
  }

  [dir="rtl"] .project-info-item span:last-child {
    text-align: right;
  }
}


/* ===============================
   PROJECTS PAGE
================================ */

.projects-page {
  background: transparent;
  color: var(--clr-white);
  overflow: hidden;
}

.projects-hero {
  padding: 7.5rem 0 3rem;
}

.projects-hero .container {
  max-width: 980px;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 1.4rem;
  color: var(--clr-grey-500);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.projects-hero h1 {
  max-width: 900px;
  margin-bottom: 2.2rem;
  font-size: clamp(4rem, 8vw, 7.5rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.92;
}

.projects-intro {
  max-width: 790px;
}

.projects-intro p {
  margin-bottom: 1.15rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.85;
}

/* Moving horizontal project rail */

.projects-rail-section {
  position: relative;
  padding: 2rem 0 9rem;
  overflow: hidden;
}

.projects-rail-section::before,
.projects-rail-section::after {
  content: "";
  position: absolute;
  top: 0;
  z-index: 4;
  width: 16vw;
  height: 100%;
  pointer-events: none;
}

.projects-rail-section::before {
  left: 0;
  background: linear-gradient(to right, #050505, transparent);
}

.projects-rail-section::after {
  right: 0;
  background: linear-gradient(to left, #050505, transparent);
}

.projects-rail {
  width: 100%;
  overflow: hidden;
}

.projects-track {
  display: flex;
  width: max-content;
  gap: 1.4rem;
  animation: projectsRailMove 45s linear infinite;
}



@keyframes projectsRailMove {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.rail-project-card {
  position: relative;
  display: block;
  width: min(470px, 74vw);
  height: 320px;
  flex: 0 0 auto;
  overflow: hidden;
  text-decoration: none;
  color: var(--clr-white);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.025);
}

.rail-project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.95);
  transform: scale(1.03);
  transition:
    transform 0.7s ease,
    filter 0.7s ease;
}

.rail-project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent 55%),
    linear-gradient(to right, rgba(0, 0, 0, 0.28), transparent);
  z-index: 1;
}

.rail-project-card:hover img {
  transform: scale(1.08);
  filter: brightness(1);
}

.rail-project-info {
  position: absolute;
  left: 1.6rem;
  right: 1.6rem;
  bottom: 1.5rem;
  z-index: 2;
}

.rail-project-info span {
  display: block;
  margin-bottom: 0.65rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rail-project-info h3 {
  margin: 0;
  color: var(--clr-white);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.15;
}

/* Responsive */

@media (max-width: 700px) {
  .projects-hero {
    padding: 5.5rem 0 2.5rem;
  }

  .projects-hero h1 {
    font-size: clamp(3.2rem, 18vw, 5rem);
  }

  .projects-intro p {
    font-size: 1rem;
    line-height: 1.75;
  }

  .projects-rail-section {
    padding-bottom: 6rem;
  }

  .projects-rail {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .projects-rail::-webkit-scrollbar {
    display: none;
  }

  .projects-track {
    animation: none;
    gap: 1.2rem;
    padding: 0 11vw;
  }

  .rail-project-card {
    width: 78vw;
    height: 250px;
    border-radius: 18px;
    scroll-snap-align: center;
  }

  .rail-project-info h3 {
    font-size: 1.25rem;
  }
}