:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --soft: #eef4ff;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --primary: #1d4ed8;
  --primary-2: #1e40af;
  --max: 1160px;
}

*{box-sizing:border-box} html,body{margin:0;padding:0}
body{font-family:'Inter',system-ui,sans-serif;background:var(--bg);color:var(--text);line-height:1.6}
.container{width:min(100% - 1.25rem,var(--max));margin-inline:auto}

.site-header{position:sticky;top:0;z-index:30;background:rgba(255,255,255,.95);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.nav-wrap{min-height:64px;display:flex;align-items:center;justify-content:space-between;gap:.8rem}
.brand{text-decoration:none;color:#0b1220;font-weight:800}
nav{display:flex;gap:.75rem;align-items:center}
nav a{text-decoration:none;color:var(--muted);font-weight:600;font-size:.92rem}
nav a:hover{color:var(--text)}

.hero{padding:2.2rem 0;background:linear-gradient(180deg,#eef4ff 0%,#f8fafc 100%)}
.hero-grid{display:grid;grid-template-columns:1fr;gap:1rem}

.hero-photo-card{position:relative;border-radius:18px;overflow:hidden;border:1px solid #d8e2f5;background:#dbe5f8;min-height:320px;box-shadow:0 16px 34px rgba(15,23,42,.12)}
#profile-photo,.profile-fallback{width:100%;height:100%;object-fit:cover;display:block}
.profile-fallback{display:none;place-items:center;font-weight:800;font-size:2rem;color:#1e3a8a;background:linear-gradient(180deg,#e2e8f0,#cbd5e1)}
.hero-photo-overlay{position:absolute;left:0;right:0;bottom:0;padding:.7rem .9rem;background:linear-gradient(180deg,transparent,rgba(2,6,23,.72));color:#fff;font-weight:600}
.hero-photo-overlay p{margin:0}

.kicker{margin:0;color:#1e40af;text-transform:uppercase;letter-spacing:.08em;font-weight:700;font-size:.76rem}
h1{margin:.55rem 0 .8rem;font-family:'Playfair Display',serif;font-size:clamp(1.8rem,6.8vw,3.1rem);line-height:1.14}
.lead{margin:0;color:var(--muted);font-size:1rem}
.hero-actions{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1rem}
.hero-highlights{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.95rem}
.hero-highlights span{background:#fff;border:1px solid #d8e3f7;color:#1e3a8a;font-size:.8rem;font-weight:600;border-radius:999px;padding:.3rem .62rem}

.section{padding:2.2rem 0}
.section h2{margin:0 0 .45rem;font-family:'Playfair Display',serif;font-size:clamp(1.4rem,5vw,2.2rem)}
.section-intro{margin:0;color:var(--muted)}

.cards,.timeline{display:grid;grid-template-columns:1fr;gap:.85rem;margin-top:1rem}
.card,.timeline>div,.contact-card{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:1rem;box-shadow:0 8px 24px rgba(15,23,42,.05)}
.card h3,.timeline h3{margin:0 0 .35rem}
.card p,.timeline p{margin:0;color:#334155}
.keynote{border-left:4px solid #1d4ed8}

.section-soft{background:#f4f8ff;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}

.section-cta{background:linear-gradient(180deg,#eef4ff 0%,#f8fafc 100%);border-top:1px solid var(--line)}
.cta-grid{display:grid;grid-template-columns:1fr;gap:.9rem}
.contact-form{display:grid;gap:.62rem}
.contact-form label{display:grid;gap:.3rem;color:#1e293b;font-size:.9rem}
.contact-form input,.contact-form textarea{width:100%;border:1px solid #ccd8ea;background:#fff;color:var(--text);border-radius:10px;padding:.67rem .72rem;font:inherit}
.contact-form input:focus,.contact-form textarea:focus{outline:2px solid rgba(29,78,216,.3);border-color:#9fb7ea}
.contact-note{margin-top:.72rem !important;font-size:.88rem;color:#475569 !important}

.btn{display:inline-block;text-decoration:none;border-radius:10px;padding:.64rem .94rem;font-weight:700;font-size:.92rem;border:1px solid transparent;background:var(--primary);color:#fff}
.btn:hover{background:var(--primary-2)}
.btn-ghost{background:#fff;color:#1e3a8a;border-color:#c7d6f6}
.btn-ghost:hover{background:#f8fbff}
.btn-small{padding:.44rem .74rem}

.site-footer{background:#fff;border-top:1px solid var(--line);padding:1.2rem 0 1.6rem}
.site-footer p{margin:.15rem 0;color:#475569}

@media (max-width:760px){nav a:not(.btn){display:none}}
@media (min-width:761px){.container{width:min(100% - 2rem,var(--max))}.cards{grid-template-columns:repeat(2,1fr)}.timeline{grid-template-columns:repeat(3,1fr)}}
@media (min-width:1024px){.hero{padding:3.2rem 0}.hero-grid{grid-template-columns:.88fr 1.12fr;align-items:center}.hero-photo-card{min-height:520px}.cards{grid-template-columns:repeat(3,1fr)}.cta-grid{grid-template-columns:1fr minmax(360px,430px)}}