/* ==========================================================================
   Morebyte IT — shared stylesheet
   Technical / industrial, dark. Mobile-first. Square corners, no gradients.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #0A0C0F;
  --grid: #141920;
  --panel: #11151A;
  --panel-2: #161B21;
  --border: #2A323C;
  --text: #E8EDF2;
  --muted: #A3AFBD;
  --red: #E5262B;          /* buttons, large prices, bars, highlights */
  --red-hover: #C41C21;
  --red-text: #FF4D52;     /* red for SMALL text: 5.9:1 on --bg (the brand red is 4.3:1) */

  --font-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Barlow", Arial, Helvetica, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: 16px;
  --max: 1200px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --header-h: 72px; } }

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  /* 48px technical grid. Lines only — not a colour gradient. */
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: .005em;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

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

::selection { background: var(--red); color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .8125rem;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Intro splash ----------
   Hidden by default. A tiny inline script in <head> adds .has-splash to <html>
   only on the first page load of a visit (sessionStorage) and only when the
   visitor has not asked for reduced motion. The fade is pure CSS, so the page
   is revealed even if the rest of the JavaScript fails; with JS off the splash
   never appears at all. */
.splash { display: none; }

.has-splash .splash {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  background: var(--bg);
  animation: splash-out .5s ease 1s forwards;
}

.splash img { width: min(440px, 78vw); height: auto; }

@keyframes splash-out {
  to { opacity: 0; visibility: hidden; }
}

/* ---------- Labels (mono) ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.label::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--red);
  flex: none;
}
.label--plain::before { display: none; }
.label .accent { color: var(--red-text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-hover); }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--text); }

.btn--sm { min-height: 40px; padding: 0 14px; font-size: .8125rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.arrow { font-family: var(--font-mono); transition: transform .2s var(--ease); }
a:hover .arrow { transform: translateX(4px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 15, .94);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
}

.brand { display: block; flex: none; margin-right: auto; padding: 6px 0; }
.brand img { width: auto; height: 26px; max-width: none; }
@media (max-width: 359.98px) {
  .brand img { height: 21px; }
  .header-inner { gap: 8px; }
  .header-call { padding: 0 10px; }
}
@media (min-width: 1024px) { .brand img { height: 30px; } }

.header-call .call-full { display: none; }
@media (min-width: 480px) {
  .header-call .call-short { display: none; }
  .header-call .call-full { display: inline; }
}

/* Hamburger */
.nav-toggle {
  flex: none;
  display: none;
  position: relative;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text);
  cursor: pointer;
}
.js .nav-toggle { display: inline-block; }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 11px;
  width: 20px; height: 2px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle-bars { top: 20px; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Nav — mobile first */
.site-nav { font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; }

.nav-list > li > a,
.nav-sub-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 0 var(--gutter);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-decoration: none;
  cursor: pointer;
}
.nav-list a[aria-current="page"] { color: var(--red-text); }
.nav-list a:focus-visible, .nav-sub-toggle:focus-visible { outline-offset: -3px; }

.chev {
  width: 8px; height: 8px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s var(--ease);
}
.nav-sub-toggle[aria-expanded="true"] .chev { transform: translateY(2px) rotate(-135deg); }

.nav-sub { background: var(--panel); border-bottom: 1px solid var(--border); }
.nav-sub a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 var(--gutter) 0 calc(var(--gutter) + 8px);
  color: var(--muted);
  text-decoration: none;
  text-transform: none;
  letter-spacing: .02em;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
}
.nav-sub a:hover, .nav-sub a[aria-current="page"] { color: var(--text); }
.sub-num { font-family: var(--font-mono); font-size: .75rem; color: var(--red-text); }

/* Mobile behaviour (JS on): nav is a drop-down panel under the header */
@media (max-width: 959.98px) {
  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .js .nav-open .site-nav { display: block; }
  .js .nav-sub { display: none; }
  .js .nav-sub-toggle[aria-expanded="true"] + .nav-sub { display: block; }

  /* No-JS fallback: nav sits below the logo as a plain list */
  html:not(.js) .header-inner { flex-wrap: wrap; }
  html:not(.js) .site-nav { order: 3; width: calc(100% + 2 * var(--gutter)); margin-inline: calc(-1 * var(--gutter)); }
}

/* Desktop */
@media (min-width: 960px) {
  .js .nav-toggle { display: none; }
  .brand { margin-right: 0; }
  .site-nav { margin-left: auto; }
  .nav-list { display: flex; align-items: center; gap: 4px; }
  .nav-list > li { position: relative; }
  .nav-list > li > a,
  .nav-sub-toggle {
    width: auto;
    min-height: var(--header-h);
    padding: 0 12px;
    border-bottom: 0;
    color: var(--muted);
    box-shadow: inset 0 -2px 0 transparent;
    transition: color .2s var(--ease), box-shadow .2s var(--ease);
  }
  .nav-list > li > a:hover,
  .nav-sub-toggle:hover { color: var(--text); }
  .nav-list > li > a[aria-current="page"],
  .has-sub.is-current > .nav-sub-toggle { color: var(--text); box-shadow: inset 0 -2px 0 var(--red); }

  /* Dropdown: fades and slides down; items follow one after another.
     Closing waits a moment so the menu doesn't vanish if the mouse slips off. */
  .nav-sub {
    position: absolute;
    top: 100%; left: 0;
    min-width: 320px;
    padding: 8px 0;
    border: 1px solid var(--border);
    border-top: 0;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity .18s ease .12s,
      transform .18s ease .12s,
      visibility 0s linear .3s;
  }
  /* Red top rule draws in from the left */
  .nav-sub::before {
    content: "";
    position: absolute; top: 0; left: -1px; right: -1px;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease) .12s;
  }
  .nav-sub li {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .15s ease, transform .15s ease;
  }
  .nav-sub a {
    position: relative;
    padding: 0 20px;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease, padding-left .2s var(--ease);
  }
  .nav-sub a::before {
    content: "";
    position: absolute; left: 0; top: 10px; bottom: 10px;
    width: 2px;
    background: var(--red);
    transform: scaleY(0);
    transition: transform .2s var(--ease);
  }
  .nav-sub a:hover, .nav-sub a:focus-visible { background: var(--panel-2); padding-left: 26px; }
  .nav-sub a:hover::before, .nav-sub a:focus-visible::before { transform: scaleY(1); }

  /* Open state (click / keyboard, no-JS focus, or hover) */
  .nav-sub-toggle[aria-expanded="true"] + .nav-sub,
  html:not(.js) .has-sub:focus-within .nav-sub {
    opacity: 1; visibility: visible; pointer-events: auto; transform: none;
    transition: opacity .22s ease, transform .28s var(--ease), visibility 0s;
  }
  .nav-sub-toggle[aria-expanded="true"] + .nav-sub::before,
  html:not(.js) .has-sub:focus-within .nav-sub::before { transform: scaleX(1); transition-delay: 0s; }
  .nav-sub-toggle[aria-expanded="true"] + .nav-sub li,
  html:not(.js) .has-sub:focus-within .nav-sub li {
    opacity: 1; transform: none;
    transition: opacity .25s ease, transform .3s var(--ease);
  }
  @media (hover: hover) {
    .has-sub:hover .nav-sub {
      opacity: 1; visibility: visible; pointer-events: auto; transform: none;
      transition: opacity .22s ease, transform .28s var(--ease), visibility 0s;
    }
    .has-sub:hover .nav-sub::before { transform: scaleX(1); transition-delay: 0s; }
    .has-sub:hover .nav-sub li {
      opacity: 1; transform: none;
      transition: opacity .25s ease, transform .3s var(--ease);
    }
    .has-sub:hover .chev { transform: translateY(2px) rotate(-135deg); }
  }
  /* Stagger the items as the menu opens */
  .has-sub .nav-sub li:nth-child(1) { transition-delay: .04s; }
  .has-sub .nav-sub li:nth-child(2) { transition-delay: .08s; }
  .has-sub .nav-sub li:nth-child(3) { transition-delay: .12s; }
  .has-sub .nav-sub li:nth-child(4) { transition-delay: .16s; }
  .has-sub .nav-sub li:nth-child(5) { transition-delay: .20s; }
  .header-call { margin-left: 12px; }
}

/* ---------- Sections ---------- */
.section { padding-block: 72px; border-top: 1px solid var(--border); }
@media (min-width: 1024px) { .section { padding-block: 112px; } }

.section-head { display: grid; gap: 16px; margin-bottom: 40px; max-width: 820px; }
@media (min-width: 1024px) { .section-head { margin-bottom: 56px; } }

.h2 { font-size: clamp(2.25rem, 6vw, 4rem); }
.lead { color: var(--muted); font-size: 1.125rem; max-width: 640px; }
@media (min-width: 1024px) { .lead { font-size: 1.25rem; } }

.text-red { color: var(--red); }

/* ---------- Hero ---------- */
.hero { padding-block: 56px 72px; }
@media (min-width: 1024px) { .hero { padding-block: 80px 112px; } }

.hero-grid { display: grid; gap: 48px; align-items: end; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 56px; } }

.hero-copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.hero h1 { font-size: clamp(2.75rem, 8.6vw, 5.25rem); line-height: .92; }
.hero .lead { font-size: 1.1875rem; }
@media (min-width: 1024px) { .hero .lead { font-size: 1.3125rem; } }
.hero .btn-row { margin-top: 8px; }

/* Spec panel in hero */
.spec-panel { background: var(--panel); border: 1px solid var(--border); font-family: var(--font-mono); font-size: .8125rem; }
.spec-panel-head {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  letter-spacing: .1em; text-transform: uppercase; font-size: .75rem;
}
.spec-panel-mark { display: grid; place-items: center; padding: 32px 16px; border-bottom: 1px solid var(--border); }
.spec-panel-mark svg { width: 120px; }
.spec-panel dl { margin: 0; }
.spec-panel dl div {
  display: grid; grid-template-columns: 96px 1fr; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.spec-panel dl div:last-child { border-bottom: 0; }
.spec-panel dt { color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-size: .75rem; padding-top: 1px; }
.spec-panel dd { margin: 0; color: var(--text); font-family: var(--font-body); font-size: 1rem; font-weight: 500; }
@media (max-width: 359.98px) {
  .spec-panel dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
.spec-panel dd a { text-decoration: none; }
.spec-panel dd a:hover { color: var(--red-text); }

/* ---------- Audience cards (Home / Business) ---------- */
.audience { display: grid; gap: 16px; }
@media (min-width: 768px) { .audience { grid-template-columns: 1fr 1fr; gap: 24px; } }

.card {
  position: relative;
  display: flex; flex-direction: column; gap: 16px;
  padding: 28px 24px;
  background: var(--panel);
  border: 1px solid var(--border);
}
@media (min-width: 1024px) { .card { padding: 40px; } }
.card::before {
  content: ""; position: absolute; top: -1px; left: -1px;
  width: 48px; height: 3px; background: var(--red);
}
.card h3 { font-size: clamp(2rem, 5vw, 2.75rem); }
.card p { color: var(--muted); }
.card .btn-row { margin-top: auto; padding-top: 8px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a {
  display: inline-flex; align-items: center; min-height: 32px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em;
  color: var(--text); text-decoration: none; text-transform: uppercase;
  transition: border-color .2s var(--ease);
}
.tag-list a:hover { border-color: var(--red); }

/* ---------- Spec-sheet service rows ---------- */
.spec-sheet { border-top: 1px solid var(--border); }

.spec-sheet-head {
  display: none;
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}

.spec-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-areas:
    "num name"
    ".   desc"
    ".   price";
  column-gap: 12px;
  row-gap: 8px;
  position: relative;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
  transition: background-color .2s var(--ease);
}
.spec-row::before {
  content: ""; position: absolute; left: 0; top: -1px; bottom: -1px;
  width: 3px; background: var(--red);
  transform: scaleY(0); transform-origin: top;
  transition: transform .25s var(--ease);
}
.spec-row:hover, .spec-row:focus-visible { background: var(--panel); }
.spec-row:hover::before, .spec-row:focus-visible::before { transform: scaleY(1); }
.spec-row:focus-visible { outline-offset: -2px; }

.spec-num { grid-area: num; font-family: var(--font-mono); font-size: .875rem; color: var(--red-text); padding-top: 6px; }
.spec-name { grid-area: name; font-size: clamp(1.625rem, 5vw, 2.25rem); line-height: 1; font-weight: 700; }
.spec-desc { grid-area: desc; color: var(--muted); max-width: 560px; }
.spec-price { grid-area: price; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding-top: 4px; }

.price { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.price-from { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.price-value { font-family: var(--font-head); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--red); }
.price-value--sm { font-size: 1.5rem; }
.price-quote {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.375rem; line-height: 1;
  text-transform: uppercase; color: var(--text);
}

@media (min-width: 900px) {
  .spec-sheet-head {
    display: grid;
    grid-template-columns: 72px minmax(0, 1.05fr) minmax(0, 1.35fr) 220px;
    gap: 24px;
    padding: 0 16px 14px;
    border-bottom: 1px solid var(--border);
  }
  .spec-sheet-head span:last-child { text-align: right; }
  .spec-sheet { border-top: 0; }
  .spec-row {
    grid-template-columns: 72px minmax(0, 1.05fr) minmax(0, 1.35fr) 220px;
    grid-template-areas: "num name desc price";
    gap: 24px;
    align-items: center;
    padding: 32px 16px;
  }
  .spec-num { padding-top: 0; }
  .spec-price { flex-direction: column; align-items: flex-end; text-align: right; padding-top: 0; }
}

.spec-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 28px;
}
.spec-foot .label { color: var(--muted); }

/* ---------- Feature grid (Why Morebyte) ---------- */
.feature-grid {
  display: grid;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }

.feature {
  display: grid; align-content: start; gap: 14px;
  padding: 28px 24px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(17, 21, 26, .6);
}
.feature-num { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; color: var(--red-text); }
.feature h3 { font-size: 1.75rem; font-weight: 700; }
.feature p { color: var(--muted); }

/* ---------- Steps (How it works) ---------- */
.steps { display: grid; gap: 0; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 0 32px; } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  position: relative;
  display: grid; gap: 12px; align-content: start;
  padding: 28px 0 28px 0;
  border-top: 1px solid var(--border);
}
.step::before {
  content: ""; position: absolute; top: -5px; left: 0;
  width: 9px; height: 9px; background: var(--red);
}
.step-num { font-family: var(--font-head); font-weight: 800; font-size: 3.5rem; line-height: .85; color: var(--text); }
.step-label { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.step p { font-size: 1.125rem; }

/* ---------- Service area ---------- */
.area-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .area-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }

.area-copy { display: grid; gap: 20px; }
.area-copy .btn-row { margin-top: 8px; }

.area-map {
  position: relative;
  aspect-ratio: 4 / 3;
  background-color: var(--panel);
  background-image:
    linear-gradient(to right, #1B222B 1px, transparent 1px),
    linear-gradient(to bottom, #1B222B 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.area-ring {
  position: absolute; left: 50%; top: 50%;
  border: 1px solid var(--border);
  transform: translate(-50%, -50%);
}
.area-ring--1 { width: 34%; aspect-ratio: 1; border-color: var(--red); }
.area-ring--2 { width: 62%; aspect-ratio: 1; }
.area-ring--3 { width: 90%; aspect-ratio: 1; border-style: dashed; }
.area-pin {
  position: absolute; left: 50%; top: 50%;
  width: 14px; height: 14px;
  background: var(--red);
  transform: translate(-50%, -50%);
}
.area-pin::after {
  content: ""; position: absolute; inset: -8px;
  border: 1px solid var(--red);
}
.area-tag {
  position: absolute;
  font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  background: var(--panel);
  padding: 4px 8px;
  border: 1px solid var(--border);
}
.area-tag--city { left: calc(50% + 20px); top: calc(50% - 34px); color: var(--text); }
.area-tag--coords { left: 12px; bottom: 12px; }
.area-tag--remote { right: 12px; top: 12px; }

/* ---------- CTA band ---------- */
.cta-band {
  display: grid; gap: 24px;
  padding: 36px 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
}
@media (min-width: 1024px) {
  .cta-band { grid-template-columns: 1fr auto; align-items: center; gap: 48px; padding: 56px; }
}
.cta-band h2 { font-size: clamp(2.25rem, 6vw, 4rem); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg); padding-top: 56px; }

.footer-grid { display: grid; gap: 40px; padding-bottom: 48px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; } }

.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-brand img { width: 200px; height: auto; }
.footer-brand p { color: var(--muted); max-width: 320px; }

.footer-col h2 {
  margin-bottom: 16px;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500;
  letter-spacing: .12em; color: var(--muted);
}
.footer-col li + li { margin-top: 8px; }
.footer-col a { color: var(--text); text-decoration: none; }
.footer-col a:hover { color: var(--red-text); text-decoration: underline; }
.footer-col .muted { color: var(--muted); }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 20px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .04em;
  color: var(--muted);
}

/* ==========================================================================
   Inner pages
   ========================================================================== */

[hidden] { display: none !important; }

/* Split layout: heading on the left, content on the right */
.split { display: grid; gap: 8px; }
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .split > .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
}

/* Numbered check list */
.check-list { border-top: 1px solid var(--border); }
.check-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1.125rem;
}
.check-list .num { font-family: var(--font-mono); font-size: .75rem; color: var(--red-text); padding-top: 6px; }

/* Price list (service pages) */
.price-list { border-top: 1px solid var(--border); }
.price-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 6px 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.item-name { font-family: var(--font-head); font-weight: 700; font-size: 1.375rem; line-height: 1.1; text-transform: uppercase; }
.item-note { grid-column: 1 / -1; color: var(--muted); font-size: .9375rem; }
.price-list .price { justify-self: end; }
.price-unit { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; color: var(--muted); }
@media (min-width: 640px) { .item-name { font-size: 1.5rem; } }

/* Three-column feature grid variant */
@media (min-width: 1024px) { .feature-grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* Card list inside cards */
.card .check-list { margin-top: 4px; }
.card .check-list li { font-size: 1rem; padding: 12px 0; grid-template-columns: 32px 1fr; }
.card .check-list .num { padding-top: 4px; }
.card-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }

/* FAQ */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; line-height: 1.1;
  text-transform: uppercase;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono); font-size: 1.5rem; font-weight: 400; line-height: 1;
  color: var(--red-text);
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--red-text); }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 720px; }

/* Warehouse demo */
.demo-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .demo-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; } }
.demo-copy { display: grid; gap: 20px; align-content: start; }
.demo-note { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.demo-panel { background: var(--panel); border: 1px solid var(--border); }
.demo-panel svg { width: 100%; height: auto; }
.legend {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; display: inline-block; border: 1px solid var(--border); }

/* Portfolio */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-btn {
  min-height: 40px;
  padding: 0 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--muted);
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.filter-btn:hover { color: var(--text); border-color: var(--text); }
.filter-btn[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }

.work-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .work-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.work-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--border); }
.work-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
}
.work-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
a.work-card-media:hover img { transform: scale(1.03); }
.work-card-body { display: grid; gap: 10px; padding: 20px 20px 24px; flex: 1; align-content: start; }
.work-card h3 { font-size: 1.75rem; font-weight: 700; }
.work-card p { color: var(--muted); }
.work-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px;
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text); text-decoration: none;
}
.work-link:hover { color: var(--red-text); }

.work-card--placeholder .work-card-media {
  display: grid; place-items: center;
  background-image:
    linear-gradient(to right, #1B222B 1px, transparent 1px),
    linear-gradient(to bottom, #1B222B 1px, transparent 1px);
  background-size: 24px 24px;
}
.work-card--placeholder .work-card-media svg { width: 72px; opacity: .35; }
.work-card--placeholder h3 { color: var(--muted); }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; } }
.prose { display: grid; gap: 20px; font-size: 1.1875rem; max-width: 680px; color: var(--muted); }
.prose strong { color: var(--text); font-weight: 600; }
.name-card { container-type: inline-size; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 28px 24px; background: var(--panel); border: 1px solid var(--border); border-left: 4px solid var(--red); }
@media (min-width: 1024px) { .name-card { padding: 40px; } }
.name-split { display: grid; gap: 4px; font-family: var(--font-head); font-weight: 800; font-size: 3rem; font-size: clamp(2.5rem, 24cqi, 5.5rem); line-height: .9; text-transform: uppercase; }
.name-split .dim { color: #4A5562; }
.name-card p { color: var(--muted); }
.name-card strong { color: var(--text); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; } }

.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field-label {
  padding: 0;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text);
}
.field-label .req { color: var(--red-text); }
.field-label .opt { color: var(--muted); text-transform: none; letter-spacing: .02em; }

.input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.4;
  transition: border-color .2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder { color: #75808D; }
.input:hover { border-color: #46515E; }
.input:focus-visible { border-color: var(--red-text); outline: 2px solid var(--red-text); outline-offset: 0; }
.input[aria-invalid="true"] { border-color: var(--red-text); }
textarea.input { min-height: 170px; resize: vertical; }
select.input {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23A3AFBD' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
select.input option { background: var(--panel); color: var(--text); }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  font-weight: 600;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.choice span::before { content: ""; width: 10px; height: 10px; border: 1px solid var(--muted); flex: none; }
.choice:hover span { border-color: #46515E; }
.choice input:checked + span { border-color: var(--red); background: #1A1214; }
.choice input:checked + span::before { background: var(--red); border-color: var(--red); }
.choice input:focus-visible + span { outline: 2px solid var(--red-text); outline-offset: 2px; }
.choices[aria-invalid="true"] .choice span { border-color: var(--red-text); }

.field-error { color: var(--red-text); font-size: .9375rem; }
.field-error:empty { display: none; }

.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-foot .btn { min-width: 200px; }
.form-foot .btn[disabled] { opacity: .7; cursor: progress; }
.form-note { color: var(--muted); font-size: .9375rem; }

.form-status { padding: 16px 18px; border: 1px solid var(--border); border-left: 4px solid var(--red); background: var(--panel); }
.form-status:empty { display: none; }

/* Simple centred message pages (thanks, 404) */
.message-page { min-height: 60vh; display: grid; align-items: center; }
.message-page .hero-copy { max-width: 760px; }

/* ---------- Page transitions ----------
   Cross-document View Transitions: when moving between pages the content fades
   and rises into place while the header stays put. Browsers that don't support
   it (or with JS off) simply change page as normal. */
@view-transition { navigation: auto; }

.site-header { view-transition-name: site-header; }

::view-transition-old(root) { animation: mb-page-out .2s ease both; }
::view-transition-new(root) { animation: mb-page-in .42s var(--ease) both; }

@keyframes mb-page-out { to { opacity: 0; } }
@keyframes mb-page-in { from { opacity: 0; transform: translateY(18px); } }

/* Red line that sweeps under the header when you arrive from another page
   (class added by main.js; works in every browser). */
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  pointer-events: none;
}
.is-arriving .site-header::after { animation: mb-sweep .75s var(--ease) .05s both; }
@keyframes mb-sweep {
  0%   { transform: scaleX(0); opacity: 1; }
  65%  { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .has-splash .splash { display: none; }
  .nav-sub, .nav-sub li { transform: none !important; }
  /* Keep a quick fade between pages, but no movement */
  ::view-transition-new(root) { animation: mb-page-fade .25s ease both; }
  .is-arriving .site-header::after { animation: none; }
}
@keyframes mb-page-fade { from { opacity: 0; } }
