:root{
--ink:#0f2130;
--muted:#4a5d6c;
--bg:#f7f9fb;
--panel:rgba(255,255,255,.94);
--ring:rgba(0,0,0,.06);
--accent:#1b7a83;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:Inter,system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif;color:#12202a;background:var(--bg)}
.wrapper{max-width:1100px;margin:0 auto;padding:56px 24px}
header.site{position:sticky;top:0;background:rgba(255,255,255,.86);backdrop-filter:saturate(140%) blur(6px);border-bottom:1px solid var(--ring);z-index:2}
nav{display:flex;gap:18px;align-items:center;justify-content:space-between;max-width:1100px;margin:0 auto;padding:12px 24px}
nav a.logo{display:flex;gap:10px;align-items:center;text-decoration:none;color:var(--ink);font-weight:800;letter-spacing:.3px}
nav a.logo img{height:28px;width:auto}
nav .links a{color:var(--ink);text-decoration:none;padding:8px 12px;border-radius:8px}
nav .links a:hover{background:rgba(0,0,0,.04)}
.hero{position:relative;min-height:48vh;display:grid;place-items:center;background:linear-gradient(180deg,rgba(0,0,0,.12),rgba(0,0,0,.22)), url('../img/hero.jpg') center/cover no-repeat;color:#fff}
.hero .inner{max-width:900px;padding:64px 24px;text-align:center}
.hero h1{font-size:44px;letter-spacing:-.02em;margin:0 0 12px}
.hero p{font-size:18px;line-height:1.6;opacity:.98}
.badge{display:inline-flex;gap:8px;align-items:center;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.75);border:1px solid var(--ring);color:#0f1d27;font-weight:600}
.badge img{height:22px;width:auto}
.section{padding:48px 0}
.grid-3{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:20px}
.card{background:var(--panel);border:1px solid var(--ring);border-radius:14px;padding:18px;box-shadow:0 6px 18px rgba(0,0,0,.06)}
h1{font-size:34px;letter-spacing:-.01em;margin:0 0 8px}
h2{font-size:28px;margin:0 0 12px}
footer{padding:40px 24px;border-top:1px solid var(--ring);text-align:center;color:var(--muted)}
.team-card{display:flex;gap:16px;align-items:flex-start}
.team-card img{width:120px;height:150px;border-radius:12px;object-fit:cover;flex:0 0 auto;box-shadow:0 6px 16px rgba(0,0,0,.08)}
.team-card h3{margin:0 0 4px;font-size:18px}
.team-card .role{color:var(--muted);font-weight:600;margin-bottom:6px}
.testi-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px}
.logo-wrap{height:56px;display:flex;align-items:center;justify-content:center}
.logo-wrap img,.logo-wrap svg{max-height:56px;max-width:100%;object-fit:contain;opacity:.96}
.entity{font-weight:600;margin-top:6px}
.quote{color:var(--muted);line-height:1.55}
.small{color:var(--muted);font-size:12px;margin-top:10px}
.team-card{display:flex;gap:16px;align-items:flex-start;background:linear-gradient(180deg, rgba(246,249,252,.9), rgba(242,246,250,.9));}
.team-card img{background:linear-gradient(180deg, #e8eef4, #dfe6ed);}

/* --- Team page refresh (Ascendant-inspired) --- */
.team-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:28px}
.team-card{display:flex;flex-direction:column;align-items:center;text-align:center;background:var(--panel);border:1px solid var(--ring);border-radius:16px;padding:24px;box-shadow:0 8px 24px rgba(0,0,0,.06)}
.team-card figure{margin:0}
.team-card img{width:240px;height:280px;border-radius:12px;object-fit:cover;box-shadow:0 10px 24px rgba(0,0,0,.10)}
.team-card h3{font-size:24px;margin:16px 0 4px;letter-spacing:-.01em}
.team-card .role{color:var(--muted);font-weight:600;margin-bottom:12px}
.team-card .bio{max-width:62ch;text-align:justify;line-height:1.65;color:#21303a}
@media (min-width: 1024px){
  .team-grid{grid-template-columns:repeat(3,1fr)}
  .team-card img{width:260px;height:300px}
  .team-card h3{font-size:26px}
}



.team-card .bio { text-align: justify; }
.team-card h3 a { color: inherit; text-decoration: none; pointer-events: none; cursor: default; }
.linkedin-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 500; text-decoration: none; color: #0A66C2; }
.linkedin-link:hover { text-decoration: underline; }
.linkedin-icon { width: 18px; height: 18px; display: inline-block; background: url('assets/img/linkedin-icon.svg') no-repeat center/contain; }

/* --- Patch: Align LinkedIn + email row at bottom of each team card --- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }

.team-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.team-card .bio {
  text-align: justify;
  line-height: 1.65;
  margin-bottom: auto;
}

.contact-links {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 16px;
  padding-top: 8px;
  border-top: 1px solid rgba(0,0,0,.06);
}

.team-grid > .team-card { align-self: stretch; }

/* === Responsive Consistency Patch (appended) === */

/* 1) Prevent iOS from auto-shrinking or auto-expanding text */
html { -webkit-text-size-adjust: 100%; }

/* 2) Ensure hero headline/subhead are comfortably sized on phones */
@media (max-width: 480px) {
  .hero .inner { max-width: 46rem; padding: 0 20px; margin: 0 auto; }
  .hero h1 { font-size: 28px !important; line-height: 1.15; white-space: normal; }
  .hero p  { font-size: 16px !important; line-height: 1.45; max-width: 38rem; margin-left: auto; margin-right: auto; }
}

/* 3) Make grids stack to a single column on narrow screens (team, testimonials, generic 3-up grids) */
@media (max-width: 640px) {
  .grid-3     { grid-template-columns: 1fr !important; }
  .team-grid  { grid-template-columns: 1fr !important; }
  .testi-grid { grid-template-columns: 1fr !important; }
}

/* 4) Keep readability polish on mobile as well */
.hero h1,
.hero p { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.28); }
