:root {
  --bg: #070a12;
  --panel: rgba(255, 255, 255, 0.06);
  --panel2: rgba(255, 255, 255, 0.09);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.7);
  --faint: rgba(255, 255, 255, 0.55);
  --line: rgba(255, 255, 255, 0.14);
  --brand: #2c4680;
  --brand2: #74a6ff;
  --ok: #35d07f;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --max: 1120px;

  /* Light nav tokens (so white nav + dark text is consistent) */
  --navBg: rgba(255, 255, 255, 0.96);
  --navText: #111;
  --navMuted: rgba(0, 0, 0, 0.7);
  --navLine: rgba(0, 0, 0, 0.1);
}

/* Base */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial;
  color: var(--text);
  background:
    radial-gradient(
      1200px 800px at 15% -10%,
      rgba(116, 166, 255, 0.18),
      transparent 60%
    ),
    radial-gradient(
      900px 650px at 85% 0%,
      rgba(44, 70, 128, 0.22),
      transparent 55%
    ),
    radial-gradient(
      900px 700px at 60% 120%,
      rgba(44, 70, 128, 0.14),
      transparent 60%
    ),
    var(--bg);
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: var(--navBg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--navText);
}
.nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}
.brand img {
  height: 60px;
  width: auto;
  display: block;
}

.menu {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  color: #3a3a3a;
  font-size: 14px;
}
.menu a {
  padding: 10px 10px;
  border-radius: 999px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.menu a:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #111;
}

/* Buttons (default = dark site surfaces) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 650;
  font-size: 14px;
  transition:
    transform 0.15s ease,
    background 0.2s ease,
    border-color 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}
.btnPrimary {
  border-color: rgba(116, 166, 255, 0.22);
  background: linear-gradient(
    135deg,
    rgba(116, 166, 255, 0.16),
    rgba(44, 70, 128, 0.12)
  );
}
.btnPrimary:hover {
  border-color: rgba(116, 166, 255, 0.34);
}

/* Nav buttons (override for white nav) */
.nav .btn {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.03);
  color: var(--navText);
}
.nav .btn:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.16);
}

/* Nav primary button - white nav version */
.nav .btnPrimary {
  background: #2c4680;
  border: 1px solid #2c4680;
  color: #ffffff;
}
.nav .btnPrimary:hover {
  background: #243a6b;
  border-color: #243a6b;
}

/* Mobile navigation */
.navToggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.03);
  color: var(--navText);
}
.navToggle:hover {
  background: rgba(0, 0, 0, 0.06);
}

.mobileMenu {
  display: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--navBg);
  padding: 10px 0 14px;
}
.mobileMenu a {
  display: block;
  padding: 12px 10px;
  border-radius: 12px;
  color: var(--navText);
}
.mobileMenu a:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* Hero */
.hero {
  padding: 54px 0 26px;
}
.heroGrid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: stretch;
}

.kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 13px;
  width: fit-content;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: radial-gradient(circle at 30% 30%, var(--brand2), var(--brand));
  box-shadow: 0 0 0 4px rgba(116, 166, 255, 0.16);
}

h1 {
  margin: 14px 0 12px;
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.03;
  letter-spacing: -0.7px;
}
.lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  max-width: 60ch;
}
.heroActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.trustline {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.trustline .sep {
  opacity: 0.5;
}

.proofRow {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.miniCard {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 14px;
  padding: 12px;
}
.miniCard .big {
  font-weight: 720;
  font-size: 14px;
}
.miniCard .small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
}

/* Visual blocks */
.visual {
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 420px;
  display: grid;
  grid-template-rows: 1fr auto;
}

/* Image wrapper */
.visual .img {
  position: relative;
  overflow: hidden;
}

/* START FRESH: do not force crop/scale/filters on the hero image */
.visual img {
  width: 100%;
  height: auto;
  display: block;

  object-fit: initial;
  object-position: initial;

  transform: none;
  filter: none;
}

.visual .overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      800px 420px at 20% 15%,
      rgba(116, 166, 255, 0.2),
      transparent 60%
    ),
    radial-gradient(
      600px 420px at 80% 40%,
      rgba(44, 70, 128, 0.26),
      transparent 62%
    ),
    linear-gradient(180deg, rgba(10, 14, 25, 0.08), rgba(10, 14, 25, 0.68));
}
.visual .panel {
  padding: 14px;
  border-top: 1px solid var(--line);
  background: rgba(10, 14, 25, 0.44);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  font-size: 12px;
  color: var(--text);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}
.chip strong {
  color: var(--text);
  font-weight: 750;
}

/* Sections + anchors */
section {
  padding: 56px 0;
}

/* Anchor offset for sticky nav (applies only when jumping to an id) */
#top {
  scroll-margin-top: 110px;
}
section[id] {
  scroll-margin-top: 50px;
}

/* Section headings / typography */
.sectionHead {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow {
  color: var(--brand2);
  font-weight: 750;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 11.5px;
}

/* Contact eyebrow spacing above the contact box */
#contact .eyebrow {
  margin-bottom: 18px;
}

h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.4px;
  line-height: 1.12;
}
.sub {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 78ch;
  font-size: 15.5px;
}

/* Layout grids */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  align-items: stretch;
}
.quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Cards / quotes */
.card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.25);
}
.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: -0.2px;
}
.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14.5px;
}

blockquote {
  margin: 0;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}
blockquote:before {
  content: "";
  position: absolute;
  inset: -40px -40px auto auto;
  width: 120px;
  height: 120px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(116, 166, 255, 0.18),
    transparent 60%
  );
  transform: rotate(10deg);
}
blockquote p {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
  font-size: 14.5px;
}
.who {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}
.who strong {
  color: var(--text);
  font-weight: 720;
}

/* Feature image block */
.feature {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  min-height: 320px;
  position: relative;
}
.feature img {
  width: 100%;
  height: auto;
  display: block;
}
.feature .shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      700px 400px at 20% 20%,
      rgba(116, 166, 255, 0.18),
      transparent 58%
    ),
    linear-gradient(180deg, rgba(10, 14, 25, 0), rgba(10, 14, 25, 0.55));
}

/* Check list */
.list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}
.check {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(53, 208, 127, 0.14);
  border: 1px solid rgba(53, 208, 127, 0.28);
  margin-top: 1px;
  flex: 0 0 auto;
}
.li .t {
  font-weight: 750;
  font-size: 14px;
  margin: 0;
}
.li .d {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

/* CTA band */
.ctaBand {
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line);
  background:
    radial-gradient(
      700px 420px at 20% 20%,
      rgba(116, 166, 255, 0.2),
      transparent 60%
    ),
    radial-gradient(
      700px 420px at 80% 40%,
      rgba(44, 70, 128, 0.26),
      transparent 60%
    ),
    rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}
.ctaBand h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.2px;
}
.ctaBand p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14.5px;
}

/* Footer */
footer {
  padding: 36px 0 46px;
  color: var(--muted);
}
.foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  align-items: center;
}
.foot small {
  display: block;
  line-height: 1.6;
}
.foot .links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.foot .links a {
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}
.foot .links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

/* Utility / pages */
.floatCta {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: none;
}
.page {
  min-height: 60vh;
}
.page h1 {
  margin-top: 0;
}
.prose h2 {
  margin-top: 22px;
}
.prose p,
.prose li {
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}
.prose ul {
  padding-left: 18px;
}

/* Contact form */
.ctaBand--form {
  grid-template-columns: 1fr 1.1fr;
}
.ctaBand--form {
  align-items: flex-start;
}
.ctaBand--form > div {
  align-self: flex-start;
}

.form {
  border: 1px solid var(--line);
  background: rgba(10, 14, 25, 0.35);
  border-radius: calc(var(--radius) + 6px);
  padding: 16px;
}
.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form__row {
  display: grid;
  gap: 6px;
}
.form__row--full {
  grid-column: 1 / -1;
}
.form__row label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 650;
}
.form__row input,
.form__row textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  outline: none;
}
.form__row textarea {
  resize: vertical;
  min-height: 120px;
}
.form__row input::placeholder,
.form__row textarea::placeholder {
  color: var(--faint);
}
.form__row input:focus,
.form__row textarea:focus {
  border-color: rgba(116, 166, 255, 0.38);
  box-shadow: 0 0 0 4px rgba(116, 166, 255, 0.12);
}
.form__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 12px;
}
.form__row--honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Hire Technical Talent landing page (layout only, no hero image overrides) */
.landing-hire-technical .nav .inner {
  justify-content: space-between;
}
.landing-hire-technical .landing-shell {
  max-width: 760px;
}
.landing-hire-technical .landing-hero {
  padding-top: 46px;
  padding-bottom: 24px;
}
.landing-hire-technical .landing-card {
  padding: 22px;
}
.landing-hire-technical .landing-card h2 {
  font-size: clamp(24px, 2.6vw, 32px);
}
.landing-hire-technical .landing-list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 16px;
}
.landing-hire-technical .landing-list li + li {
  margin-top: 8px;
}
.landing-hire-technical .landing-microtrust {
  margin: 14px 0 0;
  color: var(--faint);
  font-size: 14px;
  font-weight: 650;
}
.landing-hire-technical .landing-cta-mid {
  margin-top: 16px;
}

/* Responsive */
@media (max-width: 980px) {
  .heroGrid {
    grid-template-columns: 1fr;
  }
  .visual {
    min-height: 360px;
  }
  .proofRow {
    grid-template-columns: 1fr;
  }
  .grid3 {
    grid-template-columns: 1fr;
  }
  .grid2,
  .split,
  .quotes {
    grid-template-columns: 1fr;
  }
  .ctaBand {
    grid-template-columns: 1fr;
  }
  .ctaBand--form {
    grid-template-columns: 1fr;
  }
  .form__grid {
    grid-template-columns: 1fr;
  }
  .navToggle {
    display: inline-flex;
  }
  .menu {
    display: none;
  }

  /* Mobile menu: only show when hamburger sets aria-expanded="true" */
  .mobileMenu {
    display: none;
  }
  header.nav:has(#nav-toggle[aria-expanded="true"]) .mobileMenu {
    display: block;
  }

  .floatCta {
    display: block;
  }
}

@media (max-width: 520px) {
  .wrap {
    width: min(var(--max), calc(100% - 32px));
  }
  .nav .inner {
    padding: 12px 0;
  }
  .brand img {
    height: 52px;
  }
}
/* Remove the grey/gradient overlay that sits on top of the hero image */
.visual .overlay {
  display: none !important;
}

/* ================================
   MOBILE NAV FIXES (paste at bottom)
   ================================ */

/* Make sure the sticky nav paints a full-width background (Safari can be weird here) */
.nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;

  /* Use background-color (not just background) to avoid partial painting */
  background-color: var(--navBg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);

  /* Prevent odd clipping/painting behavior */
  isolation: isolate;
}

/* Force a full-width "paint layer" behind the nav content */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--navBg);
  z-index: -1;
}

/* Mobile logo + spacing: allow shrinking so it doesn't break the header */
@media (max-width: 980px) {
  .brand {
    min-width: 0;          /* important: allow it to shrink */
    flex: 1 1 auto;
  }

  .brand img {
    max-width: 100%;
    height: 48px;          /* slightly smaller for mobile */
  }

  .nav .inner {
    gap: 10px;
  }
}

/* Extra small phones */
@media (max-width: 520px) {
  .brand img {
    height: 44px;
  }
}
/* ================================
   FIX: Right-side truncation (Chrome)
   ================================ */

/* Don't hide overflow by default; clip is safer and avoids weird "cut off" feeling */
html,
body {
  width: 100%;
  overflow-x: clip; /* if clip isn't supported, it behaves close to hidden but nicer */
}

/* Make sure common media never overflow */
img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

/* Key fix: allow grid/flex children to shrink instead of forcing overflow */
.heroGrid > *,
.split > *,
.grid2 > *,
.grid3 > *,
.quotes > *,
.ctaBand > *,
.nav .inner > * {
  min-width: 0;
}

/* If anything uses long text/urls, prevent it from forcing width */
a,
p,
li,
h1,
h2,
h3,
.btn {
  overflow-wrap: anywhere;
}
/* =========================================
   MOBILE HEADER FIX (logo + clipped buttons)
   Paste at the very bottom of styles.css
   ========================================= */

/* 1) Make sure the nav paints full width and never clips */
.nav {
  width: 100%;
  left: 0;
  right: 0;
}

.nav .inner {
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

/* 2) Let flex children shrink instead of forcing overflow */
.nav .inner > * {
  min-width: 0;
}

/* 3) Logo: prevent it from forcing the header wider than the screen */
.brand {
  min-width: 0;
  flex: 1 1 auto;
}

.brand img {
  height: 60px;
  width: auto;
  max-width: 180px; /* prevents huge logo widths on small screens */
}

/* 4) CTA buttons area: keep buttons visible (wrap instead of overflow) */
.navCtas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;           /* key: prevents right-side clipping */
  justify-content: flex-end;
  align-items: center;
  max-width: 100%;
}

/* 5) Buttons: slightly tighter on small screens */
@media (max-width: 520px) {
  .brand img {
    height: 44px;
    max-width: 150px;
  }

  .nav .btn {
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* 6) Ensure primary nav button is blue */
.nav .btnPrimary {
  background: #2c4680 !important;
  border-color: #2c4680 !important;
  color: #fff !important;
}
.nav .btnPrimary:hover {
  background: #243a6b !important;
  border-color: #243a6b !important;
}

/* =========================================
   MOBILE HEADER: fix logo + keep CTAs inline
   Paste at very bottom of styles.css
   ========================================= */

@media (max-width: 980px) {
  /* Make the header layout deterministic */
  .nav .inner {
    display: grid;
    grid-template-columns: auto 1fr auto; /* logo | spacer | CTAs */
    align-items: center;
    gap: 10px;
  }

  /* Logo: shrink safely + give it a subtle backdrop so it doesn't wash out on white */
  .brand {
    min-width: 0;
    display: flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
  }

  .brand img {
    height: 42px;
    width: auto;
    max-width: 170px; /* prevents it from blowing out the layout */
    display: block;
  }

  /* Put the hamburger in the middle column */
  .navToggle {
    justify-self: center;
  }

  /* CTAs: keep them on ONE line */
  .navCtas {
    justify-self: end;
    display: flex;
    gap: 10px;
    flex-wrap: nowrap; /* key: no wrapping */
    align-items: center;
    max-width: 100%;
  }

  /* Make buttons slightly tighter so both fit */
  .nav .btn {
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* Smaller phones: tighten a bit more so nothing wraps */
@media (max-width: 520px) {
  .brand img {
    height: 38px;
    max-width: 140px;
  }

  .nav .btn {
    padding: 9px 10px;
    font-size: 12.5px;
  }
}