/* =========================================================
   Maity Infrastructure — Premium Material UI System
   ========================================================= */

:root {
  --c-bg:         #f7f8fb;
  --c-surface:    #ffffff;
  --c-surface-2:  #f1f3f8;
  --c-line:       #e5e9f2;
  --c-line-2:     #eef1f7;
  --c-ink:        #0a2540;
  --c-ink-2:      #1e3a5f;
  --c-muted:      #5a6b85;
  --c-muted-2:    #8694ad;
  --c-brand:      #0a2540;
  --c-brand-2:    #143b6b;
  --c-accent:     #1a73e8;
  --c-accent-2:   #0d5bd1;
  --c-accent-soft:#e8f0fe;
  --c-success:    #1f8b4c;
  --c-warning:    #b96b00;
  --c-danger:     #c0382b;
  --c-gold:       #c4a052;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --sh-1: 0 1px 2px rgba(10,37,64,.05), 0 1px 3px rgba(10,37,64,.06);
  --sh-2: 0 4px 12px rgba(10,37,64,.08), 0 2px 6px rgba(10,37,64,.05);
  --sh-3: 0 12px 32px rgba(10,37,64,.10), 0 4px 12px rgba(10,37,64,.06);
  --sh-4: 0 24px 64px rgba(10,37,64,.14);

  --f-sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --f-display: "Fraunces", "Plus Jakarta Sans", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: var(--c-accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--c-accent-2); }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5 { font-family: var(--f-display); font-weight: 500; color: var(--c-ink); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 4.8vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.7rem); }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--c-ink-2); }
.lead { font-size: 1.18rem; color: var(--c-muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-accent); font-weight: 600;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.hl { color: var(--c-accent); }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 920px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-tight { padding: 48px 0; }

/* =========================================================
   Top Bar + Navigation
   ========================================================= */
.topbar {
  background: var(--c-brand);
  color: rgba(255,255,255,.86);
  font-size: .82rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
}
.topbar a { color: rgba(255,255,255,.86); }
.topbar a:hover { color: #fff; }
.topbar-meta { display: flex; gap: 26px; align-items: center; }
.topbar-meta span i { margin-right: 6px; color: var(--c-gold); }
.topbar-social { display: flex; gap: 14px; }
.topbar-social a { display: inline-flex; }

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-line);
  transition: box-shadow .25s ease, background .25s ease;
}
.nav.is-scrolled { box-shadow: var(--sh-2); background: rgba(255,255,255,.98); }
.nav-inner { display: flex; align-items: center; gap: 32px; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--c-ink); }
.brand:hover { color: var(--c-ink); }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-accent) 100%);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-weight: 600; font-size: 1.05rem;
  box-shadow: 0 6px 16px rgba(26,115,232,.32);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--f-display); font-weight: 600; font-size: 1.18rem; }
.brand-tag { font-size: .72rem; color: var(--c-muted); letter-spacing: .04em; }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-link {
  position: relative; padding: 10px 14px; border-radius: 10px;
  font-weight: 500; font-size: .94rem; color: var(--c-ink-2); cursor: pointer;
  white-space: nowrap;
}
.nav-link > span { display: inline-flex; align-items: center; gap: 6px; }
.nav-link:hover { color: var(--c-accent); background: var(--c-accent-soft); }
.nav-link.is-active { color: var(--c-accent); }
.nav-link.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--c-accent); border-radius: 2px;
}
.nav-cta { margin-left: 8px; }
.nav-mobile-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px;
  background: var(--c-surface-2); border: 1px solid var(--c-line);
  cursor: pointer; align-items: center; justify-content: center;
  color: var(--c-ink);
}

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 60;
  background: rgba(10,37,64,.6); backdrop-filter: blur(6px);
}
.mobile-menu.is-open { display: block; }
.mobile-menu-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 86%);
  background: #fff; padding: 24px; overflow: auto;
  box-shadow: -20px 0 60px rgba(10,37,64,.2);
  animation: slideIn .25s ease;
}
.mobile-menu .nav-link { display: block; padding: 14px 12px; font-size: 1.05rem; }
.mobile-menu-close { float: right; width: 44px; height: 44px; border-radius: 10px; background: var(--c-surface-2); border: 0; cursor: pointer; }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md);
  box-shadow: var(--sh-3); padding: 10px; opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: all .2s ease;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px;
  color: var(--c-ink-2); font-size: .92rem;
}
.nav-dropdown-menu a:hover { background: var(--c-accent-soft); color: var(--c-accent); }
.nav-dropdown-menu a i { color: var(--c-accent); }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: .94rem;
  border: 1px solid transparent; cursor: pointer; transition: all .25s ease;
  white-space: nowrap; overflow: hidden;
}
.btn-primary {
  background: var(--c-ink); color: #fff;
  box-shadow: 0 8px 22px rgba(10,37,64,.22);
}
.btn-primary:hover { background: var(--c-ink-2); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(10,37,64,.28); }
.btn-accent {
  background: var(--c-accent); color: #fff;
  box-shadow: 0 8px 22px rgba(26,115,232,.32);
}
.btn-accent:hover { background: var(--c-accent-2); color: #fff; transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--c-ink); border-color: var(--c-line);
}
.btn-outline:hover { border-color: var(--c-ink); color: var(--c-ink); background: var(--c-surface-2); }
.btn-ghost { background: transparent; color: var(--c-ink); }
.btn-ghost:hover { background: var(--c-accent-soft); color: var(--c-accent); }
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* Ripple */
.btn .ripple {
  position: absolute; border-radius: 50%; transform: scale(0);
  background: rgba(255,255,255,.45); animation: ripple .6s linear;
  pointer-events: none;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 600px at 90% -10%, rgba(26,115,232,.10), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(196,160,82,.08), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--c-bg) 100%);
  padding: 110px 0 90px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 80px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); margin-bottom: 24px; }
.hero p.lead { font-size: 1.22rem; margin-bottom: 36px; max-width: 580px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--c-line); }
.hero-stat .num { font-family: var(--f-display); font-size: 2rem; color: var(--c-ink); font-weight: 600; }
.hero-stat .lbl { font-size: .82rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }

.hero-card-stack { position: relative; }
.hero-card {
  position: relative; background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: 26px; box-shadow: var(--sh-3);
}
.hero-card + .hero-card { margin-top: -20px; margin-left: 40px; }
.hero-card-row { display: flex; align-items: center; gap: 14px; }
.hero-card-row .avatar { width: 48px; height: 48px; border-radius: 12px; background: var(--c-accent-soft); display: inline-flex; align-items: center; justify-content: center; color: var(--c-accent); font-weight: 600; }
.hero-card .meta { font-size: .82rem; color: var(--c-muted); }
.hero-card .title-row { font-weight: 600; color: var(--c-ink); }
.hero-card .tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 600; background: rgba(31,139,76,.10); color: var(--c-success); }
.hero-blob {
  position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,115,232,.18), transparent 70%);
  top: -40px; right: -60px; z-index: -1;
}

/* =========================================================
   Marquee / Trusted-by
   ========================================================= */
.trusted {
  padding: 56px 0; background: #fff; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line);
}
.trusted-label { text-align: center; color: var(--c-muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 28px; }
.marquee { overflow: hidden; }
.marquee-track { display: flex; gap: 64px; animation: marq 28s linear infinite; }
.marquee-item { flex: 0 0 auto; color: var(--c-muted); font-family: var(--f-display); font-size: 1.4rem; opacity: .8; letter-spacing: -.01em; font-weight: 500; padding: 6px 14px; border-radius: 6px; }
.marquee-item:hover { color: var(--c-ink); opacity: 1; }
@keyframes marq { to { transform: translateX(-50%); } }

/* =========================================================
   Section header
   ========================================================= */
.sec-head { max-width: 760px; margin: 0 0 56px; }
.sec-head h2 { margin-bottom: 16px; }
.sec-head.is-center { margin-left: auto; margin-right: auto; text-align: center; }

/* =========================================================
   Cards / Grids
   ========================================================= */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg);
  padding: 30px; transition: all .3s ease;
}
.card:hover { box-shadow: var(--sh-3); transform: translateY(-4px); border-color: var(--c-accent-soft); }
.card-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--c-accent-soft); color: var(--c-accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px; transition: all .3s ease;
}
.card:hover .card-icon { background: var(--c-accent); color: #fff; transform: scale(1.05); }
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--c-muted); font-size: .95rem; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  color: var(--c-accent); font-weight: 600; font-size: .9rem;
}
.card-link i { transition: transform .2s ease; }
.card-link:hover i { transform: translateX(4px); }

/* Service / Industry tile */
.tile {
  position: relative; display: block; padding: 28px;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md);
  transition: all .3s ease;
}
.tile:hover { background: var(--c-ink); color: #fff; transform: translateY(-3px); box-shadow: var(--sh-3); }
.tile:hover h4, .tile:hover p { color: #fff; }
.tile:hover .tile-icon { background: rgba(255,255,255,.10); color: #fff; }
.tile h4 { font-size: 1.1rem; margin-bottom: 6px; transition: color .3s ease; }
.tile p { font-size: .88rem; color: var(--c-muted); margin: 0; transition: color .3s ease; }
.tile-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--c-surface-2); color: var(--c-accent); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; transition: all .3s ease; }
.tile-arrow { position: absolute; top: 22px; right: 22px; opacity: 0; transform: translate(-6px, 6px); color: #fff; transition: all .3s ease; }
.tile:hover .tile-arrow { opacity: 1; transform: translate(0, 0); }

/* =========================================================
   Why-us / Feature blocks
   ========================================================= */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.why-list { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.why-item { display: flex; gap: 18px; padding: 18px; border-radius: var(--r-md); transition: background .25s ease; }
.why-item:hover { background: var(--c-surface-2); }
.why-item .ic { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; background: var(--c-accent-soft); color: var(--c-accent); display: inline-flex; align-items: center; justify-content: center; }
.why-item h4 { font-size: 1.05rem; margin: 0 0 4px; font-family: var(--f-sans); }
.why-item p { font-size: .92rem; color: var(--c-muted); margin: 0; }

.why-visual {
  position: relative; aspect-ratio: 1/1; max-width: 520px; margin-left: auto;
  background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-accent) 100%);
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: 0 30px 60px rgba(10,37,64,.20);
}
.why-visual::before {
  content: ""; position: absolute; inset: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><defs><pattern id="g" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="1" cy="1" r="1" fill="white" opacity="0.18"/></pattern></defs><rect width="200" height="200" fill="url(%23g)"/></svg>');
  opacity: .6;
}
.why-visual-inner { position: absolute; inset: 0; padding: 40px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.why-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.why-stat .num { font-family: var(--f-display); font-size: 2.4rem; font-weight: 600; }
.why-stat .lbl { font-size: .82rem; opacity: .8; text-transform: uppercase; letter-spacing: .08em; }
.why-floating-card {
  position: absolute; bottom: 26px; right: 26px;
  background: rgba(255,255,255,.98); color: var(--c-ink); padding: 16px;
  border-radius: var(--r-md); box-shadow: var(--sh-3); width: 220px;
}
.why-floating-card .lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); }
.why-floating-card .num { font-family: var(--f-display); font-size: 1.6rem; font-weight: 600; color: var(--c-success); }

/* =========================================================
   Process
   ========================================================= */
.process { background: var(--c-ink); color: #fff; }
.process .eyebrow { color: var(--c-gold); }
.process h2 { color: #fff; }
.process .sec-head p { color: rgba(255,255,255,.7); }
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.process-step { padding: 28px; border: 1px solid rgba(255,255,255,.10); border-radius: var(--r-md); position: relative; }
.process-step:hover { background: rgba(255,255,255,.04); }
.process-step .num {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(196,160,82,.16); color: var(--c-gold);
  font-family: var(--f-display); font-size: 1.2rem; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.process-step h4 { color: #fff; font-size: 1.1rem; margin-bottom: 6px; font-family: var(--f-sans); }
.process-step p { color: rgba(255,255,255,.7); font-size: .9rem; margin: 0; }

/* =========================================================
   Stats counters
   ========================================================= */
.stats-band { padding: 64px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-card {
  background: #fff; border-radius: var(--r-lg); padding: 30px;
  border: 1px solid var(--c-line); text-align: left;
}
.stat-card .num { font-family: var(--f-display); font-size: 3rem; font-weight: 600; color: var(--c-ink); line-height: 1; }
.stat-card .lbl { color: var(--c-muted); font-size: .9rem; margin-top: 10px; }
.stat-card .ic { color: var(--c-accent); float: right; }

/* =========================================================
   Testimonials
   ========================================================= */
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.t-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg);
  padding: 32px; transition: all .3s ease; position: relative;
}
.t-card:hover { box-shadow: var(--sh-3); transform: translateY(-3px); }
.t-card .quote { color: var(--c-accent); font-size: 2rem; line-height: 1; margin-bottom: 12px; opacity: .7; }
.t-card .stars { color: var(--c-gold); margin-bottom: 16px; display: flex; gap: 2px; }
.t-card p { color: var(--c-ink-2); font-size: 1rem; line-height: 1.6; }
.t-card .author { display: flex; gap: 14px; align-items: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--c-line); }
.t-card .author .av { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--c-brand), var(--c-accent)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
.t-card .author .nm { font-weight: 600; color: var(--c-ink); font-size: .95rem; }
.t-card .author .rl { font-size: .82rem; color: var(--c-muted); }

/* =========================================================
   Job listings
   ========================================================= */
.job-card {
  display: block; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md);
  padding: 24px 28px; transition: all .3s ease; color: var(--c-ink);
}
.job-card:hover { border-color: var(--c-accent); box-shadow: var(--sh-2); transform: translateY(-2px); color: var(--c-ink); }
.job-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.job-card h3 { font-family: var(--f-sans); font-size: 1.15rem; margin: 0 0 4px; }
.job-card .dept { font-size: .82rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: .08em; }
.job-card .meta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 14px; font-size: .88rem; color: var(--c-muted); }
.job-card .meta span i { color: var(--c-accent); margin-right: 6px; }
.job-card .salary { font-weight: 600; color: var(--c-success); }
.job-tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 600;
  background: var(--c-accent-soft); color: var(--c-accent);
}
.job-tag.is-featured { background: rgba(196,160,82,.18); color: var(--c-gold); }
.job-tag.is-remote { background: rgba(31,139,76,.12); color: var(--c-success); }

/* Job filters */
.filters {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--sh-1); position: sticky; top: 90px;
}
.filters h4 { font-family: var(--f-sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--c-muted); margin-bottom: 12px; }
.filters .group { margin-bottom: 24px; }
.filters .group:last-child { margin-bottom: 0; }
.filter-list { display: flex; flex-direction: column; gap: 8px; }
.filter-list label { display: flex; align-items: center; gap: 8px; font-size: .94rem; color: var(--c-ink-2); cursor: pointer; }
.filter-list input { accent-color: var(--c-accent); }

.jobs-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; }

/* Job search bar */
.job-search {
  background: #fff; border-radius: var(--r-lg); padding: 8px;
  box-shadow: var(--sh-3); display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 4px; align-items: center;
  border: 1px solid var(--c-line); margin-bottom: 36px;
}
.job-search-field { padding: 12px 18px; display: flex; align-items: center; gap: 10px; border-right: 1px solid var(--c-line); }
.job-search-field:last-of-type { border-right: 0; }
.job-search-field i { color: var(--c-accent); }
.job-search-field input,
.job-search-field select { border: 0; outline: 0; flex: 1; font-size: .94rem; color: var(--c-ink); background: transparent; font-family: inherit; }
.job-search .btn { margin: 4px; }

/* =========================================================
   Forms
   ========================================================= */
.form-grid { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--c-ink); }
.form-group label .req { color: var(--c-danger); }
.input, .select, .textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--c-line); border-radius: var(--r-sm);
  background: #fff; font-family: inherit; font-size: .95rem; color: var(--c-ink);
  transition: all .2s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: 0; border-color: var(--c-accent); box-shadow: 0 0 0 4px rgba(26,115,232,.12);
}
.textarea { min-height: 140px; resize: vertical; }
.file-input {
  display: flex; align-items: center; gap: 16px; padding: 14px;
  border: 2px dashed var(--c-line); border-radius: var(--r-md);
  background: var(--c-surface-2); cursor: pointer; transition: all .2s ease;
}
.file-input:hover { border-color: var(--c-accent); background: var(--c-accent-soft); }
.file-input input { display: none; }
.file-input .ic { width: 44px; height: 44px; background: var(--c-accent-soft); color: var(--c-accent); border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.file-input .meta .nm { font-weight: 600; color: var(--c-ink); font-size: .95rem; }
.file-input .meta .sm { color: var(--c-muted); font-size: .82rem; }

.alert {
  padding: 14px 18px; border-radius: var(--r-sm); font-size: .94rem; margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.alert-success { background: rgba(31,139,76,.10); color: var(--c-success); border: 1px solid rgba(31,139,76,.20); }
.alert-error   { background: rgba(192,56,43,.08); color: var(--c-danger); border: 1px solid rgba(192,56,43,.18); }
.alert-info    { background: var(--c-accent-soft); color: var(--c-accent); border: 1px solid rgba(26,115,232,.18); }

/* =========================================================
   Page header
   ========================================================= */
.page-hero {
  background:
    radial-gradient(900px 600px at 90% 0%, rgba(26,115,232,.12), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--c-bg) 100%);
  padding: 110px 0 70px;
  border-bottom: 1px solid var(--c-line);
}
.breadcrumb { font-size: .85rem; color: var(--c-muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--c-muted); }
.breadcrumb a:hover { color: var(--c-accent); }
.breadcrumb span { margin: 0 6px; }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--c-ink); color: rgba(255,255,255,.78);
  padding: 80px 0 32px; margin-top: 80px;
}
.footer h5 { color: #fff; font-family: var(--f-sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 20px; }
.footer a { color: rgba(255,255,255,.7); display: block; padding: 5px 0; font-size: .94rem; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand .brand-mark { background: rgba(255,255,255,.10); }
.footer-brand .brand-name, .footer-brand .brand-tag { color: #fff; }
.footer-brand p { color: rgba(255,255,255,.68); margin: 18px 0; font-size: .94rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: .85rem; color: rgba(255,255,255,.55); }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.footer-social a:hover { background: var(--c-accent); }
.newsletter-form { display: flex; gap: 8px; margin-top: 14px; }
.newsletter-form input { flex: 1; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: #fff; font-family: inherit; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form button { padding: 12px 18px; border-radius: 10px; border: 0; background: var(--c-accent); color: #fff; font-weight: 600; cursor: pointer; }

/* Back to top */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; width: 48px; height: 48px;
  border-radius: 50%; background: var(--c-ink); color: #fff; border: 0;
  cursor: pointer; box-shadow: var(--sh-3); opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: all .25s ease; z-index: 40;
  display: inline-flex; align-items: center; justify-content: center;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--c-accent); transform: translateY(-4px); }

/* =========================================================
   Reveal-on-scroll
   ========================================================= */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-revealed { opacity: 1; transform: translateY(0); }

/* =========================================================
   CTA band
   ========================================================= */
.cta-band {
  background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-2) 60%, var(--c-accent) 100%);
  color: #fff; padding: 72px; border-radius: var(--r-xl);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center;
  margin: 24px 0; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><defs><pattern id="g" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="1" cy="1" r="1" fill="white" opacity="0.10"/></pattern></defs><rect width="300" height="300" fill="url(%23g)"/></svg>');
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin: 0 0 16px; }
.cta-band p { color: rgba(255,255,255,.78); margin: 0 0 0; font-size: 1.1rem; }
.cta-band .btn { background: #fff; color: var(--c-ink); }
.cta-band .btn:hover { background: var(--c-gold); color: var(--c-ink); }

/* =========================================================
   Detail pages (service, industry, job, blog)
   ========================================================= */
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 56px; }
.detail-body p { font-size: 1.05rem; line-height: 1.8; color: var(--c-ink-2); }
.detail-body h2, .detail-body h3 { margin-top: 36px; }
.detail-body ul { padding-left: 22px; }
.detail-body li { margin-bottom: 8px; color: var(--c-ink-2); }

.aside {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--sh-1); position: sticky; top: 96px;
}
.aside h4 { font-family: var(--f-sans); font-size: 1rem; margin-bottom: 16px; }
.aside-meta { display: flex; flex-direction: column; gap: 14px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--c-line); }
.aside-meta .row { display: flex; justify-content: space-between; font-size: .9rem; }
.aside-meta .row .l { color: var(--c-muted); }
.aside-meta .row .v { color: var(--c-ink); font-weight: 600; }

/* Blog cards */
.blog-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--c-line); border-radius: var(--r-lg);
  overflow: hidden; transition: all .3s ease; color: inherit;
}
.blog-card:hover { box-shadow: var(--sh-3); transform: translateY(-4px); color: inherit; }
.blog-card .thumb {
  aspect-ratio: 16/10; background: linear-gradient(135deg, var(--c-brand), var(--c-accent));
  position: relative; overflow: hidden;
}
.blog-card .thumb::after {
  content: ""; position: absolute; inset: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="160" height="160"><defs><pattern id="g" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="1" cy="1" r="1" fill="white" opacity="0.20"/></pattern></defs><rect width="160" height="160" fill="url(%23g)"/></svg>');
}
.blog-card .thumb .cat {
  position: absolute; top: 16px; left: 16px; background: rgba(255,255,255,.95);
  color: var(--c-ink); padding: 5px 12px; border-radius: 999px; font-size: .75rem; font-weight: 600; z-index: 2;
}
.blog-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.blog-card .excerpt { color: var(--c-muted); font-size: .92rem; flex: 1; margin-bottom: 18px; }
.blog-card .meta { font-size: .82rem; color: var(--c-muted); display: flex; justify-content: space-between; }

/* =========================================================
   Utility
   ========================================================= */
.muted { color: var(--c-muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.flex { display: flex; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

/* Loader */
.page-loader {
  position: fixed; inset: 0; background: #fff; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .35s ease;
}
.page-loader.is-hidden { opacity: 0; pointer-events: none; }
.loader-spinner {
  width: 48px; height: 48px; border: 3px solid var(--c-line);
  border-top-color: var(--c-accent); border-radius: 50%;
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .hero-grid, .why-grid { grid-template-columns: 1fr; gap: 56px; }
  .why-visual { margin: 0 auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .t-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .jobs-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .cta-band { grid-template-columns: 1fr; padding: 48px; text-align: left; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: inline-flex; }
  .topbar-meta span:not(:last-child) { display: none; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .t-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .job-search { grid-template-columns: 1fr; }
  .job-search-field { border-right: 0; border-bottom: 1px solid var(--c-line); }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 32px; }
  .hero { padding: 80px 0 60px; }
  .page-hero { padding: 80px 0 50px; }
  h1 { font-size: 2.2rem; }
}

/* =========================================================
   Hero Carousel  (fastconsa-style image slider)
   ========================================================= */
.hero-carousel {
  position: relative; overflow: hidden;
  background: var(--c-ink);
}
.hero-carousel-track {
  display: flex;
  transition: transform .9s cubic-bezier(.65,0,.35,1);
  will-change: transform;
}
.hero-slide {
  position: relative; flex: 0 0 100%;
  min-height: clamp(520px, 78vh, 760px);
  display: flex; align-items: center;
}
.hero-slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  animation: heroZoom 12s ease-out forwards;
}
@keyframes heroZoom { from { transform: scale(1.05); } to { transform: scale(1.0); } }
.hero-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(10,37,64,.82) 10%, rgba(10,37,64,.55) 60%, rgba(10,37,64,.22) 100%);
}
.hero-slide-inner {
  position: relative; z-index: 2;
  max-width: 820px; padding: 60px 0; color: #fff;
}
.hero-slide-inner .eyebrow { color: var(--c-gold); }
.hero-slide-inner h1 {
  color: #fff; font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  margin: 18px 0 22px; line-height: 1.05;
}
.hero-slide-inner h1 .hl { color: var(--c-gold); }
.hero-slide-inner p {
  color: rgba(255,255,255,.88); font-size: 1.22rem;
  max-width: 620px; margin-bottom: 36px;
}
.hero-slide-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-slide-inner .btn-outline {
  color: #fff; border-color: rgba(255,255,255,.45);
}
.hero-slide-inner .btn-outline:hover { background: rgba(255,255,255,.08); color: #fff; border-color: #fff; }

.hero-carousel-controls {
  position: absolute; bottom: 36px; right: 36px; z-index: 4;
  display: flex; gap: 10px;
}
.hero-carousel-btn {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.06);
  color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px); transition: all .25s ease;
}
.hero-carousel-btn:hover { background: var(--c-accent); border-color: var(--c-accent); transform: scale(1.06); }
.hero-carousel-dots {
  position: absolute; bottom: 52px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 4;
}
.hero-carousel-dot {
  width: 36px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,.32); cursor: pointer;
  transition: all .35s ease; border: 0; padding: 0;
}
.hero-carousel-dot.is-active { background: var(--c-gold); width: 60px; }

/* Feature row that floats under the hero (3-up cards) */
.hero-features {
  position: relative; margin-top: -64px; z-index: 5;
}
.hero-features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  background: #fff; border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--sh-4);
}
.hero-feature {
  padding: 32px; display: flex; gap: 16px; align-items: flex-start;
  border-right: 1px solid var(--c-line);
  transition: background .3s ease;
}
.hero-feature:last-child { border-right: 0; }
.hero-feature:hover { background: var(--c-accent); color: #fff; }
.hero-feature:hover .hf-ic { background: rgba(255,255,255,.18); color: #fff; }
.hero-feature:hover h4, .hero-feature:hover p { color: inherit; }
.hf-ic {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--c-accent-soft); color: var(--c-accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex: 0 0 56px;
  transition: all .3s ease;
}
.hero-feature h4 { font-family: var(--f-sans); font-size: 1.08rem; margin: 0 0 6px; transition: color .3s ease; }
.hero-feature p  { font-size: .92rem; margin: 0; color: var(--c-muted); transition: color .3s ease; }
.hero-feature:hover p { color: rgba(255,255,255,.9); }

/* =========================================================
   About: split layout with image + badge
   ========================================================= */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-image-wrap {
  position: relative; max-width: 520px;
}
.about-image-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-3);
  aspect-ratio: 4/5;
}
.about-image-wrap::before {
  content: ""; position: absolute;
  top: 24px; left: -24px;
  width: 100%; height: 100%;
  border: 2px solid var(--c-accent);
  border-radius: var(--r-xl);
  z-index: -1;
}
.about-image-badge {
  position: absolute; right: -20px; bottom: 40px;
  background: var(--c-accent); color: #fff;
  padding: 22px 28px; border-radius: 16px;
  box-shadow: var(--sh-3);
}
.about-image-badge .num {
  font-family: var(--f-display); font-size: 2.6rem;
  font-weight: 600; line-height: 1;
}
.about-image-badge .lbl {
  font-size: .78rem; opacity: .95; margin-top: 6px;
  text-transform: uppercase; letter-spacing: .08em;
}

/* =========================================================
   Image cards (services / industries grid)
   ========================================================= */
.img-card {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--r-lg); background: var(--c-ink); color: #fff;
  min-height: 340px; transition: transform .35s ease, box-shadow .35s ease;
}
.img-card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); color: #fff; }
.img-card-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .8s ease;
}
.img-card:hover .img-card-bg { transform: scale(1.08); }
.img-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,37,64,.10) 0%, rgba(10,37,64,.55) 50%, rgba(10,37,64,.95) 100%);
}
.img-card-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 28px; color: #fff;
}
.img-card-body .ic {
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--c-accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: 14px;
  transition: transform .3s ease;
}
.img-card:hover .img-card-body .ic { transform: rotate(-8deg) scale(1.06); }
.img-card-body h3 {
  color: #fff; font-size: 1.3rem; margin: 0 0 6px;
  font-family: var(--f-sans); letter-spacing: -.01em;
}
.img-card-body p { color: rgba(255,255,255,.85); font-size: .92rem; margin: 0; }
.img-card-cta {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--c-gold); font-weight: 600; font-size: .88rem;
  margin-top: 14px; opacity: 0;
  transform: translateY(8px);
  transition: all .3s ease;
}
.img-card:hover .img-card-cta { opacity: 1; transform: translateY(0); }

/* =========================================================
   Detail page hero (with cover image)
   ========================================================= */
.detail-hero {
  position: relative; padding: 130px 0 80px; color: #fff;
  background-size: cover; background-position: center;
  min-height: 460px;
}
.detail-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(10,37,64,.88) 0%, rgba(10,37,64,.6) 55%, rgba(10,37,64,.3) 100%);
}
.detail-hero > .container { position: relative; z-index: 2; }
.detail-hero .breadcrumb,
.detail-hero .breadcrumb a,
.detail-hero h1 { color: #fff; }
.detail-hero .breadcrumb a:hover { color: var(--c-gold); }
.detail-hero .eyebrow { color: var(--c-gold); }
.detail-hero p { color: rgba(255,255,255,.92); }

/* Same treatment but used for page-hero (list pages) when an image is set */
.page-hero-img {
  position: relative; padding: 110px 0 80px; color: #fff;
  background-size: cover; background-position: center;
  min-height: 360px; border-bottom: 0;
}
.page-hero-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(10,37,64,.85), rgba(10,37,64,.45));
}
.page-hero-img > .container { position: relative; z-index: 2; }
.page-hero-img .breadcrumb,
.page-hero-img .breadcrumb a,
.page-hero-img h1,
.page-hero-img p { color: #fff; }
.page-hero-img .breadcrumb a:hover { color: var(--c-gold); }
.page-hero-img .eyebrow { color: var(--c-gold); }

@media (max-width: 1024px) {
  .hero-features-grid { grid-template-columns: 1fr; }
  .hero-feature { border-right: 0; border-bottom: 1px solid var(--c-line); }
  .hero-feature:last-child { border-bottom: 0; }
  .about-split { grid-template-columns: 1fr; gap: 56px; }
  .about-image-wrap { margin: 0 auto; }
  /* Compact the desktop nav at iPad widths so the chevron+text fits */
  .nav-link { padding: 8px 10px; font-size: .9rem; }
  .nav-inner { gap: 20px; }
  .brand-tag { display: none; }
}
@media (max-width: 960px) {
  /* On smaller tablets, the inline nav still has too many items — switch to mobile menu earlier */
  .nav-links { display: none; }
  .nav-mobile-toggle { display: inline-flex; }
}
@media (max-width: 720px) {
  .hero-slide { min-height: 520px; }
  .hero-slide-inner { padding: 40px 0; }
  .hero-slide-inner h1 { font-size: clamp(2rem, 8vw, 2.6rem); margin: 12px 0 16px; }
  .hero-slide-inner p { font-size: 1rem; margin-bottom: 24px; }
  .hero-slide-cta { gap: 10px; }
  .hero-slide-cta .btn-lg { padding: 12px 22px; font-size: .88rem; }
  .hero-features { margin-top: -24px; }
  .hero-feature { padding: 22px; gap: 14px; }
  .hf-ic { width: 48px; height: 48px; flex-basis: 48px; font-size: 1.2rem; }
  .hero-carousel-controls { right: 16px; bottom: 96px; gap: 8px; }
  .hero-carousel-controls .hero-carousel-btn { width: 40px; height: 40px; }
  .hero-carousel-dots { bottom: 40px; gap: 6px; }
  .hero-carousel-dot { width: 24px; }
  .hero-carousel-dot.is-active { width: 40px; }
  .detail-hero { padding: 90px 0 56px; min-height: 320px; }
  .detail-hero h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .page-hero-img { padding: 70px 0 50px; min-height: 240px; }
  .page-hero-img h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .about-image-wrap { max-width: 100%; }
  .about-image-wrap::before { display: none; }
  .about-image-badge { right: 12px; bottom: 16px; padding: 14px 18px; }
  .about-image-badge .num { font-size: 1.8rem; }
  .img-card { min-height: 280px !important; }
  .img-card-body { padding: 20px; }
  .img-card-body h3 { font-size: 1.05rem; }
  .img-card-body p { font-size: .85rem; }
  /* Prevent any overflow that would cause horizontal scrolling */
  body { overflow-x: hidden; }
  .cta-band { padding: 28px; border-radius: var(--r-lg); }
  .cta-band h2 { font-size: 1.6rem; }

  /* -------------------------------------------------------------------
     Force inline-style grids and nested grids to stack on phones so the
     pages stay inside the 360-414px viewport without horizontal scroll.
     This overrides view-level inline `style="grid-template-columns: ..."`
     that would otherwise win against the .grid base rule.
     ------------------------------------------------------------------- */
  .container > .grid,
  .container > div[style*="grid-template-columns"],
  .section .container > .grid,
  .section .container > div[style*="grid-template-columns"],
  .section-sm .container > div[style*="grid-template-columns"],
  .acard div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .job-search,
  form.job-search[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  /* The featured-blog card uses inline grid template — collapse too */
  a.card[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 24px !important;
  }
  /* Detail-page sticky aside next to the content */
  .detail-layout { grid-template-columns: 1fr !important; gap: 32px !important; }
  .detail-aside { position: static !important; top: auto !important; }
  /* Service-detail "include / process" rows might use inline 2-col */
  .acard .fgrid { grid-template-columns: 1fr !important; }
}

/* Tablet (>720px and <=960px): keep 2-col where it makes sense but
   never let inline 3-col grids run wider than the screen. */
@media (max-width: 960px) and (min-width: 721px) {
  .container > div[style*="grid-template-columns: repeat(3"],
  .section .container > div[style*="grid-template-columns: repeat(3"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* =========================================================
   Leader cards (with photo)
   ========================================================= */
.leader-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg);
  overflow: hidden; transition: all .3s ease; text-align: center;
  display: flex; flex-direction: column;
}
.leader-card:hover { box-shadow: var(--sh-3); transform: translateY(-4px); }
.leader-photo {
  width: 100%; aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--c-brand), var(--c-accent));
  background-size: cover; background-position: center top;
  position: relative;
}
.leader-photo-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--f-display); font-size: 3rem; font-weight: 600;
}
.leader-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.leader-card h3 { font-size: 1.15rem; margin: 0 0 4px; font-family: var(--f-sans); }
.leader-card .role {
  color: var(--c-accent); font-weight: 600;
  font-size: .85rem; margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: .06em;
}
.leader-card .bio { font-size: .9rem; color: var(--c-muted); flex: 1; }
.leader-social {
  display: flex; justify-content: center; gap: 10px; padding: 0 22px 22px;
}
.leader-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--c-surface-2); color: var(--c-ink-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .9rem; transition: all .2s ease;
}
.leader-social a:hover { background: var(--c-accent); color: #fff; }
