:root {
  color-scheme: dark;
  --bg: #0a1020;
  --bg-alt: #0e172a;
  --surface: #142139;
  --surface-soft: #1a2a43;
  --border: #293b57;
  --text: #f3f7ff;
  --muted: #b0bfd3;
  --accent: #6cb5ff;
  --accent-strong: #3b91ec;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.7 "Segoe UI", Inter, Arial, sans-serif; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.narrow { max-width: 900px; }
.skip-link { position: absolute; top: -80px; left: 12px; background: var(--accent); color: #071222; padding: 10px 16px; z-index: 20; }
.skip-link:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--border); background: rgba(10,16,32,.95); }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-size: 1.3rem; font-weight: 800; letter-spacing: -.05em; color: var(--text); white-space: nowrap; }
.brand span:first-child, .brand-dot { color: var(--accent); }
.site-header nav { display: flex; flex-wrap: wrap; gap: clamp(12px,2.2vw,30px); }
.site-header nav a { color: var(--muted); font-size: .94rem; font-weight: 600; }
.site-header nav a:hover { color: var(--text); }
.hero { min-height: 640px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 60px; padding-block: 110px; }
.eyebrow, .section-kicker, .project-number { color: var(--accent); font-size: .79rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.status-dot, .panel-indicator { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #58d6ae; margin-right: 7px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.035em; }
h1 { font-size: clamp(2.6rem, 5.1vw, 4.65rem); margin: 18px 0; }
h1 span { color: var(--accent); }
.hero-subtitle { font-size: clamp(1.2rem,2.1vw,1.6rem); font-weight: 650; }
.hero-description { max-width: 630px; color: var(--muted); font-size: 1.05rem; }
.hero-actions, .contact-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; border: 1px solid transparent; border-radius: 10px; padding: 12px 22px; font-weight: 750; transition: transform .15s ease, background .15s ease; }
.button:hover { transform: translateY(-2px); text-decoration: none; }
.button-primary { background: var(--accent); color: #071322; }
.button-primary:hover { background: #96caff; }
.button-outline { color: var(--text); border-color: #49627f; background: transparent; }
.button-outline:hover { background: var(--surface); }
.hero-panel { background: linear-gradient(150deg,#1b2e4c,#111c30); border: 1px solid #365171; border-radius: 20px; padding: 24px; box-shadow: 0 24px 70px rgba(0,0,0,.22); }
.panel-top, .panel-bottom { display: flex; align-items: center; color: #b9c9dc; font-size: .7rem; letter-spacing: .13em; font-weight: 800; }
.panel-top { border-bottom: 1px solid var(--border); padding-bottom: 16px; }
.panel-mark { margin-left: auto; color: var(--accent); }
.area { display: flex; align-items: center; gap: 16px; padding: 23px 0; border-bottom: 1px solid var(--border); }
.area-icon { flex: 0 0 46px; height: 46px; display: grid; place-items: center; background: #274263; border-radius: 12px; color: #9dcfff; font-weight: 800; }
.area strong, .area small { display: block; }
.area strong { font-size: 1rem; }
.area small { color: var(--muted); font-size: .83rem; }
.panel-bottom { padding-top: 18px; }
.section { padding-block: 100px; scroll-margin-top: 20px; }
.section-alt { background: var(--bg-alt); border-block: 1px solid #1e2c42; }
.section h2 { font-size: clamp(2rem, 3.5vw, 2.9rem); margin-bottom: 22px; }
.section p { color: var(--muted); }
.section .section-kicker { color: var(--accent); }
.lead { color: var(--text) !important; font-size: 1.25rem; }
.section-description { max-width: 740px; margin-bottom: 38px; }
.skills-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.skill-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 26px; }
.skill-card h3 { font-size: 1.12rem; margin-bottom: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 9px; }
.tags span { padding: 6px 12px; border: 1px solid #39516e; border-radius: 7px; color: #d5e5f7; background: #1c304d; font-size: .82rem; font-weight: 650; }
.project-card { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); gap: 0; overflow: hidden; background: var(--surface); border: 1px solid #324763; border-radius: 20px; margin-top: 28px; }
.project-media { position: relative; display: flex; align-items: center; justify-content: center; min-height: 380px; padding: 28px; background: #0b1424; }
.project-media img { width: 100%; height: auto; max-height: 460px; object-fit: contain; border-radius: 10px; }
.project-media-bot { background: #0b1018; }
.media-label { position: absolute; left: 24px; top: 22px; background: rgba(9,18,33,.85); border: 1px solid #3c526c; padding: 6px 11px; border-radius: 6px; color: #c9d8ea; font-size: .7rem; font-weight: 750; letter-spacing: .08em; }
.project-content { padding: clamp(24px,3vw,44px); }
.project-number { margin-bottom: 14px; }
.project-number span { color: #93a9c4; }
.project-content h3 { font-size: clamp(1.55rem,2.4vw,2.1rem); margin-bottom: 18px; }
.title-muted { color: #c7d5e8; }
.project-content p { color: var(--muted); }
.metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin: 25px 0 8px; }
.metrics div { background: var(--surface-soft); padding: 12px 10px; border-radius: 10px; }
.metrics strong, .metrics small { display: block; }
.metrics strong { font-size: clamp(.95rem,1.6vw,1.15rem); white-space: nowrap; }
.metrics small { font-size: .75rem; color: var(--muted); }
.note { font-size: .78rem; }
.project-tags { margin: 22px 0 26px; }
.project-link { display: inline-block; font-weight: 800; }
.feature-list { padding-left: 21px; margin: 18px 0; color: #c0cde0; }
.feature-list li { padding-left: 3px; margin-bottom: 8px; }
.feature-list li::marker { color: var(--accent); }
.feature-list code { background: #253b59; color: #e8f3ff; padding: 1px 5px; border-radius: 4px; }
.contact-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.contact-inner p { max-width: 650px; }
.contact-links { margin-top: 0; }
.site-footer { border-top: 1px solid var(--border); padding: 25px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #aabbd0; font-size: .84rem; }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; min-height: auto; gap: 35px; padding-block: 75px; } .hero-panel { max-width: 620px; } .skills-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .project-card { grid-template-columns: 1fr; } .project-media { min-height: 260px; } .contact-inner { align-items: flex-start; flex-direction: column; } }
@media (max-width: 620px) { .container { width: min(100% - 32px,1160px); } .header-inner { padding-block: 20px; flex-direction: column; align-items: flex-start; gap: 14px; } .site-header nav { gap: 10px 18px; } .site-header nav a { font-size: .86rem; } .hero { padding-block: 64px; } .section { padding-block: 70px; } .skills-grid { grid-template-columns: 1fr; } .project-media { padding: 18px; min-height: 200px; } .media-label { top: 12px; left: 12px; font-size: .6rem; } .project-content { padding: 24px 18px; } .metrics { grid-template-columns: 1fr; } .metrics div { display: flex; justify-content: space-between; align-items: center; gap: 12px; } .hero-actions .button { width: 100%; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button { transition: none; } }
