/* ============================================================
   Saudi Tech Group — styles.css
   Dark futuristic · glassmorphism · bilingual RTL/LTR
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Brand-derived palette */
  --ink: #06120e;          /* green-black — dark sections */
  --ink-2: #0a1f18;        /* raised dark surface */
  --deep: #0a3d2e;         /* brand dark green */
  --teal: #00c4b4;         /* brand turquoise */
  --mint: #7ff0e4;         /* glow accent */
  --sand: #d9b36c;         /* desert micro-accent (used sparingly) */
  --paper: #f4faf8;        /* light sections */
  --paper-2: #ffffff;
  --text: #22332e;
  --text-soft: #5c6f69;
  --text-on-dark: #e9f6f3;
  --text-on-dark-soft: #9fbab2;

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.055);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-blur: 18px;

  /* Type */
  --font-display: 'Alexandria', 'IBM Plex Sans Arabic', sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'Alexandria', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Misc */
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-light: 0 18px 40px -18px rgba(10, 61, 46, 0.18);
  --shadow-teal: 0 14px 34px -12px rgba(0, 196, 180, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
}

.mono { font-family: var(--font-mono); letter-spacing: 0.04em; }

.hidden-field { display: none !important; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 34px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              background 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease);
}

.btn-primary {
  background: linear-gradient(120deg, var(--teal), #00a99b);
  color: #04211a;
  box-shadow: var(--shadow-teal);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px -12px rgba(0, 196, 180, 0.55);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text-on-dark);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: var(--mint);
  color: var(--mint);
  transform: translateY(-3px);
}

.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(6, 18, 14, 0.72);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.6);
}

.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-chip {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.logo-chip img { max-height: 100%; object-fit: contain; }
.logo-fallback-text { display: none; }
.logo-chip.logo-fallback {
  background: linear-gradient(140deg, var(--teal), var(--deep));
}
.logo-chip.logo-fallback .logo-fallback-text {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-on-dark);
  white-space: nowrap;
}
.logo-text.on-dark { color: var(--text-on-dark); }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text-on-dark-soft);
  position: relative;
  padding-block: 6px;
  transition: color 0.25s ease;
}
.nav a::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--teal);
  transition: width 0.3s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--mint); }
.nav a:hover::after, .nav a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.lang-btn {
  border: 0;
  background: transparent;
  color: var(--text-on-dark-soft);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.lang-btn.active { background: var(--teal); color: #04211a; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--text-on-dark);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(0, 196, 180, 0.14), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(10, 61, 46, 0.55), transparent 65%),
    linear-gradient(180deg, #071711 0%, var(--ink) 100%);
  overflow: hidden;
  padding-block: calc(var(--header-h) + 40px) 90px;
}

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

.hero-glow {
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 196, 180, 0.18), transparent 65%);
  top: -180px;
  inset-inline-end: -160px;
  filter: blur(30px);
  pointer-events: none;
  animation: pulse 9s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
}

.hero-content { position: relative; z-index: 2; max-width: 820px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--mint);
  background: rgba(0, 196, 180, 0.08);
  border: 1px solid rgba(0, 196, 180, 0.25);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(0, 196, 180, 0.6);
  animation: ping 2.2s ease-out infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(0, 196, 180, 0.55); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(0, 196, 180, 0); }
}
.eyebrow-coords {
  color: var(--text-on-dark-soft);
  border-inline-start: 1px solid rgba(255, 255, 255, 0.18);
  padding-inline-start: 12px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  line-height: 1.22;
  color: var(--text-on-dark);
  margin-bottom: 24px;
}
.grad-text {
  display: inline-block;
  line-height: 1.4;
  padding-bottom: 0.3em;
  margin-bottom: -0.1em;
  background: linear-gradient(100deg, var(--teal) 10%, var(--mint) 55%, var(--sand) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-on-dark-soft);
  max-width: 620px;
  margin-bottom: 38px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 44px; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-on-dark-soft);
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  z-index: 2;
}
.scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--mint);
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Stats ---------- */
.stats {
  background: var(--ink);
  padding-bottom: 96px;
  margin-top: -1px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.stat {
  padding: 30px 24px;
  text-align: center;
  transition: transform 0.4s var(--ease), border-color 0.4s ease;
}
.stat:hover { transform: translateY(-6px); border-color: rgba(0, 196, 180, 0.45); }
.stat-num {
  display: block;
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 500;
  color: var(--mint);
  line-height: 1.15;
  margin-bottom: 6px;
}
.stat-label { color: var(--text-on-dark-soft); font-weight: 600; font-size: 0.95rem; }

/* ---------- Sections shared ---------- */
.section-light { background: var(--paper); padding-block: 110px; position: relative; }
.section-dark { background: var(--ink); padding-block: 110px; position: relative; overflow: hidden; }

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--deep);
  background: rgba(0, 196, 180, 0.12);
  border: 1px solid rgba(0, 196, 180, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.section-tag.on-dark { color: var(--mint); background: rgba(0, 196, 180, 0.08); }

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.3;
  color: var(--deep);
  margin-bottom: 14px;
}
.section-title.on-dark { color: var(--text-on-dark); }

.section-sub {
  font-size: 1.1rem;
  color: var(--text-soft);
  max-width: 640px;
  margin-bottom: 56px;
}
.section-sub.on-dark { color: var(--text-on-dark-soft); }

.section-dark-glow {
  position: absolute;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 196, 180, 0.1), transparent 65%);
  top: -280px;
  inset-inline-start: -220px;
  filter: blur(30px);
  pointer-events: none;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: 56px;
  align-items: start;
}
.about .lead {
  font-size: 1.28rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 44px;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.pillar {
  background: var(--paper-2);
  border: 1px solid rgba(10, 61, 46, 0.08);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-light);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.pillar:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -20px rgba(10, 61, 46, 0.26); }
.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  background: rgba(0, 196, 180, 0.1);
  margin-bottom: 16px;
}
.pillar-icon svg { width: 26px; height: 26px; }
.pillar h3 { font-family: var(--font-display); color: var(--deep); font-size: 1.12rem; margin-bottom: 8px; }
.pillar p { color: var(--text-soft); font-size: 0.95rem; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card {
  position: relative;
  background: var(--paper-2);
  border: 1px solid rgba(10, 61, 46, 0.08);
  border-radius: var(--radius);
  padding: 34px 26px;
  box-shadow: var(--shadow-light);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s ease;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--mint));
  transform: scaleX(0);
  transform-origin: var(--tx-origin, right);
  transition: transform 0.45s var(--ease);
}
.service-card:hover { transform: translateY(-8px); border-color: rgba(0, 196, 180, 0.4); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deep);
  background: linear-gradient(140deg, rgba(0, 196, 180, 0.16), rgba(10, 61, 46, 0.08));
  margin-bottom: 22px;
  transition: transform 0.4s var(--ease), color 0.3s ease;
}
.service-icon svg { width: 30px; height: 30px; }
.service-card:hover .service-icon { transform: rotate(-6deg) scale(1.06); color: var(--teal); }
.service-card h3 {
  font-family: var(--font-display);
  color: var(--deep);
  font-size: 1.18rem;
  margin-bottom: 10px;
}
.service-card p { color: var(--text-soft); font-size: 0.96rem; }

/* ---------- Companies ---------- */
.companies-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.company-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px 24px;
  text-decoration: none;
  position: relative;
  transition: transform 0.45s var(--ease), border-color 0.4s ease, background 0.4s ease;
}
.company-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 196, 180, 0.5);
  background: rgba(0, 196, 180, 0.06);
}
.company-logo {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.company-logo img { max-height: 100%; object-fit: contain; }
.company-logo .logo-letter {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--deep);
}
.company-card h3 {
  font-family: var(--font-display);
  color: var(--text-on-dark);
  font-size: 1.14rem;
  line-height: 1.5;
}
.company-card p {
  color: var(--text-on-dark-soft);
  font-size: 0.93rem;
  flex-grow: 1;
}
.company-visit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mint);
  font-weight: 700;
  font-size: 0.9rem;
}
.company-visit svg {
  width: 15px;
  height: 15px;
  transition: transform 0.35s var(--ease);
}
.company-card:hover .company-visit svg { transform: translate(3px, -3px); }
[dir="rtl"] .company-card:hover .company-visit svg { transform: translate(-3px, -3px) scaleX(-1); }
[dir="rtl"] .company-visit svg { transform: scaleX(-1); }

/* ---------- Presence ---------- */
.presence { padding-top: 0; }
.presence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.presence-card {
  padding: 32px 26px;
  transition: transform 0.45s var(--ease), border-color 0.4s ease;
}
.presence-card:hover { transform: translateY(-6px); border-color: rgba(217, 179, 108, 0.5); }
.presence-code {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--sand);
  border: 1px solid rgba(217, 179, 108, 0.4);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.presence-card h3 {
  font-family: var(--font-display);
  color: var(--text-on-dark);
  font-size: 1.16rem;
  margin-bottom: 8px;
}
.presence-card p { color: var(--text-on-dark-soft); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 34px;
  align-items: stretch;
}
.contact-form-wrap {
  background: var(--paper-2);
  border: 1px solid rgba(10, 61, 46, 0.08);
  border-radius: var(--radius);
  padding: 38px 34px;
  box-shadow: var(--shadow-light);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--deep);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid rgba(10, 61, 46, 0.14);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--paper);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 196, 180, 0.14);
}

.address-info {
  margin-top: 26px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--deep);
  font-weight: 500;
}
.address-info svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--teal); }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  min-height: 420px;
  border: 1px solid rgba(10, 61, 46, 0.08);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-on-dark-soft);
  padding-block: 54px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 34px;
  padding-bottom: 40px;
}
.footer-brand .logo-text { font-size: 1.3rem; display: block; margin-bottom: 8px; }
.footer-brand p { font-size: 0.92rem; }
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  text-decoration: none;
  font-size: 0.94rem;
  color: var(--text-on-dark-soft);
  transition: color 0.25s ease;
}
.footer-links a:hover { color: var(--mint); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-block: 20px;
  font-size: 0.86rem;
  text-align: center;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ink-2);
  color: var(--text-on-dark);
  border: 1px solid rgba(0, 196, 180, 0.4);
  border-radius: 999px;
  padding: 13px 26px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s var(--ease);
  z-index: 200;
  max-width: min(92vw, 520px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { border-color: rgba(255, 120, 120, 0.5); }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ---------- LTR tweaks ---------- */
[dir="ltr"] .service-card::before { --tx-origin: left; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid, .companies-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(6, 18, 14, 0.96);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 24px 20px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav a { padding-block: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .nav a::after { display: none; }
  .menu-toggle { display: flex; }
  .logo-text { font-size: 1rem; }

  .section-light, .section-dark { padding-block: 76px; }
  .pillars { grid-template-columns: 1fr; }
  .presence-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .map-wrap { min-height: 320px; }
  .footer-inner { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .scroll-hint { display: none; }
}

@media (max-width: 560px) {
  .services-grid, .companies-grid, .stats-grid { grid-template-columns: 1fr; }
  .eyebrow-coords { display: none; }
}

/* ---------- 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;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-canvas { display: none; }
}
