/* ============================================================
   Ariel Malka Engineers & Consultants Ltd. — Design System
   Concept: "master electrical drawing set" — deep-navy schematic
   bookends, drafting-paper body, copper (conductor) accent.
   Type: Suez One (display) · Assistant (body) · Miriam Libre (tech)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* surfaces */
  --ink: #0b1a30; /* deepest navy — footer, overlays        */
  --navy: #0f2138; /* hero surface                           */
  --navy-2: #16304f; /* raised card on dark                    */
  --paper: #f4f7fb; /* body background                        */
  --card: #ffffff;

  /* brand */
  --azure: #2f7fd1; /* logo azure — icons, secondary          */
  --azure-deep: #1d5ca3; /* links / azure text on light            */
  --copper: #d98938; /* live-wire accent — CTAs, nodes         */
  --copper-hi: #f2ac5c; /* glow highlight                         */
  --copper-deep: #8c5a1d; /* copper text on light                   */

  /* text */
  --ink-text: #16243b;
  --muted: #55647c;
  --on-dark: #e9eff8;
  --on-dark-dim: #a9bad1;

  /* lines */
  --line: #dce4ef;
  --line-dark: rgba(146, 178, 219, 0.18);

  /* type */
  --font-display: "Suez One", "Arial Hebrew", serif;
  --font-body: "Assistant", "Arial Hebrew", Arial, sans-serif;
  --font-tech: "Miriam Libre", "Courier New", monospace;

  /* rhythm */
  --container: 1180px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px -12px rgba(15, 33, 56, 0.18);
  --shadow-lift: 0 22px 44px -16px rgba(15, 33, 56, 0.28);
  --speed: 0.22s;
  --ease: cubic-bezier(0.33, 1, 0.68, 1);

  --header-h: 76px;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.65;
  color: var(--ink-text);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  max-width: 100%;
  display: block;
}
img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400; /* Suez One ships one weight     */
  line-height: 1.22;
  margin: 0 0 0.5em;
  color: inherit;
  letter-spacing: 0.002em;
}

h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.7rem);
}
h2 {
  font-size: clamp(1.55rem, 3vw, 2.3rem);
}
h3 {
  font-size: 1.22rem;
  line-height: 1.35;
}
h4 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 1em;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
address {
  font-style: normal;
}

a {
  color: var(--azure-deep);
  text-decoration: none;
  transition: color var(--speed) var(--ease);
}
a:hover {
  color: var(--copper-deep);
}

button {
  font: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--azure);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* skip link */
.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 300;
  background: var(--copper);
  color: var(--ink);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 0;
  color: var(--ink);
}

/* ---------- Technical vocabulary (shared motifs) ---------- */

/* title-block eyebrow — like the label strip of a drawing sheet */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-tech);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--copper-deep);
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 4px;
  padding: 5px 14px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 0 3px rgba(217, 137, 56, 0.22);
  flex: none;
}
.on-dark .eyebrow,
.eyebrow.dark {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-dark);
  color: var(--copper-hi);
}

/* wire divider — hairline with terminal node (starts at inline-start) */
.wire {
  position: relative;
  height: 1px;
  background: linear-gradient(to left, var(--copper) 0 46px, var(--line) 46px);
  margin: 22px 0 0;
  max-width: 320px;
}
[dir="rtl"] .wire {
  background: linear-gradient(to right, var(--copper) 0 46px, var(--line) 46px);
}
.wire::before {
  content: "";
  position: absolute;
  inset-inline-start: 44px;
  top: -3.5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--copper);
  opacity: 0;
  transition: opacity 0.3s var(--ease) 0.75s;
}
.section-head.center .wire {
  margin-inline: auto;
}

/* the wire draws itself when its section reveals */
.reveal .wire {
  transform: scaleX(0);
  transform-origin: 100% 50%; /* inline-start in RTL */
  transition: transform 0.9s var(--ease) 0.15s;
}
.section-head.center .wire {
  transform-origin: 50% 50%;
}
.reveal.in .wire {
  transform: scaleX(1);
}
.reveal.in .wire::before {
  opacity: 1;
}

/* photo frame with registration-mark corner ticks */
.photo-frame {
  position: relative;
  padding: 14px;
}
.photo-frame img {
  width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.photo-frame::before,
.photo-frame::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border: 2px solid var(--copper);
  pointer-events: none;
}
.photo-frame::before {
  top: 0;
  inset-inline-start: 0;
  border-bottom: 0;
  border-inline-end: 0;
}
.photo-frame::after {
  bottom: 0;
  inset-inline-end: 0;
  border-top: 0;
  border-inline-start: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 30px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition:
    transform var(--speed) var(--ease),
    box-shadow var(--speed) var(--ease),
    background-color var(--speed) var(--ease),
    color var(--speed) var(--ease),
    border-color var(--speed) var(--ease);
}
.btn:active {
  transform: scale(0.97);
}

.btn-copper {
  background: var(--copper);
  color: #14202f;
  box-shadow: 0 8px 22px -8px rgba(217, 137, 56, 0.55);
}
.btn-copper:hover {
  background: var(--copper-hi);
  color: #14202f;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(217, 137, 56, 0.6);
}

.btn-ghost {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(233, 239, 248, 0.38);
}
.btn-ghost:hover {
  color: #fff;
  border-color: var(--copper);
  background: rgba(217, 137, 56, 0.1);
}

.btn-navy {
  background: var(--navy);
  color: var(--on-dark);
}
.btn-navy:hover {
  background: var(--navy-2);
  color: #fff;
  transform: translateY(-2px);
}

/* text arrow-link */
.more-link a,
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--azure-deep);
}
.arrow-link .ic,
.more-link .ic {
  transition: transform var(--speed) var(--ease);
}
.arrow-link:hover .ic,
.more-link a:hover .ic {
  transform: translateX(-4px);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 120;
  background: rgba(11, 26, 48, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(11, 26, 48, 0.94);
  border-bottom-color: var(--line-dark);
}

/* reading progress as a conducting wire under the header */
.scroll-conductor {
  position: absolute;
  bottom: -1px;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(
    to left,
    var(--copper),
    var(--copper-hi) 45%,
    var(--azure)
  );
  transform: scaleX(0);
  transform-origin: 100% 50%;
  pointer-events: none;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

/* brand lockup: mark tile + readable wordmark */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.logo-mark {
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 9px;
  padding: 8px 10px;
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.5);
}
.logo-mark img {
  height: 26px;
  width: auto;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}
.logo-text strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.32rem;
  color: #fff;
  white-space: nowrap;
}
.logo-text small {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--on-dark-dim);
  white-space: nowrap;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--on-dark-dim);
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  white-space: nowrap;
}
.main-nav a:hover {
  color: #fff;
}
.main-nav > ul > li > a.active {
  color: #fff;
}
.main-nav > ul > li > a.active::after {
  content: "";
  position: absolute;
  inset-inline: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--copper);
}
.main-nav .nav-cta {
  background: var(--copper);
  color: #14202f;
  font-weight: 700;
  margin-inline-start: 8px;
  padding-inline: 20px;
}
.main-nav .nav-cta:hover {
  background: var(--copper-hi);
  color: #14202f;
}
.main-nav .nav-cta.active::after {
  display: none;
}

/* dropdown */
.has-dropdown {
  position: relative;
}
.has-dropdown > button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--on-dark-dim);
  font-weight: 600;
  font-size: 1rem;
}
.has-dropdown > button:hover {
  color: #fff;
}
.has-dropdown > button.active {
  color: #fff;
}
.has-dropdown .caret {
  transition: transform var(--speed) var(--ease);
}
.has-dropdown[data-open="true"] .caret {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-start: 0;
  min-width: 230px;
  background: var(--ink);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity var(--speed) var(--ease),
    transform var(--speed) var(--ease),
    visibility var(--speed);
}
.has-dropdown[data-open="true"] .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (hover: hover) {
  .has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}
.dropdown li + li {
  margin-top: 2px;
}
.dropdown a {
  display: flex;
  width: 100%;
  padding: 10px 14px;
  border-radius: 7px;
}
.dropdown a:hover,
.dropdown a.active {
  background: rgba(217, 137, 56, 0.14);
  color: #fff;
}

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--on-dark);
  transition:
    transform 0.25s var(--ease),
    opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero (home — signature ignition) ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(
      1100px 480px at 78% -10%,
      rgba(47, 127, 209, 0.16),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 12% 112%,
      rgba(217, 137, 56, 0.1),
      transparent 55%
    ),
    var(--navy);
  color: var(--on-dark);
  overflow: hidden;
}
.hero.hero-home {
  min-height: clamp(600px, 92svh, 840px);
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
}
.hero-home > .container {
  width: 100%;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 56px;
  align-items: center;
}

/* cursor-following electric field (desktop, fine pointer only) */
.hero-glow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.hero-glow::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(242, 172, 92, 0.13),
    rgba(47, 127, 209, 0.09) 42%,
    transparent 70%
  );
  transform: translate3d(
    calc(var(--gx, -900px) - 50%),
    calc(var(--gy, -900px) - 50%),
    0
  );
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.hero-glow.on::after {
  opacity: 1;
}

/* faint drafting grid over the navy */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.35;
  mask-image: radial-gradient(120% 90% at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(
    120% 90% at 50% 40%,
    #000 40%,
    transparent 100%
  );
  pointer-events: none;
}

/* the "live drawing sheet" panel — the hero's showpiece */
.hero-panel {
  position: relative;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background:
    linear-gradient(160deg, rgba(47, 127, 209, 0.1), rgba(11, 26, 48, 0) 55%),
    repeating-linear-gradient(
      0deg,
      rgba(146, 178, 219, 0.09) 0 1px,
      transparent 1px 34px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(146, 178, 219, 0.09) 0 1px,
      transparent 1px 34px
    ),
    rgba(255, 255, 255, 0.02);
  box-shadow: 0 34px 70px -34px rgba(0, 0, 0, 0.65);
  padding: 22px 24px 0;
  animation: panelIn 0.9s var(--ease) 0.35s both;
}
@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* registration-mark corners */
.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  border: 2px solid var(--copper);
  pointer-events: none;
}
.hero-panel::before {
  top: -1px;
  inset-inline-start: -1px;
  border-bottom: 0;
  border-inline-end: 0;
  border-start-start-radius: 14px;
}
.hero-panel::after {
  bottom: -1px;
  inset-inline-end: -1px;
  border-top: 0;
  border-inline-start: 0;
  border-end-end-radius: 14px;
}
.hero-panel svg {
  width: 100%;
  height: auto;
  display: block;
}

/* drawing-sheet title block */
.panel-titleblock {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line-dark);
  margin: 18px -24px 0;
  padding: 12px 22px;
  font-family: var(--font-tech);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--on-dark-dim);
}
.panel-titleblock .tb-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--copper-hi);
}
.tb-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 8px rgba(242, 172, 92, 0.9);
  animation: breathe 2.6s ease-in-out infinite;
}

/* traveling current sparks (SMIL along the traces) */
.spark {
  fill: var(--copper-hi);
  filter: drop-shadow(0 0 6px rgba(242, 172, 92, 1));
}

/* traces draw themselves (pathLength=1 normalization) */
.trace {
  fill: none;
  stroke: rgba(122, 162, 214, 0.34);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.6s var(--ease) forwards;
}
.trace.t2 {
  animation-delay: 0.25s;
}
.trace.t3 {
  animation-delay: 0.5s;
}
.trace.t4 {
  animation-delay: 0.7s;
}
.trace.t5 {
  animation-delay: 0.9s;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* component symbols fade in after their trace */
.sym {
  fill: none;
  stroke: rgba(122, 162, 214, 0.5);
  stroke-width: 1.6;
  opacity: 0;
  animation: symIn 0.5s var(--ease) forwards;
}
.sym.s1 {
  animation-delay: 0.9s;
}
.sym.s2 {
  animation-delay: 1.05s;
}
.sym.s3 {
  animation-delay: 1.2s;
}
@keyframes symIn {
  to {
    opacity: 1;
  }
}

/* copper nodes ignite */
.node {
  fill: var(--copper);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: ignite 0.5s var(--ease) forwards;
  filter: drop-shadow(0 0 6px rgba(242, 172, 92, 0.9));
}
.node.n1 {
  animation-delay: 0.55s;
}
.node.n2 {
  animation-delay: 0.8s;
}
.node.n3 {
  animation-delay: 1s;
}
.node.n4 {
  animation-delay: 1.15s;
}
.node.n5 {
  animation-delay: 1.3s;
}
.node.n6 {
  animation-delay: 1.45s;
}
@keyframes ignite {
  0% {
    opacity: 0;
    transform: scale(0.2);
  }
  60% {
    opacity: 1;
    transform: scale(1.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* one node keeps breathing after ignition */
.node.pulse {
  animation:
    ignite 0.5s var(--ease) forwards,
    breathe 3.2s ease-in-out 2s infinite;
}
@keyframes breathe {
  0%,
  100% {
    filter: drop-shadow(0 0 4px rgba(242, 172, 92, 0.55));
  }
  50% {
    filter: drop-shadow(0 0 11px rgba(242, 172, 92, 1));
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-block: 90px;
}
.hero-grid .hero-content {
  max-width: 600px;
  padding-block: 72px 88px;
}
.hero-home .hero-content h1 {
  margin: 18px 0 20px;
  color: #fff;
  animation: lampOn 1.1s linear 0.85s both;
}
.hero-home .hero-accent {
  color: var(--copper-hi);
}

/* the headline flickers on like a lamp receiving current */
@keyframes lampOn {
  0% {
    opacity: 0;
  }
  8% {
    opacity: 0.75;
  }
  14% {
    opacity: 0.18;
  }
  22% {
    opacity: 0.9;
  }
  28% {
    opacity: 0.4;
  }
  38% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

.hero .subtitle {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  color: var(--on-dark-dim);
  max-width: 56ch;
  animation: fadeUp 0.8s var(--ease) 1.35s both;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
  animation: fadeUp 0.8s var(--ease) 1.55s both;
}
/* primary CTA carries a faint charge */
.hero-ctas .btn-copper {
  animation:
    fadeUp 0.8s var(--ease) 1.55s both,
    charge 3.6s ease-in-out 3s infinite;
}
@keyframes charge {
  0%,
  100% {
    box-shadow: 0 8px 22px -8px rgba(217, 137, 56, 0.55);
  }
  50% {
    box-shadow: 0 10px 34px -6px rgba(242, 172, 92, 0.85);
  }
}

/* trust seal — stuck onto the drawing sheet like a stamp, first to land */
.hero-seal {
  top: 12%;
  display: inline-flex;
  margin: 0 0 28px -6px;
  position: absolute;
  /* left: 76%; */
  right: -36%;
  transform: rotate(-10deg);
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.5));
  animation: sealDrop 0.8s cubic-bezier(0.3, 2.5, 0.5, 1) 0.1s both;
}
.hero-seal img {
  width: 195px;
  height: auto;
  display: block;
}

@keyframes sealDrop {
  0% {
    opacity: 0;
    transform: rotate(16deg) scale(0.5) translateY(-16px);
  }
  62% {
    opacity: 1;
    transform: rotate(-11deg) scale(1.07) translateY(2px);
  }
  100% {
    opacity: 1;
    transform: rotate(-10deg) scale(1) translateY(0);
  }
}

.hero-cred {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-tech);
  font-size: 0.85rem;
  color: var(--on-dark-dim);
  animation: fadeUp 0.8s var(--ease) 1.7s both;
}
.hero-cred span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-cred span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--copper);
  flex: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 26px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  z-index: 2;
  color: var(--on-dark-dim);
  animation:
    bob 2.4s ease-in-out 2.4s infinite,
    symIn 0.6s ease 2.2s both;
}
[dir="ltr"] .scroll-indicator {
  transform: translateX(-50%);
}
.scroll-indicator svg {
  width: 26px;
  height: 26px;
}
@keyframes bob {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 8px;
  }
}

/* ---------- Inner-page hero ---------- */
.hero-page {
  padding-top: var(--header-h);
}
.hero-page .hero-content {
  padding-block: 84px 72px;
  max-width: 760px;
}
.hero-page h1 {
  color: #fff;
  margin: 16px 0 12px;
}
.hero-page .subtitle {
  margin: 0;
}

/* small static schematic decoration, end side */
.hero-page .hero-deco {
  position: absolute;
  inset-block: 0;
  inset-inline-end: -40px;
  width: min(44vw, 560px);
  opacity: 0.55;
  pointer-events: none;
}
.hero-page .hero-deco .trace,
.hero-page .hero-deco .sym {
  animation-duration: 1.2s;
}

/* ---------- Sections ---------- */
.section {
  padding-block: 92px;
}
.section.alt {
  background: #ecf1f8;
}

.why-section {
  position: relative;
  overflow: hidden;
}
.why-bg-seal {
  position: absolute;
  top: 50%;
  inset-inline-end: 10px;
  transform: translateY(-50%);
  width: 480px;
  max-width: 44vw;
  height: auto;
  opacity: .6;
  pointer-events: none;
  z-index: 0;
}
.why-section .container {
  position: relative;
  z-index: 1;
}
.section.on-dark {
  background:
    radial-gradient(
      900px 420px at 85% 0%,
      rgba(47, 127, 209, 0.14),
      transparent 60%
    ),
    var(--navy);
  color: var(--on-dark);
}

.section-head {
  max-width: 680px;
  margin-bottom: 52px;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head h2 {
  margin: 0;
  color: var(--ink);
}
.on-dark .section-head h2 {
  color: #fff;
}
.section-head .lead-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}
.on-dark .section-head .lead-note {
  color: var(--on-dark-dim);
}

/* certification badge — icon + caption, for light surfaces only */
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-family: var(--font-tech);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}
.cert-badge img {
  width: 40px;
  height: 40px;
  flex: none;
}

/* ---------- Stats bus (home) ---------- */
.stats-bus {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
/* the bus conductor line behind the terminals — draws in on reveal */
.stats-bus::before {
  content: "";
  position: absolute;
  inset-inline: 4%;
  top: 0;
  height: 1px;
  background: linear-gradient(to left, var(--copper), var(--line) 30%);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 1.2s var(--ease) 0.1s;
}
.stats-bus.in::before {
  transform: scaleX(1);
}
.stat-item {
  position: relative;
  text-align: center;
  padding-top: 34px;
}
/* terminal node tapping the bus */
.stat-item::before {
  content: "";
  position: absolute;
  top: -4.5px;
  inset-inline-start: 50%;
  margin-inline-start: -4.5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 0 4px rgba(217, 137, 56, 0.18);
}
.stat-item::after {
  content: "";
  position: absolute;
  top: 5px;
  inset-inline-start: 50%;
  width: 1px;
  height: 24px;
  background: var(--line);
}
.stat-number {
  display: block;
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--ink);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- About split ---------- */
.about-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}
.about-split-text p {
  color: var(--muted);
  max-width: 62ch;
}
.about-split-text p strong {
  color: var(--ink-text);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 26px;
}
.chip {
  font-family: var(--font-tech);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--azure-deep);
  background: rgba(47, 127, 209, 0.08);
  border: 1px solid rgba(47, 127, 209, 0.25);
  border-radius: 999px;
  padding: 5px 14px;
}
.on-dark .chip {
  color: #bcd4f0;
  background: rgba(47, 127, 209, 0.14);
  border-color: rgba(122, 162, 214, 0.3);
}

/* ---------- Service cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition:
    transform var(--speed) var(--ease),
    box-shadow var(--speed) var(--ease),
    border-color var(--speed) var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(217, 137, 56, 0.5);
}
/* copper node lights up on hover */
.service-card::after {
  content: "";
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--copper);
  opacity: 0;
  box-shadow: 0 0 10px rgba(242, 172, 92, 0.9);
  transition: opacity var(--speed) var(--ease);
}
.service-card:hover::after {
  opacity: 1;
}

.service-card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.service-card-img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

/* certification sticker pinned to a photo corner */
.photo-sticker {
  position: absolute;
  bottom: 14px;
  inset-inline-end: 14px;
  z-index: 2;
  display: inline-flex;
  transform: rotate(-8deg);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .4));
}
.photo-sticker img {
  width: 64px;
  height: auto;
  display: block;
}
.service-card:hover .service-card-img > img {
  transform: scale(1.05);
}

.service-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 24px;
}
.service-card-body h3 {
  color: var(--ink);
  margin-bottom: 8px;
}
.service-card-body p {
  color: var(--muted);
  font-size: 0.98rem;
  flex: 1;
}
.service-card-body .arrow-link {
  font-size: 0.98rem;
}

/* stretch whole card as link target */
.service-card .card-link::before {
  content: "";
  position: absolute;
  inset: 0;
}

/* ---------- Project cards / mosaic ---------- */
.projects-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: 18px;
}
.projects-mosaic .project-card:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}
.projects-mosaic .project-card:nth-child(4) {
  grid-column: span 2;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.projects-grid .project-card {
  aspect-ratio: 4 / 3;
}

.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 0;
  padding: 0;
  background: var(--navy-2);
  text-align: start;
  width: 100%;
  height: 100%;
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.project-card:hover img,
.project-card:focus-visible img {
  transform: scale(1.06);
}

.project-card .project-info {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 44px 18px 14px;
  background: linear-gradient(
    to top,
    rgba(11, 26, 48, 0.92),
    rgba(11, 26, 48, 0)
  );
  color: #fff;
}
.project-card .proj-name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.3;
}
.project-card .proj-cat {
  font-family: var(--font-tech);
  font-size: 0.78rem;
  color: var(--copper-hi);
  margin-top: 2px;
}
/* zoom hint */
.project-card .zoom-ic {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(11, 26, 48, 0.55);
  color: #fff;
  opacity: 0;
  transition: opacity var(--speed) var(--ease);
}
.project-card:hover .zoom-ic,
.project-card:focus-visible .zoom-ic {
  opacity: 1;
}
.project-card .zoom-ic svg {
  width: 18px;
  height: 18px;
}

.more-link {
  text-align: center;
  margin-top: 40px;
}

/* filter tabs */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.filter-btn {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 22px;
  min-height: 44px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: all var(--speed) var(--ease);
}
.filter-btn:hover {
  border-color: var(--copper);
  color: var(--copper-deep);
}
.filter-btn[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.project-hidden {
  display: none;
}

/* ---------- Why / values / icon cards ---------- */
.why-grid,
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.icon-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.icon-cards.four {
  grid-template-columns: repeat(2, 1fr);
}
.icon-card,
.why-item,
.value-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition:
    transform var(--speed) var(--ease),
    box-shadow var(--speed) var(--ease),
    border-color var(--speed) var(--ease);
}

/* current traces along the card base on hover */
.service-card::before,
.icon-card::before,
.why-item::before,
.value-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(to left, var(--copper), var(--azure));
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.4s var(--ease);
  z-index: 2;
}
.service-card:hover::before,
.icon-card:hover::before,
.why-item:hover::before,
.value-card:hover::before {
  transform: scaleX(1);
}
.icon-card:hover,
.why-item:hover,
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(47, 127, 209, 0.35);
}
.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(47, 127, 209, 0.1);
  color: var(--azure-deep);
  margin-bottom: 18px;
}
.card-icon svg {
  width: 26px;
  height: 26px;
}
.icon-card h3,
.why-item h3,
.value-card h3 {
  color: var(--ink);
  margin-bottom: 8px;
}
.icon-card p,
.why-item p,
.value-card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
}

/* ---------- Steps (true sequence — supervision stages) ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step-item {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--copper);
  color: var(--copper-deep);
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 16px;
  background: rgba(217, 137, 56, 0.07);
}
.step-item h3 {
  color: var(--ink);
}
.step-item p {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
}

/* ---------- Timeline (about) ---------- */
.timeline {
  position: relative;
  padding-inline-start: 30px;
}
.timeline::before {
  content: "";
  position: absolute;
  inset-block: 6px;
  inset-inline-start: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--copper), var(--line));
}
.timeline-item {
  position: relative;
  padding-bottom: 34px;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-item::before {
  content: "";
  position: absolute;
  inset-inline-start: -28px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 0 4px rgba(217, 137, 56, 0.18);
}
.timeline-year {
  font-family: var(--font-tech);
  font-weight: 700;
  color: var(--copper-deep);
  font-size: 1rem;
  letter-spacing: 0.06em;
}
.timeline-item h3 {
  margin: 4px 0 6px;
  color: var(--ink);
}
.timeline-item p {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 22px;
}
.team-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  transition:
    transform var(--speed) var(--ease),
    box-shadow var(--speed) var(--ease);
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.team-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: saturate(0.92);
  transition: filter 0.3s var(--ease);
}
/* powered-up state while the aura crackles */
.team-card.charged {
  border-color: rgba(111, 180, 245, 0.6);
  box-shadow:
    0 0 0 2px rgba(111, 180, 245, 0.45),
    0 0 28px rgba(242, 172, 92, 0.4),
    var(--shadow);
}
.team-card.charged .team-photo {
  filter: saturate(1.1) contrast(1.03);
}
.team-card h3 {
  font-size: 1.05rem;
  margin: 16px 12px 2px;
  color: var(--ink);
}
.team-role {
  font-family: var(--font-tech);
  font-size: 0.8rem;
  color: var(--copper-deep);
  margin-bottom: 18px;
}

/* ---------- Clients ---------- */
.clients-strip {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px clamp(20px, 4vw, 56px);
}
.clients-strip img {
  width: 100%;
  height: auto;
  filter: grayscale(0.35);
  transition: filter 0.35s var(--ease);
}
.clients-strip:hover img {
  filter: grayscale(0);
}

.clients-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.clients-col {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.clients-col h3 {
  color: var(--ink);
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.clients-col h3 svg {
  width: 22px;
  height: 22px;
  color: var(--azure-deep);
  flex: none;
}
.clients-list li {
  position: relative;
  padding: 7px 0 7px;
  padding-inline-start: 20px;
  color: var(--muted);
  font-weight: 500;
}
.clients-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--copper);
  opacity: 0.75;
}
.clients-wall {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(16px, 3vw, 40px);
  box-shadow: var(--shadow);
}
.clients-wall img {
  width: 100%;
  max-width: 929px; /* native width — avoid soft upscaling */
  height: auto;
  margin-inline: auto;
  border-radius: 6px;
}

/* client tag pills */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink-text);
  font-weight: 600;
  border-radius: 999px;
  padding: 10px 22px;
}

/* ---------- Feature band (image + overlay text) ---------- */
.feature-band {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  color: var(--on-dark);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  min-height: 340px;
}
.feature-band .fb-text {
  padding: clamp(28px, 4vw, 56px);
}
.feature-band .fb-text h2 {
  color: #fff;
}
.feature-band .fb-text p {
  color: var(--on-dark-dim);
  max-width: 52ch;
}
.feature-band .fb-img {
  align-self: stretch;
  min-height: 280px;
  position: relative;
}
.feature-band .fb-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-band .fb-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(15, 33, 56, 0.85), transparent 55%);
}
[dir="rtl"] .feature-band .fb-img::after {
  background: linear-gradient(
    to right,
    rgba(15, 33, 56, 0.85),
    transparent 55%
  );
}

/* ---------- Video ---------- */
.video-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.video-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  background: var(--ink);
}
.video-wrapper video {
  width: 100%;
  height: auto;
}

/* ---------- Split generic ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split .split-text p {
  color: var(--muted);
}
.split .split-img img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* highlight card */
.highlight-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: rgba(217, 137, 56, 0.08);
  border: 1px solid rgba(217, 137, 56, 0.35);
  border-inline-start: 4px solid var(--copper);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  margin-top: 28px;
}
.highlight-card svg {
  width: 26px;
  height: 26px;
  color: var(--copper-deep);
  flex: none;
  margin-top: 3px;
}
.highlight-card p {
  margin: 0;
  color: var(--ink-text);
}

/* two-block (quality) */
.two-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.block-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
}
.block-card h3 {
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.block-card h3 svg {
  width: 24px;
  height: 24px;
  color: var(--azure-deep);
  flex: none;
}
.block-card p {
  color: var(--muted);
}
.block-card p:last-child {
  margin-bottom: 0;
}

/* ISO feature */
.iso-feature {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}
.iso-badge {
  width: 84px;
  height: 84px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--copper);
  color: var(--copper-hi);
  background: rgba(217, 137, 56, 0.1);
}
.iso-badge svg {
  width: 40px;
  height: 40px;
}
.iso-feature h2 {
  color: #fff;
}
.iso-feature p {
  color: var(--on-dark-dim);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background:
    radial-gradient(
      700px 320px at 20% 120%,
      rgba(217, 137, 56, 0.16),
      transparent 60%
    ),
    radial-gradient(
      900px 400px at 85% -20%,
      rgba(47, 127, 209, 0.18),
      transparent 60%
    ),
    var(--ink);
  color: var(--on-dark);
  text-align: center;
  padding-block: 88px;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.3;
  mask-image: radial-gradient(90% 130% at 50% 50%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(
    90% 130% at 50% 50%,
    #000 30%,
    transparent 100%
  );
  pointer-events: none;
}
/* dusk skyline silhouette along the band's base */
.cta-band::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 130px;
  background: url("../assets/hero-bg-skyline.png") center bottom / cover
    no-repeat;
  mix-blend-mode: screen;
  opacity: 0.3;
  mask-image: linear-gradient(to top, #000 40%, transparent);
  -webkit-mask-image: linear-gradient(to top, #000 40%, transparent);
  pointer-events: none;
}
.cta-band .container {
  position: relative;
  z-index: 1;
}
.cta-band h2 {
  color: #fff;
}
.cta-band > .container > p {
  color: var(--on-dark-dim);
  margin-bottom: 30px;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
}
.cta-band .phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-tech);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  direction: ltr;
}
.cta-band .phone svg {
  width: 20px;
  height: 20px;
  color: var(--copper-hi);
}
.cta-band .phone:hover {
  color: var(--copper-hi);
}

/* ---------- Contact page ---------- */
.contact-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}
.contact-form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3.4vw, 44px);
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--ink-text);
}
.form-group .req {
  color: var(--copper-deep);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  font: inherit;
  color: var(--ink-text);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition:
    border-color var(--speed) var(--ease),
    box-shadow var(--speed) var(--ease);
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--azure);
  box-shadow: 0 0 0 3px rgba(47, 127, 209, 0.18);
}
.form-note {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-cards {
  display: grid;
  gap: 14px;
}
.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.contact-card .card-icon {
  width: 46px;
  height: 46px;
  margin: 0;
  flex: none;
}
.contact-card strong {
  display: block;
  color: var(--ink);
  margin-bottom: 2px;
}
.contact-card p {
  margin: 0;
  color: var(--muted);
}
.contact-card a {
  font-weight: 600;
}
.contact-card .ltr {
  direction: ltr;
  unicode-bidi: embed;
}

.hours-note {
  background: rgba(47, 127, 209, 0.07);
  border: 1px solid rgba(47, 127, 209, 0.22);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.hours-note h4 {
  color: var(--ink);
  margin-bottom: 6px;
}
.hours-note p {
  margin: 0;
  color: var(--muted);
}

.map-embed {
  width: 100%;
  height: 260px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: block;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--on-dark-dim);
  position: relative;
  overflow: hidden;
}
/* schematic hairline across the footer top */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(
    to left,
    transparent,
    var(--copper) 30%,
    var(--azure) 70%,
    transparent
  );
  opacity: 0.65;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 44px;
  padding-block: 64px 48px;
}
.footer-brand .logo {
  margin-bottom: 18px;
}
.footer-brand p {
  font-size: 0.95rem;
  max-width: 34ch;
}
.footer-col h4 {
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 16px;
}
.footer-col ul li {
  margin-bottom: 9px;
}
.footer-col a {
  color: var(--on-dark-dim);
}
.footer-col a:hover {
  color: var(--copper-hi);
}
.footer-col address p {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.footer-col address svg {
  width: 17px;
  height: 17px;
  color: var(--copper);
  flex: none;
}
.footer-col .ltr {
  direction: ltr;
  unicode-bidi: embed;
}

.credentials-list li {
  position: relative;
  padding-inline-start: 18px;
  margin-bottom: 9px;
  font-size: 0.95rem;
}
.credentials-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--copper);
}

.footer-bar {
  border-top: 1px solid var(--line-dark);
  padding-block: 20px;
  font-size: 0.88rem;
}
.footer-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

/* ---------- WhatsApp FAB ---------- */
.wa-fab {
  position: fixed;
  bottom: 22px;
  inset-inline-end: 22px;
  z-index: 110;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #22b95b;
  color: #fff;
  box-shadow: 0 12px 26px -8px rgba(20, 130, 70, 0.55);
  transition:
    transform var(--speed) var(--ease),
    box-shadow var(--speed) var(--ease);
}
.wa-fab:hover {
  transform: translateY(-3px) scale(1.05);
  color: #fff;
  box-shadow: 0 16px 32px -8px rgba(20, 130, 70, 0.65);
}
.wa-fab svg {
  width: 28px;
  height: 28px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  padding: 44px 20px;
  background: rgba(7, 15, 28, 0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lightbox.open {
  display: flex;
}
.lightbox-img {
  max-width: min(1100px, 94vw);
  max-height: 78vh;
  border-radius: 10px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}
.lightbox-caption {
  color: var(--on-dark);
  font-family: var(--font-tech);
  font-size: 0.95rem;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  inset-inline-end: 24px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
}
.lightbox-close:hover {
  background: rgba(217, 137, 56, 0.3);
}

/* ---------- Electric FX layer (click discharges + ambient arcs) ---------- */
#fx-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 260;
  overflow: hidden;
}
#fx-layer svg {
  position: absolute;
  overflow: visible;
  width: 140px;
  height: 140px;
  margin: -70px 0 0 -70px;
}
.bolt path {
  fill: none;
  stroke: var(--copper-hi);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(242, 172, 92, 0.95));
}
.bolt {
  --peak: 1;
  animation: boltFlash 0.38s linear forwards;
}
.bolt.ambient {
  --peak: 0.5;
  animation-duration: 0.55s;
}
.bolt.ambient path {
  stroke: #9cc4ef;
  stroke-width: 1.6;
  filter: drop-shadow(0 0 5px rgba(122, 162, 214, 0.9));
}
.bolt.blue {
  --peak: 0.95;
  animation-duration: 0.3s;
}
.bolt.blue path {
  stroke: #6fb4f5;
  stroke-width: 1.8;
  filter: drop-shadow(0 0 6px rgba(111, 180, 245, 0.95));
}
@keyframes boltFlash {
  0% {
    opacity: 0;
  }
  10% {
    opacity: var(--peak);
  }
  26% {
    opacity: calc(var(--peak) * 0.3);
  }
  42% {
    opacity: var(--peak);
  }
  100% {
    opacity: 0;
  }
}
.discharge-ring {
  position: absolute;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border: 2px solid var(--copper-hi);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(242, 172, 92, 0.65);
  animation: ringOut 0.45s var(--ease) forwards;
}
@keyframes ringOut {
  0% {
    transform: scale(0.25);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .icon-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
  .projects-mosaic .project-card:nth-child(1) {
    grid-column: span 2;
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-split,
  .split,
  .video-split,
  .contact-split {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .about-split-img {
    order: -1;
    max-width: 480px;
  }
  .hero-page .hero-deco {
    opacity: 0.3;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-panel {
    max-width: 560px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 66px;
  }
  body {
    font-size: 1rem;
  }
  .section {
    padding-block: 64px;
  }
  .logo {
    gap: 9px;
  }
  .logo-mark {
    padding: 6px 8px;
  }
  .logo-mark img {
    height: 20px;
  }
  .logo-text strong {
    font-size: 1.08rem;
  }
  .logo-text small {
    font-size: 0.62rem;
  }
  .hero-panel {
    display: none;
  }
  .hero.hero-home {
    min-height: 0;
  }

  .nav-toggle {
    display: inline-flex;
  }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    inset-inline: 0;
    bottom: 0;
    background: var(--ink);
    padding: 18px 24px 40px;
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.25s var(--ease),
      transform 0.25s var(--ease),
      visibility 0.25s;
  }
  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .main-nav a,
  .has-dropdown > button {
    width: 100%;
    padding: 14px 12px;
    font-size: 1.1rem;
    justify-content: flex-start;
  }
  .has-dropdown > button {
    justify-content: space-between;
  }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: hidden;
    transform: none;
    box-shadow: none;
    border: 0;
    border-inline-start: 2px solid var(--line-dark);
    border-radius: 0;
    margin-inline-start: 14px;
    padding: 0 0 0 4px;
    display: none;
  }
  .has-dropdown[data-open="true"] .dropdown {
    display: block;
    visibility: visible;
  }
  .has-dropdown:focus-within .dropdown {
    visibility: visible;
  }
  .main-nav .nav-cta {
    margin: 14px 0 0;
    justify-content: center;
  }

  .stats-bus {
    grid-template-columns: repeat(2, 1fr);
    gap: 34px 14px;
  }
  .stats-bus::before {
    display: none;
  }
  .stat-item {
    padding-top: 18px;
  }
  .stat-item::before {
    top: 0;
  }
  .stat-item::after {
    display: none;
  }

  .why-grid,
  .values-grid,
  .icon-cards,
  .steps-grid,
  .services-grid,
  .clients-cols,
  .two-blocks {
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .projects-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 160px;
    gap: 12px;
  }
  .feature-band {
    grid-template-columns: 1fr;
  }
  .feature-band .fb-img {
    min-height: 220px;
    order: -1;
  }
  .feature-band .fb-img::after {
    background: linear-gradient(
      to top,
      rgba(15, 33, 56, 0.8),
      transparent 70%
    ) !important;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-block: 48px 36px;
  }
  .hero-home .hero-content {
    padding-block: 56px 96px;
  }
  .hero-cred {
    gap: 8px 16px;
  }
  .hero-page .hero-content {
    padding-block: 60px 52px;
  }
  .hero-page .hero-deco {
    display: none;
  }
  .wa-fab {
    width: 52px;
    height: 52px;
    bottom: 16px;
    inset-inline-end: 16px;
  }
}

@media (max-width: 480px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .hero-ctas .btn {
    flex: 1 1 100%;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .trace {
    stroke-dashoffset: 0;
    animation: none;
  }
  .sym,
  .node {
    opacity: 1;
    animation: none;
  }
  .hero-home .hero-content h1,
  .hero .subtitle,
  .hero-ctas,
  .hero-cred,
  .scroll-indicator {
    animation: none;
    opacity: 1;
  }
  .spark {
    display: none;
  } /* SMIL ignores media queries — hide instead */
  #fx-layer {
    display: none;
  }
  .reveal .wire {
    transform: scaleX(1);
  }
  .reveal .wire::before {
    opacity: 1;
  }
  .stats-bus::before {
    transform: scaleX(1);
  }
  .hero-glow {
    display: none;
  }
  .hero-panel {
    animation: none;
  }
}
