html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; padding: 0; background: #FFFFFF; color: #4A5A70; font-family: 'Source Sans 3', sans-serif; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
a { color: #0E6BE0; text-decoration: none; }
a:hover { color: #0A55B4; }
input::placeholder { color: #9AA8BA; }

@keyframes om-pulse { 0%, 100% { box-shadow: 0 10px 26px rgba(0,0,0,0.30), 0 0 0 5px rgba(14,107,224,0.20); } 50% { box-shadow: 0 10px 26px rgba(0,0,0,0.30), 0 0 0 10px rgba(14,107,224,0.08); } }
@media (prefers-reduced-motion: reduce) { .mobile-call-fab { animation: none !important; } }

/* Header */
#site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(255,255,255,0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 14px 0; box-shadow: 0 1px 0 rgba(10,31,68,0.08); transform: translateY(0); transition: padding .28s cubic-bezier(.4,0,.2,1), box-shadow .28s ease, transform .3s ease; }
#site-header.scrolled { padding: 9px 0; box-shadow: 0 6px 24px rgba(10,31,68,0.10), 0 1px 0 rgba(10,31,68,0.08); }
#site-header.hidden { transform: translateY(-100%); }
#site-header .logo-img { display: block; flex: none; height: 54px; width: auto; max-width: 100%; transition: height .28s cubic-bezier(.4,0,.2,1); }
#site-header.scrolled .logo-img { height: 44px; }
.header-inner { max-width: 1360px; margin: 0 auto; padding: 0 clamp(20px,3vw,44px); display: flex; align-items: center; justify-content: space-between; gap: clamp(20px,3vw,40px); position: relative; }
.logo-wrap { display: flex; align-items: center; gap: 12px; flex: none; margin-left: clamp(0px,3vw,56px); }
.hamburger-btn { display: none; background: #EEF3FA; border: none; border-radius: 13px; width: 46px; height: 46px; align-items: center; justify-content: center; cursor: pointer; flex: none; position: relative; z-index: 1; }
.mobile-call-btn { display: none; background: #0E6BE0; border-radius: 13px; width: 46px; height: 46px; align-items: center; justify-content: center; flex: none; position: relative; z-index: 1; }
.desktop-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(10px,1.4vw,24px); }
.desktop-nav a.nav-link { color: #3A4A62; font-weight: 700; font-size: 14.5px; white-space: nowrap; transition: color .2s ease; }
.desktop-nav a.nav-link:hover { color: #0E6BE0; }
.desktop-nav a.nav-phone { color: #0A1F44; font-weight: 800; font-size: 15px; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; transition: color .2s ease; }
.desktop-nav a.nav-phone:hover { color: #0E6BE0; }
.btn-cta { background: #0E6BE0; color: #FFFFFF; transition: transform .2s ease, filter .2s ease; }
.btn-cta:hover { transform: translateY(-2px); filter: brightness(0.93); color: #FFFFFF; }
.btn-navy { background: #0A1F44; color: #FFFFFF; transition: transform .2s ease, background .2s ease; }
.btn-navy:hover { transform: translateY(-2px); background: #132D5C; color: #FFFFFF; }
.nav-cta { padding: 12px 24px; border-radius: 8px; font-weight: 800; font-size: 15px; white-space: nowrap; margin-left: 6px; box-shadow: 0 6px 16px rgba(14,107,224,0.28); }

@media (max-width: 1039px) {
  .hamburger-btn { display: flex; }
  .mobile-call-btn { display: flex; }
  .desktop-nav { display: none; }
  .logo-wrap { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); max-width: calc(100vw - 150px); gap: 9px; margin-left: 0; }
  /* keep the logo's true aspect ratio when the width cap kicks in */
  #site-header .logo-img { height: auto; width: auto; max-height: 54px; max-width: 100%; }
  #site-header.scrolled .logo-img { height: auto; max-height: 44px; }
}
@media (min-width: 1040px) { .mobile-call-fab { display: none !important; } }
/* Hero: desktop two-column, mobile hybrid order (eyebrow → H1 → image → body → buttons → trust) */
.rr-hero { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "head img" "body img"; column-gap: clamp(36px,5vw,64px); row-gap: 0; align-items: center; }
.rr-head { grid-area: head; align-self: end; }
.rr-body { grid-area: body; align-self: start; }
.rr-img { grid-area: img; }
@media (max-width: 1039px) {
  .rr-hero { grid-template-columns: 1fr; grid-template-areas: "head" "img" "body"; row-gap: 28px; }
  .rr-hero .rr-img { margin: 8px 0; }
}
.zw { overflow: hidden; }
.zw img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.zw:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .zw img { transition: none; } .zw:hover img { transform: none; } }

/* Mobile menu */
#mobile-menu { position: fixed; inset: 0; background: #FFFFFF; z-index: 70; display: none; flex-direction: column; padding: 16px 24px 28px; overflow: auto; }
#mobile-menu.open { display: flex; }
#mobile-menu nav a { color: #0A1F44; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: 17px; padding: 12px 6px; border-bottom: 1px solid #E6ECF4; display: block; }
#mobile-menu nav a:last-child { border-bottom: none; }
.mobile-call-fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(145deg,#2A84F2,#0E6BE0); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(0,0,0,0.30), 0 0 0 5px rgba(14,107,224,0.20); animation: om-pulse 2.4s ease-in-out infinite; }

/* Trust bar */
.trust-grid { display: grid; grid-template-columns: repeat(4,1fr); text-align: left; }
.trust-item { display: grid; grid-template-columns: auto 1fr; column-gap: 15px; align-items: center; padding: clamp(24px,2.8vw,32px) clamp(18px,2.2vw,28px); position: relative; transition: transform .25s ease; }
.trust-item:hover { transform: translateY(-3px); }
.trust-item:not(:first-child)::before { content: ''; position: absolute; left: 0; top: 28%; bottom: 28%; width: 1px; background: #E6ECF4; }
@media (max-width: 1039px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item:not(:first-child)::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 1px; }
}

/* Cards */
.card-hover-lift { transition: transform .25s ease, box-shadow .25s ease; }
.card-hover-lift:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(10,31,68,0.12); }
.btn-outline-light { background: rgba(255,255,255,0.08); border: 1.5px solid rgba(255,255,255,0.30); color: #FFFFFF; transition: transform .2s ease, background .2s ease; }
.btn-outline-light:hover { transform: translateY(-2px); background: rgba(255,255,255,0.16); color: #FFFFFF; }
.btn-outline-dark { background: #FFFFFF; border: 1.5px solid #CBD6E4; color: #0A1F44; transition: transform .2s ease, border-color .2s ease; }
.btn-outline-dark:hover { transform: translateY(-2px); border-color: #0E6BE0; color: #0E6BE0; }
.contact-row { transition: transform .2s ease, box-shadow .2s ease; }
.contact-row:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(10,31,68,0.10); }
.client-chip { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.client-chip:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(10,31,68,0.10); border-color: #B9C8DC; }

/* Tabs */
.tab-btn { padding: 10px 20px; border-radius: 8px; cursor: pointer; border: 1.5px solid #CBD6E4; background: #FFFFFF; color: #4A5A70; font-weight: 700; font-size: 15px; font-family: 'Source Sans 3', sans-serif; transition: all .25s ease; }
.tab-btn:hover { border-color: #0E6BE0; color: #0E6BE0; }
.tab-btn.active { border-color: #0A1F44; background: #0A1F44; color: #FFFFFF; }
.tab-panel { display: none; }
.tab-panel.active { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,320px),1fr)); }

/* FAQ */
.faq-q-btn { width: 100%; background: none; border: none; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; text-align: left; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: 17px; }
.faq-q-btn:hover { background: #F5F8FC; }
.faq-q-text { color: #0A1F44; transition: color .2s ease; }
.faq-chev { transition: transform .3s ease; flex: none; color: #8A9AB0; }
.faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.faq-item.open .faq-q-text { color: #0E6BE0; }
.faq-item.open .faq-chev { transform: rotate(180deg); color: #0E6BE0; }
.faq-item.open .faq-body { grid-template-rows: 1fr; }

/* Reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; } }

footer a { transition: color .2s ease; }
footer a:hover { color: #FFFFFF; }

/* Clients page */
.client-search:focus { border-color: #0E6BE0; box-shadow: 0 0 0 3px rgba(14,107,224,0.14); outline: none; }
.client-row.is-hidden, .client-group.is-hidden { display: none !important; }
.client-logo img { max-height: 52px; max-width: 170px; width: auto; height: auto; object-fit: contain; }
.filter-btn { white-space: nowrap; flex: none; padding: 10px 16px; border-radius: 8px; cursor: pointer; border: 1.5px solid #CBD6E4; background: #FFFFFF; color: #4A5A70; font-weight: 700; font-size: 14px; font-family: 'Source Sans 3', sans-serif; transition: all .2s ease; }
.filter-btn:hover { border-color: #0E6BE0; color: #0E6BE0; }
.filter-btn.active { border-color: #0A1F44; background: #0A1F44; color: #FFFFFF; }

/* Marquee */
@keyframes om-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-track { animation: om-marquee 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
/* Industry rows */
.industry-row { transition: background .25s ease; }
.industry-row:hover { background: #F8FAFD; }
.logo-tile { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.logo-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(10,31,68,0.10); border-color: #B9C8DC; }
.logo-tile img { max-width: 100%; max-height: 52px; width: auto; height: auto; object-fit: contain; }
.stat-card { transition: transform .25s ease, background .25s ease, border-color .25s ease; }
.stat-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.08); border-color: rgba(111,176,255,0.35); }
.logo-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) { .logo-grid { grid-template-columns: repeat(2, 1fr); } }
.client-panel { grid-template-columns: minmax(240px, 1fr) 2fr; }
@media (max-width: 760px) { .client-panel { grid-template-columns: 1fr; } }
.four-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .four-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .four-grid { grid-template-columns: 1fr; } }
.logo-grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1000px) { .logo-grid-5 { grid-template-columns: repeat(2, 1fr); } }
.client-group.is-hidden { display: none; }
.client-row { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.client-row:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(10,31,68,0.08); border-color: #B9C8DC; }
.jump-btn { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; font-weight: 800; font-size: 12.5px; color: #4A5A70; background: transparent; border: none; transition: all .15s ease; }
.jump-btn:hover { background: #0A1F44; border-color: #0A1F44; color: #FFFFFF; }
@media (max-width: 760px) { .jump-row { display: none !important; } }
@media (max-width: 640px) { .client-group { grid-template-columns: 1fr !important; gap: 10px 0 !important; } }

.credit-link { transition: color .2s ease, text-decoration-thickness .2s ease; }
.credit-link:hover { color: #FFFFFF !important; text-decoration-thickness: 2px; text-underline-offset: 4px; }

@media (max-width: 700px) { .meet-badge { bottom: -16px !important; } }

@media (max-width: 904px) {
  .emp-grid > div:first-child { order: 2; }
  .emp-grid > div:last-child { order: 1; }
}

@media (max-width: 820px) { .story-head { position: static !important; top: auto !important; } }

@media (max-width: 904px) {
  .img-first > div:first-child { order: 2; }
  .img-first > div:last-child { order: 1; }
}

@media (max-width: 700px) {
  .trust-bar { gap: 12px !important; }
  .trust-label { font-size: 10px !important; letter-spacing: 1px !important; padding-right: 12px !important; }
}

/* Smoother header shrink on mobile: composited transform instead of height, no backdrop blur */
@media (max-width: 1039px) {
  #site-header {
    background: #FFFFFF;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    will-change: transform;
    transform: translateZ(0);
  }
  #site-header.hidden { transform: translate3d(0,-100%,0); }
  #site-header .logo-img {
    height: auto;
    width: auto;
    max-height: 48px;
    max-width: 100%;
    transform-origin: center center;
    transition: transform .26s cubic-bezier(.4,0,.2,1);
    will-change: transform;
    backface-visibility: hidden;
  }
  #site-header.scrolled .logo-img { max-height: 48px; transform: scale(0.84); }
}
@media (max-width: 1039px) and (prefers-reduced-motion: reduce) {
  #site-header .logo-img { transition: none; }
}

/* Mobile logo: one fixed, correctly-proportioned size — no scroll resize */
@media (max-width: 1039px) {
  #site-header .logo-img,
  #site-header.scrolled .logo-img {
    height: auto !important;
    width: auto !important;
    max-height: 40px !important;
    max-width: 100% !important;
    aspect-ratio: 2049 / 517;
    transform: none !important;
    transition: none !important;
  }
  .logo-wrap { max-width: calc(100vw - 130px); }
}
