:root {
  color-scheme: dark;
  --bg: #0a111b;
  --surface: #101b29;
  --surface-raised: #142235;
  --ink: #f3f6fa;
  --muted: #b4c0ce;
  --line: #29394d;
  --accent: #78c5df;
  --accent-strong: #a4e2f4;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.7 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent-strong); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: white; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px max(24px, calc((100vw - var(--max))/2)); border-bottom: 1px solid rgba(180,192,206,.14); background: rgba(10,17,27,.94); backdrop-filter: blur(14px); }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 750; letter-spacing: .01em; white-space: nowrap; }
.logo-pic { width: 42px; height: 42px; object-fit: cover; object-position: center 25%; border-radius: 50%; border: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav a { display: inline-block; padding: 8px 12px; border-radius: 7px; color: var(--muted); text-decoration: none; font-size: .94rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: rgba(120,197,223,.1); }
main { min-height: 65vh; }
.container { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.hero { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(250px,.7fr); align-items: center; gap: clamp(32px,7vw,90px); padding-block: clamp(56px,9vw,112px); }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: .82rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
h1,h2,h3 { color: var(--ink); line-height: 1.2; letter-spacing: -.025em; }
h1 { margin: 0; font-size: clamp(2.6rem,6vw,4.9rem); font-weight: 720; }
h2 { margin: 0 0 18px; font-size: clamp(1.65rem,3vw,2.2rem); }
h3 { margin: 0 0 8px; font-size: 1.16rem; }
.lead { max-width: 720px; margin: 20px 0 0; color: #d8e1eb; font-size: clamp(1.12rem,2vw,1.34rem); line-height: 1.65; }
.sublead { max-width: 700px; color: var(--muted); }
.portrait { justify-self: end; width: min(100%, 355px); aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 24px 70px rgba(0,0,0,.32); }
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 17px; border: 1px solid var(--accent); border-radius: 8px; background: var(--accent); color: #08131b; font-weight: 720; text-decoration: none; transition: background .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-2px); background: var(--accent-strong); color: #08131b; text-decoration: none; }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.button.secondary:hover { background: var(--surface-raised); }
.section { padding-block: clamp(48px,7vw,82px); border-top: 1px solid rgba(180,192,206,.12); }
.section-heading { max-width: 700px; margin-bottom: 28px; }
.section-heading p, .muted, .card p { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.card { padding: 23px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg,rgba(20,34,53,.92),rgba(16,27,41,.92)); }
.card p { margin: 0; }
.card-link { display: block; height: 100%; color: inherit; text-decoration: none; transition: transform .18s ease,border-color .18s ease; }
.card-link:hover { transform: translateY(-3px); border-color: var(--accent); }
.card-link h3 { color: var(--accent-strong); }
.tag-list { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0 0; padding: 0; list-style: none; }
.tag-list li { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; color: #d1dce7; background: rgba(255,255,255,.025); font-size: .91rem; }
.page-intro { padding-block: clamp(52px,8vw,90px) 36px; }
.page-intro h1 { font-size: clamp(2.3rem,5vw,4rem); }
.page-intro .lead { font-size: 1.18rem; }
.prose { max-width: 850px; }
.prose p { color: var(--muted); }
.prose p:first-of-type { color: #d7e1eb; font-size: 1.08rem; }
.content-section { padding-block: 26px; }
.content-section + .content-section { border-top: 1px solid rgba(180,192,206,.12); }
.content-section ul { padding-left: 1.2rem; color: var(--muted); }
.content-section li { margin: 7px 0; padding-left: 4px; }
.expertise-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; padding-bottom: 80px; }
.expertise-grid .card { padding: 25px; }
.contact-panel { max-width: 760px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 90px; }
.contact-item { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.contact-item span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .9rem; }
.contact-item a { font-size: 1.08rem; }
.site-footer { padding: 27px 24px; border-top: 1px solid rgba(180,192,206,.12); color: var(--muted); font-size: .9rem; }
.footer-inner { width: min(var(--max),100%); margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
@media(max-width:760px) { .site-header { align-items: flex-start; flex-direction: column; gap: 7px; padding: 11px 20px; } .nav { justify-content: flex-start; gap: 0; } .nav a { padding: 7px 9px; } .container { width: min(var(--max),calc(100% - 40px)); } .hero { grid-template-columns: 1fr; padding-block: 48px 58px; } .portrait { justify-self: start; width: min(78vw,330px); } .grid { grid-template-columns: 1fr; } .expertise-grid { grid-template-columns: 1fr; } }
@media(max-width:480px) { body { font-size: 16px; } .contact-panel { grid-template-columns: 1fr; } .logo-pic { width: 36px; height: 36px; } .nav a { font-size: .9rem; } }
@media(prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto!important; transition-duration: .01ms!important; } }

.hero-actions { margin-top: 30px; }
.hero-actions .featured { min-width: min(100%, 430px); min-height: 68px; padding: 16px 24px; font-size: 1.12rem; text-align: center; line-height: 1.35; flex-direction: column; }
.secondary-actions { margin-top: 14px; }
@media(max-width:760px) { .hero-actions .featured { width: 100%; } .secondary-actions .button { flex: 1 1 auto; } }

.accent-link { color: #08131b; border-color: transparent; font-weight: 750; }
.linkedin-link { background: #5bb8e5; }
.linkedin-link:hover { background: #88d1f2; color: #08131b; }
.skills-link { background: #8bd2ba; }
.skills-link:hover { background: #a9e3d0; color: #08131b; }
.email-link { background: #e2b86f; }
.email-link:hover { background: #f0cc8d; color: #08131b; }

.button-subline { display: block; margin-top: 3px; font-size: .86rem; font-weight: 650; }
.contact-line { margin: 18px 0 0; color: var(--muted); font-size: .94rem; }
.contact-line a { margin-left: 5px; }
