/* GPS Integrated — "Chart table & plotter"
   Linen map table, one aviation-orange ping, a dark plotter as the product. */

:root {
  --linen: #efe6d4;
  --linen-2: #e4d8c0;
  --ink: #17211c;
  --ink-soft: #3d4a43;
  --mute: #6a746c;
  --line: #cbbfa6;
  --plotter: #0c1b22;
  --plotter-2: #14303a;
  --river: #2f6f6a;
  --ping: #ff4d1c;
  --ping-deep: #c8330c;
  --paper: #f7f1e6;
  --white: #fffdf8;
  --max: 1180px;
  --f-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "Figtree", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
  --r: 14px;
  --ease: 220ms cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--linen);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(23,33,28,.07) 1px, transparent 0);
  background-size: 22px 22px;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(239,230,212,.2), transparent 18%, transparent 82%, rgba(12,27,34,.06));
  z-index: 0;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 1rem; top: 1rem; background: var(--white); padding: .5rem 1rem; z-index: 20; }

.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; position: relative; z-index: 1; }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 12;
  background: rgba(239,230,212,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.head-inner {
  display: flex; align-items: center; gap: 1rem;
  padding: .85rem 0;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; min-width: 10rem; }
.brand svg { width: 38px; height: 38px; }
.brand-name {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: 1.15rem;
  line-height: 1;
}
.brand-by {
  display: block;
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--river);
  margin-top: .2rem;
}
.site-nav {
  margin-left: auto;
  display: flex; align-items: center; gap: 1.15rem;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.site-nav a { text-decoration: none; color: var(--ink-soft); }
.site-nav a[aria-current="page"], .site-nav a:hover { color: var(--ink); }
.nav-btn {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  width: 44px; height: 44px;
  border-radius: 8px;
}
.nav-btn span { display: block; height: 2px; background: var(--ink); margin: 5px 10px; }

.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--ping);
  color: var(--white);
  text-decoration: none;
  border: 0;
  padding: .78rem 1.15rem;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform var(--ease), background var(--ease);
}
.btn:hover { background: var(--ping-deep); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--linen); }
.btn-plotter { background: var(--ping); color: #fff; }
.nav-cta { padding: .55rem .95rem; font-size: .72rem; }

/* Hero */
.hero {
  padding: 4.2rem 0 3rem;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.4rem;
  align-items: center;
}
.eyebrow {
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--river);
  margin: 0 0 .85rem;
}
h1, h2, h3 { font-family: var(--f-display); letter-spacing: -.02em; line-height: .95; margin: 0; }
h1 {
  font-size: clamp(3rem, 7vw, 5.4rem);
  font-weight: 700;
  text-transform: uppercase;
  max-width: 11ch;
}
h1 em { font-style: normal; color: var(--ping); }
.lede { color: var(--ink-soft); max-width: 36em; margin: 1.1rem 0 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* Plotter */
.plotter {
  background: var(--plotter);
  color: #d7ece8;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(12,27,34,.22);
  border: 1px solid #1d3c46;
}
.plotter-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem 1rem;
  background: var(--plotter-2);
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.live { color: var(--ping); display: flex; align-items: center; gap: .4rem; }
.live i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ping);
  box-shadow: 0 0 0 0 rgba(255,77,28,.7);
  animation: ping 1.8s infinite;
}
@keyframes ping {
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.plotter-map {
  position: relative;
  height: min(420px, 56vw);
  background:
    linear-gradient(rgba(47,111,106,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,111,106,.16) 1px, transparent 1px),
    radial-gradient(circle at 30% 40%, #18444c, var(--plotter));
  background-size: 28px 28px, 28px 28px, auto;
  overflow: hidden;
}
.river {
  position: absolute; left: 18%; top: 0; bottom: 0; width: 18%;
  background: linear-gradient(90deg, transparent, rgba(47,111,106,.28), transparent);
  transform: skewX(-18deg);
}
.fence {
  position: absolute; inset: 18% 14%;
  border: 1px dashed rgba(255,77,28,.45);
  border-radius: 8px;
}
.dot {
  position: absolute; width: 10px; height: 10px; margin: -5px;
  border-radius: 50%;
  background: var(--ping);
  box-shadow: 0 0 0 6px rgba(255,77,28,.18);
  transition: left .8s linear, top .8s linear;
}
.dot.idle { background: #8fd4c8; box-shadow: 0 0 0 6px rgba(143,212,200,.18); }
.dot.alert { background: #ffd36a; }
.plotter-list {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: #1d3c46;
}
.plotter-list button {
  background: var(--plotter);
  color: inherit;
  border: 0;
  text-align: left;
  padding: .7rem .85rem;
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: .68rem;
}
.plotter-list button strong { display: block; font-size: .78rem; color: #fff; margin-bottom: .15rem; font-family: var(--f-body); }
.plotter-list button[aria-pressed="true"] { background: #1a3944; outline: 1px solid var(--ping); }

.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
  margin: 0 0 3.5rem;
}
.metrics div { background: var(--paper); padding: 1.15rem 1.2rem; }
.metrics b {
  display: block;
  font-family: var(--f-display);
  font-size: 2rem;
  letter-spacing: -.03em;
}
.metrics span { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }

.section { padding: 4.5rem 0; }
.section-dark {
  background: var(--plotter);
  color: #e6f3f0;
  position: relative;
}
.section-dark .mute, .section-dark .lede { color: rgba(214,230,226,.72); }
.section h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  text-transform: uppercase;
  max-width: 16ch;
  margin-bottom: .8rem;
}
.sec-lead { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 2rem; flex-wrap: wrap; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.25rem;
  text-decoration: none;
  min-height: 11rem;
  display: flex; flex-direction: column; gap: .45rem;
}
.card:hover { border-color: var(--ink); }
.card h3 { font-size: 1.55rem; text-transform: uppercase; }
.k { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--river); }
.card p, .prose p { color: var(--ink-soft); margin: 0; }
.section-dark .card { background: var(--plotter-2); border-color: #1d3c46; color: inherit; }
.section-dark .card p { color: rgba(214,230,226,.75); }

.split {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; align-items: start;
}
.steps { counter-reset: step; display: grid; gap: .8rem; }
.steps li {
  list-style: none;
  display: grid; grid-template-columns: 3rem 1fr; gap: .8rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.steps { margin: 0; padding: 0; }
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--f-mono);
  color: var(--ping);
  font-size: .85rem;
  padding-top: .2rem;
}

.table {
  width: 100%; border-collapse: collapse;
  font-size: .95rem;
}
.table th, .table td {
  text-align: left; padding: .85rem .6rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table th { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); font-weight: 500; }

form.rfq { display: grid; gap: .75rem; }
form.rfq label { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
form.rfq input, form.rfq textarea, form.rfq select {
  width: 100%;
  padding: .8rem .9rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 10px;
}
form.rfq textarea { min-height: 7rem; resize: vertical; }
.form-ok { color: var(--river); font-family: var(--f-mono); font-size: .8rem; }
.form-err { color: var(--ping-deep); font-family: var(--f-mono); font-size: .8rem; }

.offices { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.office {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.2rem;
}

footer.site {
  background: var(--plotter);
  color: rgba(214,230,226,.75);
  padding: 2.6rem 0 3rem;
  font-size: .9rem;
}
footer.site a { text-decoration: none; }
.fgrid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 1.5rem; }
footer .brand-name { color: #fff; }
.legal { margin-top: 2rem; font-family: var(--f-mono); font-size: .65rem; letter-spacing: .06em; text-transform: uppercase; }

.page-hero { padding: 3.4rem 0 1.2rem; }
.page-hero h1 { max-width: 18ch; font-size: clamp(2.6rem, 6vw, 4.2rem); }

.notice {
  border: 1px dashed var(--river);
  padding: .9rem 1rem;
  border-radius: var(--r);
  font-size: .9rem;
  color: var(--ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live i, .dot { animation: none; }
}

@media (max-width: 900px) {
  .hero, .split, .cards, .metrics, .fgrid, .plotter-list, .offices { grid-template-columns: 1fr; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--linen);
    flex-direction: column; align-items: flex-start;
    padding: 1rem 1rem 1.2rem;
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .nav-btn { display: block; }
  h1 { max-width: 14ch; }
}
