:root {
  --bg: #070910;
  --surface: #0d111b;
  --surface-2: #111725;
  --line: rgba(255,255,255,.09);
  --text: #f4f6fb;
  --muted: #98a1b5;
  --accent: #9d7cff;
  --accent-2: #58e6c4;
  --shadow: 0 30px 90px rgba(0,0,0,.35);
  --radius: 24px;
  --max: 1180px;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --font-heading: 'Source Serif 4', Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { scroll-padding-top: 92px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.7; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 200; padding: 10px 14px; border-radius: 10px; color: #080b12; background: #f4f6fb; font-weight: 700; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 4px; }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .035; z-index: 100; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"); }
.site-header { position: sticky; top: 0; z-index: 50; height: 76px; display:flex; align-items:center; justify-content:space-between; gap: 24px; padding: 0 32px; border-bottom: 1px solid var(--line); background: rgba(7,9,16,.78); backdrop-filter: blur(18px); }
.brand { display:flex; align-items:center; gap: 11px; font-weight: 700; letter-spacing: -.01em; }
.brand-mark { display:grid; place-items:center; width:34px; height:34px; border-radius: 10px; font: 700 12px/1 var(--font-heading); background: linear-gradient(135deg,var(--accent),#5e4dcf); }
.nav { display:flex; gap: 28px; margin-left:auto; margin-right: 8px; }
.nav a, .social-row a, .contact-links a, .site-footer a { color: var(--muted); font-size: 15px; transition: color .2s ease; }
.nav a:hover, .social-row a:hover, .contact-links a:hover, .site-footer a:hover { color: var(--text); }
.header-cta { font-size: 15px; font-weight: 600; padding: 10px 15px; border:1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.04); }
.menu-toggle { display:none; border:0; background:none; color:var(--text); font-size:22px; }
.section-pad { padding-left: max(24px, calc((100vw - var(--max))/2)); padding-right: max(24px, calc((100vw - var(--max))/2)); }
.hero { padding-top: 96px; padding-bottom: 58px; position:relative; }
.hero::before { content:''; position:absolute; width: 650px; height:650px; right:-260px; top:-260px; border-radius:50%; background: radial-gradient(circle, rgba(157,124,255,.16), transparent 65%); filter: blur(15px); }
.hero-grid { display:grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items:center; }
.eyebrow, .kicker { letter-spacing: .12em; text-transform: uppercase; font-size: 12px; font-weight: 700; color: var(--muted); }
.eyebrow { display:inline-flex; align-items:center; gap: 10px; padding: 8px 12px; border:1px solid var(--line); border-radius:999px; background:rgba(255,255,255,.025); }
.status-dot { width:7px; height:7px; border-radius:50%; background:var(--accent-2); box-shadow:0 0 15px rgba(88,230,196,.8); }
h1, h2, h3 { font-family:var(--font-heading); letter-spacing:-.025em; line-height:1.12; margin:0; }
h1 { font-size: clamp(46px, 6vw, 76px); margin-top:22px; max-width: 840px; }
.gradient-text { color: transparent; background: linear-gradient(120deg,#fff 0%,#c4b8ff 46%,#63ead0 100%); -webkit-background-clip:text; background-clip:text; }
.hero-lead { margin: 24px 0 0; color: var(--muted); max-width: 62ch; font-size: 19px; line-height:1.65; }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top: 34px; }
.button { display:inline-flex; gap:12px; align-items:center; padding:13px 18px; border-radius:14px; font-weight:700; font-size:15px; border:1px solid var(--line); transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color:#0b0c12; background:#f1f3f7; }
.button-ghost { background: rgba(255,255,255,.03); color:var(--text); }
.social-row { display:flex; flex-wrap:wrap; gap: 18px; margin-top: 26px; }
.hero-card { border:1px solid var(--line); border-radius:32px; padding:20px; background:linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); box-shadow:var(--shadow); }
.card-topline { display:flex; justify-content:space-between; color:#8993a7; letter-spacing:.1em; font-size:11px; font-weight:700; }
.portrait-wrap { position:relative; overflow:hidden; height:440px; margin:18px 0 20px; border-radius:24px; border:1px solid rgba(255,255,255,.1); background:#0a0d14; isolation:isolate; }
.portrait { width:100%; height:100%; display:block; object-fit:cover; object-position:center 18%; filter:saturate(.92) contrast(1.02); transform:scale(1.015); }
.portrait-glow { position:absolute; inset:0; background:linear-gradient(180deg, rgba(7,9,16,.02) 35%, rgba(7,9,16,.15) 57%, rgba(7,9,16,.9) 100%); z-index:1; pointer-events:none; }
.portrait-caption { position:absolute; left:20px; right:20px; bottom:18px; z-index:2; display:flex; flex-direction:column; gap:3px; }
.portrait-caption span { color:#c0c8d6; font-size:12px; letter-spacing:.1em; font-weight:700; }
.portrait-caption strong { font:600 28px/1.15 var(--font-heading); letter-spacing:-.02em; }
.card-meta { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; border-top:1px solid var(--line); padding-top:18px; }
.meta-label { display:block; font-size:13px; color:#a2acbf; margin-bottom:4px; }
.card-meta strong { font-size:15px; }
.hero-stats { display:grid; grid-template-columns:repeat(4,1fr); gap: 14px; margin-top: 58px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.hero-stats div { padding:22px 0; }
.hero-stats .stat-link { display:block; padding:22px 0; }
.hero-stats .stat-link:hover strong { color:var(--accent-2); }
.hero-stats strong { display:block; font: 600 24px/1.15 var(--font-heading); margin-bottom:7px; }
.hero-stats span { color:var(--muted); font-size:14px; }
.section { padding-top: 122px; padding-bottom:122px; }
.section-dark { background: #0a0d15; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.section-tinted { background: linear-gradient(180deg, rgba(255,255,255,.02), transparent); }
.section-heading { max-width: 780px; }
.section-heading h2, .mini-section h2 { font-size: clamp(36px, 4.5vw, 56px); margin-top:14px; line-height:1.14; }
.section-heading p { color:var(--muted); font-size:18px; line-height:1.65; max-width:640px; margin-top:16px; }
.about-grid { display:grid; grid-template-columns:1.35fr .8fr; gap:80px; margin-top:52px; }
.about-main p { color:var(--muted); max-width:68ch; margin:0 0 20px; font-size:17px; line-height:1.75; }
.about-main .big-copy { font-size: 25px; line-height:1.45; color:var(--text); font-family:var(--font-heading); letter-spacing:-.015em; }
.about-facts { border-top:1px solid var(--line); }
.fact { padding:18px 0; border-bottom:1px solid var(--line); }
.fact span { display:block; color:#a2acbf; font-size:12px; text-transform:uppercase; letter-spacing:.1em; margin-bottom:5px; }
.fact strong { font-size:16px; }
.project-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; margin-top:54px; }
.project-card { position:relative; overflow:hidden; min-height: 310px; padding:28px; border:1px solid var(--line); border-radius:var(--radius); background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); }
.project-card::after { content:''; position:absolute; width:210px;height:210px;right:-90px;top:-100px;border-radius:50%;background:radial-gradient(circle, rgba(157,124,255,.15), transparent 68%); }
.project-feature { min-height: 370px; display:flex; align-items:flex-end; }
.project-index { position:absolute; top:22px; right:25px; color:#5e687d; font-size:11px; letter-spacing:.12em; font-weight:700; }
.project-content { max-width: 850px; position:relative; z-index:1; }
.tag-row { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:16px; }
.tag-row span { padding:5px 10px; font-size:13px; border:1px solid var(--line); border-radius:999px; color:#c4ccda; background:rgba(255,255,255,.02); }
.project-content h3 { font-size: clamp(25px, 2.5vw, 32px); line-height:1.2; margin-bottom:14px; }
.project-card:not(.project-feature) .project-content h3 { font-size:28px; }
.project-content p { margin:0 0 12px; color:var(--muted); font-size:16px; line-height:1.7; }
.text-link { display:inline-flex; gap:8px; margin-top:13px; font-weight:700; font-size:15px; color:#e3e6ee; }
.text-link:hover { color:#fff; }
.project-links { display:flex; flex-wrap:wrap; gap:8px 22px; margin-top:12px; }
.project-badge { display:inline-flex; margin-top:14px; padding:8px 10px; border-radius:10px; background:rgba(157,124,255,.12); border:1px solid rgba(157,124,255,.22); color:#d2c9ff; font-size:14px; font-weight:700; }
.timeline { position:relative; margin-top:54px; padding-left:32px; }
.timeline-line { position:absolute; left:7px; top:0; bottom:0; width:1px; background:var(--line); }
.timeline-item { position:relative; padding:10px 0 0 28px; }
.timeline-marker { position:absolute; width:14px;height:14px;border-radius:50%;background:var(--bg);border:3px solid var(--accent);left:-32px;top:14px;box-shadow:0 0 25px rgba(157,124,255,.3); }
.timeline-date { color:#a2acbf; font-size:12px; letter-spacing:.1em; font-weight:700; }
.timeline-main { max-width:820px; margin-top:10px; }
.timeline-main h3 { font-size:32px; margin-bottom:14px; }
.timeline-main p { color:var(--muted); font-size:16px; line-height:1.7; }
.skill-layout { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; margin-top:52px; }
.skill-block { padding:25px; min-height:180px; border:1px solid var(--line); border-radius:var(--radius); background:rgba(255,255,255,.025); }
.skill-block h3 { font-size:25px; margin-bottom:18px; }
.chips { display:flex; flex-wrap:wrap; gap:8px; }
.chips span { font-size:14px; color:#c4ccda; border:1px solid var(--line); padding:7px 11px; border-radius:999px; background:rgba(255,255,255,.02); }
.two-col { display:grid; grid-template-columns:1fr 1fr; gap:70px; }
.edu-card { padding:22px 0; border-bottom:1px solid var(--line); }
.edu-card.compact h3 { font-size:23px; }
.edu-year { font-size:12px; color:#a2acbf; letter-spacing:.1em; font-weight:700; margin-bottom:8px; }
.edu-card h3 { font-size:28px; margin-bottom:7px; }
.edu-card p { margin:0 0 7px; color:var(--muted); font-size:16px; }
.credential-list { margin-top:42px; border-top:1px solid var(--line); }
.credential-list div { padding:15px 0; border-bottom:1px solid var(--line); color:#dbe0e9; font-size:16px; line-height:1.55; }
.achievements .section-heading { margin-bottom:54px; }
.achievement-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.achievement-card { padding:26px; border:1px solid var(--line); border-radius:var(--radius); min-height:230px; background:linear-gradient(160deg,rgba(255,255,255,.045),rgba(255,255,255,.012)); }
.achievement-number { color:#8c97ab; font-size:12px; letter-spacing:.1em; }
.achievement-card h3 { font-size:30px; margin:34px 0 10px; }
.achievement-card p { color:var(--muted); font-size:16px; line-height:1.65; margin:0; }
.contact-section { padding-bottom:80px; }
.contact-card { padding:64px; border:1px solid var(--line); border-radius:32px; background: radial-gradient(circle at 85% 20%, rgba(157,124,255,.16), transparent 32%), linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,.012)); }
.contact-card h2 { font-size:clamp(38px,5vw,60px); line-height:1.15; max-width:900px; margin-top:15px; }
.contact-card p { color:var(--muted); max-width:640px; font-size:18px; line-height:1.65; margin:20px 0 28px; }
.contact-email { display:inline-flex; gap:12px; align-items:center; font:600 clamp(20px,2.4vw,29px)/1.3 var(--font-heading); border-bottom:1px solid rgba(255,255,255,.25); padding-bottom:6px; }
.contact-links { display:flex; flex-wrap:wrap; gap:22px; margin-top:28px; }
.site-footer { max-width:var(--max); margin:0 auto; padding:28px 24px 48px; display:flex; justify-content:space-between; gap:20px; color:#8b95a9; font-size:14px; }
.reveal { opacity:1; transform:none; }
.js .reveal { opacity:0; transform:translate3d(0, 14px, 0); transition:opacity .65s cubic-bezier(.22,.61,.36,1), transform .65s cubic-bezier(.22,.61,.36,1); }
.reveal.visible { opacity:1; transform:none; }
.delay-1{transition-delay:.1s}.delay-2{transition-delay:.2s}.delay-3{transition-delay:.3s}
@media (max-width: 900px) {
  .site-header { padding:0 18px; }
  .nav, .header-cta { display:none; }
  .menu-toggle { display:block; }
  .site-header.menu-open .nav { display:flex; position:absolute; top:76px; left:0; right:0; padding:18px; background:rgba(7,9,16,.97); border-bottom:1px solid var(--line); flex-direction:column; gap:12px; }
  .nav a { padding:8px 4px; }
  .hero { padding-top:70px; }
  .hero-grid, .about-grid, .two-col { grid-template-columns:1fr; gap:42px; }
  .project-grid, .achievement-grid { grid-template-columns:1fr; }
  .project-feature { min-height:330px; }
  .skill-layout { grid-template-columns:1fr; }
  .hero-stats { grid-template-columns:repeat(2,1fr); }
  .section { padding-top:86px; padding-bottom:86px; }
}
@media (max-width: 560px) {
  h1 { font-size: clamp(42px, 11vw, 58px); }
  .hero-lead, .section-heading p { font-size:17px; }
  .hero-stats { grid-template-columns:1fr; }
  .hero-stats div { padding:16px 0; }
  .hero-stats .stat-link { padding:16px 0; }
  .portrait-wrap { height: 410px; }
  .card-meta { grid-template-columns:1fr; }
  .project-card, .contact-card, .skill-block { border-radius:20px; }
  .contact-card { padding:30px 22px; }
  .site-footer { flex-direction:column; }
  .about-main .big-copy { font-size:22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  .js .reveal { opacity:1; transform:none; transition:none; }
  .button { transition:none; }
}
