/* North West Digital — Design System
   Dark, trustworthy, engineering-precise */

:root {
  --bg-deep: #070b10;
  --bg: #0c1219;
  --bg-elevated: #121a24;
  --bg-panel: #16202c;
  --line: rgba(148, 168, 188, 0.14);
  --line-strong: rgba(148, 168, 188, 0.28);
  --text: #e8eef4;
  --text-muted: #8b9aab;
  --text-dim: #627182;
  --accent: #3a9e8c;
  --accent-soft: rgba(58, 158, 140, 0.14);
  --accent-strong: #4db8a4;
  --trust: #5b8fd4;
  --trust-soft: rgba(91, 143, 212, 0.12);
  --warning: #c4a35a;
  --danger: #c06b6b;
  --radius: 2px;
  --radius-md: 6px;
  --max: 1120px;
  --nav-h: 72px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--bg-deep);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Atmosphere ---------- */

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(7, 11, 16, 0.2) 0%, var(--bg) 70%),
    radial-gradient(ellipse 80% 50% at 70% 0%, rgba(58, 158, 140, 0.1), transparent 55%),
    radial-gradient(ellipse 60% 40% at 10% 30%, rgba(91, 143, 212, 0.08), transparent 50%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: auto, auto, auto, 64px 64px, 64px 64px;
  background-position: center;
  pointer-events: none;
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */

.wrap {
  width: min(calc(100% - 2.5rem), var(--max));
  margin-inline: auto;
}

.section {
  padding: clamp(3.25rem, 8vw, 5.25rem) 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.eyebrow::before {
  content: "";
  width: 1.25rem;
  height: 1px;
  background: var(--accent);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.25rem);
}

h2 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
}

h3 {
  font-size: 1.25rem;
}

.lead {
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 38rem;
}

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

.mono {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

/* ---------- Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(7, 11, 16, 0.82);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}

.brand-mark {
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.brand-name {
  text-transform: lowercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 0.55rem 0.85rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  height: 1px;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle span {
  top: 50%;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.9rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #04110e;
}

.btn-primary:hover {
  background: var(--accent-strong);
}

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

.btn-ghost:hover {
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn .arrow {
  transition: transform 0.2s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 82svh;
  display: grid;
  align-items: end;
  padding: clamp(2rem, 5.5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  overflow: hidden;
}

.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-visual {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(7, 11, 16, 0.88) 0%, rgba(7, 11, 16, 0.55) 42%, rgba(7, 11, 16, 0.75) 100%),
    radial-gradient(ellipse 70% 80% at 78% 45%, rgba(58, 158, 140, 0.18), transparent 60%),
    linear-gradient(180deg, transparent 40%, var(--bg) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='900' viewBox='0 0 1600 900'%3E%3Cdefs%3E%3ClinearGradient id='sky' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%231a2838'/%3E%3Cstop offset='55%25' stop-color='%230f1822'/%3E%3Cstop offset='100%25' stop-color='%23070b10'/%3E%3C/linearGradient%3E%3ClinearGradient id='land' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0%25' stop-color='%231c2a24'/%3E%3Cstop offset='50%25' stop-color='%23263a30'/%3E%3Cstop offset='100%25' stop-color='%23172228'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='1600' height='900' fill='url(%23sky)'/%3E%3Cpath d='M0 620 C180 560 320 680 520 600 C720 520 860 640 1080 580 C1280 530 1420 610 1600 560 L1600 900 L0 900 Z' fill='url(%23land)' opacity='0.9'/%3E%3Cpath d='M0 700 C220 660 400 740 640 690 C880 640 1100 730 1340 680 C1480 655 1540 690 1600 670 L1600 900 L0 900 Z' fill='%230d1512' opacity='0.85'/%3E%3Ccircle cx='1180' cy='210' r='58' fill='%23c4a35a' opacity='0.18'/%3E%3Ccircle cx='1180' cy='210' r='28' fill='%23e8d9a8' opacity='0.35'/%3E%3Cg stroke='%233a9e8c' stroke-opacity='0.25' fill='none'%3E%3Cpath d='M980 420 L1040 360 L1120 390 L1200 300 L1280 340'/%3E%3Cpath d='M1020 520 L1080 470 L1160 500 L1240 430'/%3E%3C/g%3E%3Cg fill='%235b8fd4' fill-opacity='0.35'%3E%3Ccircle cx='1040' cy='360' r='3'/%3E%3Ccircle cx='1120' cy='390' r='3'/%3E%3Ccircle cx='1200' cy='300' r='3'/%3E%3Ccircle cx='1280' cy='340' r='3'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.06) translate3d(-1.5%, -1%, 0);
  }
}

.hero-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(255, 255, 255, 0.015) 3px,
    rgba(255, 255, 255, 0.015) 4px
  );
  mix-blend-mode: soft-light;
  animation: scanPulse 8s linear infinite;
}

@keyframes scanPulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.8;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.brand-hero {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text);
}

.brand-hero span {
  color: var(--accent-strong);
}

.hero h1 {
  max-width: 14ch;
}

.hero .lead {
  max-width: 32rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.hero-meta dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 0.25rem;
}

.hero-meta dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* ---------- Content blocks ---------- */

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.panel {
  background: linear-gradient(180deg, rgba(22, 32, 44, 0.9), rgba(18, 26, 36, 0.75));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.panel-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent-strong);
}

.status-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.85);
    opacity: 0.7;
  }
}

.code-block {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-muted);
  overflow-x: auto;
}

.code-block .k {
  color: var(--trust);
}

.code-block .s {
  color: var(--accent-strong);
}

.code-block .c {
  color: var(--text-dim);
}

.feature-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.feature-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.feature-list .idx {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-strong);
  margin-top: 0.35rem;
}

.feature-list strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.feature-list p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Services grid — not card-heavy UI; subtle bordered modules for interaction/clarity */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.service-item {
  background: var(--bg-elevated);
  padding: clamp(1.4rem, 3vw, 2rem);
  transition: background 0.25s var(--ease);
}

.service-item:hover {
  background: var(--bg-panel);
}

.service-item .idx {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-strong);
  margin-bottom: 0.85rem;
}

.service-item h3 {
  margin-bottom: 0.65rem;
}

.service-item p {
  margin: 0;
  color: var(--text-muted);
}

.service-item ul {
  margin: 1rem 0 0;
  padding: 0 0 0 1.1rem;
  color: var(--text-muted);
}

.service-item li + li {
  margin-top: 0.35rem;
}

/* Process */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding-top: 1rem;
  border-top: 1px solid var(--line-strong);
}

.process-step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-strong);
}

.process-step h3 {
  margin-bottom: 0.5rem;
}

.process-step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* CTA band */
.cta-band {
  position: relative;
  border-block: 1px solid var(--line);
  background:
    linear-gradient(90deg, var(--accent-soft), transparent 45%),
    linear-gradient(270deg, var(--trust-soft), transparent 40%),
    var(--bg-elevated);
}

.cta-band .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(2.1rem, 5vw, 3rem);
}

.cta-band h2 {
  max-width: 16ch;
}

.cta-band p {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  max-width: 34rem;
}

/* Page hero (inner) */
.page-hero {
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 16ch;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.contact-facts {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

.contact-facts li {
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.contact-facts span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.contact-facts a:hover {
  color: var(--accent-strong);
}

.form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  background: var(--bg-deep);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: #0a1017;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.form-success {
  display: none;
  padding: 1rem;
  border: 1px solid rgba(58, 158, 140, 0.35);
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-radius: var(--radius);
}

.form-success.is-visible {
  display: block;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
  background: rgba(7, 11, 16, 0.65);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.footer-brand span {
  color: var(--accent-strong);
}

.site-footer p {
  margin: 0;
  color: var(--text-muted);
  max-width: 28rem;
  font-size: 0.98rem;
}

.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-top: 1.5rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  color: var(--text-dim);
  font-size: 0.88rem;
  font-family: var(--font-mono);
}

.socials {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.socials a:hover {
  color: var(--text);
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

.socials svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

/* ---------- Live chat ---------- */

.chat-launcher {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(58, 158, 140, 0.45);
  border-radius: var(--radius);
  background: var(--bg-panel);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s var(--ease), background 0.2s;
}

.chat-launcher:hover {
  background: #1a2634;
  transform: translateY(-1px);
}

.chat-launcher-icon {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--accent-strong);
}

.chat-panel {
  position: fixed;
  right: 1.25rem;
  bottom: 5rem;
  z-index: 210;
  width: min(360px, calc(100vw - 1.5rem));
  height: min(520px, calc(100vh - 7rem));
  display: none;
  grid-template-rows: auto 1fr auto;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-panel.is-open {
  display: grid;
  animation: chatIn 0.28s var(--ease);
}

@keyframes chatIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(58, 158, 140, 0.08), transparent);
}

.chat-header strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.chat-header small {
  display: block;
  margin-top: 0.15rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.chat-close {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius);
}

.chat-close:hover {
  color: var(--text);
}

.chat-log {
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 24px 24px;
  background-color: var(--bg-deep);
}

.chat-msg {
  max-width: 88%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  line-height: 1.5;
}

.chat-msg.bot {
  align-self: flex-start;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  color: var(--text);
}

.chat-msg.user {
  align-self: flex-end;
  background: var(--accent-soft);
  border: 1px solid rgba(58, 158, 140, 0.3);
  color: var(--text);
}

.chat-msg time {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
}

.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1rem 0.75rem;
  background: var(--bg-deep);
}

.chat-quick button {
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 0.8rem;
  border-radius: var(--radius);
  cursor: pointer;
}

.chat-quick button:hover {
  color: var(--text);
  border-color: var(--text-dim);
}

.chat-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  padding: 0.85rem;
  border-top: 1px solid var(--line);
  background: var(--bg-elevated);
}

.chat-compose input {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line-strong);
  background: var(--bg-deep);
  border-radius: var(--radius);
  outline: none;
}

.chat-compose input:focus {
  border-color: var(--accent);
}

.chat-compose button {
  min-width: 2.5rem;
  border: none;
  background: var(--accent);
  color: #04110e;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
}

.chat-compose button:hover {
  background: var(--accent-strong);
}

/* Local SEO strip */
.local-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.local-proof article {
  background: var(--bg-elevated);
  padding: 1.4rem 1.25rem;
}

.local-proof h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.local-proof p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .split,
  .contact-grid,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .process {
    grid-template-columns: 1fr 1fr;
  }

  .service-grid,
  .local-proof {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem;
    background: rgba(7, 11, 16, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-links .btn {
    margin-top: 0.75rem;
  }

  .form-row,
  .process {
    grid-template-columns: 1fr;
  }

  .hero-meta {
    flex-direction: column;
    gap: 1rem;
  }

  .chat-launcher span {
    display: none;
  }

  .chat-launcher {
    width: 3.1rem;
    height: 3.1rem;
    padding: 0;
    justify-content: center;
    border-radius: var(--radius-md);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
