:root{
  --brand:#223d71;
  --bg:#f4f6f8;
  --card:#ffffff;
  --text:#111827;
  --muted:#4b5563;
  --border:rgba(17,24,39,.10);
  --shadow:0 10px 28px rgba(0,0,0,.08);
  --r:14px;
  --max:1120px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }

body{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.55;
}

a{ color:var(--brand); text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{ max-width:var(--max); margin:0 auto; padding:0 18px; }

.skip{
  position:absolute; left:-9999px; top:10px;
  background:var(--card); padding:10px 12px;
  border-radius:10px; box-shadow:var(--shadow);
}
.skip:focus{ left:12px; }

/* Header */
.header{
  background:#fff;
  border-bottom:1px solid var(--border);
  position:sticky;
  top:0;
  z-index:1000;
}

section{ scroll-margin-top:160px; }

.topbar-inner{
  min-height:124px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.brand{ display:flex; align-items:center; gap:14px; }
.logos{ display:flex; align-items:center; gap:10px; }

.logo{ height:58px; }
.logo-bifi{ height:70px; }

.brand-name{
  font-weight:900;
  letter-spacing:.2px;
  color:var(--brand);
}

.nav{ display:flex; gap:10px; flex-wrap:wrap; }
.nav a{
  padding:8px 10px;
  border-radius:10px;
  font-weight:800;
}
.nav a:hover{ background:rgba(34,61,113,.08); }

/* Hero */
.hero{ padding:22px 0 10px; }

.hero-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--r);
  box-shadow:var(--shadow);
  padding:18px;
}

/* Wider bio, same photo size */
.hero-grid{
  display:grid;
  grid-template-columns: 1.6fr 0.6fr;
  gap:18px;
  align-items:start;
}

.hero-photo{
  display:flex;
  justify-content:flex-end;
}

.avatar{
  width:240px;
  height:240px;
  object-fit:contain;
  background:#fff;
  border-radius:18px;
  border:1px solid var(--border);
  box-shadow:var(--shadow);
}

h1{ margin:0 0 10px; font-size:2rem; }

.bio{
  margin:0 0 10px;
  color:var(--text);
  max-width:100%;
}

/* Bio sections */
.bio-sections{ margin-top:6px; }

.bio-section{
  padding-top:12px;
  margin-top:12px;
  border-top:1px solid var(--border);
}
.bio-section:first-child{
  border-top:none;
  padding-top:0;
  margin-top:0;
}

.bio-title{
  margin:0 0 8px;
  font-size:1.05rem;
  color:var(--brand);
}

.muted{ color:var(--muted); }

/* Profile buttons */
.icon-links{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:8px;
}

.icon-btn{
  width:190px;
  height:44px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(34,61,113,.22);
  background:rgba(34,61,113,.06);
  color:var(--brand);
  font-weight:900;
}
.icon-btn:hover{
  background:rgba(34,61,113,.12);
  text-decoration:none;
}

.icon-btn svg{
  width:22px;
  height:22px;
  fill:var(--brand);
}

/* Sections */
.section{ padding:26px 0; }

.section-alt{
  background:#fff;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}

.section-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
}

h2{ margin:0 0 12px; font-size:1.35rem; }

/* Grid */
.grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--r);
  box-shadow:var(--shadow);
  padding:16px;
}

h3{ margin:0 0 8px; font-size:1.05rem; }
.desc{ margin:0 0 14px; color:var(--muted); }

.actions{ display:flex; gap:10px; flex-wrap:wrap; }

.btn{
  padding:10px 12px;
  border-radius:12px;
  background:var(--brand);
  color:#fff;
  font-weight:900;
}
.btn:hover{ background:#1b325e; }

.btn-alt{
  background:transparent;
  color:var(--brand);
  border:1px solid rgba(34,61,113,.35);
}

/* Media blocks */
.book,
.tool{
  display:grid;
  grid-template-columns:92px 1fr;
  gap:14px;
}

.book-media,
.tool-media{
  width:92px;
  height:92px;
  border-radius:14px;
  border:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
}

.book-img,
.tool-img{
  width:72px;
  height:72px;
  object-fit:contain;
}

/* Footer */
.footer{
  padding:18px 0;
  color:var(--muted);
}

/* Responsive */
@media (max-width:900px){
  .grid-2{ grid-template-columns:1fr; }
  .hero-grid{ grid-template-columns:1fr; }
  .hero-photo{ justify-content:flex-start; }
  .avatar{ width:200px; height:200px; }
}

@media (max-width:520px){
  .icon-btn{ width:100%; }
}

