/* New homepage (body.home). Design language of rallysite.com, with the RECOILSYSTEMS yellow accent #F5F97F
   in place of its electric blue. Approved by Honcho 2026-11-20. System font stacks only (CSP: font-src 'self'). */

body.home {
  --bg: #050a08;
  --panel: rgba(8, 17, 14, 0.78);
  --line: #16302a;
  --text: #dfeeea;
  --quiet: rgba(223, 238, 234, 0.82);
  --muted: #6f8a83;
  --acc: #f5f97f;
  --acc-hi: #fbfdbe;
  --acc-a: rgba(245, 249, 127, 0.28);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--sans);
}

.home .site-header {
  background: rgba(5, 10, 8, 0.92);
  border-bottom: 1px solid var(--line);
}

/* Background video: fixed behind the whole page under a dark wash */
.hm-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #060c0a url("/media/rs-montage-poster.jpg") center / cover no-repeat;
}

.hm-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.8);
}

.hm-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 8, 0.66);
}

@media (prefers-reduced-motion: reduce) {
  .hm-video { display: none; }
}

.home .hm,
.home .site-footer {
  position: relative;
  z-index: 1;
}

.hm {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 28px 72px;
  overflow-x: clip;
}

.hm h1,
.hm h2,
.hm p,
.hm dl,
.hm dd {
  margin: 0;
  padding: 0;
}

/* Hero panel */
.hm-hero {
  padding: 56px 48px 44px;
  border: 1px solid var(--acc-a);
  background: rgba(5, 10, 8, 0.52);
}

.hm-title {
  max-width: 760px;
  margin-bottom: 20px !important;
  color: #eef3f1;
  font: 500 clamp(28px, 5vw, 46px)/1.12 var(--sans);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hm-lede {
  max-width: 700px;
  margin-bottom: 28px !important;
  color: var(--quiet);
  font-size: 16px;
  line-height: 1.6;
}

.hm-label,
.hm-spec dt {
  color: var(--acc);
  font: 600 12px/1.5 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Square mono buttons with a tinted accent fill */
.hm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid #2b3f39;
  color: var(--text);
  font: 600 12px/1.2 var(--mono);
  letter-spacing: 0.1em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.hm-btn:hover,
.hm-btn:focus-visible {
  border-color: var(--acc);
  color: var(--acc-hi);
}

.home .hm-btn--go {
  border-color: rgba(245, 249, 127, 0.7);
  background: rgba(245, 249, 127, 0.12);
  color: var(--acc-hi);
}

.home .hm-btn--go:hover,
.home .hm-btn--go:focus-visible {
  background: rgba(245, 249, 127, 0.22);
  color: #fff;
}

.hm-btn:focus-visible,
.home .site-footer a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 1px var(--acc), 0 0 0 4px rgba(245, 249, 127, 0.38);
}

/* Content panels: hairline, accent top rule, translucent fill */
.hm-panel {
  margin-top: 20px;
  padding: 28px 26px 26px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--acc);
  background: var(--panel);
}

.hm-h2 {
  margin-bottom: 20px !important;
  color: var(--acc);
  font: 600 20px/1.25 var(--sans);
  letter-spacing: 0.06em;
}

.hm-spec {
  display: grid;
  gap: 18px;
}

.hm-spec dt {
  display: block;
  margin-bottom: 4px;
}

.hm-spec dd {
  max-width: 820px;
  color: var(--quiet);
  font-size: 15px;
  white-space: pre-line;
}

.hm-spec dd.hm-focus {
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
}

.hm-business .hm-actions {
  margin-top: 22px;
}

.hm-legal {
  color: var(--muted);
  font: 400 12px/1.5 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hm-business .hm-actions + .hm-legal {
  margin-top: 26px !important;
  padding-top: 18px !important;
  border-top: 1px solid var(--line);
}

.hm-btn--link {
  letter-spacing: 0.04em;
  text-transform: none;
}

/* Footer in the same dark language */
.home .site-footer {
  background: rgba(5, 10, 8, 0.92);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.home .site-footer a {
  color: var(--quiet);
}

.home .site-footer a:hover,
.home .site-footer a:focus {
  color: var(--acc);
  background: transparent;
}

.home .site-footer .footer-social a:hover,
.home .site-footer .footer-social a:focus {
  color: var(--acc);
  background: transparent;
}

.home .site-footer .footer-social a:focus {
  outline: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hm-btn { transition: background 0.15s, border-color 0.15s, color 0.15s; }
}

@media (max-width: 699.98px) {
  .hm { padding: 20px 20px 48px; }
  .hm-hero { padding: 32px 22px 28px; }
  .hm-lede { font-size: 15px; }
  .hm-panel { padding: 24px 20px 22px; }
  .hm-actions { flex-direction: column; }
  .hm-btn { width: 100%; }
}
