/* StiknTrak.io — Ambient IoT family site
 * Brand: sunset coral accent, warm charcoal canvas, JetBrains Mono
 * Sister sites: ambientiot.io (parent), moseley.io
 */

:root {
  /* Brand: sunset coral / orange */
  --coral: #FF6B3D;
  --coral-bright: #FF8B5C;
  --coral-dim: #C24F2A;
  --coral-soft: rgba(255, 107, 61, 0.55);
  --coral-faint: rgba(255, 107, 61, 0.22);

  /* Aliases so legacy --cyan references keep working as coral */
  --cyan: #FF6B3D;
  --cyan-bright: #FF8B5C;
  --cyan-dim: #C24F2A;
  --amber: #FFB070;             /* secondary warm tone */
  --magenta: #FF8FA3;            /* tertiary, used sparingly */

  /* Warm charcoal canvas */
  --bg-deep: #1A1715;
  --bg-panel: #221E1B;
  --bg-elev: #2B2622;
  --bg-input: #14110F;

  --line: rgba(255, 107, 61, 0.14);
  --line-strong: rgba(255, 107, 61, 0.32);

  /* Warm off-white ink (not blue-white) */
  --ink: #F4EDE6;
  --ink-dim: #BDB1A6;
  --ink-muted: #80756B;

  --red-stiktrack: #C8252F;      /* deeper crimson 'n' — differentiates from coral */
  --font-display: "JetBrains Mono", "SF Mono", "Menlo", monospace;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-bright); }

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

/* ============== TYPE ============== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.5em 0;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.2; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; color: var(--cyan); text-transform: uppercase; letter-spacing: 0.08em; }
p { margin: 0 0 1em; color: var(--ink-dim); }
small { color: var(--ink-muted); }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--cyan);
  margin-bottom: 1rem;
}

/* ============== LAYOUT ============== */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; border-top: 1px solid var(--line); }
section.tight { padding: 3rem 0; }

/* ============== NAV ============== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(26, 23, 21, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: none; width: 100%;
  padding: 1rem 1.5rem 1rem 1rem;
  display: flex; align-items: center; justify-content: flex-start;
  gap: 0.5rem;
}
@media (min-width: 1200px) {
  .nav__inner { padding-left: 1.25rem; }
}
.nav__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.nav__brand .n { color: var(--red-stiktrack); }
.nav__brand img.nav__logo {
  height: 30px; width: auto; display: block;
}
.nav__brand small {
  font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-muted); padding-left: 0.65rem;
  border-left: 1px solid var(--line-strong);
}
.nav__brand-home, .nav__brand-parent {
  display: inline-flex; align-items: center; text-decoration: none; color: inherit;
}
.nav__brand-parent { transition: color 0.2s; }
.nav__brand-parent small {
  color: var(--coral-bright);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.7rem;
}
.nav__brand-parent:hover small { color: #FFB088; text-shadow: 0 0 12px rgba(255,107,61,0.5); }
.footer__logo {
  height: 36px; width: auto; display: block; margin-bottom: 0.75rem; opacity: 0.92;
}
.nav__links { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; flex: 1; margin-left: 0; }
.nav__links > a:first-child { margin-left: 0; }
.nav__links > .nav__cta { margin-left: auto; }
.nav__links a {
  color: var(--ink-dim);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}
.nav__links a:hover, .nav__links a.active { color: var(--cyan); }
.nav__cta {
  background: var(--cyan);
  color: var(--bg-deep) !important;
  padding: 0.55rem 1rem;
  border-radius: 4px;
  font-weight: 600;
}
.nav__cta:hover { background: var(--cyan-bright); }

/* dropdown */
.nav__group { position: relative; padding-bottom: 0.8rem; margin-bottom: -0.8rem; }
.nav__group > a { position: relative; }
.nav__group > a::after {
  content: "▾"; font-size: 0.7em; margin-left: 0.3em; opacity: 0.6;
}
.nav__menu {
  position: absolute; top: 100%; left: -0.5rem;
  display: flex; flex-direction: column;
  background: var(--bg-panel);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 0.5rem;
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  visibility: hidden; opacity: 0; pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}
.nav__group:hover .nav__menu,
.nav__group:focus-within .nav__menu,
.nav__menu:hover {
  visibility: visible; opacity: 1; pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0s;
}
.nav__menu a {
  position: relative;
  padding: 0.55rem 0.8rem 0.55rem 0.95rem;
  border-radius: 4px;
  font-size: 0.85rem;
  border-left: 2px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.nav__menu a:hover,
.nav__menu a:focus-visible {
  background: rgba(255, 107, 61, 0.10);
  color: var(--coral-bright);
  border-left-color: var(--coral);
  transform: translateX(2px);
  outline: none;
}
.nav__menu a:hover small,
.nav__menu a:focus-visible small {
  color: var(--ink-dim);
}
.nav__menu small { display: block; color: var(--ink-muted); font-size: 0.7rem; margin-top: 0.15rem; transition: color 0.15s ease; }

/* Nested submenu — flyout to the right (only on direct hover of the parent item) */
.nav__sub { position: relative; }
.nav__sub > a {
  padding-right: 1.4rem;
}
.nav__sub > a::after {
  content: "›"; font-size: 1rem;
  opacity: 0; /* hidden by default — only shows on hover of the parent item */
  position: absolute; right: 0.7rem; top: 0.55rem;
  line-height: 1;
  transition: opacity 0.15s ease, color 0.15s ease;
}
.nav__sub:hover > a::after { opacity: 1; color: var(--coral-bright); }
.nav__menu .nav__submenu {
  position: absolute; top: -0.5rem; left: 100%;
  display: flex; flex-direction: column;
  background: var(--bg-panel);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 0.5rem;
  min-width: 200px;
  margin-left: 0.4rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  visibility: hidden; opacity: 0; pointer-events: none;
  transform: translateX(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
  z-index: 10;
}
/* Show only when the user is hovering directly over the StiknSense item itself,
   or has moved onto the submenu pane. No focus-within (would trigger on tab focus). */
.nav__menu .nav__sub:hover > .nav__submenu,
.nav__menu .nav__submenu:hover {
  visibility: visible; opacity: 1; pointer-events: auto;
  transform: translateX(0);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0s;
}

/* ============== HERO (default — split layout) ============== */
.hero {
  padding: 5rem 0 4rem;
  border-top: none;
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.hero__media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  aspect-ratio: 3/4;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(26, 23, 21, 0.6));
  pointer-events: none;
}
.hero h1 .n { color: var(--red-stiktrack); }
.hero__sub {
  font-size: 1.15rem; color: var(--ink-dim); max-width: 32em;
  margin-bottom: 2rem;
}
.hero__cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { aspect-ratio: 4/3; }
}

/* ============== HERO (cinematic photo — product hero) ============== */
.hero--world {
  position: relative;
  min-height: min(92vh, 880px);
  padding: 0;
  overflow: hidden;
  background: var(--bg-deep);
  display: flex; flex-direction: column; justify-content: space-between;
  margin-top: -1px;
  border-bottom: 1px solid var(--line);
}

/* photo — occupies the right ~56% of the hero. Label/carton positioned within the visible crop. */
.hero--world .hero__photo {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 56%; height: 100%;
  z-index: 0;
  object-fit: cover; object-position: 35% center;
}

/* veil — dark left fading into the photo; bottom fades for ticker */
.hero--world .hero__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20,17,15,1) 0%, rgba(20,17,15,1) 40%, rgba(20,17,15,0.85) 46%, rgba(20,17,15,0) 56%),
    linear-gradient(180deg, rgba(20,17,15,0) 0%, rgba(20,17,15,0) 60%, rgba(20,17,15,0.85) 100%);
}

/* counter — floating telemetry numbers (top-left, near eyebrow) */
.hero__counter {
  position: absolute; top: 6rem; left: 1.5rem; z-index: 5;
  font-family: var(--font-display);
  text-align: left;
  background: rgba(26,23,21,0.78);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  min-width: 180px;
  display: none; /* hide top counter; we use the inline metric strip instead */
}
.hero__counter__label {
  font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 0.4rem;
  display: flex; align-items: center; justify-content: flex-start; gap: 0.5rem;
}
.hero__counter__label::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 6px var(--cyan);
  animation: pulseDot 1.4s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}
.hero__counter__value {
  font-size: 1.8rem; font-weight: 600; color: var(--ink); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero__counter__sub {
  font-size: 0.72rem; color: var(--ink-muted); margin-top: 0.4rem;
}

/* hero content — left panel, anchored to viewport left with comfortable padding. */
.hero--world .hero__content {
  position: relative; z-index: 5;
  width: 48%;
  min-width: 460px;
  padding: 7rem clamp(1.5rem, 4vw, 4rem) 6rem clamp(2rem, 12vw, 12rem);
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  align-self: flex-start;
}
.hero--world .hero__content > * { max-width: 32rem; }
.hero--world .eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: rgba(26,23,21,0.6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong);
  padding: 0.5rem 0.9rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  width: fit-content;
}
.hero--world .eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
  animation: pulseDot 1.6s ease-in-out infinite;
}
.hero--world h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 11em;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 40px rgba(26,23,21,0.85);
}
.hero--world h1 .accent { color: var(--cyan); }
.hero--world h1 .n { color: var(--red-stiktrack); }
.hero--world h1 .strike {
  position: relative; display: inline-block;
  color: var(--ink-muted); font-style: italic; font-weight: 400;
  font-size: 0.7em; vertical-align: 4px;
  margin: 0 0.15em;
}
.hero--world h1 .strike::after {
  content: ""; position: absolute; left: 0; right: 0; top: 52%;
  height: 2px; background: var(--red-stiktrack);
  transform: rotate(-4deg);
}
.hero--world .hero__sub {
  max-width: 38em;
  font-size: 1.05rem;
  color: var(--ink);
  text-shadow: 0 1px 16px rgba(26,23,21,0.85);
  margin-bottom: 1.75rem;
}

/* inline live metric — below CTAs */
.hero__live {
  display: inline-flex; align-items: center; gap: 0.7rem; flex-wrap: wrap;
  margin-top: 2rem;
  font-family: var(--font-display);
  background: rgba(26,23,21,0.65);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 0.6rem 0.9rem;
  width: fit-content;
  max-width: none !important;
}
.hero__live__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
  animation: pulseDot 1.4s ease-in-out infinite;
}
.hero__live__label {
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan);
}
.hero__live__value {
  font-size: 1.1rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums;
}
.hero__live__sub {
  font-size: 0.72rem; color: var(--ink-muted);
}

/* ticker — bottom strip, constrained to content width */
.hero__ticker {
  position: relative; z-index: 4;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--line);
  overflow: hidden;
  background: rgba(26,23,21,0.55);
  backdrop-filter: blur(6px);
  border-radius: 6px;
}
.hero__ticker__head {
  margin: 0 0 0.6rem;
  font-family: var(--font-display); font-size: 0.7rem; letter-spacing: 0.2em;
  color: var(--cyan);
  display: flex; align-items: center; gap: 0.6rem;
}
.hero__ticker__head::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 6px var(--cyan);
  animation: pulseDot 1.4s ease-in-out infinite;
}
.ticker__rail {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--ink-dim);
  animation: ticker 90s linear infinite;
  width: max-content;
}
.ticker__item { display: inline-flex; align-items: center; gap: 0.5rem; }
.ticker__item strong { color: var(--cyan); font-weight: 500; }
.ticker__item .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 6px var(--cyan);
}
.ticker__item .dot--amber { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.ticker__item .dot--red { background: var(--red-stiktrack); box-shadow: 0 0 6px var(--red-stiktrack); }
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ticker__rail, .hero--world .eyebrow::before, .hero__counter__label::before, .hero__ticker__head::before {
    animation: none !important;
  }

}

@media (max-width: 860px) {
  .hero--world { min-height: auto; }
  .hero--world .hero__photo {
    position: relative; width: 100%; height: 56vw; max-height: 420px;
    object-position: 30% center;
  }
  .hero--world .hero__veil {
    background:
      linear-gradient(180deg, rgba(20,17,15,0) 0%, rgba(20,17,15,0) 30%, rgba(20,17,15,1) 56vw, rgba(20,17,15,1) 100%);
  }
  .hero--world .hero__content { padding: 2rem 1.5rem 1.5rem; }
  .hero--world h1 { font-size: clamp(2rem, 7.5vw, 2.8rem); }
  .hero--world .hero__content > * { max-width: 100%; }
}

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.btn--primary {
  background: var(--cyan); color: var(--bg-deep);
}
.btn--primary:hover { background: var(--cyan-bright); color: var(--bg-deep); transform: translateY(-1px); }
.btn--ghost {
  background: transparent; color: var(--cyan);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--cyan); background: rgba(127, 227, 212, 0.06); }
.btn--small { padding: 0.5rem 0.9rem; font-size: 0.8rem; }

/* ============== CARDS / GRIDS ============== */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem;
  transition: all 0.2s;
}
.card:hover {
  border-color: var(--line-strong);
  background: var(--bg-elev);
  transform: translateY(-2px);
}
.card__header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.card__icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(127, 227, 212, 0.1);
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
}
.card h3 { margin: 0; font-size: 1.1rem; }
.card p { font-size: 0.92rem; }

/* ============== PRODUCT CARD ============== */
.product {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}
.product:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.product__media {
  aspect-ratio: 16/10;
  background: #000;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.product__media img { width: 100%; height: 100%; object-fit: cover; }
.product__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: 0.75rem; }
.product__sku {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  text-transform: uppercase;
}
.product__name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin: 0; }
.product__name .n { color: var(--red-stiktrack); }
.product__desc { color: var(--ink-dim); font-size: 0.92rem; flex: 1; }
.product__specs {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.4rem 1rem;
  font-family: var(--font-display); font-size: 0.78rem;
  border-top: 1px solid var(--line); padding-top: 0.85rem;
}
.product__specs dt { color: var(--ink-muted); }
.product__specs dd { color: var(--ink); margin: 0; }
.product__cta { display: flex; gap: 0.5rem; flex-wrap: wrap; padding-top: 0.75rem; border-top: 1px solid var(--line); }

/* ============== BROCHURE TILE ============== */
.brochure {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: all 0.2s;
}
.brochure:hover { border-color: var(--cyan); }
.brochure__icon {
  flex: 0 0 auto;
  width: 56px; height: 72px;
  background: linear-gradient(135deg, var(--cyan-dim), var(--cyan));
  color: var(--bg-deep);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  position: relative;
}
.brochure__icon::before {
  content: ""; position: absolute; top: 0; right: 0;
  border-style: solid; border-width: 0 0.75rem 0.75rem 0;
  border-color: transparent var(--bg-panel) transparent transparent;
}
.brochure__body { flex: 1; min-width: 0; }
.brochure h4 {
  font-size: 0.95rem; color: var(--ink); text-transform: none; letter-spacing: 0;
  margin-bottom: 0.25rem;
}
.brochure h4 .n { color: var(--red-stiktrack); }
.brochure p { font-size: 0.82rem; margin: 0 0 0.6rem; color: var(--ink-muted); }
.brochure__meta {
  font-family: var(--font-display); font-size: 0.7rem;
  color: var(--ink-muted); margin-bottom: 0.4rem;
}
.brochure__link {
  font-family: var(--font-display); font-size: 0.78rem;
  color: var(--cyan); display: inline-flex; align-items: center; gap: 0.3rem;
}
.brochure__link::after { content: "↓"; font-size: 0.95em; }

/* ============== FAMILY BANNER ============== */
.family {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  padding: 2rem;
  background: linear-gradient(135deg, var(--bg-panel) 0%, var(--bg-elev) 100%);
  display: flex; flex-direction: column; gap: 1rem;
}
.family__tag {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.family h3 { font-size: 1.5rem; margin: 0; }
.family h3 .n { color: var(--red-stiktrack); }
.family__products {
  font-family: var(--font-display); font-size: 0.78rem; color: var(--ink-muted);
  display: flex; gap: 0.5rem; flex-wrap: wrap;
}
.family__products span {
  background: rgba(127, 227, 212, 0.08); padding: 0.2rem 0.55rem;
  border-radius: 4px; color: var(--cyan);
}

/* ============== TIMELINE / NUMBERED ============== */
.steps { counter-reset: step; display: flex; flex-direction: column; gap: 1.25rem; }
.step {
  display: grid; grid-template-columns: 4rem 1fr; gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  color: var(--cyan);
  font-size: 1.5rem;
  font-weight: 600;
}
.step h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.step p { margin: 0; font-size: 0.92rem; }

/* ============== STAT ============== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.stat__value { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; color: var(--cyan); display: block; }
.stat__label { font-size: 0.78rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ============== SAVP DIAGRAM ============== */
.savp {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
}
.savp__node {
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}
.savp__node strong { display: block; color: var(--cyan); margin-bottom: 0.3rem; }
.savp__node small { color: var(--ink-muted); font-size: 0.72rem; }
.savp__arrow { color: var(--cyan); font-size: 1.4rem; }
@media (max-width: 760px) {
  .savp { grid-template-columns: 1fr; }
  .savp__arrow { transform: rotate(90deg); }
}

/* ============== FORM ============== */
.form { display: grid; gap: 1rem; max-width: 600px; }
.form label { display: flex; flex-direction: column; gap: 0.4rem; font-family: var(--font-display); font-size: 0.78rem; color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.form input, .form textarea, .form select {
  background: var(--bg-input);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 0.75rem;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none; border-color: var(--cyan);
}
.form textarea { resize: vertical; min-height: 130px; }

/* ============== FOOTER ============== */
.footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  margin-top: 3rem;
  background: var(--bg-panel);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer h4 { font-size: 0.78rem; color: var(--cyan); }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer a { color: var(--ink-dim); font-size: 0.88rem; }
.footer a:hover { color: var(--cyan); }
.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-family: var(--font-display); font-size: 0.78rem; color: var(--ink-muted);
}
.footer__bottom .n { color: var(--red-stiktrack); }
.footer-privacy-links a { color: var(--ink-muted); }
.footer-privacy-links a:hover { color: var(--coral); }

/* ============== UTILS ============== */
.center { text-align: center; }
.muted { color: var(--ink-muted); }
.divider { height: 1px; background: var(--line); margin: 2rem 0; border: 0; }
.tag {
  display: inline-block;
  font-family: var(--font-display); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(127, 227, 212, 0.1); color: var(--cyan);
  padding: 0.25rem 0.6rem; border-radius: 4px;
}
.tag--amber { background: rgba(244, 199, 123, 0.1); color: var(--amber); }
.tag--magenta { background: rgba(232, 127, 181, 0.1); color: var(--magenta); }

/* ============== INLINE PHOTO ============== */
.photo {
  margin: 4rem auto 0;
  max-width: 1200px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  background: #0a0c10;
}
.photo__img {
  width: 100%; height: auto; display: block;
  aspect-ratio: 5/3; object-fit: cover;
}
.photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.55) 100%);
}
.photo__caption {
  position: absolute; left: 1.4rem; bottom: 1rem; right: 1.4rem;
  font-family: var(--font-display); font-size: 0.7rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255,255,255,0.78); z-index: 1;
}
.photo__caption strong { color: var(--coral); font-weight: 600; }
@media (max-width: 720px) {
  .photo { margin: 3rem auto 0; border-radius: 10px; }
  .photo__img { aspect-ratio: 4/3; }
  .photo__caption { font-size: 0.6rem; left: 1rem; bottom: 0.75rem; }
}

/* ============== MOBILE POLISH (added 2026-05-02) ============== */
@media (max-width: 860px) {
  /* Mobile nav: collapse links into hamburger */
  .nav__inner { padding: 0.75rem 1rem; gap: 0.5rem; }
  .nav__brand img.nav__logo { height: 26px; }
  .nav__brand small { font-size: 0.55rem; padding-left: 0.5rem; }

  /* Hamburger checkbox toggle */
  .nav__burger {
    display: inline-flex !important;
    align-items: center; justify-content: center;
    width: 38px; height: 38px;
    margin-left: auto;
    background: transparent; border: 1px solid var(--line-strong);
    border-radius: 4px; cursor: pointer;
    color: var(--ink); padding: 0;
  }
  .nav__burger svg { width: 18px; height: 18px; display: block; }

  /* Collapsed by default */
  .nav__links {
    position: fixed;
    top: 56px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(15,12,11,0.985);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line-strong);
    padding: 0.5rem 1rem 1rem;
    transform: translateY(-12px);
    opacity: 0; pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    z-index: 60;
  }
  .nav__toggle:checked ~ .nav__links {
    opacity: 1; pointer-events: auto; transform: translateY(0);
  }
  .nav__links a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
  }
  .nav__links a:last-child { border-bottom: none; }
  .nav__links > .nav__cta { margin-left: 0; margin-top: 0.6rem; text-align: center; }

  /* Dropdowns: flatten on mobile (always visible inline) */
  .nav__group { padding-bottom: 0; margin-bottom: 0; }
  .nav__group > a::after { display: none; }
  .nav__menu {
    position: static;
    visibility: visible; opacity: 1; pointer-events: auto;
    transform: none;
    background: transparent; border: none; box-shadow: none;
    padding: 0 0 0 1rem; min-width: 0;
    margin-bottom: 0.4rem;
  }
  .nav__menu a { padding: 0.6rem 0.25rem; font-size: 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.04); }
  .nav__menu small { display: none; }
  .nav__menu .nav__submenu { display: none; }

  /* Tighter section rhythm on mobile */
  section { padding: 3rem 0 !important; }
  section.tight { padding: 2.25rem 0 !important; }

  /* Hero h1 sizing — allow wrap, prevent overflow */
  .hero--world h1 {
    font-size: clamp(1.4rem, 6.4vw, 1.95rem) !important;
    line-height: 1.15 !important;
    overflow-wrap: break-word; word-break: normal;
    max-width: 100% !important;
  }
  .hero--world h1 .accent { display: inline-block; }
  /* Prevent ALL horizontal overflow on the page */
  html, body { overflow-x: hidden; max-width: 100vw; }
  .wrap { padding-left: 1.25rem; padding-right: 1.25rem; }
  /* h2 generic mono headings — let them wrap */
  h2 { overflow-wrap: break-word; word-break: normal; }
  .hero--world .hero__sub { font-size: 0.92rem; line-height: 1.55; max-width: 100% !important; }
  .hero--world .hero__content {
    padding: 1.5rem 1.25rem 1.25rem !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }
  .hero--world .hero__content > * { max-width: 100% !important; }

  /* h2 down a notch on small screens */
  h2 { font-size: clamp(1.35rem, 5vw, 1.75rem) !important; }
}

/* Hide hamburger on desktop, hide checkbox always */
.nav__toggle { display: none !important; }
@media (min-width: 861px) {
  .nav__burger { display: none !important; }
}

/* ============== MOBILE HOME REDESIGN (v20260502c) ============== */

/* Defaults: photos hidden on desktop, short-copy hidden on desktop, long-copy shows */
.family__photo,
.customer__logo { display: none; }
.family__short,
.customer__short { display: none; }

@media (max-width: 720px) {

  /* --- HERO --- */
  .hero h1 { font-size: clamp(1.6rem, 6vw, 2.1rem); line-height: 1.15; }
  .hero__sub { font-size: 0.95rem; }

  /* --- SAVP "How it works" — compact 3-tile vertical stack --- */
  .savp { gap: 0.5rem !important; padding: 1rem !important; }
  .savp__node {
    padding: 0.85rem 1rem !important;
    font-size: 0.9rem !important;
    text-align: left !important;
  }
  .savp__node strong { font-size: 0.78rem; letter-spacing: 0.06em; margin-bottom: 0.15rem; }
  .savp__node small { font-size: 0.72rem; line-height: 1.4; display: block; }
  .savp__arrow { font-size: 1rem !important; padding: 0 !important; }

  /* --- THREE FAMILIES — image-led card --- */
  .family {
    padding: 0 !important;
    gap: 0 !important;
    overflow: hidden;
  }
  .family__photo {
    display: block !important;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    background: #1a1a1a;
  }
  .family__tag,
  .family h3,
  .family__short,
  .family__products,
  .family > a.btn {
    margin-left: 1.25rem !important;
    margin-right: 1.25rem !important;
  }
  .family__tag { margin-top: 1rem !important; }
  .family h3 { font-size: 1.25rem !important; margin-top: 0.35rem !important; }
  .family__short {
    display: block !important;
    font-size: 0.92rem;
    line-height: 1.5;
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
    color: var(--ink-muted);
  }
  .family__long { display: none !important; }
  .family__products { margin-top: 0.25rem !important; }
  .family > a.btn { margin-bottom: 1.25rem !important; margin-top: 0.5rem !important; }

  /* --- CUSTOMER CARDS — logo + name + 1-line --- */
  .card.customer {
    padding: 1.25rem !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .customer__logo {
    display: block !important;
    height: 36px;
    max-width: 70%;
    width: auto;
    object-fit: contain;
    object-position: left center;
    background: transparent !important;
    margin-bottom: 0.25rem;
    filter: brightness(1.05);
  }
  .card.customer .card__header { gap: 0.5rem; align-items: center; }
  .card.customer .card__icon { display: none; }
  .card.customer h3 { font-size: 1.05rem; }
  .customer__short {
    display: block !important;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--ink-muted);
    margin: 0;
  }
  .customer__long { display: none !important; }

  /* --- FIVE REASONS / STEPS — tighter --- */
  .steps { gap: 0.85rem; }
  .step {
    grid-template-columns: 2.5rem 1fr !important;
    gap: 0.75rem !important;
    padding: 1rem 1.1rem !important;
  }
  .step::before { font-size: 1.1rem; }
  .step h3 { font-size: 0.98rem !important; margin-bottom: 0.25rem !important; }
  .step p { font-size: 0.88rem !important; line-height: 1.45; }

  /* --- MOSELEY BRIDGE — tighter --- */
  .bridge, .bridge-box, [class*="moseley-bridge"] {
    padding: 1.5rem 1.25rem !important;
  }

  /* --- STATS by-the-numbers — tighter --- */
  .stat { padding: 1rem 0.5rem !important; }
  .stat__value { font-size: 1.45rem !important; }
  .stat__label { font-size: 0.68rem; }

  /* --- Inline warehouse photo --- */
  .photo-inline, .inline-photo, [class*="inline-photo"] {
    margin: 1rem 0 !important;
  }

  /* --- Section h2 spacing tighter --- */
  section h2 { font-size: clamp(1.4rem, 5.5vw, 1.75rem) !important; line-height: 1.2; margin-bottom: 0.5rem; }
  section .eyebrow { font-size: 0.7rem; }
}

/* ---------- MATURITY PILLS (added 2026-05-16) ---------- */
.maturity {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--mono, "JetBrains Mono", ui-monospace, monospace);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.28em 0.7em;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
  line-height: 1;
  vertical-align: middle;
}
.maturity::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.maturity--customers { color: #6ee7a4; border-color: rgba(110,231,164,0.35); background: rgba(110,231,164,0.07); }
.maturity--pilot     { color: #7fe3d4; border-color: rgba(127,227,212,0.35); background: rgba(127,227,212,0.07); }
.maturity--rnd       { color: #f1c97a; border-color: rgba(241,201,122,0.35); background: rgba(241,201,122,0.07); }

/* ---------- PROOF STRIP ---------- */
.proof-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  padding: 2.25rem 6%;
  border-top: 1px solid var(--line, rgba(255,255,255,0.08));
  border-bottom: 1px solid var(--line, rgba(255,255,255,0.08));
  background: rgba(255,138,76,0.04);
}
.proof-strip__item { display: flex; flex-direction: column; gap: 0.35rem; }
.proof-strip__num {
  font-family: var(--mono, "JetBrains Mono", ui-monospace, monospace);
  font-size: 1.6rem;
  color: var(--orange, #ff8a4c);
  font-weight: 500;
  line-height: 1.1;
}
.proof-strip__label {
  font-family: var(--mono, "JetBrains Mono", ui-monospace, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim, rgba(255,255,255,0.55));
}
