:root{
  --bg:#141414;
  --bg2:#1f1f1f;
  --panel:#232323;
  --steel:#3a3a3a;
  --off:#f4f4f4;
  --text:#e9e9e9;
  --muted:#b7b7b7;
  --muted2:#9a9a9a;
  --line:rgba(255,255,255,.12);
  --accent:#1E6FB8;
  --accent2:#0E4D86;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius:16px;
  --max: 1120px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 800px at 20% 0%, #202020 0%, var(--bg) 50%, #0f0f0f 100%);
  color:var(--text);
  line-height:1.45;
}

a{color:inherit; text-decoration:none}
a:hover{opacity:.92}
p{margin:0 0 14px}
ul{margin:0 0 14px; padding-left:18px}
small{color:var(--muted2)}

.container{max-width:var(--max); margin:0 auto; padding:0 22px}
.section{padding:78px 0}
.section.tight{padding:48px 0}
.section.light{
  background: linear-gradient(180deg, #f7f7f7 0%, var(--off) 100%);
  color:#111;
}
.section.light a{color:#111}
.section.gray{
  background: linear-gradient(180deg, #3b3b3b 0%, #2f2f2f 100%);
}
.section.steel{
  background: linear-gradient(180deg, #e9e9e9 0%, #dcdcdc 100%);
  color:#111;
}
.section.steel a{color:#111}

.card{
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding:22px;
  box-shadow: var(--shadow);
}
.light .card, .steel .card{
  background:#ffffff;
  border:1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.10);
}

.grid{display:grid; gap:18px}
.grid.cols-2{grid-template-columns: repeat(2, minmax(0,1fr))}
.grid.cols-3{grid-template-columns: repeat(3, minmax(0,1fr))}
@media (max-width: 980px){
  .grid.cols-2,.grid.cols-3{grid-template-columns:1fr}
}

.h1{
  font-size: clamp(30px, 4.2vw, 46px);
  line-height:1.1;
  letter-spacing:-0.02em;
  margin:0 0 14px;
}
.h2{
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing:-0.01em;
  margin:0 0 14px;
}
.h3{
  font-size: 18px;
  margin:0 0 10px;
  letter-spacing:-0.01em;
}
.lead{
  font-size: 18px;
  color: var(--muted);
  max-width: 820px;
}
.light .lead, .steel .lead{color:#333}

.kicker{
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  margin:0 0 10px;
}
.light .kicker, .steel .kicker{color:#444}

.hr{
  height:1px;
  background: var(--line);
  margin: 18px 0;
}
.light .hr, .steel .hr{background: rgba(0,0,0,.1)}

.btnrow{display:flex; gap:12px; flex-wrap:wrap; margin-top:18px}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-weight:600;
}
.btn:hover{transform: translateY(-1px)}
.btn.primary{
  border-color: rgba(30,111,184,.55);
  background: linear-gradient(180deg, rgba(30,111,184,.25) 0%, rgba(30,111,184,.12) 100%);
}
.light .btn, .steel .btn{
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  color:#111;
}
.light .btn.primary, .steel .btn.primary{
  border-color: rgba(30,111,184,.55);
  background: linear-gradient(180deg, rgba(30,111,184,.10) 0%, rgba(30,111,184,.06) 100%);
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--muted);
  font-size: 13px;
}

.navwrap{
  position: sticky;
  top:0;
  z-index: 50;
  background: rgba(18,18,18,.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 0;
  gap:16px;
}
.brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-width: 240px;
}
.brand img{
  height:60px;
  width:auto;
  display:block;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.45));
}
.menu{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.menu a{
  color: var(--muted);
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.menu a:hover{
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}
.menu a.active{
  color: var(--text);
  border-color: rgba(30,111,184,.45);
  background: rgba(30,111,184,.12);
}

.hero{
  padding: 76px 0 34px;
}
.hero .topline{display:flex; gap:12px; flex-wrap:wrap; margin-bottom:16px}
.hero .kicker{margin:0}
.hero .badge{margin-top:2px}
.herogrid{
  display:grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 22px;
  align-items: start;
}
@media (max-width:980px){
  .herogrid{grid-template-columns:1fr}
}

.panel{
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  padding: 18px;
}
.panel h3{margin:0 0 12px}
.panel ul{margin:0; padding-left:18px}
.panel li{margin:8px 0; color: var(--muted)}

.light .panel, .steel .panel{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
}
.light .panel li, .steel .panel li{color:#333}

.footer{
  padding: 28px 0 40px;
  color: var(--muted2);
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,.22);
}
.footer a{color: var(--muted)}
.footer .row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.footer .links{display:flex; gap:14px; flex-wrap:wrap}
.footer .links a{padding:6px 8px; border-radius:999px; border:1px solid transparent}
.footer .links a:hover{border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.04)}

.form{
  display:grid; gap:12px; max-width: 720px;
}
.input, .textarea{
  width:100%;
  padding:12px 14px;
  border-radius: 12px;
  border:1px solid rgba(0,0,0,.18);
  background:#fff;
  color:#111;
  font-size: 15px;
}
.textarea{min-height: 130px; resize: vertical}

.note{
  font-size: 13px;
  color: var(--muted2);
}

.pills{display:flex; gap:10px; flex-wrap:wrap}
.pills .pill{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  color:#111;
  font-size: 13px;
  font-weight:600;
}
.steel .pills .pill{background:#fff}

/* =========================================
   Mobile navigation – FINAL, OVERRIDE-SAFE
   ========================================= */
@media (max-width: 820px){

  /* stack logo + menu */
  .navwrap .nav{
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 5px;
    padding: 5px 0;
  }

  /* logo sizing */
  .navwrap .brand{
    min-width: 0;
    width: 100%;
  }
  .navwrap .brand img{
    height: 56px;
    max-width: 70vw;
    margin: 0 auto; 
    display:block; 
    padding-left:0; 
  }

  /* ONE-LINE scrollable menu, LEFT aligned, NO clipping */
  .navwrap .menu{
    width: 100%;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start !important;   /* overrides desktop */

    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;

    gap: 10px;

    /* critical padding to avoid cut on both sides */
    padding-left: 1px !important;
    padding-right: 32px !important;
    padding-bottom: 6px;

    scroll-padding-left: 12px;
    scroll-padding-right: 32px;

    scrollbar-width: none;
  }

  .navwrap .menu::-webkit-scrollbar{
    display: none;
  }

  .navwrap .menu a{
    flex: 0 0 auto;
    white-space: nowrap;

    font-size: 14px;           /* smaller text */
    padding: 7px 10px;         /* smaller pill */
    border-radius: 999px;
  }

  /* hard end spacer – guarantees last item is never cut */
  .navwrap .menu::after{
    content: "";
    flex: 0 0 10px;
  }
}
/* How We Work – responsive */
.grid.cols-4{ grid-template-columns: repeat(4, minmax(0,1fr)); }

@media (max-width: 980px){
  .grid.cols-4{ grid-template-columns: 1fr; }
}

/* optional: make the cards a bit tighter on phones */
@media (max-width: 820px){
  .howwework{ gap: 14px !important; }
  .howwework .card{ padding: 16px; }
  .howwework .note{ font-size: 14px; line-height: 1.45; }
}


