/* Josh Haul coming-soon, concept B "Route". Light, clean, corporate: the badge large on a
   faint map grid, and a delivery route that draws itself across the page, pin by pin.
   Colours sampled from the logo. Self-hosted font, no scripts. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("inter-latin.woff2") format("woff2");
}

:root {
  --paper: #f3f6fa;
  --card: #ffffff;
  --ink: #031e3c;
  --muted: #475a75;
  --blue: #0b5fc4;
  --sky: #019cf9;
  --line: #d5dfeb;
  --gutter: clamp(16px, 4vw, 64px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  background-color: var(--paper);
  background-image: radial-gradient(circle at 1px 1px, rgba(3, 30, 60, 0.12) 1px, transparent 0);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.9rem; }
.brand img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 4px 14px rgba(3, 30, 60, 0.18); }
.soon { margin: 0; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue); }

/* ── The route, behind everything ──────────────────────────────────────── */
.map { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.map svg { position: absolute; width: 100%; height: 100%; }
.route-base { fill: none; stroke: var(--line); stroke-width: 10; stroke-linecap: round; }
.route {
  fill: none;
  stroke: url(#routeGrad);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  animation: draw 3.2s var(--ease-out) 0.3s forwards;
}
.pin { opacity: 0; transform-box: fill-box; transform-origin: center; animation: pin 0.5s var(--ease-out) forwards; }
.pin:nth-of-type(1) { animation-delay: 0.4s; }
.pin:nth-of-type(2) { animation-delay: 1.3s; }
.pin:nth-of-type(3) { animation-delay: 2.2s; }
.pin:nth-of-type(4) { animation-delay: 3.1s; }

/* ── Content ───────────────────────────────────────────────────────────── */
.stage {
  position: relative;
  flex: 1 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
  padding: clamp(16px, 5vh, 64px) var(--gutter) clamp(40px, 8vh, 96px);
}
.copy { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 16px; display: inline-flex; align-items: center; gap: 12px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--blue); }
.eyebrow::before { content: ""; width: 32px; height: 3px; border-radius: 2px; background: var(--blue); }
h1 {
  margin: 0;
  font-size: clamp(3.6rem, min(11vw, 17vh), 9.5rem);
  line-height: 0.88;
  letter-spacing: -0.05em;
  font-weight: 900;
}
h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--blue) 10%, var(--sky) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 0.05em;
}
.lede { max-width: 38ch; margin: 24px 0 0; font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); color: var(--muted); }
.lede strong { color: var(--ink); }

.chips { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips a, .chips .mock {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(3, 30, 60, 0.04), 0 6px 18px rgba(3, 30, 60, 0.06);
  text-decoration: none;
  font-weight: 600;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), border-color 220ms var(--ease-out);
}
.chips a:hover { transform: translateY(-2px); border-color: var(--blue); box-shadow: 0 10px 24px rgba(11, 95, 196, 0.16); }
.chips a:active { transform: translateY(0) scale(0.98); }
.chips a.mock:hover { transform: none; border-color: var(--line); box-shadow: none; }
.chips svg { width: 18px; height: 18px; color: var(--blue); }
.chips .k { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.chips .mock { border-style: dashed; color: var(--muted); box-shadow: none; }

.badge { position: relative; z-index: 1; justify-self: center; width: min(100%, 380px); aspect-ratio: 1; }
.badge::before {
  content: "";
  position: absolute;
  inset: -7%;
  border-radius: 50%;
  border: 2px dashed rgba(11, 95, 196, 0.28);
  animation: orbit 40s linear infinite;
}
.badge img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 30px 60px rgba(3, 30, 60, 0.22), 0 8px 18px rgba(3, 30, 60, 0.12);
  animation: rise 1.2s var(--ease-out) both;
}

.foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  padding: 16px var(--gutter) 20px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 0.875rem;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 0 20px; align-items: center; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 3px; }
.foot a:hover { color: var(--ink); }

/* ── Privacy + 404 pages when Route is the live concept ────────────────── */
.hazard { height: 4px; background: linear-gradient(90deg, var(--blue), var(--sky)); }
.plate { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.9rem; }
.plate-mark { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 4px 14px rgba(3, 30, 60, 0.18); }
.plain .doc { flex: 1 0 auto; }
.doc { width: min(720px, 100% - 2 * var(--gutter)); margin: clamp(24px, 6vh, 64px) auto clamp(40px, 8vh, 96px); }
.doc h1 { font-size: clamp(2.6rem, 8vw, 4.4rem); line-height: 0.92; }
.doc h2 { margin: 34px 0 8px; font-size: 1.15rem; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--muted); max-width: 64ch; }
.doc a:not(.back) { color: var(--blue); }
.doc .back { display: inline-flex; align-items: center; min-height: 48px; margin-top: 28px; padding: 0 20px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; text-decoration: none; transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
.doc .back:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11, 95, 196, 0.25); }
.doc .back:active { transform: translateY(0) scale(0.98); }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pin { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes orbit { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .route { stroke-dashoffset: 0; }
  .pin { opacity: 1; }
}

@media (max-width: 860px) {
  .stage { grid-template-columns: 1fr; padding-top: 8px; }
  .badge { order: -1; width: min(62vw, 260px); margin-bottom: 8px; }
  .soon { display: none; }
}
