:root{
  --bg:#FFFFFF;
  --panel:#FFFFFF;
  --text:#101418;
  --muted:#6B7280;
  --line:#E5E7EB;
  --blue:#1F3A93;
  --orange:#D97706;

  --radius:14px;
  --shadow:0 1px 2px rgba(0,0,0,.05);
  --shadow-hover:0 6px 18px rgba(0,0,0,.10);
}

*{box-sizing:border-box}

html,body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--text);
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

a{
  color:var(--blue);
  text-decoration:underline;
  text-underline-offset:3px;
  text-decoration-thickness:1px;
}
a:hover{ text-decoration-thickness:2px; }

.container{
  max-width:960px;
  margin:0 auto;
  padding:24px;
}

/* ================= HEADER ================= */

.header{
  position:sticky;
  top:0;
  background:#FFFFFF;
  border-bottom:1px solid var(--line);
  z-index:10;
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
}

.brand{
  display:flex;
  align-items:center;
}

.brand img{
  height:56px;
  width:auto;
  display:block;
  background:transparent;
}

/* ================= NAV ================= */

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

.nav a{
  padding:10px 12px;
  border-radius:12px;
  font-weight:650;
  text-decoration:none;
  color:var(--blue);
  transition:background .15s ease, transform .12s ease, box-shadow .12s ease, border-color .15s ease;
}

.nav a:hover{
  background:#F3F4F6;
}

.nav a.active{
  background:#F3F4F6;
  border:1px solid var(--line);
}

/* ================= TYPOGRAPHY HELPERS ================= */

.page-title{
  margin:6px 0 10px;
  letter-spacing:-.35px;
}

.lede{
  margin:0 0 18px;
  color:var(--muted);
  line-height:1.6;
  max-width:760px;
  font-size:1.05rem;
}

.prose{
  max-width:760px;
}

.prose h2{
  margin:26px 0 10px;
  letter-spacing:-.25px;
}

.prose p{
  line-height:1.75;
  color:#111827;
}

.prose ul{
  margin:10px 0 0 18px;
  padding:0;
  line-height:1.7;
}

.prose li{ margin:6px 0; }

.meta-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:10px 0 0;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  font-size:.85rem;
  font-weight:650;
  border:1px solid var(--line);
  background:#FFFFFF;
  color:#374151;
  text-decoration:none;
}

/* ================= HERO ================= */

.hero{
  padding:56px 24px 24px;
}

.kicker{
  font-weight:800;
  letter-spacing:.14em;
  color:var(--orange);
  font-size:12px;
}

.hero h1{
  font-size:40px;
  line-height:1.08;
  margin:10px 0 12px;
  font-weight:850;
  letter-spacing:-.45px;
}

.hero p.sub{
  font-size:18px;
  line-height:1.55;
  color:var(--muted);
  max-width:760px;
  margin:0;
}

.cta-row{
  display:flex;
  gap:12px;
  margin-top:16px;
  flex-wrap:wrap;
}

/* ================= BUTTONS ================= */

.btn{
  display:inline-block;
  padding:12px 16px;
  border-radius:12px;
  border:1px solid var(--line);
  background:var(--panel);
  font-weight:750;
  text-decoration:none;
  transition:transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.btn:hover{
  transform:translateY(-1px);
  box-shadow:var(--shadow);
}

.btn.primary{
  background:var(--blue);
  border-color:var(--blue);
  color:#FFFFFF;
}

.btn.primary:hover{
  box-shadow:var(--shadow-hover);
}

/* ================= DIVIDERS ================= */

hr.sep{
  border:none;
  border-top:1px solid var(--line);
  margin:24px 0;
}

/* ================= SECTIONS + CARDS ================= */

.section{
  padding:16px 24px;
}

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:16px;
  margin:22px 0 10px;
}

.section-head h2{
  margin:0;
  letter-spacing:-.25px;
}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:14px;
}

.card{
  background:#FFFFFF;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
  transition:transform .12s ease, box-shadow .12s ease;
}

.card:hover{
  transform:translateY(-1px);
  box-shadow:var(--shadow-hover);
}

.card h3{
  margin:2px 0 8px;
  line-height:1.25;
  letter-spacing:-.2px;
}

.card h3 a{
  text-decoration:none;
}

.card h3 a:hover{
  text-decoration:underline;
  text-underline-offset:3px;
}

.card p{
  margin:0;
  color:#334155;
  line-height:1.55;
}

.card .card-meta{
  margin-top:12px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

/* ================= QUOTES / SMALL TEXT ================= */

blockquote{
  margin:16px 0 0;
  padding:14px 16px;
  border-left:4px solid var(--orange);
  background:#FFFFFF;
  border-radius:12px;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  color:#111827;
}

.small{
  font-size:14px;
  color:var(--muted);
  line-height:1.6;
}

/* ================= ABOUT LAYOUT ================= */

.about-wrap{
  display:flex;
  gap:24px;
  align-items:flex-start;
}

.about-photo{
  width:140px;
  height:140px;
  border-radius:18px;
  border:1px solid var(--line);
  object-fit:cover;
  box-shadow:var(--shadow);
  flex:0 0 auto;
}

@media (max-width:760px){
  .about-wrap{flex-direction:column; align-items:flex-start;}
  .about-photo{ width:120px; height:120px; }
}

/* ================= FOOTER (RESEARCH SIGNATURE) ================= */

.footer{
  border-top:1px solid var(--line);
  margin-top:48px;
  background:#FFFFFF;
}

.footer-inner{
  max-width:960px;
  margin:0 auto;
  padding:48px 24px;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:14px;
}

.footer-logo{
  height:36px;
  width:auto;
  opacity:.65;
  filter:grayscale(100%);
  display:block;
}

.footer-tagline{
  margin:0;
  font-size:.95rem;
  color:var(--muted);
  font-weight:500;
  line-height:1.5;
}

.footer-actions{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:4px;
}

.linkedin-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  font-size:.92rem;
  font-weight:650;
  color:#374151;
  border:1px solid #D1D5DB;
  border-radius:999px;
  text-decoration:none;
  background:#FFFFFF;
  transition:background .15s ease, transform .12s ease, box-shadow .12s ease, border-color .15s ease;
}

.linkedin-btn:hover{
  background:#F9FAFB;
  border-color:#CBD5E1;
  transform:translateY(-1px);
  box-shadow:0 1px 2px rgba(0,0,0,.04);
}

.footer-link{
  color:#6B7280;
  font-weight:650;
  text-decoration:none;
  padding:8px 10px;
  border-radius:10px;
  transition:background .15s ease;
}

.footer-link:hover{
  background:#F3F4F6;
  text-decoration:none;
}

.footer-meta{
  margin:6px 0 0;
  font-size:.85rem;
  color:#9CA3AF;
}

.footer a:focus-visible{
  outline:3px solid rgba(217,119,6,.35);
  outline-offset:3px;
  border-radius:999px;
}

/* ================= ACCESSIBILITY ================= */

:focus-visible{
  outline:3px solid rgba(217,119,6,.35);
  outline-offset:3px;
  border-radius:10px;
}

/* ================= MOBILE POLISH ================= */

@media (max-width:640px){
  .topbar{
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:10px;
    padding-top:6px;
    padding-bottom:10px;
  }

  .brand img{ height:62px; }

  /* ✅ Clean, intentional 2×2 nav (no orphan link) */
  .nav{
    width:100%;
    display:grid;
    grid-template-columns:repeat(2, max-content);
    justify-content:center;
    gap:10px 14px;
  }
  .nav a{
    padding:9px 12px;
    justify-self:center;
  }

  /* ✅ Slightly tighter hero on mobile */
  .hero{ padding:34px 24px 18px; }

  .hero h1{ font-size:32px; line-height:1.1; }

  .hero p.sub{ font-size:17px; }

  /* ✅ CTAs feel less “landing page” and more understated */
  .cta-row{
    justify-content:center;
    gap:10px;
    margin-top:14px;
  }
  .btn{
    padding:10px 14px;
    border-radius:12px;
  }

  /* ✅ Cards: less tall, faster scanning */
  .grid{ gap:12px; }
  .card{ padding:14px; }
  .card p{ line-height:1.5; }
  .card .card-meta{ margin-top:10px; gap:6px; }

  /* ✅ Pills slightly smaller on mobile */
  .pill{
    padding:5px 9px;
    font-size:.82rem;
  }

  .section{ padding:12px 24px; }

  .footer-inner{ padding:40px 24px; }
  .footer-logo{ height:34px; }
}


/* ================= POLISH PATCH ================= */

/* Subtle page frame so content doesn't feel like it's floating */
:root{
  --bg:#F9FAFB;         /* was pure white */
  --panel:#FFFFFF;
  --line:#E6E8EE;       /* slightly softer */
  --shadow:0 1px 2px rgba(16,24,40,.06);
  --shadow-hover:0 10px 26px rgba(16,24,40,.12);
}

/* Keep hero + cards on true white panels */
body{
  background:var(--bg);
}

/* Slightly wider, feels more modern on desktop */
.container{
  max-width:1040px;     /* was 960 */
  padding:22px;         /* slightly tighter */
}

/* Header: calmer and more premium */
.header{
  background:rgba(255,255,255,.88);
  backdrop-filter:saturate(160%) blur(10px);
  -webkit-backdrop-filter:saturate(160%) blur(10px);
  border-bottom:1px solid rgba(229,231,235,.9);
}

/* Reduce header vertical bulk a touch */
.topbar{
  padding:10px 0;
}

/* Logo: less dominant */
.brand img{
  height:48px;          /* was 56 */
}

/* Nav: less "pill app UI", more editorial */
.nav a{
  font-weight:620;      /* was 650 */
  padding:9px 11px;     /* slightly tighter */
  border-radius:11px;
  color:rgba(31,58,147,.92);
}

.nav a:hover{
  background:rgba(17,24,39,.04);
}

/* Active: subtle, no boxed border */
.nav a.active{
  background:rgba(31,58,147,.08);
  border:1px solid transparent;
}

/* Cards: keep your style but make the edge a bit softer */
.card{
  border-color:rgba(229,231,235,.95);
  box-shadow:var(--shadow);
}

.card:hover{
  box-shadow:var(--shadow-hover);
}

/* Pills: slightly calmer */
.pill{
  background:rgba(17,24,39,.02);
  color:#374151;
  border-color:rgba(229,231,235,.95);
}

/* Mobile: reduce logo size and tighten header spacing */
@media (max-width:640px){
  .topbar{
    padding:8px 0 10px;
  }

  .brand img{
    height:54px;        /* was 62 */
  }

  .hero{
    padding:30px 22px 16px;
  }

  .container{
    padding:20px;
  }
}
