:root{
  --bg: #0b0f14;
  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.08);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);
  --faint: rgba(255,255,255,0.52);
  --border: rgba(255,255,255,0.12);
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --radius: 10px;
  --radius2: 14px;
  --max: 1050px;
}

/* Light mode variables applied to the html element when .light is present */
/* (theme toggle removed) */

*{ box-sizing: border-box; }
html, body { height: 100%; }
body{
  transition: background 220ms ease, color 220ms ease;
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a{ color: var(--text); text-decoration: none; }
a:hover{ text-decoration: underline; text-underline-offset: 3px; }

.skip {
  position: absolute; left: -999px; top: -999px;
  background: #fff; color: #000; padding: 10px 12px; border-radius: 10px;
}
.skip:focus { left: 14px; top: 14px; z-index: 999; }

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

header{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.topline{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.name{
  display: grid;
  gap: 2px;
}
.name h1{
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.name p{
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.links{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
}
.chip:hover{
  background: rgba(255,255,255,0.07);
  text-decoration: none;
}

.summary{
  margin-top: 6px;
  color: var(--muted);
  font-size: 15.5px;
  max-width: none;
  width: 100%;
}

.section{
  margin-top: 26px;
}
.section h2{
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--muted);
  letter-spacing: 0.02em;
  font-weight: 600;
  text-transform: uppercase;
}

.grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.card{
  grid-column: span 12;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card .inner{
  padding: 18px 18px 16px;
  display: grid;
  gap: 10px;
}

.card-head{
  display: grid;
  gap: 6px;
}
.card-title{
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.card-sub{
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.pillrow{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.pill{
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--muted);
  font-size: 12.5px;
}

.kpis{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}
.kpi{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 12px 12px 10px;
  min-height: 72px;
}
.kpi .label{
  color: var(--faint);
  font-size: 12.5px;
  margin-bottom: 6px;
}
.kpi .value{
  font-size: 14.5px;
  color: var(--text);
  letter-spacing: -0.01em;
}

details{
  border-top: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
}
details summary{
  cursor: pointer;
  padding: 14px 18px;
  color: var(--text);
  font-weight: 600;
  list-style: none;
  user-select: none;
}
details summary::-webkit-details-marker { display: none; }

.detail-body{
  padding: 0 18px 18px;
  color: var(--muted);
  display: grid;
  gap: 10px;
}
.detail-body h3{
  margin: 12px 0 0;
  color: var(--text);
  font-size: 14.5px;
  letter-spacing: -0.01em;
}
.detail-body ul{
  margin: 6px 0 0;
  padding-left: 18px;
}
.detail-body li{ margin: 6px 0; }

.twocol{
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

footer{
  margin-top: 26px;
  padding: 18px 4px 0;
  color: var(--faint);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

@media (min-width: 820px){
  .card.featured{ grid-column: span 12; }
  .card.half{ grid-column: span 6; }
  .twocol{ grid-template-columns: 1fr 1fr; }

  /* Layout header: headshot | name (grow) | nav */
  .topline{ display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 18px; }
  .headshot-wrap{ margin-right: 12px; }
  .name{ align-self: start; max-width: 70%; }
  .links{ align-self: start; justify-self: end; }
  .summary{ margin-top: 8px; max-width: none; width: 100%; text-align: left; margin-left: 0; margin-right: 0; }
}
@media (prefers-reduced-motion: no-preference){
  .card{ transition: transform 180ms ease, background 180ms ease; }
  .card:hover{ transform: translateY(-2px); background: rgba(255,255,255,0.05); }
  .chip{ transition: background 160ms ease, transform 160ms ease; }
  .chip:hover{ transform: translateY(-1px); }
}

/* Brand carousel (JS-driven) */
.brand-carousel{ margin-top: 18px; overflow: hidden; }
.brand-track{ display:flex; gap:40px; align-items:center; min-width: max-content; will-change: transform; }
/* Standardize brand logo sizing: keep aspect ratio, limit height for consistency */
.brand-item{ flex: 0 0 auto; }
.brand-item img{ width: auto; height: 48px; max-height: 48px; max-width: auto; display:block; opacity:0.95; }

@media (max-width: 640px){
  .brand-item img{ height: 36px; max-height: 36px; }
}

@media (min-width: 1200px){
  .brand-item img{ height: 56px; max-height: 56px; }
}

/* Headshot styles */
.headshot-wrap{ flex: 0 0 auto; display:flex; align-items:center; }
.headshot{ width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: 50% 10%; display:block; }
@media (min-width: 600px){
  .headshot{ width: 160px; height: 160px; object-position: 50% 10%; }
}

/* NPS joke section */
.nps-section{ margin-top: 40px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius2); background: rgba(255,255,255,0.04); text-align: center; }
.nps-section h3{ margin: 0 0 16px; font-size: 18px; color: var(--text); }
.nps-buttons{ display:flex; gap:8px; justify-content:center; flex-wrap:wrap; align-items:center; }
.nps-btn{ padding: 10px 14px; border: 1px solid var(--border); background: rgba(255,255,255,0.06); color: var(--text); border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600; transition: background 160ms ease; user-select: none; }
.nps-btn:hover{ background: rgba(255,255,255,0.10); }
.nps-emoji{ display:inline-block; font-size: 32px; animation: poof 600ms ease-out forwards; }

@keyframes poof{
  0%{ opacity: 1; transform: scale(0.5); }
  100%{ opacity: 0; transform: scale(2); }
}
