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

:root {
  --bg: #0e0e0c;
  --fg: #f0ece4;
  --accent: #ba852c;
  --accent2: #8b6f3a;
  --muted: #6b6860;
  --surface: #1a1917;
  --border: #2a2825;
  --nav-bg: rgba(14, 14, 12, 0.7);
  --modal-backdrop: rgba(14, 14, 12, 0.92);
  --hover-surface: #1f1e1b;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', 'Helvetica Neue', sans-serif;
  --scroll-offset: 110px;
}

[data-theme="light"] {
  --bg: #ffffff;
  --fg: #0e0e0c;
  --muted: #5c5952;
  --surface: #f5f5f4;
  --border: #e5e3df;
  --nav-bg: #ffffff;
  --modal-backdrop: rgba(0, 0, 0, 0.4);
  --hover-surface: #f0eeea;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-top: var(--scroll-offset);
}

section[id] {
  scroll-margin-top: var(--scroll-offset);
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* ─── STARTUP LOADER ─── */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--bg);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader-inner {
  display: grid;
  gap: 1rem;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
}

.page-loader-mark {
  font-family: var(--serif);
  font-weight: 900;
  letter-spacing: 0.35em;
  color: var(--fg);
  opacity: 0.9;
  font-size: 1.2rem;
}

.page-loader-bar {
  width: min(240px, 62vw);
  height: 2px;
  background: var(--border);
  overflow: hidden;
  position: relative;
}

.page-loader-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateX(-60%);
  animation: loaderSweep 1.05s ease-in-out infinite;
}

@keyframes loaderSweep {
  0% { transform: translateX(-60%); }
  100% { transform: translateX(60%); }
}

/* Hide when hero background is ready */
body.is-hero-bg-ready .page-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Upright type everywhere — no italic emphasis */
em,
i {
  font-style: normal;
}

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

img {
  max-width: 100%;
  display: block
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(20px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  transition: all 0.4s
}

.nav-logo {
  display: flex;
  align-items: center;
  height: 5rem
}

.nav-logo img {
  height: 100%;
  width: auto;
  object-fit: contain
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center
}

.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.3s;
  position: relative
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s
}

.nav-links a:hover {
  color: var(--fg)
}

.nav-links a:hover::after {
  width: 100%
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.3s;
}

.theme-toggle:hover {
  color: var(--fg);
}

.nav-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.lang-btn {
  background: none;
  border: none;
  padding: 0.2rem 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s;
}

.lang-btn:hover {
  color: var(--fg);
}

.lang-sep {
  color: var(--muted);
  font-size: 0.7rem;
  opacity: 0.7;
}

.mobile-nav-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-nav-lang .lang-btn {
  font-size: 1rem;
  color: var(--fg);
  opacity: 0.7;
}

.mobile-nav-lang .lang-btn:hover {
  opacity: 1;
  color: var(--accent);
}

.theme-toggle-icon {
  display: block;
  line-height: 0;
}

.theme-toggle .theme-icon-moon {
  display: none;
}

.theme-toggle .theme-icon-sun {
  display: block;
}

[data-theme="light"] .theme-toggle .theme-icon-sun {
  display: none;
}

[data-theme="light"] .theme-toggle .theme-icon-moon {
  display: block;
}

[data-theme="light"] .nav {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 var(--border);
}

[data-theme="light"] .nav-links a:hover {
  color: var(--accent);
}

[data-theme="light"] .theme-toggle:hover {
  color: var(--accent);
}

[data-theme="light"] .theme-toggle-mobile:hover {
  color: var(--accent);
}

[data-theme="light"] .nav-cta:hover {
  background: var(--fg) !important;
  color: var(--bg) !important;
}

.theme-toggle-mobile {
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.theme-toggle-mobile:hover {
  color: var(--fg);
}

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 0.6rem 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.nav-cta:hover {
  background: var(--fg) !important;
  color: var(--bg) !important;
  border-color: var(--fg);
}

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 200;
  padding: 4px
}

.hamburger span {
  width: 28px;
  height: 2px;
  background: var(--fg);
  transition: all 0.3s
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px)
}

.hamburger.open span:nth-child(2) {
  opacity: 0
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px)
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--bg);
  z-index: 150;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  transition: right 0.5s cubic-bezier(0.76, 0, 0.24, 1)
}

.mobile-nav.open {
  right: 0
}

.mobile-nav a {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--fg);
  opacity: 0.7;
  transition: opacity 0.3s
}

.mobile-nav a:hover {
  opacity: 1;
  color: var(--accent)
}

/* ─── HERO (Typographic Overhaul) ─── */
.hero-center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5%;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Hero background image + readability overlay */
.hero-center::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/Image(27).png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.32;
  filter: saturate(1) contrast(1.06);
  z-index: 0;
  pointer-events: none;
}

.hero-center::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 700px at 50% 40%, rgba(14, 14, 12, 0.03), rgba(14, 14, 12, 0.48) 70%),
    linear-gradient(to bottom, rgba(14, 14, 12, 0.28), rgba(14, 14, 12, 0.52));
  z-index: 1;
  pointer-events: none;
}

[data-theme="light"] .hero-center::before {
  opacity: 0.42;
  filter: saturate(1.05) contrast(1.06);
}

[data-theme="light"] .hero-center::after {
  background:
    radial-gradient(1200px 700px at 50% 40%, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.38) 70%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.42));
}

.hero-canvas {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  width: 100%;
}

.hero-meta {
  font-size: 1.2rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3rem;
  font-weight: 500;
  opacity: 0.8;
}

.hero-statement {
  font-family: var(--sans);
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--fg);
  margin-bottom: 4rem;
}

/* Accent line only: same type as .hero-statement, different color */
.hero-statement .highlight {
  color: var(--accent);
}

.hero-creative {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.hero-blueprint-arrow {
  width: 180px;
  height: 70px;
  opacity: 0.7;
}

.blueprint-svg {
  width: 100%;
  height: 100%;
}

.blueprint-path {
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawBlueprint 2s 1s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

.blueprint-head {
  stroke: var(--accent);
  stroke-width: 1.5;
  opacity: 0;
  animation: fadeIn 0.5s 2.8s forwards;
}

@keyframes drawBlueprint {
  to {
    stroke-dashoffset: 0;
  }
}

.hero-btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 2.8rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  border: 1px solid var(--accent);
}

.hero-btn-cta:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
  transform: translateY(-5px);
}

.hero-btn-cta svg {
  transition: transform 0.4s;
}

.hero-btn-cta:hover svg {
  transform: translateX(5px);
}

/* Subtle Architectural Grid */
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
  z-index: 2;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.scroll-dash {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollDashAnim 2s infinite;
}

@keyframes scrollDashAnim {
  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;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

/* ─── ABOUT (No Image — Split Typographic) ─── */
.about {
  padding: 10rem 5rem;
  position: relative;
  overflow: hidden
}

.about-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-size: clamp(10rem, 22vw, 28rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px var(--border);
  line-height: 0.85;
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
  letter-spacing: -0.05em
}

.about-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4rem;
  margin-bottom: 5rem;
  position: relative;
  z-index: 1;
  flex-wrap: wrap
}

.about-top-left {
  flex: 1;
  min-width: 280px
}

.about-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem
}

.about-label::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4
}

.about-heading {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.08
}

.about-heading span {
  white-space: pre-line;
}

.about-heading em {
  font-style: normal;
  color: var(--accent);
  font-weight: inherit
}

.about-top-right {
  flex: 0.8;
  min-width: 280px;
  padding-top: 1rem
}

.about-bridge {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-style: italic;
  color: var(--accent);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  opacity: 0.9
}

.about-text {
  color: var(--muted);
  line-height: 1.85;
  font-size: 0.95rem;
  margin-bottom: 1.2rem
}

.about-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 5rem;
  position: relative;
  z-index: 1
}

.about-svc {
  background: var(--surface);
  padding: 2.5rem 2rem;
  border-top: 2px solid var(--accent);
  transition: all 0.4s
}

.about-svc:hover {
  background: var(--hover-surface);
  border-top-color: var(--accent);
}

.about-svc-num {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1rem
}

.about-svc-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  line-height: 1.2
}

.about-svc-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7
}

.about-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  position: relative;
  z-index: 1
}

.about-vision {
  border-left: 2px solid var(--accent);
  padding-left: 2rem
}

.about-vision-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1rem
}

.about-vision-text {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.6;
  font-weight: 400;
  color: var(--fg);
  opacity: 0.85
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem
}

.stat {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border)
}

.stat-num {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-top: 0.5rem
}

.about-banner {
  margin-top: 5rem;
  padding: 3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  z-index: 1;
  text-align: center
}

.about-banner-text {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
}

.about-banner-text strong {
  color: var(--fg);
  font-weight: 500
}

/* ─── SERVICES ─── */
.services {
  padding: 8rem 5rem;
  background: var(--surface);
  position: relative;
  overflow: hidden
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 5rem;
  flex-wrap: wrap;
  gap: 2rem
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1rem
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1
}

.section-desc {
  max-width: 400px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px
}

.service-card {
  background: var(--bg);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.5s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 380px
}

.service-card:hover {
  background: var(--hover-surface);
}

.service-num,
.graphic-point-num {
  font-family: var(--serif);
  font-size: 5rem;
  font-weight: 900;
  color: var(--surface);
  position: absolute;
  top: -0.5rem;
  right: 1rem;
  line-height: 1;
  transition: color 0.5s;
}

.graphic-point-num {
  font-size: clamp(2rem, 4.2vw, 5rem);
}

.service-card:hover .service-num,
.graphic-point:hover .graphic-point-num {
  color: var(--border);
}

.service-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--accent);
  transition: all 0.5s
}

.service-card:hover .service-icon,
.graphic-point:hover .service-icon {
  background: var(--accent);
  color: var(--bg);
}

.service-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem
}

.service-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  flex: 1
}

.service-link {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  appearance: none;
}

.service-card:hover .service-link {
  gap: 1rem
}

.service-link-arrow {
  flex-shrink: 0;
  display: block;
}

/* Arabic: chevron on the start side; flip glyph so it points the other way (←) */
[dir="rtl"] .service-link {
  direction: rtl;
}

[dir="rtl"] .service-link .service-link-arrow {
  transform: scaleX(-1);
}

/* ─── PROJECTS ─── */
.projects {
  height: auto;
  min-height: auto;
  display: flex;
  flex-direction: column;
  padding: 4rem 5rem 5rem;
  box-sizing: border-box
}

.projects .section-header {
  flex-shrink: 0;
  margin-bottom: 1.5rem
}

.projects-wrap {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
  width: 100%;
}

.projects-carousel-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  align-self: stretch;
}

.projects-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 4px;
  min-height: 0;
  height: 100%
}

.projects-mobile-nav {
  display: none;
}

.project-cell {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-cell img {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  filter: grayscale(100%);
  transform: none;
  transition: filter 0.5s ease
}

.project-cell.is-selected img {
  filter: grayscale(0%)
}

/* Bento placement: varied sizes, no empty space */
.project-cell.gal-1 {
  grid-column: 1;
  grid-row: 1
}

.project-cell.gal-2 {
  grid-column: 2;
  grid-row: 1
}

.project-cell.gal-3 {
  grid-column: 3;
  grid-row: 1
}

.project-cell.gal-4 {
  grid-column: 4;
  grid-row: 1
}

.project-cell.gal-5 {
  grid-column: 1/3;
  grid-row: 2/4
}

.project-cell.gal-6 {
  grid-column: 3;
  grid-row: 2
}

.project-cell.gal-7 {
  grid-column: 4;
  grid-row: 2
}

.project-cell.gal-8 {
  grid-column: 3;
  grid-row: 3
}

.project-cell.gal-9 {
  grid-column: 4;
  grid-row: 3
}

.project-cell.gal-10 {
  grid-column: 1/3;
  grid-row: 4
}

.project-cell.gal-11 {
  grid-column: 3/5;
  grid-row: 4
}

.project-detail {
  display: none;
}

.project-detail-num {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  flex-shrink: 0
}

.project-detail-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: var(--fg);
  flex-shrink: 0
}

.project-detail-cat {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  flex-shrink: 0
}

.project-detail-desc-wrap {
  position: relative;
  max-height: 6.5em;
  overflow: hidden;
  transition: max-height 0.4s ease;
  flex-shrink: 0
}

.project-detail-desc-wrap.is-expanded {
  max-height: 80vh;
  overflow-y: auto
}

.project-detail.is-expo .project-detail-desc-wrap {
  max-height: 5.5em;
  overflow: hidden
}

.project-detail-desc {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--muted);
  margin: 0
}

.project-detail-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0;
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  cursor: pointer;
  transition: color 0.25s;
  flex-shrink: 0
}

.project-detail-read-more:hover {
  color: var(--fg)
}

.project-detail-read-more::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid currentColor;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  margin-left: 4px;
  transition: transform 0.25s;
  vertical-align: middle
}

.project-detail-desc-wrap.is-expanded+.project-detail-read-more::after {
  transform: rotate(-90deg)
}

/* Expo 2025 image grid: fills remaining space, fits viewport */
.project-expo-grid {
  display: none;
  flex: 1;
  min-height: 0;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 5px;
  margin-top: 1rem
}

.project-detail.is-expo .project-expo-grid {
  display: grid
}

.project-expo-cell {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  min-height: 0
}

.project-expo-cell img,
.project-expo-cell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

/* Video cell: play icon overlay so it’s clear the item is a video */
.project-expo-cell-video {
  position: relative
}

.project-expo-cell-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.2s ease
}

.project-expo-cell-video:hover .project-expo-cell-play {
  background: rgba(0, 0, 0, 0.35)
}

.project-expo-cell-play::before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 20px 0 20px 36px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.95);
  margin-left: 6px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4))
}

/* Project description modal */
.project-desc-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s, opacity 0.3s
}

.project-desc-modal.is-open {
  visibility: visible;
  opacity: 1
}

.project-desc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--modal-backdrop);
  cursor: pointer
}

.project-desc-modal-panel {
  position: relative;
  width: 100%;
  max-width: 36rem;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2.5rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4)
}

.project-desc-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s
}

.project-desc-modal-close:hover {
  color: var(--fg)
}

.project-desc-modal-num {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem
}

.project-desc-modal-title {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: var(--fg)
}

.project-desc-modal-cat {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem
}

.project-desc-modal-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--muted);
  margin: 0
}

/* Mobile project detail modal */
.project-mobile-modal{position:fixed;inset:0;z-index:1000;display:flex;align-items:flex-end;justify-content:center;padding:1.25rem;box-sizing:border-box;visibility:hidden;opacity:0;transition:visibility 0.25s,opacity 0.25s}
.project-mobile-modal.is-open{visibility:visible;opacity:1}
.project-mobile-modal-backdrop{position:absolute;inset:0;background:var(--modal-backdrop);cursor:pointer}
.project-mobile-modal-panel{position:relative;width:min(980px,96vw);max-height:90vh;overflow:auto;background:var(--bg);border:1px solid var(--border);box-shadow:0 24px 48px rgba(0,0,0,0.45);padding:1.75rem 1.75rem 2rem}
.project-mobile-modal-close{position:absolute;top:0.75rem;right:0.75rem;width:2.5rem;height:2.5rem;display:flex;align-items:center;justify-content:center;background:none;border:none;font-size:1.75rem;line-height:1;color:var(--muted);cursor:pointer;transition:color 0.25s}
.project-mobile-modal-close:hover{color:var(--fg)}
.project-mobile-modal-num{display:block;font-size:0.7rem;font-weight:700;color:var(--accent);letter-spacing:0.15em;margin-bottom:0.75rem}
.project-mobile-modal-title{font-family:var(--serif);font-size:1.75rem;font-weight:700;line-height:1.2;margin-bottom:0.5rem;color:var(--fg)}
.project-mobile-modal-cat{font-size:0.75rem;color:var(--accent);text-transform:uppercase;letter-spacing:0.12em;margin-bottom:1rem}
.project-mobile-modal-desc{font-size:0.95rem;line-height:1.75;color:var(--muted);margin:0}
.project-mobile-modal-read-more{display:inline-flex;align-items:center;gap:0.4rem;margin-top:0.9rem;padding:0;background:none;border:none;font-family:var(--sans);font-size:0.8rem;font-weight:600;letter-spacing:0.08em;text-transform:uppercase;color:var(--accent);cursor:pointer;transition:color 0.25s}
.project-mobile-modal-read-more:hover{color:var(--fg)}
.project-mobile-modal-panel .project-expo-grid{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(6,1fr);gap:5px;margin-top:1.2rem;min-height:55vh}
.project-mobile-modal-panel .project-expo-grid[aria-hidden="true"]{display:none}

@media (min-width: 769px) {
  .project-mobile-modal {
    align-items: center;
    padding: 2rem;
  }
  .project-mobile-modal-panel .project-expo-grid {
    min-height: min(50vh, 420px);
  }
}

/* Service modal */
.service-modal{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:2rem;box-sizing:border-box;visibility:hidden;opacity:0;transition:visibility 0.25s,opacity 0.25s}
.service-modal.is-open{visibility:visible;opacity:1}
.service-modal-backdrop{position:absolute;inset:0;background:var(--modal-backdrop);cursor:pointer}
.service-modal-panel{position:relative;width:min(720px,92vw);max-height:85vh;overflow:auto;background:var(--bg);border:1px solid var(--border);box-shadow:0 24px 48px rgba(0,0,0,0.45);padding:2.5rem}
.service-modal-close{position:absolute;top:1rem;right:1rem;width:2.5rem;height:2.5rem;display:flex;align-items:center;justify-content:center;background:none;border:none;font-size:1.75rem;line-height:1;color:var(--muted);cursor:pointer;transition:color 0.25s}
.service-modal-close:hover{color:var(--fg)}
.service-modal-kicker{display:block;font-size:0.7rem;font-weight:700;color:var(--accent);letter-spacing:0.15em;margin-bottom:0.75rem}
.service-modal-title{font-family:var(--serif);font-size:1.75rem;font-weight:700;line-height:1.2;margin-bottom:0.5rem;color:var(--fg)}
.service-modal-cat{font-size:0.75rem;color:var(--accent);text-transform:uppercase;letter-spacing:0.12em;margin-bottom:1.5rem}
.service-modal-desc{font-size:0.95rem;line-height:1.85;color:var(--muted);margin:0}
.service-modal-instagram{margin-top:1.75rem;padding-top:1.5rem;border-top:1px solid var(--border)}
.service-modal-instagram[hidden]{display:none!important}
.service-modal-instagram-hint{font-size:0.85rem;line-height:1.6;color:var(--muted);margin:0 0 1rem}
.service-modal-instagram-link{display:inline-flex;align-items:center;gap:0.65rem;padding:0.75rem 1.2rem;font-size:0.8rem;font-weight:600;letter-spacing:0.06em;color:var(--fg);text-decoration:none;border:1px solid var(--border);background:var(--surface);transition:border-color 0.25s,background 0.25s,color 0.25s}
.service-modal-instagram-link:hover{border-color:var(--accent);color:var(--accent)}
.service-modal-instagram-ig{display:flex;color:var(--accent);flex-shrink:0}

/* Project image lightbox modal */
.project-img-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.25s, opacity 0.25s
}

.project-img-modal.is-open {
  visibility: visible;
  opacity: 1
}

.project-img-modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--modal-backdrop);
  cursor: pointer
}

.project-img-modal-panel {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center
}

.project-img-modal-img,
.project-img-modal-video {
  max-width: 100vw;
  max-height: 100vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block
}

.project-img-modal-video {
  display: none
}

.project-img-modal-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s;
  z-index: 1002
}

.project-img-modal-close:hover {
  color: var(--fg)
}

.project-img-modal-prev,
.project-img-modal-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 14, 12, 0.8);
  border: 1px solid var(--border);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent);
  cursor: pointer;
  transition: color 0.25s, background 0.25s;
  z-index: 1002
}

.project-img-modal-prev {
  left: 1.5rem
}

.project-img-modal-next {
  right: 1.5rem
}

.project-img-modal-prev:hover,
.project-img-modal-next:hover {
  color: var(--fg);
  background: var(--surface)
}

/* Featured projects: image overlay with title/category */
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(14, 14, 12, 0.85));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: background 0.5s
}

.project-num {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--accent);
  color: var(--bg);
  padding: 0.3rem 0.6rem;
  letter-spacing: 0.1em
}

.project-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.2rem
}

.project-cat {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em
}

/* ─── GRAPHIC DESIGN — matches Services: section-header + service-style cards in a grid ─── */
.graphic {
  position: relative;
  isolation: isolate;
  padding: 0;
  background-color: var(--surface);
  background-image:
    radial-gradient(ellipse 90% 55% at 12% 0%, rgba(186, 133, 44, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse 70% 45% at 88% 100%, rgba(139, 111, 58, 0.05) 0%, transparent 45%),
    linear-gradient(180deg, var(--bg) 0%, var(--surface) 45%, #12110f 100%);
  overflow: hidden;
}

[data-theme="light"] .graphic {
  background-image:
    radial-gradient(ellipse 90% 55% at 12% 0%, rgba(186, 133, 44, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 70% 45% at 88% 100%, rgba(186, 133, 44, 0.035) 0%, transparent 45%),
    linear-gradient(180deg, var(--bg) 0%, var(--surface) 50%, #e8e7e4 100%);
}

.graphic::before {
  content: '';
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, var(--accent) 50%, transparent 95%);
  opacity: 0.35;
  pointer-events: none;
}

.graphic-shell {
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 5.5rem) max(1.25rem, env(safe-area-inset-left)) clamp(3rem, 7vw, 4.5rem) max(1.25rem, env(safe-area-inset-right));
  position: relative;
  z-index: 2;
}

.graphic .section-header {
  margin-bottom: clamp(2.5rem, 5vw, 5rem);
}

.graphic .section-desc {
  text-align: start;
}

.graphic-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  background: var(--surface);
  overflow: hidden;
}

.graphic-point {
  background: var(--bg);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.5s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  text-align: start;
}

.graphic-point:hover {
  background: var(--hover-surface);
}

.graphic-point-cat {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.graphic-point .service-name {
  margin-top: 0;
}

.graphic-point .service-desc {
  flex: 1;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .graphic .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .graphic-board {
    grid-template-columns: 1fr;
  }

  .graphic-point {
    min-height: 0;
    padding: 2.5rem 1.75rem;
    border-bottom: 1px solid var(--border);
  }

  .graphic-point:last-child {
    border-bottom: none;
  }

  [dir="rtl"] .graphic-point {
    padding-block: 2.5rem;
    padding-inline-start: 2.25rem;
    padding-inline-end: 1.75rem;
  }
}

/* ─── CONTACT ─── */
.contact {
  padding: 10rem 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start
}

.contact-heading {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 2rem
}

.contact-heading em {
  font-style: normal;
  color: var(--accent);
  font-weight: inherit
}

.contact-text {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 3rem;
  max-width: 400px
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 1rem
}

.contact-row-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent)
}

.contact-row-text {
  font-size: 0.9rem;
  color: var(--muted)
}

.contact-row-text .contact-value-ltr {
  display: inline-block;
  unicode-bidi: embed;
}

.contact-row-text strong {
  display: block;
  color: var(--fg);
  font-weight: 500;
  margin-bottom: 0.2rem
}

.contact-link {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s;
}

.contact-link:hover {
  color: var(--fg);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem
}

.form-group label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  display: block;
  margin-bottom: 0.5rem
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  padding: 1rem;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: border-color 0.3s;
  outline: none
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent)
}

.form-group textarea {
  height: 140px;
  resize: none
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem
}

.form-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 1.2rem 3rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  align-self: flex-start
}

.form-submit:hover {
  background: var(--fg);
  color: var(--bg);
}

.form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.contact-form-message {
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
  padding: 0.5rem 0;
}

.contact-form-message-success {
  color: var(--accent);
}

.contact-form-message-error {
  color: #c94a4a;
}

/* ─── FOOTER ─── */
.footer {
  padding: 4rem 5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--accent)
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted)
}

.footer-links {
  display: flex;
  gap: 2rem
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.3s
}

.footer-links a:hover {
  color: var(--accent)
}


/* ─── RESPONSIVE ─── */
@media(max-width:1100px) {
  .about {
    padding: 6rem 3rem
  }

  .about-top {
    gap: 2.5rem
  }

  .about-services {
    grid-template-columns: 1fr
  }

  .about-bottom {
    grid-template-columns: 1fr;
    gap: 3rem
  }

  .about-stats {
    grid-template-columns: repeat(4, 1fr)
  }

  .services-grid {
    grid-template-columns: 1fr
  }

  .services {
    padding: 6rem 3rem
  }

  .projects {
    height: auto;
    min-height: auto;
    padding: 6rem 3rem
  }

  .projects .section-header {
    margin-bottom: 2rem
  }

  .projects-wrap {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: none;
  }

  .projects-gallery {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, minmax(80px, 1fr));
    gap: 3px;
    min-height: 400px;
    height: auto
  }

  .graphic-shell {
    padding-top: 4.25rem;
    padding-bottom: 4rem;
  }

  .contact {
    grid-template-columns: 1fr;
    gap: 4rem;
    padding: 6rem 3rem
  }
}

/* Featured projects: desktop “cinema runway” carousel (769px+) — distinct from mobile */
@media (min-width: 769px) {
  .projects {
    min-height: 0;
    padding: 3.5rem 5rem 4.5rem;
    box-sizing: border-box;
  }

  .projects .section-header {
    margin-bottom: 1.75rem;
  }

  .projects-wrap {
    perspective: none;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .projects-carousel-col {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
  }

  .projects-carousel-col::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 8;
    background: linear-gradient(
      90deg,
      var(--bg) 0%,
      transparent 14%,
      transparent 86%,
      var(--bg) 100%
    );
  }

  /* Height set by main.js to match the image row (no extra vertical gap) */
  .projects-gallery {
    display: block;
    position: relative;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 260px;
    max-height: min(58vh, 680px);
    overflow: hidden;
    isolation: isolate;
    border: none;
    background: var(--surface);
    transform-style: flat;
    box-sizing: border-box;
    direction: ltr;
  }

  .projects-gallery::before {
    content: '';
    position: absolute;
    inset: -14px;
    border: 1px solid rgba(186, 133, 44, 0.28);
    border-radius: 3px;
    pointer-events: none;
    z-index: 4;
    box-shadow:
      inset 0 0 0 1px rgba(186, 133, 44, 0.08),
      0 28px 60px rgba(0, 0, 0, 0.28);
  }

  .projects-gallery::after {
    content: '';
    position: absolute;
    inset: -7px;
    border: 1px solid rgba(186, 133, 44, 0.12);
    border-radius: 2px;
    pointer-events: none;
    z-index: 4;
  }

  .project-cell.gal-1,
  .project-cell.gal-2,
  .project-cell.gal-3,
  .project-cell.gal-4,
  .project-cell.gal-5,
  .project-cell.gal-6,
  .project-cell.gal-7,
  .project-cell.gal-8,
  .project-cell.gal-9,
  .project-cell.gal-10,
  .project-cell.gal-11 {
    grid-column: auto;
    grid-row: auto;
  }

  .project-cell {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    min-height: 0;
    overflow: hidden;
    cursor: grab;
    border: 1px solid var(--border);
    background: #0a0a08;
    opacity: 0;
    pointer-events: none;
    transform: none;
    transform-origin: center center;
    transition:
      left 0.55s cubic-bezier(0.22, 1, 0.36, 1),
      width 0.55s cubic-bezier(0.22, 1, 0.36, 1),
      top 0.55s cubic-bezier(0.22, 1, 0.36, 1),
      height 0.55s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.45s ease,
      filter 0.45s ease,
      box-shadow 0.45s ease;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    z-index: 1;
  }

  .project-cell:active {
    cursor: grabbing;
  }

  /* Geometry: main.js lays out three panels (prev · selected · next) */
  .project-cell.is-prev {
    opacity: 0.92;
    pointer-events: auto;
    z-index: 3;
    filter: saturate(0.88) brightness(0.94);
  }

  .project-cell.is-selected {
    opacity: 1;
    pointer-events: auto;
    z-index: 6;
    filter: none;
    box-shadow:
      0 36px 80px rgba(0, 0, 0, 0.42),
      0 0 0 1px rgba(186, 133, 44, 0.3);
  }

  .project-cell.is-next {
    opacity: 0.92;
    pointer-events: auto;
    z-index: 3;
    filter: saturate(0.88) brightness(0.94);
  }

  .project-cell img {
    display: block;
    width: auto;
    height: 100%;
    max-width: none;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    filter: grayscale(0%);
    transform: none;
    transition: filter 0.45s ease;
  }

  .project-cell.is-selected img {
    filter: grayscale(0%);
  }

  .project-cell.is-prev img,
  .project-cell.is-next img {
    filter: grayscale(28%);
  }
}

@media(max-width:768px) {
  .nav {
    padding: 1rem 1.5rem
  }

  .nav-links {
    display: none
  }

  .hamburger {
    display: flex
  }

  .hero-center {
    padding: 0 1.5rem;
    text-align: center;
  }

  .hero-statement {
    font-size: clamp(2.5rem, 12vw, 4rem);
    margin-bottom: 2.5rem;
  }

  .hero-blueprint-arrow {
    width: 140px;
    height: 50px;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .about {
    padding: 5rem 2rem
  }

  .about-top {
    flex-direction: column;
    gap: 2rem
  }

  .about-services {
    margin-bottom: 3rem
  }

  .about-svc {
    padding: 2rem 1.5rem
  }

  .about-bottom {
    gap: 2.5rem
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem
  }

  .about-banner {
    padding: 2rem
  }

  .services {
    padding: 5rem 2rem
  }

  .section-header {
    margin-bottom: 3rem
  }

  .service-card {
    min-height: 300px;
    padding: 2rem 1.5rem
  }

  .projects {
    padding: 5rem 2rem
  }

  .projects-gallery {
    display: block;
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 240px;
    border: none;
    background: transparent;
    overflow: hidden;
    box-sizing: border-box;
    direction: ltr;
  }

  /* Geometry from main.js layoutProjectsCarousel (same height; width from aspect ratio) */
  .project-cell {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    min-height: 0;
    transform: none;
    opacity: 0;
    pointer-events: none;
    transition: left 0.45s ease, opacity 0.45s ease, width 0.45s ease, height 0.45s ease, top 0.45s ease;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
  }

  .project-cell.is-selected {
    opacity: 1;
    pointer-events: auto;
    z-index: 3;
  }

  .project-cell.is-prev,
  .project-cell.is-next {
    opacity: 0.75;
    pointer-events: auto;
    z-index: 2;
  }

  .project-cell img {
    display: block;
    width: auto;
    height: 100%;
    max-width: none;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    filter: grayscale(0%);
  }

  .project-cell.is-prev img,
  .project-cell.is-next img {
    filter: grayscale(20%);
  }

  .projects-mobile-nav {
    display: none;
  }

  .graphic-shell {
    padding-top: 2.35rem;
    padding-bottom: 2.5rem;
  }

  .graphic .section-title {
    font-size: clamp(1.65rem, 6.5vw, 2.05rem);
  }

  .graphic .section-desc {
    font-size: 0.88rem;
    line-height: 1.62;
  }

  .contact {
    padding: 5rem 2rem
  }

  .form-row {
    grid-template-columns: 1fr
  }

  .footer {
    padding: 3rem 2rem;
    flex-direction: column;
    text-align: center
  }
}

@media(max-width:480px) {
  .hero-statement {
    font-size: 2.5rem;
  }

  .hero-meta {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    margin-bottom: 2rem;
  }

  .about {
    padding: 4rem 1.5rem
  }

  .about-heading {
    font-size: 2rem
  }

  .about-stats {
    grid-template-columns: 1fr 1fr
  }

  .stat-num {
    font-size: 2.2rem
  }

  .services {
    padding: 4rem 1.5rem
  }

  .projects {
    padding: 4rem 1.5rem
  }

  .project-cell {
    min-height: 0
  }

  .graphic-shell {
    padding-top: 2rem;
    padding-bottom: 2.15rem;
  }

  .contact {
    padding: 4rem 1.5rem
  }

  .contact-heading {
    font-size: 2rem
  }

  .footer {
    padding: 2rem 1.5rem
  }
}

@media(max-width:768px){
  :root{ --scroll-offset: 88px; }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94)
}

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

.reveal-delay-1 {
  transition-delay: 0.1s
}

.reveal-delay-2 {
  transition-delay: 0.2s
}

.reveal-delay-3 {
  transition-delay: 0.3s
}

/* ─── RTL (Arabic) ─── */
/* One stack site-wide (matches hero: DM Sans role → Tajawal for Arabic glyphs) */
[dir="rtl"] {
  text-align: right;
  font-variant-numeric: arabic-indic;
  --serif: 'Tajawal', 'DM Sans', sans-serif;
  --sans: 'Tajawal', 'DM Sans', sans-serif;
  font-feature-settings: "liga" 1, "calt" 1;
}

/* Latin letter-spacing / uppercase break Arabic joining. 0 (not only "normal") helps Safari. */
[dir="rtl"] *,
[dir="rtl"] *::before,
[dir="rtl"] *::after {
  letter-spacing: 0 !important;
  word-spacing: 0 !important;
  text-transform: none !important;
}

/* Extra specificity for nav / buttons / links so nothing overrides (incl. اعرف المزيد, navbar, CTA) */
html[dir="rtl"] .nav a,
html[dir="rtl"] .nav button,
html[dir="rtl"] .nav .nav-links a,
html[dir="rtl"] .nav .nav-cta,
html[dir="rtl"] .nav .lang-btn,
html[dir="rtl"] .mobile-nav a,
html[dir="rtl"] .mobile-nav button,
html[dir="rtl"] .mobile-nav .lang-btn,
html[dir="rtl"] .hero-btn-cta,
html[dir="rtl"] .service-link,
html[dir="rtl"] .service-link span,
html[dir="rtl"] .form-submit,
html[dir="rtl"] .project-detail-read-more,
html[dir="rtl"] .project-mobile-modal-read-more,
html[dir="rtl"] .footer-links a,
html[dir="rtl"] .footer-copy,
html[dir="rtl"] .service-modal-kicker,
html[dir="rtl"] .service-modal-cat,
html[dir="rtl"] .contact .form-group label {
  letter-spacing: 0 !important;
  word-spacing: 0 !important;
  text-transform: none !important;
  font-family: var(--sans) !important;
  font-feature-settings: normal !important;
}

/* Arabic labels: tight line-height clips diacritics in Safari */
[dir="rtl"] .hero-meta,
[dir="rtl"] .about-label,
[dir="rtl"] .section-label,
[dir="rtl"] .about-vision-label,
[dir="rtl"] .graphic .section-label,
[dir="rtl"] .graphic-point-cat,
[dir="rtl"] .stat-label {
  line-height: 1.5;
}

[dir="rtl"] .hero-statement {
  line-height: 1.12;
  padding-block: 0.12em 0.2em;
  text-rendering: optimizeLegibility;
}

[dir="rtl"] .about-heading,
[dir="rtl"] .section-title,
[dir="rtl"] .contact-heading {
  line-height: 1.28;
  padding-block: 0.12em 0.22em;
  text-rendering: optimizeLegibility;
}

[dir="rtl"] .nav {
  left: auto;
  right: 0;
}

[dir="rtl"] .nav-links a::after {
  left: auto;
  right: 0;
}

[dir="rtl"] .mobile-nav {
  right: auto;
  left: -100%;
  transition: left 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

[dir="rtl"] .mobile-nav.open {
  right: auto;
  left: 0;
}

[dir="rtl"] .hero-btn-cta:hover svg {
  transform: translateX(-5px);
}

[dir="rtl"] .about-vision {
  border-left: none;
  border-right: 2px solid var(--accent);
  padding-left: 0;
  padding-right: 2rem;
}

/* Arabic-Indic index (Services + Graphic): base uses top: -0.5rem; Tajawal digits need positive top in RTL */
[dir="rtl"] .service-num {
  right: auto;
  left: 1rem;
  top: 0.5rem;
}

[dir="rtl"] .graphic-point-num {
  right: auto;
  left: clamp(1.35rem, 3vw, 2.25rem);
  top: 0.5rem;
}

[dir="rtl"] .graphic-point {
  padding-block: 3rem;
  padding-inline-start: clamp(2.75rem, 4vw, 3.5rem);
  padding-inline-end: 2.5rem;
}

/* Featured projects strip uses direction:ltr + JS layout; no RTL mirror rules needed */

[dir="rtl"] .project-detail {
  border-left: none;
  border-right: 1px solid var(--border);
  padding-left: 0;
  padding-right: 2.5rem;
}

[dir="rtl"] .project-detail-read-more::after {
  border-left: none;
  border-right: 4px solid currentColor;
  margin-left: 0;
  margin-right: 4px;
}

[dir="rtl"] .project-expo-cell-play::before {
  margin-left: 0;
  margin-right: 6px;
}

[dir="rtl"] .project-desc-modal-close,
[dir="rtl"] .project-mobile-modal-close,
[dir="rtl"] .service-modal-close {
  right: auto;
  left: 1rem;
}

[dir="rtl"] .project-img-modal-close {
  right: auto;
  left: 1.5rem;
}

[dir="rtl"] .project-img-modal-prev {
  left: auto;
  right: 1.5rem;
}

[dir="rtl"] .project-img-modal-next {
  right: auto;
  left: 1.5rem;
}

[dir="rtl"] .project-num {
  left: auto;
  right: 1rem;
}

@media (max-width: 1100px) {
  [dir="rtl"] .project-detail {
    border-right: none;
    padding-right: 0;
  }
}