/* =========================================================
   Velocity — Bootstrap 5 overrides + custom styles
   ========================================================= */
:root {
  --bg: #1a1814;
  --bg-elev: #221f1a;
  --surface: #2a2620;
  --fg: #f5f1ea;
  --muted: #a09a8e;
  --hairline: rgba(255,255,255,0.09);
  --primary: #f5b842;
  --primary-ink: #1a1814;
  --accent: #e94f37;
  --radius: 14px;
  --maxw: 1180px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --bs-primary: #f5b842;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter Tight", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--primary); color: var(--primary-ink); }

.container { max-width: var(--maxw); }

/* ---------- Typography ---------- */
.display, .display-md {
  font-family: "Instrument Serif", ui-serif, Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0;
}
.display { font-size: clamp(2.2rem, 7vw, 5rem); }
.display-md { font-size: clamp(1.8rem, 5vw, 3.4rem); }
.display em, .display-md em { color: var(--primary); font-style: italic; }

.lede {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  max-width: 56ch;
  margin: 18px 0 0;
}
.mono-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.muted { color: var(--muted); }

/* ---------- Buttons (Bootstrap overrides) ---------- */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-ink);
  font-weight: 600;
}
.btn-primary:hover, .btn-primary:focus {
  background: #ffc758; border-color: #ffc758; color: var(--primary-ink);
  transform: translateY(-2px);
}
.btn-outline-light {
  border-color: var(--hairline); color: var(--fg);
}
.btn-outline-light:hover {
  background: transparent; border-color: var(--primary); color: var(--primary);
}
.btn { transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s; }

/* ---------- Nav ---------- */
.nav-velocity {
  backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--hairline);
  padding: 10px 0;
}
.nav-velocity .brand {
  font-family: "Instrument Serif", serif;
  font-size: 1.5rem;
  color: var(--fg);
}
.brand .dot { color: var(--primary); }
.brand-logo { width: 20%; border-radius: 8px; padding: 4px; background-color: #fff;}

.nav-velocity .nav-link {
  color: var(--muted) !important;
  font-size: .92rem;
}
.nav-velocity .nav-link:hover { color: var(--fg) !important; }
.navbar-toggler {
  border: 1px solid var(--hairline);
  color: var(--fg);
  font-size: 1.4rem;
  padding: .35rem .6rem;
}
.navbar-toggler:focus { box-shadow: none; }
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--bg-elev);
    margin-top: 10px;
    padding: 16px;
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 130px 0 80px;
  overflow: hidden;
}
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%;
  height: 120%;
  background:
    radial-gradient(60% 50% at 30% 20%, color-mix(in oklab, var(--primary) 28%, transparent), transparent 70%),
    radial-gradient(50% 40% at 80% 30%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.hero-inner { position: relative; }

.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--hairline);
  aspect-ratio: 4/3;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media-badge {
  position: absolute; left: 14px; bottom: 14px;
  background: var(--primary); color: var(--primary-ink);
  padding: 8px 14px; border-radius: 999px;
  font-weight: 600; font-size: .85rem;
  display: inline-flex; align-items: center; gap: 6px;
}

/* Grain texture */
.grain::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/></svg>");
}

.stat-num {
  font-family: "Instrument Serif", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--primary);
  line-height: 1;
}
.stat-label { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.stats { border-color: var(--hairline) !important; }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden; padding: 18px 0;
  background: var(--bg-elev);
}
.marquee-track {
  display: flex; gap: 36px; white-space: nowrap;
  font-family: "Instrument Serif", serif;
  font-size: 1.4rem; color: var(--muted);
  animation: scroll 28s linear infinite;
  width: max-content;
}
.marquee-track span:nth-child(even) { color: var(--primary); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 90px 0; position: relative; }
.section-alt { background: var(--bg-elev); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head .lede { margin-top: 22px; }

/* Brief → kickoff in one line on mobile */
@media (max-width: 575.98px) {
  #speed .display-md { font-size: 1.6rem; white-space: nowrap; letter-spacing: -0.03em; }
}

/* Timeline cards */
.t-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .35s var(--ease), border-color .35s;
}
.t-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.t-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: .72rem; letter-spacing: .18em;
  color: var(--primary);
  margin-bottom: 18px;
}
.t-card h3 { margin: 0 0 8px; font-size: 1.25rem; }
.t-card p { margin: 0; color: var(--muted); }

/* Capabilities — professional list view */
.cap-pro {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .35s var(--ease), border-color .35s;
  display: flex; flex-direction: column;
}
.cap-pro:hover { transform: translateY(-4px); border-color: var(--primary); }
.cap-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--hairline); }
.cap-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: color-mix(in oklab, var(--primary) 18%, transparent);
  color: var(--primary);
  font-size: 1.35rem;
  flex-shrink: 0;
}
.cap-pro h3 { margin: 0; font-size: 1.2rem; }
.cap-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.cap-list li { display: flex; align-items: center; gap: 10px; color: var(--fg); font-size: .98rem; }
.cap-list li i { color: var(--primary); font-size: 1.1rem; flex-shrink: 0; }

/* Trust */
.trust-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--hairline);
  aspect-ratio: 4/3;
}
.trust-media img { width: 100%; height: 100%; object-fit: cover; }
.trust-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.trust-points li { display: flex; align-items: flex-start; gap: 12px; color: var(--fg); }
.trust-points li i { color: var(--primary); font-size: 1.2rem; margin-top: 2px; }

/* Logo grid */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 560px) { .logo-grid { grid-template-columns: repeat(4,1fr); } }
@media (min-width: 980px) { .logo-grid { grid-template-columns: repeat(8,1fr); } }
.logo {
  background: var(--bg);
  padding: 24px 12px;
  display: grid; place-items: center;
  transition: background .25s;
}
.logo img { opacity: .65; transition: opacity .25s, transform .25s; max-height: 28px; width: auto; }
.logo:hover { background: var(--surface); }
.logo:hover img { opacity: 1; transform: scale(1.05); }

/* Contact */
.contact-media {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--hairline); aspect-ratio: 16/10;
}
.contact-media img { width: 100%; height: 100%; object-fit: cover; }

.card-panel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px;
}
.form-label-mono {
  font-family: "JetBrains Mono", monospace;
  font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 6px;
}
.form-velocity {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--fg);
}
.form-velocity:focus {
  background: var(--bg);
  border-color: var(--primary);
  color: var(--fg);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 20%, transparent);
}
.form-velocity::placeholder { color: color-mix(in oklab, var(--muted) 80%, transparent); }
.thanks { color: var(--primary); }

/* Footer */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 56px 0 28px;
  background: var(--bg);
}
.footer .brand { font-size: 1.5rem; color: var(--fg); }
.footer p { margin: 8px 0 0; color: var(--muted); }
.footer a:hover { color: var(--primary); }
.socials a {
  width: 38px; height: 38px;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  color: var(--fg);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.socials a:hover {
  background: var(--primary); color: var(--primary-ink); border-color: var(--primary);
  transform: translateY(-2px);
}
.foot-bottom {
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid var(--hairline);
  color: var(--muted); font-size: .85rem;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .18s; }
.delay-3 { transition-delay: .28s; }
.delay-4 { transition-delay: .38s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
}
