
:root{
  --nav-h: 64px;
  --card-bg: rgba(18,18,18,.55);
  --card-border: rgba(255,255,255,.18);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.75);
  --link: #89c2ff;
}

*{ box-sizing: border-box; }
body{
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
}

.k-bg{
  min-height: 100vh;
  background-image:
    linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)),
    var(--bg-url);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 24px;
}

.k-topnav{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0 20px;
  z-index: 50;
  background: rgba(0,0,0,.25);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.k-brand a{
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .2px;
}

.k-links{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.k-links a{
  color: rgba(255,255,255,.9);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .7px;
  text-transform: uppercase;
  padding: 8px 4px;
}

.k-links a.active{ color: #fff; text-decoration: underline; }
.k-links a:hover{ text-decoration: underline; }
.k-links .sep{
  color: rgba(255,255,255,.55);
  font-size: 14px;
}

.k-center{
  max-width: 1100px;
  margin: calc(var(--nav-h) + 36px) auto 60px auto;
}

.k-card{
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  backdrop-filter: none; 
  -webkit-backdrop-filter: none;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  padding: 26px 30px;
}

.k-card-home{ padding: 0; overflow: hidden; }

.k-home-grid{
  display: grid;
  grid-template-columns: 360px 1fr;
}

.k-home-left{
  padding: 28px;
  background: rgba(0,0,0,.18);
  border-right: 1px solid rgba(255,255,255,.12);
}

.k-portrait{
  width: 100%;
  max-width: 280px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.22);
  object-fit: cover;
  display: block;
}

.k-left-meta{ margin-top: 16px; }
.k-name{ font-size: 22px; font-weight: 800; margin-bottom: 10px; }

/* .k-role{ font-size: 14px; line-height: 1.4; color: var(--muted); }
.k-sub{ margin-top: 10px; font-size: 13.5px; line-height: 1.45; color: var(--muted); } */

.k-role{
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
  white-space: pre-line;   /* shows your line breaks in hero_title */
}

.k-sub{
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
  white-space: pre-wrap;        /* shows line breaks + keeps each bullet on one line */
}


.k-logos{
  margin-top: 18px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.k-logos img{ height: 46px; width: auto; opacity: .95; }

.k-home-right{
  padding: 28px 30px;
}

.k-page-title{
  margin: 0 0 14px 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .2px;
}

.k-content{
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
}

.k-content a{ color: var(--link); }
.k-content h2{ margin-top: 24px; font-size: 18px; }
.k-content h3{ margin-top: 20px; font-size: 16px; }

.k-cta{
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.k-btn{
  display: inline-block;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}
.k-btn:hover{ background: rgba(255,255,255,.18); }

.k-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.k-tile{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 14px;
}
.k-tile strong{ display:block; margin-bottom: 6px; }
.k-tile .small{ color: var(--muted); font-size: 13px; }

@media (max-width: 980px){
  .k-home-grid{ grid-template-columns: 1fr; }
  .k-home-left{ border-right: none; border-bottom: 1px solid rgba(255,255,255,.12); }
  .k-portrait{ max-width: 240px; }
  .k-grid{ grid-template-columns: 1fr; }
  .k-links{ display:none; } /* keep clean on mobile */
  .k-topnav{ justify-content: space-between; }
}

/* Embedded PDF viewer (CV page) */
.k-pdf{
  width: 100%;
  height: 85vh;
  min-height: 900px;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
}

@media (max-width: 768px){
  .k-pdf{ min-height: 70vh; }
}

/* Huge boost for long pages */
.section, .k-card, .soft-card {
  content-visibility: auto;
  contain-intrinsic-size: 800px; /* prevents layout jump */
}