/* OpenBQ — single-page site
   Tokens come from the logo files (navy #021E61, orange #EC9C47)
   and brightquery.com's pale ground (#E4EDF8). */

:root {
  --navy: #021E61;
  --navy-deep: #011342;
  --orange: #EC9C47;
  --orange-hover: #F2B26A;
  --orange-ink: #A8611A;
  --ice: #E4EDF8;
  --white: #FFFFFF;
  --slate: #1E2742;
  --muted: #5B6480;
  --mist: #B8C1DC;
  --rule: #D6DBE8;
  --display: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--slate);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--display); color: var(--navy); margin: 0; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(38px, 4.6vw, 60px); font-weight: 800; letter-spacing: -0.015em; }
h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; }
h4 { font-size: 14px; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
svg { display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (min-width: 1024px) { .container { padding: 0 48px; } }

section { padding: 56px 0; }
@media (min-width: 800px) { section { padding: 80px 0; } }
@media (min-width: 1024px) { section { padding: 104px 0; } }
.navy { background: var(--navy); color: var(--white); }
.navy h2, .navy h3 { color: var(--white); }
.navy p { color: var(--mist); }
.ice { background: var(--ice); }

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--orange-ink); margin-bottom: 14px;
}
.navy .eyebrow { color: var(--orange); }
section h2 { max-width: 22ch; margin-bottom: 24px; }

/* Buttons: orange carries navy text, never white. Orange is never text on white. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 2px;
  font-family: var(--body); font-size: 14px; font-weight: 500; text-decoration: none;
  border: 1px solid transparent; transition: background-color 150ms, border-color 150ms, color 150ms;
  white-space: nowrap;
}
.btn.lg { height: 48px; padding: 0 22px; font-size: 16px; }
.btn.primary { background: var(--orange); color: var(--navy); }
.btn.primary:hover { background: var(--orange-hover); }
.btn.ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.55); }
.btn.ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
.btn.dark { background: var(--navy); color: var(--white); }
.btn.dark:hover { background: var(--navy-deep); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: var(--navy); color: var(--white); border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.brand .mark { height: 22px; width: auto; }
.links { display: none; gap: 28px; }
.links a { text-decoration: none; color: var(--mist); font-size: 14px; font-weight: 500; }
.links a:hover { color: var(--white); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .ghost { display: none; }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-right: -8px; padding: 0;
  background: transparent; border: 0; color: var(--white); cursor: pointer; border-radius: 2px;
}
.menu-btn svg { width: 24px; height: 24px; }
.mobile-menu { display: grid; padding: 4px 24px 12px; background: var(--navy); border-top: 1px solid rgba(255, 255, 255, 0.12); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 12px 0; color: var(--white); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 17px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.mobile-menu a:last-child { border-bottom: 0; }
@media (min-width: 800px) {
  .links { display: flex; }
  .nav-cta .ghost { display: inline-flex; }
  .menu-btn, .mobile-menu { display: none; }
}

/* Hero */
.hero { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--white); padding: 56px 0; }
@media (min-width: 800px) { .hero { padding: 80px 0 72px; } }
@media (min-width: 1024px) { .hero { padding: 112px 0 96px; } }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; } }
.hero-shot { display: none; margin: 0; }
@media (min-width: 800px) { .hero-shot { display: block; } }
@media (max-width: 479px) { .hero .cta-row .btn, .close .cta-row .btn { width: 100%; } }
.hero-shot img { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 4px;
  color: var(--white); font-size: 13px; font-weight: 500; text-decoration: none; margin-bottom: 28px;
  transition: border-color 150ms;
}
.pill:hover { border-color: var(--orange); }
.pill svg { width: 14px; height: 14px; }
.hero h1 { color: var(--white); max-width: 14ch; }
.hero .lede { color: var(--mist); font-size: 18px; max-width: 58ch; margin: 24px 0 32px; }
@media (min-width: 1024px) { .hero .lede { font-size: 19px; } }
/* Proof band */
.proof { padding: 0; border-bottom: 1px solid var(--rule); }
.figures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 32px; margin: 0; padding: 28px 0; }
@media (min-width: 800px) { .figures { grid-template-columns: repeat(4, 1fr); padding: 32px 0; } }
.figures div { display: grid; gap: 2px; }
.figures dt { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.figures dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(22px, 7.2vw, 30px); color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.1; }

/* Why now */
.why .intro { font-size: 18px; max-width: 62ch; color: var(--slate); margin-bottom: 40px; }
.cols { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .cols { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.cols h3 { margin-bottom: 8px; }
.cols p { color: var(--slate); }

/* Stack */
.arch { max-width: 940px; margin: 8px auto 40px; }
@media (min-width: 800px) { .arch { margin-bottom: 56px; } }
.arch img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 3px; }
@media (max-width: 799px) { .arch { margin-left: -24px; margin-right: -24px; } .arch img { border-radius: 0; border-left: 0; border-right: 0; } }

/* Card rows: swipeable carousel on phones, grid from 800px up */
.track { display: grid; gap: 16px; }
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }
.carousel-nav button {
  width: 40px; height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  background: var(--white); color: var(--navy); border: 1px solid var(--navy); border-radius: 2px; cursor: pointer;
}
.carousel-nav button svg { width: 20px; height: 20px; }
.carousel-nav button:disabled { opacity: 0.3; cursor: default; }
.dots { display: flex; gap: 6px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--rule); }
.dots i.on { background: var(--navy); }
@media (max-width: 799px) {
  .track {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -24px; padding: 2px 24px 4px; scroll-padding-inline: 24px; scrollbar-width: none;
  }
  .track::-webkit-scrollbar { display: none; }
  .track > * { flex: 0 0 min(84%, 340px); scroll-snap-align: start; }
}
@media (min-width: 800px) {
  .cards3 { grid-template-columns: repeat(3, 1fr); }
  .carousel-nav { display: none; }
}
.card {
  border: 1px solid var(--rule); border-radius: 3px; padding: 24px; background: var(--white);
  display: grid; gap: 12px; grid-template-rows: auto 1fr auto;
}
.card p { color: var(--slate); }
.card-meta, .card-cta { align-self: end; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 8px; font-size: 14px; }
.card-meta a { color: var(--navy); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.card-meta a:hover { color: var(--orange-ink); }
.badge { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--navy); background: var(--ice); padding: 3px 8px; border-radius: 2px; }
.badge.soft { color: var(--muted); background: transparent; border: 1px solid var(--rule); font-weight: 500; letter-spacing: 0; }

/* History */
.statement { display: grid; gap: 16px; max-width: 64ch; }
.statement p {
  font-family: var(--display); font-weight: 500; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.55;
  color: var(--slate); text-wrap: pretty;
}
.statement strong { color: var(--navy); font-weight: 700; }

/* Team */
.team .intro { font-size: 18px; max-width: 62ch; color: var(--mist); margin-bottom: 40px; }
.profiles { display: grid; gap: 20px; }
.navy .profile { border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.05); }
.navy .profile h3 { color: var(--white); }
.navy .profile .role { color: var(--orange); }
.navy .profile .bio p { color: var(--mist); }
.navy .profile-links a { color: var(--white); }
.navy .profile-links a:hover { color: var(--orange); }
.profile { border: 1px solid var(--rule); border-radius: 3px; padding: 28px; display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 800px) { .profile { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding: 36px; } }
.profile img { display: block; width: 160px; height: auto; border-radius: 3px; }
@media (min-width: 800px) { .profile img { width: 100%; } }
.profile-body { display: grid; gap: 10px; align-content: start; }
.profile h3 { font-size: 24px; }
.profile .role { font-size: 14px; font-weight: 600; color: var(--orange-ink); }
.profile .bio { display: grid; gap: 12px; max-width: 66ch; }
.profile .bio p { color: var(--slate); }
.profile-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 8px; font-size: 14px; }
.profile-links a { color: var(--navy); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.profile-links a:hover { color: var(--orange-ink); }
.endorsement { margin: 56px 0 0; padding: 0; display: grid; gap: 20px; }
.endorsement blockquote { margin: 0; padding-left: 22px; border-left: 3px solid var(--orange); }
.endorsement blockquote p { font-family: var(--display); font-weight: 500; font-size: 21px; line-height: 1.45; color: var(--navy); max-width: 54ch; text-wrap: pretty; }
@media (min-width: 1024px) { .endorsement blockquote p { font-size: 24px; } }
.endorsement figcaption { padding-left: 25px; display: grid; gap: 2px; justify-items: start; font-size: 14px; }
.endorsement .who { font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--navy); }
.endorsement .role { color: var(--orange-ink); font-weight: 600; }
.endorsement figcaption a { margin-top: 6px; color: var(--navy); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.endorsement figcaption a:hover { color: var(--orange-ink); }

/* Contact */
.contact-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .contact-grid { grid-template-columns: repeat(2, 1fr); max-width: 920px; } }
.card > .btn { align-self: end; justify-self: start; margin-top: 8px; }
.card-cta { align-self: end; justify-self: start; margin-top: 8px; color: var(--navy); font-weight: 500; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.card-cta:hover { color: var(--orange-ink); }

/* Close */
.close { text-align: center; }
.close h2 { margin: 0 auto 28px; }
.close .cta-row { justify-content: center; }

/* Footer */
.footer { background: var(--navy-deep); color: var(--white); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer-groups { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.footer-groups div { display: grid; gap: 8px; align-content: start; }
.footer-groups h4 { color: var(--white); margin-bottom: 4px; }
.footer-groups a { color: var(--mist); text-decoration: none; font-size: 14px; }
.footer-groups a:hover { color: var(--white); }
.footer-line { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 20px; padding-bottom: 28px; }
.footer-line p { font-size: 13px; color: var(--mist); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .track { scroll-behavior: auto; }
  .btn, .pill { transition: none; }
}
