:root{
  --bg: #f8fbff;
  --ink: #0b1220;
  --muted: rgba(51,65,85,0.92);
  --line: rgba(15,23,42,0.20);
  --panel: rgba(255,255,255,0.92);
  --shadow: 0 16px 40px rgba(2,6,23,0.10);
  --shadow2: 0 10px 22px rgba(2,6,23,0.08);

  --blue: #1d4ed8;
  --blue2: rgba(29,78,216,0.10);
  --warm: rgba(255,237,213,0.60);

  --r: 18px;

  --body: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

*{ box-sizing:border-box; }
html, body{
  margin:0;
  font-family: var(--body);
  color: var(--ink);

  /* Clean paper + subtle grid + soft accent (light mode) */
  background:
    linear-gradient(0deg, rgba(255,255,255,0.86), rgba(255,255,255,0.86)),
    radial-gradient(900px 520px at 12% 0%, rgba(29,78,216,0.10), transparent 60%),
    radial-gradient(900px 520px at 92% 10%, rgba(14,165,233,0.08), transparent 62%),
    radial-gradient(900px 520px at 55% 120%, rgba(251,191,36,0.10), transparent 55%),
    repeating-linear-gradient(0deg, rgba(15,23,42,0.025) 0, rgba(15,23,42,0.025) 1px, transparent 1px, transparent 28px),
    repeating-linear-gradient(90deg, rgba(15,23,42,0.025) 0, rgba(15,23,42,0.025) 1px, transparent 1px, transparent 28px),
    #fdfcf9;
}

a{ color: var(--blue); text-decoration:none; }
a:hover{ text-decoration:underline; }

.app{
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px;
  display:grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
}

/* Sidebar */
.side{
  position: sticky;
  top: 18px;
  align-self: start;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.brand{
  display:flex;
  gap: 10px;
  align-items:center;
}
.mark{
  width: 40px; height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(29,78,216,0.32);
  background: rgba(255,255,255,0.96);
  color: rgba(29,78,216,0.95);
  font-family: var(--mono);
  font-weight: 800;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: var(--shadow2);
}
.bname{ font-family: var(--mono); font-weight: 800; }
.brole{ margin-top: 2px; color: var(--muted); font-weight: 650; font-size: 13px; }

.profile{ margin-top: 14px; }
.avatar{
  width:100%;
  height: 220px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: rgba(15,23,42,0.03);
}
.ploc{ margin-top: 10px; color: var(--muted); font-weight: 700; }

.sideLinks{
  margin-top: 14px;
  display:flex;
  flex-direction:column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(15,23,42,0.10);
}
.sideLinks a{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.12);
  background: rgba(255,255,255,0.90);
  font-weight: 900;
  color: rgba(15,23,42,0.86);
}
.sideLinks a:hover{
  text-decoration:none;
  border-color: rgba(29,78,216,0.24);
  background: rgba(29,78,216,0.06);
}

.sideCtas{
  margin-top: 12px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.14);
  background: rgba(255,255,255,0.92);
  font-weight: 900;
  color: rgba(15,23,42,0.86);
  box-shadow: var(--shadow2);
}
.btn:hover{ text-decoration:none; transform: translateY(-1px); }
.btn.primary{
  border-color: rgba(29,78,216,0.26);
  background: linear-gradient(180deg, rgba(29,78,216,0.12), rgba(29,78,216,0.06));
  color: rgba(29,78,216,0.95);
}

.sideFoot{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(15,23,42,0.10);
  color: rgba(15,23,42,0.55);
  font-weight: 800;
  font-size: 12px;
}

/* Main */
.main{ padding: 0 2px; }
.hero{
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.monoTag{
  font-family: var(--mono);
  font-weight: 800;
  font-size: 12px;
  color: rgba(29,78,216,0.92);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
h1{
  font-family: var(--mono);
  margin: 10px 0 8px;
  font-size: 44px;
  letter-spacing: -0.02em;
}
.lead{
  margin: 0;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.75;
  font-size: 16px;
}

.heroBar{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,0.14);
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow2);
  font-weight: 900;
  color: rgba(15,23,42,0.86);
}
.chip:hover{ text-decoration:none; transform: translateY(-1px); }
.ico{ width: 18px; height: 18px; fill: rgba(29,78,216,0.92); }

.heroSplit{
  margin-top: 14px;
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
}

.card{
  border: 1px solid rgba(15,23,42,0.14);
  background: rgba(255,255,255,0.90);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow2);
}
.cardH{
  font-family: var(--mono);
  font-weight: 800;
  margin-bottom: 10px;
}

.miniGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mini{
  border: 1px solid rgba(15,23,42,0.12);
  background: rgba(255,255,255,0.92);
  border-radius: 16px;
  padding: 12px;
}
.mk{
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  color: rgba(51,65,85,0.92);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mv{ margin-top: 6px; font-weight: 900; color: rgba(15,23,42,0.86); line-height: 1.35; }

.section{
  margin-top: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.secTitleRow{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 12px;
}
h2{
  margin:0;
  font-family: var(--mono);
  font-size: 22px;
  letter-spacing: -0.01em;
}
.secSub{
  color: var(--muted);
  font-weight: 650;
  font-size: 13px;
}

.pillGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pill{
  border: 1px solid rgba(29,78,216,0.22);
  background: rgba(29,78,216,0.06);
  border-radius: 18px;
  padding: 12px;
}
.pillK{
  font-family: var(--mono);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(29,78,216,0.92);
}
.pillV{ margin-top: 6px; font-weight: 900; color: rgba(15,23,42,0.86); }

.stack{ display:flex; flex-direction:column; gap: 12px; }
.rowCard{
  border: 1px solid rgba(15,23,42,0.14);
  background: rgba(255,255,255,0.92);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow2);
}
.rowTop{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  flex-wrap:wrap;
}
.rowTitle{ font-weight: 900; font-family: var(--mono); }
.rowMeta{ color: var(--muted); font-weight: 700; }
.rowText{ margin-top: 8px; color: rgba(15,23,42,0.78); font-weight: 650; line-height: 1.65; }

.sectionCard{
  border: 1px solid rgba(15,23,42,0.14);
  background: rgba(255,255,255,0.92);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow2);
}
.secHead{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  align-items:flex-start;
}
.secTitle{ font-family: var(--mono); font-weight: 800; font-size: 16px; }
.secMeta{ margin-top: 6px; color: rgba(15,23,42,0.72); font-weight: 650; line-height: 1.6; }

.tags{
  display:flex;
  gap: 8px;
  flex-wrap:wrap;
  margin-top: 10px;
}
.tag{
  border-radius: 999px;
  padding: 7px 9px;
  border: 1px solid rgba(15,23,42,0.14);
  background: rgba(255,255,255,0.92);
  font-weight: 900;
  color: rgba(15,23,42,0.78);
  font-size: 12px;
}

.list{ margin: 10px 0 0; padding-left: 18px; color: rgba(15,23,42,0.82); font-weight: 650; line-height: 1.7; }
.list.compact{ margin-top: 6px; }
.list li{ margin: 6px 0; }

.strip{
  margin-top: 12px;
  display:flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.strip::-webkit-scrollbar{ height: 8px; }
.strip::-webkit-scrollbar-thumb{ background: rgba(15,23,42,0.14); border-radius: 999px; }

.stripImg{
  flex: 0 0 220px;
  width: 220px;
  height: 140px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.14);
  background: rgba(15,23,42,0.03);
  box-shadow: var(--shadow2);
}
.stripImg:hover{ transform: translateY(-1px); }

.refGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.refCard{
  border: 1px solid rgba(15,23,42,0.14);
  background: rgba(255,255,255,0.92);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow2);
}
.refName{ font-family: var(--mono); font-weight: 800; }
.refMeta{ margin-top: 8px; color: var(--muted); font-weight: 650; line-height: 1.6; }
.refLinks{
  margin-top: 10px;
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}
.refLinks a{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.12);
  background: rgba(255,255,255,0.92);
  font-weight: 900;
  color: rgba(15,23,42,0.82);
}
.refLinks a:hover{ text-decoration:none; border-color: rgba(29,78,216,0.24); }

.contactBox{
  border: 1px solid rgba(15,23,42,0.14);
  background: rgba(255,255,255,0.92);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow2);
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.contactRow{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,0.12);
  background: rgba(255,255,255,0.92);
  font-weight: 900;
  color: rgba(15,23,42,0.86);
}
.contactRow:hover{ text-decoration:none; border-color: rgba(29,78,216,0.24); transform: translateY(-1px); }
.contactHint{ margin-top: 6px; display:flex; }

.bottomPad{ height: 36px; }

/* Responsive */
@media (max-width: 1020px){
  .app{ grid-template-columns: 1fr; }
  .side{ position: relative; top: 0; }
  .heroSplit{ grid-template-columns: 1fr; }
  .refGrid{ grid-template-columns: 1fr; }
  .pillGrid{ grid-template-columns: 1fr; }
}


/* ===== vNext: lively background + spacing ===== */
/* 1) Lively but professional background (animated soft blobs + subtle texture) */
body {
  background: radial-gradient(1100px 700px at 50% -20%, rgba(29,78,216,0.14), transparent 62%),
              radial-gradient(900px 560px at 100% 10%, rgba(14,165,233,0.10), transparent 60%),
              radial-gradient(900px 560px at 0% 95%, rgba(251,191,36,0.10), transparent 58%),
              #fbfbf8;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -200px;
  z-index: -1;
  pointer-events: none;
  filter: blur(22px);
  opacity: 0.55;
  transform: translate3d(0,0,0);
}

body::before {
  background:
    radial-gradient(260px 260px at 20% 30%, rgba(29,78,216,0.26), transparent 62%),
    radial-gradient(320px 320px at 70% 25%, rgba(14,165,233,0.18), transparent 64%),
    radial-gradient(340px 340px at 60% 80%, rgba(251,191,36,0.18), transparent 64%);
  animation: floatA 18s ease-in-out infinite alternate;
}

body::after {
  background:
    radial-gradient(340px 340px at 15% 75%, rgba(37,99,235,0.14), transparent 64%),
    radial-gradient(360px 360px at 85% 70%, rgba(56,189,248,0.12), transparent 66%);
  animation: floatB 22s ease-in-out infinite alternate;
  opacity: 0.42;
}

@keyframes floatA {
  0%   { transform: translate(-1.5%, -1%); }
  50%  { transform: translate( 1.2%,  0.8%); }
  100% { transform: translate(-0.5%,  1.6%); }
}

@keyframes floatB {
  0%   { transform: translate( 1.2%,  0.6%); }
  50%  { transform: translate(-1.1%, -0.8%); }
  100% { transform: translate( 0.6%, -1.4%); }
}

@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none !important; }
}

/* subtle “paper” texture */
.main::before {
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(15,23,42,0.018) 0, rgba(15,23,42,0.018) 1px, transparent 1px, transparent 34px),
    repeating-linear-gradient(90deg, rgba(15,23,42,0.018) 0, rgba(15,23,42,0.018) 1px, transparent 1px, transparent 34px);
  opacity: 0.55;
}

/* 2) De-clutter: more spacing, calmer cards, cleaner rhythm */
.app {
  gap: 22px;
  padding: 26px;
}

.side {
  padding: 18px;
}

.hero {
  padding: 26px;
}

.section {
  margin-top: 22px;
  padding: 26px;
}

.heroBar {
  gap: 12px;
  margin-top: 16px;
}

.heroSplit {
  gap: 18px;
  margin-top: 18px;
}

.stack {
  gap: 16px;
}

.rowCard,
.sectionCard,
.card,
.contactBox,
.refCard {
  padding: 16px;
}

.list li {
  margin: 8px 0;
}

.strip {
  gap: 12px;
  margin-top: 14px;
}

.stripImg {
  flex-basis: 260px;
  width: 260px;
  height: 155px;
}

.pillGrid {
  gap: 14px;
}

.refGrid {
  gap: 14px;
}

/* 3) Reduce “busy” feel: soften borders/shadows slightly */
.hero, .section, .side {
  box-shadow: 0 14px 34px rgba(2,6,23,0.10);
}

.rowCard, .sectionCard, .card, .contactBox, .refCard {
  box-shadow: 0 10px 22px rgba(2,6,23,0.08);
}

.sideLinks a {
  background: rgba(255,255,255,0.92);
}

/* 4) Mobile: keep it airy */
@media (max-width: 1020px) {
  .app { padding: 18px; }
  .hero, .section { padding: 20px; }
}


/* ===== vNext: mobile avatar fix ===== */
/* Ensure avatar never looks stretched */
.avatar {
  width: 100%;
  height: auto;              /* key: keep aspect ratio */
  aspect-ratio: 3 / 4;       /* portrait feel */
  object-fit: cover;
  object-position: center;
  max-height: 320px;         /* prevents huge stretched banner */
}

/* On mobile, center the profile block and keep image nicely framed */
@media (max-width: 1020px) {
  .profile {
    display: grid;
    justify-items: center;
    gap: 10px;
  }
  .avatar {
    width: min(340px, 100%);
    max-height: 360px;
  }
  .ploc {
    text-align: center;
  }
}
