/* ============================================================
   ECC — Electron Corner Company Ltd.
   Engineering-blueprint aesthetic: ink blue / brand blue / fiber yellow
   ============================================================ */

:root {
  --ink: #060f1e;
  --ink-2: #08152a;
  --panel: #0b1c38;
  --line: rgba(108, 160, 255, 0.07);
  --line-2: rgba(108, 160, 255, 0.22);
  --blue: #1f6df2;
  --blue-bright: #5b9dff;
  --fiber: #ffc83d;
  --text: #e9effb;
  --muted: #93a7c9;
  --display: "Big Shoulders Display", sans-serif;
  --body: "IBM Plex Sans", sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --display-ar: "Cairo", sans-serif;
  --body-ar: "IBM Plex Sans Arabic", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  background:
    radial-gradient(120% 70% at 70% -10%, rgba(31, 109, 242, 0.09), transparent 60%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 72px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 72px 100%,
    var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.mono { font-family: var(--mono); }

::selection { background: var(--fiber); color: var(--ink); }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1001;
  background: var(--fiber);
  color: var(--ink);
  padding: 10px 18px;
  font-family: var(--mono);
}
.skip-link:focus { left: 0; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 26px;
  border: 1px solid var(--blue-bright);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.btn-solid {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 4px 4px 0 rgba(255, 200, 61, 0.85);
}
.btn-solid:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 rgba(255, 200, 61, 0.85);
}
.btn-ghost { color: var(--blue-bright); }
.btn-ghost:hover { background: rgba(31, 109, 242, 0.15); }
.btn-lg { padding: 18px 36px; font-size: 0.9rem; }
.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--fiber);
  outline-offset: 3px;
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 32px;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav.scrolled {
  background: rgba(6, 15, 30, 0.85);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line-2);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.logo { width: 42px; height: 42px; color: var(--text); flex: none; }
.logo-bolt { fill: var(--fiber); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}
.brand-text small {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  display: block;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-mobile-cta { display: none; }
.nav-links a.active { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--fiber); }

.nav-lang a {
  border: 1px solid var(--line-2);
  padding: 6px 12px !important;
}
.nav-lang a:hover { border-color: var(--blue-bright); }

.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-chip {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  border: 1px solid var(--line-2);
  padding: 6px 10px;
}
.btn-nav { padding: 10px 18px; font-size: 0.7rem; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--line-2);
  padding: 10px 9px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 32px 110px;
  overflow: hidden;
}

.hero-ticks {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 22px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 119px, var(--line-2) 119px 120px) 0 0 / 18px 100% no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 23px, var(--line-2) 23px 24px) 0 0 / 10px 100% no-repeat;
}

.hero-crane {
  position: absolute;
  right: -20px;
  bottom: 0;
  width: min(54vw, 660px);
  height: auto;
  opacity: 0.5;
}
.crane-line {
  stroke: var(--blue-bright);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
  animation: draw 2.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.cl-2 { animation-delay: 0.15s; }
.cl-3 { animation-delay: 0.3s; }
.cl-4 { animation-delay: 0.5s; }
.cl-5 { animation-delay: 0.65s; }
.cl-6 { animation-delay: 0.8s; }
.cl-7 { animation-delay: 0.95s; }
.cl-8 { animation-delay: 1.1s; }
.crane-line.y { stroke: var(--fiber); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hook {
  fill: none;
  stroke: var(--fiber);
  stroke-width: 2;
  opacity: 0;
  animation: node-in 0.4s ease 1.9s forwards;
}
@keyframes node-in { to { opacity: 1; } }
.beacon {
  fill: var(--fiber);
  opacity: 0;
  animation: beacon 2.4s ease-in-out 2.2s infinite;
}
@keyframes beacon { 0%, 100% { opacity: 0.15; } 50% { opacity: 1; } }

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--blue-bright);
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(3.4rem, 9.5vw, 9rem);
  font-weight: 800;
  max-width: 12ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--fiber);
}

.hero-sub {
  max-width: 56ch;
  color: var(--muted);
  margin: 32px 0 40px;
}

.hero-cta { display: flex; gap: 18px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
  margin-top: 72px;
  max-width: 880px;
}
.stat {
  background: rgba(8, 21, 42, 0.82);
  padding: 20px 22px;
}
.stat dt {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 6px;
}
.stat dd {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1;
}
.stat .plus { color: var(--fiber); }

/* drawing title block */
.title-block {
  position: absolute;
  right: 32px;
  bottom: 28px;
  z-index: 3;
  border: 1px solid var(--line-2);
  background: rgba(6, 15, 30, 0.85);
  backdrop-filter: blur(4px);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  min-width: 250px;
}
.tb-row {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--line);
}
.tb-row:last-child { border-bottom: 0; }
.tb-row span { color: var(--muted); }
.tb-row strong { color: var(--fiber); font-weight: 500; }

/* hero load-in stagger */
.hr-1, .hr-2, .hr-3, .hr-4, .hr-5 {
  opacity: 0;
  transform: translateY(26px);
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hr-1 { animation-delay: 0.05s; }
.hr-2 { animation-delay: 0.18s; }
.hr-3 { animation-delay: 0.34s; }
.hr-4 { animation-delay: 0.48s; }
.hr-5 { animation-delay: 0.64s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ============ MARQUEE ============ */
.marquee {
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  background: var(--fiber);
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  padding: 13px 0;
  animation: scroll 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
/* Force ltr box anchoring so the track still rests flush-left like the
   English version — otherwise the RTL inline box right-anchors and the
   reversed loop starts with the whole track pushed off-screen. */
[dir="rtl"] .marquee { direction: ltr; }
[dir="rtl"] .marquee-track { animation-direction: reverse; }
.marquee span {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.marquee i { color: var(--blue); font-style: normal; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============ SECTIONS ============ */
.section {
  padding: 110px 32px;
  max-width: 1280px;
  margin: 0 auto;
}
.section-alt {
  max-width: none;
  background: linear-gradient(rgba(11, 28, 56, 0.55), rgba(11, 28, 56, 0.55));
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.section-alt > * { max-width: 1280px; margin-left: auto; margin-right: auto; }

.sec-head { margin-bottom: 64px; }
.sec-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--fiber);
  margin-bottom: 16px;
}
.sec-label::before {
  content: "";
  flex: none;
  width: 40px;
  height: 11px;
  background: repeating-linear-gradient(135deg, var(--fiber) 0 7px, transparent 7px 14px);
}
.footer-cta .sec-label { justify-content: center; }
.sec-head h2 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ============ 01 OVERVIEW ============ */
.overview-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: start;
}
.lede {
  font-size: 1.35rem;
  line-height: 1.55;
  margin-bottom: 26px;
}
.lede strong { color: var(--blue-bright); }
.overview-copy p:not(.lede) { color: var(--muted); }

.overview-side {
  border: 1px solid var(--line-2);
  padding: 28px;
  background: rgba(8, 21, 42, 0.6);
  transition-delay: 0.15s;
}
.side-label {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--fiber);
  margin-bottom: 18px;
}
.cert-list { list-style: none; }
.cert-list li {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 12px 0 12px 26px;
  border-bottom: 1px dashed var(--line-2);
  position: relative;
}
.cert-list li:last-child { border-bottom: 0; }
.cert-list li::before {
  content: "▣";
  position: absolute;
  left: 0;
  color: var(--blue-bright);
}

/* ============ CARDS (shared CAD-bracket hover) ============ */
.card {
  position: relative;
  border: 1px solid var(--line-2);
  background: rgba(8, 21, 42, 0.6);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.2s ease, background 0.2s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 6px;
  background: repeating-linear-gradient(135deg, var(--fiber) 0 8px, #0b1a33 8px 16px);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.card:hover { border-color: var(--blue-bright); background: rgba(11, 28, 56, 0.9); }
.card:hover::before { opacity: 1; }

/* ============ 02 SERVICES ============ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.svc { padding: 30px 24px; }
.svc-icon {
  display: block;
  width: 44px;
  height: 44px;
  margin: 2px 0 18px;
  stroke: var(--blue-bright);
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.svc-icon .dot { fill: var(--fiber); stroke: none; }
.svc h3 { font-size: 1.45rem; font-weight: 700; margin-bottom: 12px; }
.svc p { font-size: 0.92rem; color: var(--muted); }
.inline-link {
  color: var(--fiber);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.8rem;
}
.inline-link:hover { text-decoration: underline; }

/* staggered card reveals */
.svc-grid .svc:nth-child(4n+2), .proj-grid .proj:nth-child(3n+2) { transition-delay: 0.08s; }
.svc-grid .svc:nth-child(4n+3), .proj-grid .proj:nth-child(3n+3) { transition-delay: 0.16s; }
.svc-grid .svc:nth-child(4n+4) { transition-delay: 0.24s; }

/* ============ 03 CYBER SECURITY ============ */
.sec-rows { border-top: 1px solid var(--line-2); }
.sec-row {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 28px;
  align-items: baseline;
  padding: 30px 8px;
  border-left: 3px solid transparent;
  border-bottom: 1px solid var(--line-2);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    background 0.2s ease, padding-left 0.2s ease, border-color 0.2s ease;
}
.sec-row:hover {
  background: rgba(31, 109, 242, 0.08);
  border-left-color: var(--fiber);
  padding-left: 20px;
}
.sec-row h3 { font-size: 1.6rem; font-weight: 700; }
.sec-row p { color: var(--muted); font-size: 0.95rem; }

/* ============ 04 PROJECTS ============ */
.proj-featured {
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 40px;
  padding: 44px 42px;
  margin-bottom: 26px;
  background:
    linear-gradient(135deg, rgba(31, 109, 242, 0.22), rgba(8, 21, 42, 0.7) 55%);
}
.proj-client {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--blue-bright);
  margin-bottom: 14px;
}
.featured-tag {
  background: var(--fiber);
  color: var(--ink);
  font-weight: 600;
  padding: 3px 8px;
  margin-left: 10px;
}
.proj-featured h3 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; margin-bottom: 18px; }
.proj-featured > .pf-main > p { color: var(--muted); max-width: 70ch; }

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.chips li {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--line-2);
  padding: 5px 10px;
  background: rgba(6, 15, 30, 0.5);
}

.pf-stats {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  border-left: 1px solid var(--line-2);
  padding-left: 36px;
}
.pf-stats strong {
  display: block;
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--fiber);
  line-height: 1;
}
.pf-stats span {
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.proj { padding: 30px 26px; }
.proj h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; }
.proj > p { font-size: 0.9rem; color: var(--muted); }

.proj-more {
  margin-top: 44px;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 90ch;
}
.proj-more .mono {
  display: block;
  color: var(--fiber);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  margin-bottom: 8px;
}

/* ============ 05 EQUIPMENT ============ */
.equip-quote {
  border-left: 3px solid var(--fiber);
  padding: 6px 0 6px 28px;
  margin-bottom: 48px;
  max-width: 62ch;
}
.equip-quote p {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.15;
}

.manifest { border: 1px solid var(--line-2); }
.m-row {
  display: grid;
  grid-template-columns: 200px 160px 1fr 130px;
  gap: 24px;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}
.m-row:last-child { border-bottom: 0; }
.m-row:not(.m-head):hover { background: rgba(31, 109, 242, 0.1); }
.m-head {
  background: rgba(31, 109, 242, 0.14);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  color: var(--blue-bright);
  border-bottom: 1px solid var(--line-2);
}
.m-unit {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
}
.m-row .mono:not(.m-status) {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.m-row > span:nth-child(3) { font-size: 0.88rem; color: var(--muted); }
.m-status {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--fiber);
  border: 1px solid rgba(255, 200, 61, 0.45);
  padding: 5px 8px;
  text-align: center;
  transform: rotate(-2deg);
}

/* ============ 06 PARTNERS & CLIENTS ============ */
.partners-lede {
  max-width: 62ch;
  color: var(--muted);
  margin-bottom: 48px;
}
.brand-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
}
.brand-wall span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 16px;
  background: var(--ink-2);
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.brand-wall span:hover {
  background: var(--blue);
  color: #fff;
  transform: scale(1.02);
}

.clients { margin-top: 56px; }
.client-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.client-tags li {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  border: 1px dashed var(--line-2);
  color: var(--muted);
  padding: 8px 14px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.client-tags li:hover {
  border-color: var(--fiber);
  border-style: solid;
  color: var(--text);
}

/* ============ FOOTER / CONTACT ============ */
.footer {
  border-top: 1px solid var(--line-2);
  padding: 110px 32px 0;
  background:
    radial-gradient(90% 60% at 50% 110%, rgba(31, 109, 242, 0.25), transparent 70%),
    var(--ink-2);
}
.footer-cta {
  max-width: 1280px;
  margin: 0 auto 90px;
  text-align: center;
}
.footer-cta .sec-label { margin-bottom: 20px; }
.footer-cta h2 {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  margin-bottom: 40px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding-bottom: 70px;
  border-bottom: 1px solid var(--line-2);
}
.footer-brand { display: flex; gap: 22px; align-items: flex-start; }
.logo-lg { width: 64px; height: 64px; }
.footer-ecc {
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}
.footer-ar { font-size: 1.05rem; color: var(--muted); margin: 8px 0 6px; }
.footer-en { font-size: 0.62rem; letter-spacing: 0.16em; color: var(--muted); }

.footer-contact { display: grid; gap: 22px; align-content: start; }
.footer-contact dt {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--fiber);
  margin-bottom: 4px;
}
.footer-contact dd { font-size: 1.05rem; }
.footer-contact a { color: var(--text); text-decoration: none; }
.footer-contact a:hover { color: var(--blue-bright); }

.footer-bar {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 26px 0;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-wall { grid-template-columns: repeat(3, 1fr); }
  .sec-row { grid-template-columns: 1fr; gap: 8px; }
  .title-block { display: none; }
  .nav-chip { display: none; }
}

@media (max-width: 760px) {
  .nav { padding: 12px 18px; gap: 14px; }
  .nav-links {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(6, 15, 30, 0.97);
    border-bottom: 1px solid var(--line-2);
    padding: 12px 18px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-burger { display: flex; }
  .btn-nav { display: none; }
  .nav-right { margin-left: auto; }
  .nav-mobile-cta { display: block; padding: 8px 12px 4px; }
  .nav-mobile-cta .btn { width: 100%; text-align: center; color: var(--text); text-decoration: none; }

  .hero { padding: 120px 20px 80px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-crane { opacity: 0.22; }

  .section { padding: 80px 20px; }
  .sec-head { flex-direction: column; gap: 14px; }
  .overview-grid { grid-template-columns: 1fr; gap: 36px; }
  .svc-grid, .proj-grid { grid-template-columns: 1fr; }
  .proj-featured { grid-template-columns: 1fr; padding: 30px 22px; }
  .pf-stats {
    flex-direction: row;
    border-left: 0;
    border-top: 1px solid var(--line-2);
    padding: 24px 0 0;
  }
  .m-row { grid-template-columns: 1fr; gap: 8px; padding: 18px; }
  .m-head { display: none; }
  .m-status { justify-self: start; }
  .brand-wall { grid-template-columns: repeat(2, 1fr); }
  .footer { padding: 80px 20px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 44px; }
  .marquee span { font-size: 1.05rem; }
}

/* ============ ARABIC TYPOGRAPHY ============ */
/* Big Shoulders / IBM Plex Mono have no Arabic glyphs, and letter-spacing
   breaks Arabic letter-joining, so Arabic gets its own font stack and
   spacing reset rather than per-selector overrides. */
html[lang="ar"] body { font-family: var(--body-ar); }
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 {
  font-family: var(--display-ar);
  text-transform: none;
}
html[lang="ar"] .mono,
html[lang="ar"] .brand-text strong,
html[lang="ar"] .footer-ecc,
html[lang="ar"] .m-unit {
  font-family: var(--body-ar);
}
html[lang="ar"] * { letter-spacing: normal !important; }

/* ============ RTL LAYOUT ============ */
[dir="rtl"] .skip-link { left: auto; right: -999px; }
[dir="rtl"] .skip-link:focus { right: 0; }

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

[dir="rtl"] .cert-list li { padding: 12px 26px 12px 0; }
[dir="rtl"] .cert-list li::before { left: auto; right: 0; }

[dir="rtl"] .featured-tag { margin-left: 0; margin-right: 10px; }

[dir="rtl"] .pf-stats { border-left: 0; border-right: 1px solid var(--line-2); padding-left: 0; padding-right: 36px; }

[dir="rtl"] .sec-row { border-left: 0; border-right: 3px solid transparent; }
[dir="rtl"] .sec-row:hover { border-left-color: transparent; border-right-color: var(--fiber); padding-left: 8px; padding-right: 20px; }

[dir="rtl"] .equip-quote { border-left: 0; border-right: 3px solid var(--fiber); padding: 6px 28px 6px 0; }

[dir="rtl"] .title-block { right: auto; left: 32px; }

[dir="rtl"] .hero-crane { right: auto; left: -20px; transform: scaleX(-1); }

[dir="rtl"] .btn-solid { box-shadow: -4px 4px 0 rgba(255, 200, 61, 0.85); }
[dir="rtl"] .btn-solid:hover { transform: translate(2px, -2px); box-shadow: -7px 7px 0 rgba(255, 200, 61, 0.85); }

[dir="rtl"] .inline-link { font-family: var(--body-ar); }

@media (max-width: 760px) {
  [dir="rtl"] .nav-right { margin-left: 0; margin-right: auto; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hr-1, .hr-2, .hr-3, .hr-4, .hr-5, .reveal { opacity: 1; transform: none; }
  .crane-line { stroke-dashoffset: 0; }
  .hook, .beacon { opacity: 1; animation: none; }
  .marquee-track { animation: none; }
}
