/* ==========================================================================
   OMNITECH — Design tokens
   ========================================================================== */

:root {
  /* Dark (default) */
  --bg: #0a0a0b;
  --bg-elev: #141416;
  --bg-elev-2: #1c1c1f;
  --line: rgba(242, 241, 237, 0.1);
  --line-strong: rgba(242, 241, 237, 0.18);
  --ink: #f2f1ed;
  --ink-muted: #9a9994;
  --ink-faint: #626260;
  --gold: #c9a24b;
  --gold-bright: #e3c077;
  --gold-deep: #8c6d2f;
  --gold-wash: rgba(201, 162, 75, 0.1);
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);

  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --font-arabic: "Noto Kufi Arabic", "Inter", sans-serif;

  --container: 1180px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

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

[data-theme="light"] {
  --bg: #f6f5f1;
  --bg-elev: #ffffff;
  --bg-elev-2: #eeece5;
  --line: rgba(23, 24, 26, 0.1);
  --line-strong: rgba(23, 24, 26, 0.16);
  --ink: #17181a;
  --ink-muted: #63625d;
  --ink-faint: #8f8d86;
  --gold: #a9803a;
  --gold-bright: #8c6d2f;
  --gold-deep: #c9a24b;
  --gold-wash: rgba(169, 128, 58, 0.1);
  --shadow: 0 20px 60px -20px rgba(23, 24, 26, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

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

::selection { background: var(--gold); color: #0a0a0b; }

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

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

section { position: relative; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-wash);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  margin-bottom: 16px;
}

.section-head p {
  color: var(--ink-muted);
  font-size: 17px;
  max-width: 520px;
}

.section-pad { padding: 120px 0; }

@media (max-width: 720px) {
  .section-pad { padding: 80px 0; }
  .wrap { padding: 0 20px; }
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  padding: 14px 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.01em;
}

.brand img { height: 30px; width: auto; }

.brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 14px;
  color: var(--ink-muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s var(--ease);
}

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

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
  flex-shrink: 0;
}

.theme-toggle:hover { border-color: var(--gold); transform: rotate(14deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .moon { display: none; }
[data-theme="light"] .theme-toggle .sun { display: block; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  color: var(--ink);
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Language switch
   ========================================================================== */

.lang-switch {
  position: relative;
  flex-shrink: 0;
}

.lang-toggle {
  height: 40px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.lang-toggle:hover { border-color: var(--gold); color: var(--gold); }
.lang-toggle svg { width: 16px; height: 16px; flex-shrink: 0; }

.lang-current {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  min-width: 150px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 6px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  z-index: 120;
}

.lang-switch.is-open .lang-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-menu li {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.lang-menu li:hover { background: var(--bg-elev-2); color: var(--ink); }

.lang-menu li[aria-selected="true"] {
  color: var(--gold);
  font-weight: 500;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #0a0a0b;
}
[data-theme="light"] .btn-primary { color: #fbf9f4; }

.btn-primary:hover { transform: translateY(-2px); }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.hero-grad {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 500px at 78% 20%, var(--gold-wash), transparent 60%),
    linear-gradient(180deg, transparent 60%, var(--bg) 100%);
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 2; }

.hero-content { max-width: 760px; }

.hero h1 {
  font-size: clamp(38px, 6vw, 74px);
  margin-bottom: 26px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--gold-bright), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-muted);
  max-width: 560px;
  margin-bottom: 42px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 48px;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--gold);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, auto); row-gap: 28px; }
}

/* ==========================================================================
   Marquee strip
   ========================================================================== */

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  background: var(--bg-elev);
}

.strip-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: scroll-left 32s linear infinite;
}

.strip-track span {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.strip-track span::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
}

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

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

/* ==========================================================================
   Services
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card {
  background: var(--bg-elev);
  padding: 40px 34px;
  transition: background 0.35s var(--ease);
  position: relative;
}

.service-card:hover { background: var(--bg-elev-2); }

.service-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 26px;
  color: var(--gold);
}

.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-size: 19px;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--ink-muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.service-tag {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

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

/* When the card count doesn't divide evenly into the grid, stretch the
   last card across the full row instead of leaving empty cells. */
.services-grid .service-card:last-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  column-gap: 28px;
}
.services-grid .service-card:last-child .service-icon {
  grid-row: 1 / 3;
  margin-bottom: 0;
}
.services-grid .service-card:last-child h3 {
  grid-column: 2;
  margin-bottom: 4px;
}
.services-grid .service-card:last-child p {
  grid-column: 2;
  margin: 0;
}
.services-grid .service-card:last-child .service-tag {
  grid-column: 3;
  grid-row: 1 / 3;
  margin-top: 0;
  white-space: nowrap;
  justify-self: end;
}
@media (max-width: 620px) {
  .services-grid .service-card:last-child {
    display: block;
  }
  .services-grid .service-card:last-child .service-icon {
    margin-bottom: 26px;
  }
  .services-grid .service-card:last-child h3 {
    margin-bottom: 12px;
  }
  .services-grid .service-card:last-child .service-tag {
    margin-top: 18px;
    justify-self: start;
  }
}

/* ==========================================================================
   Process
   ========================================================================== */

.process {
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process-list::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 4%;
  right: 4%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0, var(--line-strong) 6px, transparent 6px, transparent 14px);
}

.process-step { padding-inline-end: 24px; position: relative; }

.process-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.process-step h3 { font-size: 17px; margin-bottom: 10px; }
.process-step p { color: var(--ink-muted); font-size: 14px; }

@media (max-width: 820px) {
  .process-list { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .process-list::before { display: none; }
}
@media (max-width: 520px) {
  .process-list { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.filter-chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-muted);
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  transition: all 0.25s var(--ease);
}

.filter-chip:hover { border-color: var(--gold); color: var(--ink); }

.filter-chip.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #0a0a0b;
}

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

.project-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  cursor: pointer;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.project-media {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}

.project-media canvas,
.project-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}

.project-cat {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.55);
  backdrop-filter: blur(6px);
  color: var(--gold-bright);
  border: 1px solid rgba(242, 241, 237, 0.15);
}

.project-body { padding: 22px 22px 26px; }
.project-body h3 { font-size: 17px; margin-bottom: 8px; }
.project-body p { color: var(--ink-muted); font-size: 13.5px; }

.project-arrow {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
}
.project-arrow svg { width: 13px; height: 13px; transition: transform 0.3s var(--ease); }
.project-card:hover .project-arrow svg { transform: translate(3px, -3px); }

@media (max-width: 940px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.gallery-empty {
  display: none;
  text-align: center;
  padding: 80px 20px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 14px;
}

/* ==========================================================================
   Modal
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 7, 0.72);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.modal-overlay.is-open { opacity: 1; pointer-events: auto; }

.modal {
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  transform: translateY(30px) scale(0.98);
  transition: transform 0.4s var(--ease);
}

.modal-overlay.is-open .modal { transform: translateY(0) scale(1); }

.modal-media { aspect-ratio: 16/9; position: relative; }
.modal-media canvas,
.modal-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(10, 10, 11, 0.6);
  border: 1px solid rgba(242, 241, 237, 0.2);
  color: #f2f1ed;
  display: grid;
  place-items: center;
  z-index: 2;
}
.modal-close svg { width: 16px; height: 16px; }

.modal-body { padding: 32px; }
.modal-body .project-cat {
  position: static;
  display: inline-block;
  margin-bottom: 16px;
  background: var(--gold-wash);
  color: var(--gold);
  border-color: transparent;
  backdrop-filter: none;
}
.modal-body h3 { font-size: 24px; margin-bottom: 14px; }
.modal-body p { color: var(--ink-muted); font-size: 14.5px; margin-bottom: 22px; }

.modal-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.modal-meta div span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}
.modal-meta div strong { font-size: 14px; font-weight: 500; }

/* ==========================================================================
   Lightbox (full-size image view)
   ========================================================================== */

.modal-media img {
  cursor: zoom-in;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 5, 0.92);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.lightbox-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  transform: scale(0.96);
  transition: transform 0.3s var(--ease);
}

.lightbox-overlay.is-open .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(10, 10, 11, 0.6);
  border: 1px solid rgba(242, 241, 237, 0.2);
  color: #f2f1ed;
  display: grid;
  place-items: center;
  z-index: 2;
}
.lightbox-close svg { width: 18px; height: 18px; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-panel {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  position: relative;
  overflow: hidden;
}

.contact-panel::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -160px;
  top: -160px;
  background: radial-gradient(circle, var(--gold-wash), transparent 70%);
  pointer-events: none;
}

.contact-info h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 18px; }
.contact-info p { color: var(--ink-muted); margin-bottom: 32px; max-width: 400px; }

.contact-line {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}
.contact-line:last-child { border-bottom: 1px solid var(--line); }
.contact-line svg { width: 17px; height: 17px; color: var(--gold); flex-shrink: 0; }
.contact-line span.label { color: var(--ink-faint); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; min-width: 76px; flex-shrink: 0; }
.contact-line span.value { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }

a.contact-line.contact-line-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}
a.contact-line.contact-line-link:hover { color: var(--gold); }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  color: var(--ink);
  transition: border-color 0.25s var(--ease);
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.field textarea { resize: vertical; min-height: 96px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 18px;
}
.form-note.is-success { color: var(--gold); }

@media (max-width: 860px) {
  .contact-panel { grid-template-columns: minmax(0, 1fr); padding: 40px 26px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-col a, .footer-col span {
  display: block;
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 10px;
  transition: color 0.25s var(--ease);
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-faint);
}

.footer-socials { display: flex; gap: 14px; }
.footer-socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.footer-socials a:hover { border-color: var(--gold); color: var(--gold); }
.footer-socials svg { width: 15px; height: 15px; }

/* ==========================================================================
   Mobile nav
   ========================================================================== */

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

  .nav-links.is-open {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--bg-elev);
    border-left: 1px solid var(--line-strong);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    transform: translateX(0);
    z-index: 150;
  }

  .nav-links a { font-size: 18px; }
}

@media (max-width: 480px) {
  .nav-actions { gap: 10px; }
  .lang-toggle { padding: 0 10px 0 10px; }
  .lang-current { display: none; }
}

/* ==========================================================================
   RTL (Arabic)
   ========================================================================== */

[dir="rtl"] body {
  font-family: var(--font-arabic);
}

[dir="rtl"] .eyebrow,
[dir="rtl"] .stat-num,
[dir="rtl"] .strip-track span,
[dir="rtl"] .filter-chip,
[dir="rtl"] .service-tag,
[dir="rtl"] .process-num,
[dir="rtl"] .project-cat,
[dir="rtl"] .field label,
[dir="rtl"] .contact-line span.label,
[dir="rtl"] .modal-meta div span,
[dir="rtl"] .footer-col h4,
[dir="rtl"] .lang-current {
  font-family: var(--font-mono);
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 {
  font-family: var(--font-arabic);
  letter-spacing: 0;
}

/* Mobile nav slide-in panel opens from the leading edge in RTL */
@media (max-width: 860px) {
  [dir="rtl"] .nav-links.is-open {
    right: auto;
    left: 0;
    border-left: none;
    border-right: 1px solid var(--line-strong);
  }
}

/* Decorative glow + blob mirrored to sit on the reading-start side */
[dir="rtl"] .hero-grad {
  background:
    radial-gradient(ellipse 800px 500px at 22% 20%, var(--gold-wash), transparent 60%),
    linear-gradient(180deg, transparent 60%, var(--bg) 100%);
}

[dir="rtl"] .contact-panel::before {
  right: auto;
  left: -160px;
}

/* Marquee scrolls the other way so it still reads start-to-end */
[dir="rtl"] .strip-track {
  animation-name: scroll-right;
}

/* Diagonal arrow icons mirror to point toward the new "forward" direction */
[dir="rtl"] .btn svg,
[dir="rtl"] .project-arrow svg {
  transform: scaleX(-1);
}
[dir="rtl"] .btn:hover svg {
  transform: scaleX(-1) translate(-2px, -2px);
}
[dir="rtl"] .project-card:hover .project-arrow svg {
  transform: scaleX(-1) translate(-3px, -3px);
}

[dir="rtl"] .theme-toggle:hover {
  transform: rotate(-14deg);
}
