/* ==========================================================================
   REKON · Konstruktion / Technologie
   Brand colors and fonts live in :root. Change them there and the whole
   site follows.
   ========================================================================== */

:root {
  /* Brand (v5 logo) */
  --blue: #2d7dd2;
  --blue-hi: #4a9bf0;      /* lighter blue for small text on dark */
  --charcoal: #1f2933;
  --slate: #4a5764;
  --steel: #c8cdd2;

  /* Surfaces & text */
  --bg: #0b0f14;
  --bg-2: #0f151c;
  --surface: #151d26;
  --line: rgba(200, 205, 210, 0.12);
  --line-strong: rgba(200, 205, 210, 0.24);
  --text: #f1f3f5;
  --muted: #9aa5b1;
  --ok: #3ddc84;
  --rec: #ff4d4d;

  --display: "Saira Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.accent { color: var(--blue-hi); }
.nowrap { white-space: nowrap; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: none; }

/* Fine concrete grain over everything */
.grain {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Shared type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue-hi);
}
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--blue); }

.section__title {
  margin-top: 1.1rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 5.25rem);
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

.section { position: relative; padding-block: clamp(5rem, 11vw, 9rem); }
.section__head { margin-bottom: clamp(2.75rem, 5vw, 4.5rem); max-width: 56rem; }
.section__head--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: end;
  gap: 1.5rem 4rem;
}
.section__lead { margin-top: 1.25rem; color: var(--muted); font-size: 1.08rem; max-width: 34rem; }
.section__head--split .section__lead { margin-top: 0; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem 1.55rem;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background-color 0.3s, border-color 0.3s;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.3) 50%, transparent 65%);
  transform: translateX(-100%);
  transition: transform 0.8s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { transform: translateX(100%); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: #3a8ae0; box-shadow: 0 14px 34px -12px rgba(45, 125, 210, 0.85); }
.btn--ghost { border-color: var(--line-strong); background: rgba(11, 15, 20, 0.4); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s;
}
.nav.is-scrolled {
  background: rgba(11, 15, 20, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner { height: var(--nav-h); display: flex; align-items: center; gap: 2.25rem; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; margin-right: auto; color: var(--text); }
.brand__mark { width: 31px; height: 42px; }
.brand__word {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: 0.04em;
  padding-bottom: 4px;
  border-bottom: 3px solid var(--blue);
}

.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  position: relative;
  padding: 0.35rem 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--blue-hi);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav__status, .menu__foot {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  white-space: nowrap;
}
.nav__status { padding: 0.55rem 0.9rem; border: 1px solid var(--line-strong); }
.nav__status i, .menu__foot i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  animation: ping 2.2s infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.55); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); }
}

.progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--blue-hi);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.nav__toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: rgba(11, 15, 20, 0.4);
  cursor: pointer;
}
.nav__toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 2px;
  margin-left: -10px;
  background: var(--text);
  transition: transform 0.45s var(--ease), width 0.45s var(--ease);
}
.nav__toggle span:first-child { transform: translateY(-5px); }
.nav__toggle span:last-child { transform: translateY(3px); width: 14px; }
.menu-open .nav__toggle span:first-child { transform: translateY(-1px) rotate(45deg); }
.menu-open .nav__toggle span:last-child { transform: translateY(-1px) rotate(-45deg); width: 20px; }

/* Mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 2.25rem;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
}
.menu-open { overflow: hidden; }
.menu-open .menu { opacity: 1; visibility: visible; transition: opacity 0.4s var(--ease); }
.menu__links a {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 11vw, 4rem);
  line-height: 1;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(24px);
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease), color 0.3s;
}
.menu-open .menu__links a { opacity: 1; transform: none; }
.menu-open .menu__links a:nth-child(2) { transition-delay: 0.05s; }
.menu-open .menu__links a:nth-child(3) { transition-delay: 0.1s; }
.menu-open .menu__links a:nth-child(4) { transition-delay: 0.15s; }
.menu__links a:hover, .menu__links a.is-active { color: var(--blue-hi); }
.menu__foot { white-space: normal; font-size: 0.8rem; line-height: 1.4; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + clamp(1rem, 4vh, 3rem));
  overflow: hidden;
  background: radial-gradient(90% 70% at 75% 10%, #15202c 0%, rgba(11, 15, 20, 0) 60%), var(--bg);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__glow {
  position: absolute;
  right: -12%;
  top: 8%;
  width: 70vmax;
  height: 70vmax;
  max-width: 1100px;
  max-height: 1100px;
  background: radial-gradient(closest-side, rgba(45, 125, 210, 0.22), rgba(45, 125, 210, 0));
}

/* Receding blueprint floor with glowing tie points */
.hero__floor {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 300%;
  height: 75%;
  overflow: hidden;
  transform: translateX(-50%) perspective(900px) rotateX(62deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 15%, transparent 85%);
  mask-image: linear-gradient(to top, #000 15%, transparent 85%);
}
.hero__floor-grid {
  position: absolute;
  inset: -160px 0 0 0;
  background-image:
    radial-gradient(circle, rgba(74, 155, 240, 0.95) 0 3px, rgba(74, 155, 240, 0) 4px),
    linear-gradient(rgba(200, 205, 210, 0.16) 2px, transparent 2px),
    linear-gradient(90deg, rgba(200, 205, 210, 0.16) 2px, transparent 2px);
  background-size: 160px 160px, 80px 80px, 80px 80px;
  background-position: -79px -79px, 0 0, 0 0;
  animation: floor 8s linear infinite;
}
@keyframes floor { to { transform: translateY(160px); } }

.hero__inner {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  align-items: center;
  gap: 3rem;
  padding-block: clamp(1.5rem, 5vh, 3.5rem);
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line-strong);
  background: rgba(11, 15, 20, 0.55);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--steel);
}
.hero__tag i {
  width: 8px;
  height: 8px;
  background: var(--blue-hi);
  box-shadow: 0 0 10px 1px rgba(74, 155, 240, 0.8);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }

.hero__title {
  margin: 1.4rem 0 1.6rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.5rem, 10vw, 9rem);
  line-height: 0.86;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
.hero__title .line { display: block; clip-path: inset(-25% -4% 0 -4%); }
.hero__title .line > span { display: block; }

/* "Wired smart." fills in with a left-to-right scan */
.scanfill {
  color: transparent;
  -webkit-text-stroke: 2px var(--blue-hi);
  background: linear-gradient(90deg, var(--blue-hi) 50%, transparent 50%) 0 0 / 200% 100% no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
}

.hero__lead { max-width: 36rem; font-size: clamp(1.05rem, 1.25vw, 1.2rem); color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.1rem; }

/* Camera viewfinder around the mark */
.hero__visual { justify-self: end; width: min(100%, 390px); }
.hud {
  position: relative;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: radial-gradient(closest-side, rgba(45, 125, 210, 0.16), transparent), rgba(11, 15, 20, 0.45);
}
.hud::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
  mask-image: radial-gradient(closest-side, #000, transparent);
}
.hud__c { position: absolute; width: 22px; height: 22px; border: 2px solid var(--blue-hi); }
.hud__c--tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.hud__c--tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.hud__c--bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.hud__c--br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.hud__bar {
  position: absolute;
  left: 44px;
  right: 44px;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hud__bar--top { top: 18px; }
.hud__bar--bottom { bottom: 18px; }
.hud__rec, .rec { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--text); }
.hud__rec i, .rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hud__scan, .screen__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 30%;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(74, 155, 240, 0.1) 85%, rgba(74, 155, 240, 0.55) 99%, transparent);
  animation: scan 4.5s linear infinite;
}
@keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(340%); } }

/* The mark building itself */
.build { position: relative; width: 58%; height: auto; overflow: visible; filter: drop-shadow(0 0 24px rgba(45, 125, 210, 0.4)); }
.build rect, .build polygon, .build path { transform-box: fill-box; }
.build__bars rect, .build__ties rect { fill: var(--blue); }
.build__bars rect { transform-origin: 50% 100%; }
.build__ties rect { transform-origin: 0 50%; }
.build__arcs path { fill: none; stroke: var(--blue-hi); stroke-width: 3.5; stroke-linecap: round; }
.build__r > * { fill: var(--text); }

.js .build__bars rect { transform: scaleY(0); }
.js .build__ties rect { transform: scaleX(0); }
.js .build__arcs path { opacity: 0; }
.js .build__r > * { opacity: 0; transform: translateY(-24px); }

.is-loaded .build__bars rect { transform: none; transition: transform 0.9s var(--ease) calc(0.35s + var(--i) * 0.12s); }
.is-loaded .build__ties rect { transform: none; transition: transform 0.45s var(--ease) calc(0.95s + var(--i) * 0.07s); }
.is-loaded .build__r > * {
  opacity: 1;
  transform: none;
  transition: opacity 0.35s linear calc(1.45s + var(--i) * 0.12s), transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) calc(1.45s + var(--i) * 0.12s);
}
.is-loaded .build__arcs path { animation: signal 2.6s ease-in-out calc(2.1s + var(--i) * 0.22s) infinite both; }
@keyframes signal {
  0%, 100% { opacity: 0.18; }
  25%, 55% { opacity: 1; }
}

/* Hero title + intro motion */
.js .hero__title .line > span { transform: translateY(102%); transition: transform 1.1s var(--ease); }
.js .hero__title .line > .scanfill {
  background-position: 100% 0;
  transition: transform 1.1s var(--ease) 0.12s, background-position 1.6s var(--ease-io) 1.2s;
}
.is-loaded .hero__title .line > span { transform: none; }
.is-loaded .hero__title .line > .scanfill { background-position: 0 0; }

.js .hero-in { opacity: 0; }
.is-loaded .hero-in { animation: rise 0.9s var(--ease) var(--hd, 0s) both; }

/* Service strip along the bottom of the hero */
.hero__strip {
  border-top: 1px solid var(--line);
  background: rgba(11, 15, 20, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hero__trust { display: flex; flex-wrap: wrap; gap: 0.5rem clamp(1.5rem, 4vw, 3.5rem); padding-block: 1.15rem; }
.hero__trust li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}
.hero__trust li::before { content: ""; width: 7px; height: 7px; background: var(--blue-hi); }

/* ---------- Division page hero ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: min(88vh, 820px);
  min-height: min(88svh, 820px);
  padding-top: var(--nav-h);
  overflow: hidden;
  background: radial-gradient(90% 70% at 75% 10%, #15202c 0%, rgba(11, 15, 20, 0) 60%), var(--bg);
}
.page-hero__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-block: clamp(2.5rem, 8vh, 5rem);
}

/* ---------- Crossing tape ---------- */
.tape { position: relative; padding: 3.75rem 0; overflow: hidden; }
.tape__band { position: relative; width: 110%; margin-left: -5%; overflow: hidden; padding: 1rem 0; }
.tape__band--back {
  background: var(--surface);
  color: var(--steel);
  border-block: 1px solid var(--line);
  transform: rotate(2deg);
}
.tape__band--front {
  z-index: 1;
  margin-top: -2.9rem;
  background: var(--blue);
  color: #fff;
  transform: rotate(-2deg);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.8);
}
.tape__track { display: flex; width: max-content; animation: tape 42s linear infinite; }
.tape__band--back .tape__track { animation-duration: 55s; animation-direction: reverse; }
.tape__group {
  display: flex;
  flex: none;
  align-items: center;
  gap: 2rem;
  padding-right: 2rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.4vw, 2.9rem);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tape__group b { flex: none; width: 0.36em; height: 0.36em; background: currentColor; }
.tape__band--back b { background: var(--blue); }
.tape__group .o { color: transparent; -webkit-text-stroke: 1px var(--steel); }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
  transition: background-color 0.5s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(45, 125, 210, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
}
.card:hover { background: var(--bg-2); }
.card:hover::before { transform: scaleX(1); }
.card:hover::after { opacity: 1; }
.card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2.75rem; }
.card__num { font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: 0.2em; color: var(--muted); }
.card__icon { width: 56px; height: 56px; color: var(--steel); transition: transform 0.6s var(--ease), color 0.4s; }
.card:hover .card__icon { transform: translateY(-4px); color: var(--text); }
.i-accent { stroke: var(--blue-hi); }
.i-fill { fill: var(--blue-hi); stroke: none; }
.card__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 2.8vw, 2.6rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.card__desc { margin-top: 0.9rem; color: var(--muted); font-size: 1rem; }
.card__list { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.card__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--steel);
}
.card__list li::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--blue-hi); }
.card__ghost {
  position: absolute;
  right: -0.04em;
  bottom: -0.22em;
  z-index: -1;
  font-family: var(--display);
  font-weight: 800;
  font-size: 12rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(200, 205, 210, 0.07);
  pointer-events: none;
  transition: -webkit-text-stroke-color 0.5s, transform 0.8s var(--ease);
}
.card:hover .card__ghost { -webkit-text-stroke-color: rgba(74, 155, 240, 0.35); transform: translateY(-10px); }

/* Home: the two division cards */
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.division .card__title { font-size: clamp(2.6rem, 4.4vw, 4rem); }
.division__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 2rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-hi);
}
.division .card__list { margin-bottom: 0; }
.division__cta svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.division:hover .division__cta { color: var(--text); }
.division:hover .division__cta svg { transform: translateX(5px); }

/* ---------- Technology showcase ---------- */
.tech { background: var(--bg-2); border-block: 1px solid var(--line); }
.tech__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.tech-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  transition: border-color 0.4s, transform 0.5s var(--ease);
}
.tech-card:hover { border-color: rgba(74, 155, 240, 0.5); transform: translateY(-4px); }
.tech-card__body { padding: 1.6rem 1.75rem 1.9rem; }
.tech-card__label {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-hi);
}
.tech-card h3 {
  margin: 0.55rem 0 0.6rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 0.95;
  text-transform: uppercase;
}
.tech-card__body p:last-child { color: var(--muted); font-size: 1rem; }

.screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  color: rgba(200, 205, 210, 0.5);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(120% 90% at 50% 0%, #16212d, #0b0f14 70%);
}
.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(200, 205, 210, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(200, 205, 210, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}
.screen svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.screen__hud {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}
.screen__scan { animation-duration: 3.2s; }

/* Camera: a person walks through frame, tracked by a detection box */
.walker { animation: walk 9s linear infinite; }
@keyframes walk {
  from { transform: translate(120px, 172px); }
  to { transform: translate(350px, 172px); }
}
.walker__box { fill: rgba(74, 155, 240, 0.08); stroke: var(--blue-hi); stroke-width: 1.5; }
.walker__tag { fill: var(--blue-hi); font-family: var(--display); font-weight: 700; font-size: 9px; letter-spacing: 1px; }
.walker__leg { transform-box: fill-box; transform-origin: 50% 0; animation: stride 0.5s ease-in-out infinite alternate; }
.walker__leg--b { animation-direction: alternate-reverse; }
@keyframes stride { from { transform: rotate(14deg); } to { transform: rotate(-14deg); } }

/* LPR: scan box locks onto the plate, then the gate opens */
.taillight { fill: #ff4d4d; filter: drop-shadow(0 0 6px rgba(255, 77, 77, 0.8)); }
.plate-text { fill: #1f2933; font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: 1px; }
.lock {
  fill: none;
  stroke: var(--blue-hi);
  stroke-width: 2.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: lock 6s var(--ease) infinite;
}
@keyframes lock {
  0% { opacity: 0; transform: scale(1.7); }
  14% { opacity: 1; transform: scale(1); }
  18%, 26% { opacity: 0.25; }
  22%, 30%, 86% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}
.gate-arm { transform-box: view-box; transform-origin: 36px 126px; animation: gate 6s var(--ease) infinite; }
@keyframes gate {
  0%, 38% { transform: rotate(0deg); }
  52%, 84% { transform: rotate(-72deg); }
  100% { transform: rotate(0deg); }
}
.readout {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.readout b { color: var(--text); font-weight: 700; }
.readout .ok { color: var(--ok); }
.readout span { animation: readout 6s infinite; }
.readout span:nth-child(2) { animation-delay: 0.25s; }
.readout span:nth-child(3) { animation-delay: 0.5s; }
@keyframes readout {
  0%, 22% { opacity: 0; }
  26%, 88% { opacity: 1; }
  100% { opacity: 0; }
}

/* Access control: fob taps the reader, light goes green */
.fob { animation: tap 5s var(--ease) infinite; }
@keyframes tap {
  0%, 10% { transform: translateX(0); }
  30%, 62% { transform: translateX(64px); }
  82%, 100% { transform: translateX(0); }
}
.reader-led { fill: var(--blue-hi); animation: led 5s steps(1) infinite; }
@keyframes led {
  0% { fill: #4a9bf0; }
  31% { fill: #3ddc84; }
  68% { fill: #4a9bf0; }
}
.granted { fill: var(--ok); font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: 2px; opacity: 0; animation: granted 5s ease infinite; }
@keyframes granted {
  0%, 30% { opacity: 0; }
  34%, 64% { opacity: 1; }
  70%, 100% { opacity: 0; }
}

/* Pre-construction wiring: blueprint with live wire runs */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}
.feature .section__lead { margin-top: 1.4rem; }
.feature .card__list { margin-top: 2rem; }
.feature__screen { border: 1px solid var(--line); }
.run {
  fill: none;
  stroke: var(--blue-hi);
  stroke-width: 1.8;
  stroke-dasharray: 6 5;
  animation: run 1.1s linear infinite;
}
@keyframes run { to { stroke-dashoffset: -22; } }
.drop { fill: var(--bg); stroke: var(--blue-hi); stroke-width: 2; animation: drop 2.4s ease-in-out infinite; }
@keyframes drop { 50% { fill: var(--blue-hi); } }

/* Cross-link between the two divisions */
.section--tight { padding-block: clamp(3rem, 7vw, 5.5rem); }
.crosslink {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem 3rem;
  padding: clamp(2rem, 4vw, 3.25rem);
  border: 1px solid var(--line-strong);
  background: linear-gradient(120deg, rgba(45, 125, 210, 0.12), transparent 60%), var(--bg-2);
  transition: border-color 0.4s;
}
.crosslink:hover { border-color: rgba(74, 155, 240, 0.6); }
.crosslink > div { max-width: 44rem; }
.crosslink__title {
  margin-top: 0.9rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.95;
  text-transform: uppercase;
  text-wrap: balance;
}
.crosslink__text { margin-top: 1rem; color: var(--muted); }
.crosslink:hover .btn--blue { background: #3a8ae0; }
.crosslink:hover .btn svg { transform: translateX(4px); }

/* ---------- Industries ---------- */
.industries {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.industry {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.75rem 1.6rem;
  background: var(--bg);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.45rem, 2.1vw, 1.85rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: background-color 0.4s, color 0.4s;
}
.industry span { flex: none; font-size: 0.9rem; letter-spacing: 0.16em; color: var(--blue-hi); }
.industry:hover { background: var(--surface); }

/* ---------- Service area ---------- */
.area { background: var(--bg-2); border-block: 1px solid var(--line); overflow: hidden; }
.area__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(3rem, 6vw, 6rem);
}
.area__lead { margin-top: 1.4rem; color: var(--muted); font-size: 1.08rem; max-width: 32rem; }
.counties { margin-top: 2.25rem; border-top: 1px solid var(--line); }
.counties li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.counties li span { flex: none; min-width: 1.9rem; font-size: 0.9rem; letter-spacing: 0.16em; color: var(--muted); }
.counties em {
  margin-left: auto;
  padding: 0.35rem 0.6rem;
  background: var(--blue);
  color: #fff;
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
}
.counties small {
  margin-left: auto;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.radar {
  position: relative;
  justify-self: center;
  width: min(100%, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(74, 155, 240, 0.35);
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(rgba(74, 155, 240, 0.2), rgba(74, 155, 240, 0.2)) center / 1px 100% no-repeat,
    linear-gradient(rgba(74, 155, 240, 0.2), rgba(74, 155, 240, 0.2)) center / 100% 1px no-repeat,
    repeating-radial-gradient(circle, transparent 0 calc(12.5% - 1px), rgba(74, 155, 240, 0.16) calc(12.5% - 1px) 12.5%),
    radial-gradient(circle, rgba(45, 125, 210, 0.14), transparent 70%);
}
.radar__sweep {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg 290deg, rgba(74, 155, 240, 0) 290deg, rgba(74, 155, 240, 0.4) 360deg);
  animation: sweep 5s linear infinite;
}
.radar__sweep::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 50%;
  margin-left: -1px;
  background: linear-gradient(to top, rgba(74, 155, 240, 0.95), rgba(74, 155, 240, 0.1));
}
@keyframes sweep { to { transform: rotate(360deg); } }
.blip {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  white-space: nowrap;
}
.blip::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue-hi);
  animation: blip 2.4s var(--dl, 0s) infinite;
}
@keyframes blip {
  0% { box-shadow: 0 0 0 0 rgba(74, 155, 240, 0.6); }
  70%, 100% { box-shadow: 0 0 0 14px rgba(74, 155, 240, 0); }
}
.blip--hq { transform: translate(-50%, -7px); color: var(--text); }
.blip--hq::before {
  width: 14px;
  height: 14px;
  background: #fff;
  box-shadow: 0 0 0 4px var(--blue), 0 0 26px 6px rgba(74, 155, 240, 0.7);
  animation: none;
}
.radar__coords {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- Process ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem;
  padding-top: 3rem;
}
.steps::before, .steps::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
}
.steps::before { background: repeating-linear-gradient(90deg, var(--line-strong) 0 10px, transparent 10px 16px); }
.steps::after {
  background: var(--blue);
  box-shadow: 0 0 18px rgba(45, 125, 210, 0.7);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 2s var(--ease-io) 0.2s;
}
.steps.is-in::after { transform: scaleX(1); }
.step { position: relative; }
.step::before {
  content: "";
  position: absolute;
  top: calc(-3rem - 8px);
  left: 0;
  width: 20px;
  height: 20px;
  background: var(--bg);
  border: 3px solid var(--blue);
  transform: rotate(45deg);
  transition: background-color 0.4s calc(0.3s + var(--n) * 0.45s);
}
.steps.is-in .step::before { background: var(--blue-hi); }
.step__num {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 4.5rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--steel);
}
.step h3 {
  margin-bottom: 0.6rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.step p { color: var(--muted); font-size: 1rem; }

/* ---------- Closing band ---------- */
.band { position: relative; isolation: isolate; overflow: hidden; background: var(--blue); color: #fff; }
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 40px 40px;
}
.band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.band__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.86;
  text-transform: uppercase;
}
.band__side { max-width: 26rem; font-size: 1.1rem; color: rgba(255, 255, 255, 0.88); }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; padding-top: clamp(4rem, 8vw, 6rem); border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2.5rem; }
.footer__logo { width: 220px; height: auto; color: var(--text); }
.footer__logo .wm { font-family: var(--display); font-weight: 800; }
.footer__brand p { margin-top: 1rem; max-width: 22rem; color: var(--muted); }
.footer__col h3 {
  margin-bottom: 0.9rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-hi);
}
.footer__col a, .footer__col span { display: block; padding: 0.3rem 0; color: var(--steel); }
.footer__col a { transition: color 0.3s; }
.footer__col a:hover { color: var(--text); }

.footer__word {
  margin-top: clamp(3rem, 7vw, 6rem);
  font-family: var(--display);
  font-weight: 800;
  font-size: min(calc((100vw - 2 * var(--gutter)) / 2.56), 31.5rem);
  line-height: 0.78;
  letter-spacing: 0.01em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(200, 205, 210, 0.16);
  background: linear-gradient(to top, var(--charcoal) 50%, transparent 50%) 0 100% / 100% 200% no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
}
.footer__bar { height: clamp(6px, 1.1vw, 14px); background: var(--blue); }
.js .footer__word { background-position: 0 0; transition: background-position 2s var(--ease-io); }
.js .footer__word.is-in { background-position: 0 100%; }
.js .footer__bar { transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) 0.9s; }
.js .footer__word.is-in + .footer__bar { transform: none; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding: 1.5rem 0 2rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Scroll reveal ---------- */
@keyframes rise {
  from { opacity: 0; translate: 0 26px; }
  to { opacity: 1; translate: none; }
}
.js .reveal { opacity: 0; }
.js .reveal.is-in { animation: rise 0.9s var(--ease) var(--d, 0ms) both; }

/* Failsafe: show everything if the script didn't run */
.show-all .reveal, .show-all .hero-in { opacity: 1; animation: none; }
.show-all .steps::after, .show-all .footer__bar { transform: none; }
.show-all .footer__word { background-position: 0 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__links { gap: 1.4rem; }
  .nav__status { display: none; }
}

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__visual { justify-self: start; width: min(100%, 420px); }
  .hud { aspect-ratio: 4 / 3; }
  .build { width: 34%; }
  .section__head--split { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech__grid { grid-template-columns: 1fr; max-width: 560px; }
  .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .area__grid, .feature { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }

  /* Process becomes a vertical timeline */
  .steps { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 0; padding-left: 3rem; }
  .steps::before, .steps::after { width: 4px; height: 100%; }
  .steps::before { background: repeating-linear-gradient(180deg, var(--line-strong) 0 10px, transparent 10px 16px); }
  .steps::after { transform: scaleY(0); transform-origin: top; }
  .steps.is-in::after { transform: scaleY(1); }
  .step::before { top: 1.1rem; left: calc(-3rem - 8px); }
}

@media (max-width: 920px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
}

@media (max-width: 640px) {
  .cards, .cards--2, .industries, .footer__grid { grid-template-columns: 1fr; }
  .crosslink .btn { white-space: normal; }
  .hero__trust { display: grid; grid-template-columns: 1fr 1fr; }
  .hero__trust li { font-size: 0.85rem; letter-spacing: 0.1em; }
  .scanfill { -webkit-text-stroke-width: 1.5px; }
  .hud__bar { left: 40px; right: 40px; font-size: 0.72rem; letter-spacing: 0.1em; }
  .tape { padding: 2.75rem 0; }
  .step__num { font-size: 3.5rem; }
  .counties small { display: none; }
  .blip { font-size: 0.7rem; letter-spacing: 0.1em; }
}

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