:root {
    --bg: #070708;
    --bg-2: #0d0d10;
    --elev: #121216;
    --card: #16161b;
    --card-2: #1b1b22;
    --red: #e11d2e;
    --red-2: #ff3144;
    --red-dim: rgba(225, 29, 46, 0.14);
    --red-glow: rgba(225, 29, 46, 0.35);
    --text: #f4f4f7;
    --text-2: #c8c8d0;
    --muted: #8d8d98;
    --border: rgba(255, 255, 255, 0.08);
    --border-2: rgba(255, 255, 255, 0.14);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    --radius: 18px;
    --radius-sm: 12px;
    --header: 78px;
    --max: 1180px;
    --font: Inter, system-ui, sans-serif;
    --display: Outfit, Inter, sans-serif;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

[data-theme="light"] {
    --bg: #f3f3f6;
    --bg-2: #ececf1;
    --elev: #ffffff;
    --card: #ffffff;
    --card-2: #f7f7fa;
    --text: #121216;
    --text-2: #3f3f48;
    --muted: #6b6b76;
    --border: rgba(16, 16, 22, 0.08);
    --border-2: rgba(16, 16, 22, 0.14);
    --shadow: 0 18px 40px rgba(16, 16, 22, 0.08);
    --red-dim: rgba(225, 29, 46, 0.1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    letter-spacing: -0.01em;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; letter-spacing: -0.03em; line-height: 1.15; }
::selection { background: var(--red); color: #fff; }

.skip-link {
    position: absolute; left: 12px; top: -40px; z-index: 80;
    background: var(--red); color: #fff; padding: 8px 12px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.icon { width: 1.1em; height: 1.1em; display: inline-flex; }
.icon svg { width: 100%; height: 100%; }

.site-header {
    position: sticky; top: 0; z-index: 50;
    height: var(--header);
    backdrop-filter: blur(18px);
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    border-bottom: 1px solid transparent;
    transition: border-color .25s var(--ease), background .25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner {
    height: var(--header);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
    font-family: var(--display);
    font-weight: 800;
    font-style: italic;
    font-size: 1.7rem;
    letter-spacing: -0.12em;
    line-height: 1;
}
.brand-mark span:last-child { color: var(--red); }
.brand-text { font-weight: 600; font-size: .98rem; }

.nav { margin: 0; }
.nav ul { display: flex; gap: 4px; }
.nav a {
    display: block;
    padding: 8px 12px;
    color: var(--muted);
    font-size: .92rem;
    font-weight: 500;
    position: relative;
}
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a.is-active::after {
    content: "";
    position: absolute; left: 12px; right: 12px; bottom: 2px;
    height: 2px; background: var(--red); border-radius: 2px;
}

.lang-switch {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .78rem; font-weight: 700; letter-spacing: .06em;
    color: var(--muted);
}
.lang-switch a { color: var(--muted); }
.lang-switch a.is-active, .lang-switch a:hover { color: var(--text); }
.gh-meta {
    display: flex; flex-wrap: wrap; gap: 12px;
    margin-top: 10px; color: var(--muted); font-size: .78rem; font-weight: 600;
}
.gh-meta .icon { width: .95em; height: .95em; }
.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.article-card { display: grid; gap: 8px; color: inherit; }
.article-card:hover { border-color: var(--border-2); }
.article-meta { display: flex; gap: 14px; color: var(--muted); font-size: .82rem; margin-top: 6px; }
.article-single { max-width: 76ch; }
.article-body h2 { color: var(--text); font-size: 1.35rem; margin-top: 8px; }
.article-body ul { display: grid; gap: 6px; padding-left: 18px; list-style: disc; }
.article-body li::marker { color: var(--red); }
.cert-card { color: inherit; }
.cert-card.is-link { cursor: pointer; }
.cert-card.is-link:hover { border-color: var(--border-2); transform: translateY(-2px); }
.cert-card .thumb {
    width: 100%; height: 140px; object-fit: cover;
    border-radius: 12px; margin-bottom: 12px;
}
.thumb-file {
    display: grid; place-items: center; gap: 8px;
    background: var(--elev); border: 1px solid var(--border);
    color: var(--red); font-weight: 800; letter-spacing: .12em;
}
.thumb-file .icon { width: 32px; height: 32px; }
.header-socials { display: flex; align-items: center; gap: 6px; }
.nav-social { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; justify-self: end; }
.icon-btn {
    width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center;
    color: var(--text-2);
    border: 1px solid var(--border);
    background: var(--elev);
}
.icon-btn:hover { border-color: var(--border-2); color: var(--text); }
[data-theme="dark"] .icon-moon,
[data-theme="light"] .icon-sun { display: none; }
.menu-toggle { display: none; }
.menu-toggle .icon-close { display: none; }
.menu-toggle.is-open .icon-menu { display: none; }
.menu-toggle.is-open .icon-close { display: inline-flex; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: 999px; font-weight: 600; font-size: .92rem;
    transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-cv, .btn-primary {
    background: var(--red); color: #fff;
    padding: 10px 16px;
    box-shadow: 0 8px 24px var(--red-glow);
}
.btn-cv { padding: 8px 14px; font-size: .85rem; }
.btn-primary:hover, .btn-cv:hover { background: var(--red-2); }
.btn-ghost {
    padding: 10px 16px;
    border: 1px solid var(--border-2);
    background: color-mix(in srgb, var(--elev) 70%, transparent);
    color: var(--text);
}
.btn-ghost:hover { border-color: var(--red); }
.btn-link {
    color: var(--red); font-weight: 600; font-size: .92rem;
    display: inline-flex; align-items: center; gap: 6px;
}
.btn-link:hover { color: var(--red-2); }

.hero {
    position: relative;
    min-height: 0;
    display: grid;
    align-items: center;
    overflow: hidden;
    padding: 28px 0 48px;
}
.hero-visual {
    position: absolute; inset: 0 0 0 38%;
    pointer-events: none;
}
.hero-visual img {
    width: 100%; height: 100%; object-fit: cover; object-position: 62% center;
}
.hero-visual::before,
.hero-visual::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
}
.hero-visual::before {
    background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 28%, transparent 52%);
}
.hero-visual::after {
    background: linear-gradient(180deg, var(--bg) 0%, transparent 18%, transparent 78%, var(--bg) 100%);
}
[data-theme="light"] .hero-visual::before {
    background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 34%, transparent 60%);
}
.hero-copy { position: relative; z-index: 2; max-width: 540px; padding: 28px 0 12px; }
.hero-hello {
    font-family: var(--display);
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 500;
    color: var(--text-2);
}
.hero h1 {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    font-weight: 800;
    margin: 4px 0 14px;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero-sub { color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.hero-text { color: var(--text-2); max-width: 46ch; margin-bottom: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-social { display: flex; gap: 16px; color: var(--muted); font-size: .9rem; }
.hero-social a { display: inline-flex; align-items: center; gap: 6px; }
.hero-social a:hover { color: var(--text); }
.scroll-hint {
    position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
    width: 26px; height: 42px; border: 1.5px solid var(--border-2); border-radius: 14px;
    display: grid; justify-items: center; padding-top: 8px; color: var(--muted);
}
.scroll-hint span {
    width: 4px; height: 8px; border-radius: 4px; background: var(--muted);
    animation: wheel 1.6s var(--ease) infinite;
}
@keyframes wheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(10px); opacity: 0; }
}

.section { padding: 28px 0 72px; }
.section-head {
    display: flex; align-items: end; justify-content: space-between;
    gap: 16px; margin-bottom: 22px;
}
.section-title {
    display: flex; align-items: center; gap: 12px;
    font-size: 1.55rem; font-weight: 700;
}
.section-title::before {
    content: ""; width: 5px; height: 22px; background: var(--red); border-radius: 99px;
}

.skills-wrap {
    background: var(--elev);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 22px 18px;
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 8px;
    align-items: center;
}
.skills-label {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: .95rem; padding-left: 8px;
}
.skills-label::before {
    content: ""; width: 5px; height: 22px; background: var(--red); border-radius: 99px;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 8px;
}
.skill {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    text-align: center; color: var(--text-2); font-size: .72rem; font-weight: 600;
    padding: 8px 4px;
}
.skill-ico {
    width: 42px; height: 42px; border-radius: 12px;
    display: grid; place-items: center;
    background: var(--card-2); border: 1px solid var(--border);
    font-size: 1.15rem;
}
.skill.blue .skill-ico { color: #4aa3ff; }
.skill.cyan .skill-ico { color: #5eead4; }
.skill.red .skill-ico { color: var(--red-2); }
.skill.orange .skill-ico { color: #fb923c; }
.skill.teal .skill-ico { color: #22d3ee; }
.skill.gray .skill-ico { color: #cbd5e1; }

.skill-ico svg { width: 22px; height: 22px; }
.about-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 190px 230px;
    gap: 28px;
    align-items: center;
}
.about-photo {
    border-radius: 22px; overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 0 40px var(--red-glow);
}
.about-photo img { width: 100%; height: 280px; object-fit: cover; }
.about-page-hero {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}
.about-page-photo img { height: 240px; }
.about-copy p { color: var(--text-2); margin: 12px 0 18px; max-width: 62ch; }
.about-stats { display: grid; gap: 14px; min-width: 180px; }
.stat {
    display: grid; grid-template-columns: 42px 1fr; gap: 10px; align-items: center;
}
.stat-ico {
    width: 42px; height: 42px; border-radius: 12px;
    display: grid; place-items: center;
    background: var(--red-dim); color: var(--red);
}
.stat b { display: block; font-size: 1.15rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .82rem; }
.about-quote {
    margin: 0;
    display: flex; flex-direction: column; justify-content: flex-end;
    color: var(--muted);
    font-style: italic;
    gap: 10px;
    text-align: right;
}
.about-quote p { max-width: 28ch; font-size: 1.05rem; margin-left: auto; }
.about-quote footer {
    font-family: "Great Vibes", cursive;
    font-style: normal; font-size: 2rem; color: var(--text);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.project-card {
    background: var(--elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-2);
    box-shadow: var(--shadow);
}
.project-card img { height: 148px; width: 100%; object-fit: cover; }
.project-card .body { padding: 14px 14px 16px; }
.project-card h3 { font-size: 1rem; margin-bottom: 6px; }
.project-card p { color: var(--muted); font-size: .84rem; }

.site-footer {
    border-top: 1px solid var(--border);
    padding: 22px 0 28px;
    color: var(--muted);
}
.footer-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.footer-brand span { display: block; color: var(--muted); font-size: .82rem; font-weight: 400; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.footer-links a { display: inline-flex; align-items: center; gap: 6px; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: .82rem; }

.zk-assistant { position: relative; z-index: 45; }
.chat-toggle {
    position: fixed; right: 22px; bottom: 22px; z-index: 46;
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--red); color: #fff;
    display: grid; place-items: center;
    box-shadow: 0 10px 28px var(--red-glow);
    border: 0;
}
.chat-toggle:hover { background: var(--red-2); }
.chat-toggle .icon { width: 1.35em; height: 1.35em; }
.zk-assistant.is-open .chat-toggle { display: none; }
.chat-panel {
    display: none;
    position: fixed; right: 18px; bottom: 18px; z-index: 47;
    width: min(380px, calc(100vw - 24px));
    height: min(520px, calc(100vh - 96px));
    background: var(--elev);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
}
.zk-assistant.is-open .chat-panel { display: grid; }
.zk-assistant.is-open .chat-panel[hidden] { display: grid; }
.chat-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 12px 12px 16px;
    border-bottom: 1px solid var(--border);
    background: #0c0c10;
}
.chat-head strong { font-family: var(--display); }
[data-theme="light"] .chat-head { background: var(--card); }
.chat-log {
    overflow: auto; padding: 14px;
    display: grid; gap: 10px; align-content: start;
}
.chat-bubble {
    max-width: 88%;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: .9rem;
    line-height: 1.45;
    white-space: pre-wrap;
}
.chat-user {
    justify-self: end;
    background: var(--red);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.chat-model {
    justify-self: start;
    background: var(--card-2);
    color: var(--text);
    border-bottom-left-radius: 4px;
}
.chat-model.is-pending { color: var(--muted); }
.chat-form {
    display: grid; grid-template-columns: 1fr auto;
    gap: 8px; padding: 12px;
    border-top: 1px solid var(--border);
}
.chat-form input {
    width: 100%; background: var(--bg); border: 1px solid var(--border);
    border-radius: 999px; padding: 10px 14px; outline: none;
}
.chat-form input:focus { border-color: var(--red); }
.chat-form .btn { width: 44px; height: 44px; padding: 0; border-radius: 50%; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.has-assistant .to-top { bottom: 86px; }
.to-top {
    position: fixed; right: 22px; bottom: 22px; z-index: 40;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--elev); border: 1px solid var(--border);
    color: var(--text); display: grid; place-items: center;
    opacity: 0; pointer-events: none; transform: translateY(8px);
    transition: .25s var(--ease);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top .icon { transform: rotate(-90deg); }

.page-hero { padding: 42px 0 10px; }
.page-hero .kicker { color: var(--red); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 8px 0 10px; }
.page-hero p { color: var(--muted); max-width: 62ch; }

.prose { color: var(--text-2); display: grid; gap: 14px; }
.prose p { white-space: pre-line; }
.info-grid, .expertise-grid, .process-grid, .cert-grid {
    display: grid; gap: 16px;
}
.info-grid { grid-template-columns: repeat(2, 1fr); }
.expertise-grid, .process-grid { grid-template-columns: repeat(3, 1fr); }
.cert-grid { grid-template-columns: repeat(3, 1fr); }
.card {
    background: var(--elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
}
.card h3 { margin-bottom: 8px; }
.card p, .card li { color: var(--text-2); font-size: .94rem; }
.kicker-sm { color: var(--red); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; }
.kicker-sm .icon { width: .95em; height: .95em; margin-right: 4px; vertical-align: -2px; }

.bars { display: grid; gap: 14px; }
.bar-row { display: grid; gap: 6px; }
.bar-row span { display: flex; justify-content: space-between; font-size: .86rem; color: var(--text-2); }
.bar { height: 8px; background: var(--card-2); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), #ff6b78); border-radius: 99px; }
.bar.expert i { width: 94%; }
.bar.advanced i { width: 78%; }
.bar.intermediate i { width: 58%; }

.timeline { position: relative; display: grid; gap: 18px; }
.timeline::before {
    content: ""; position: absolute; left: 92px; top: 8px; bottom: 8px; width: 2px; background: var(--border);
}
.t-item {
    display: grid; grid-template-columns: 80px 1fr; gap: 28px; position: relative;
}
.t-item::before {
    content: ""; position: absolute; left: 87px; top: 18px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--red); box-shadow: 0 0 0 4px var(--red-dim);
}
.t-year { color: var(--muted); font-weight: 700; padding-top: 10px; }
.t-item ul { margin-top: 10px; display: grid; gap: 6px; }
.t-item li { position: relative; padding-left: 14px; color: var(--text-2); }
.t-item li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.filter-btn {
    border: 1px solid var(--border); background: var(--elev);
    border-radius: 999px; padding: 8px 14px; color: var(--muted); font-weight: 600; font-size: .86rem;
}
.filter-btn.is-active, .filter-btn:hover { color: #fff; background: var(--red); border-color: var(--red); }

.projects-page { grid-template-columns: repeat(3, 1fr); }
.project-hero-img {
    border-radius: 22px; overflow: hidden; border: 1px solid var(--border); margin-bottom: 28px;
}
.project-hero-img img { width: 100%; height: min(420px, 52vw); object-fit: cover; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.chip {
    border: 1px solid var(--border); background: var(--elev);
    border-radius: 999px; padding: 6px 12px; font-size: .82rem; color: var(--text-2);
}
.notice {
    background: var(--red-dim); border: 1px solid color-mix(in srgb, var(--red) 40%, transparent);
    color: var(--text); padding: 12px 14px; border-radius: 12px; margin: 16px 0;
}

.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 6px; font-size: .86rem; color: var(--text-2); font-weight: 600; }
.form input, .form textarea, .form select {
    width: 100%; background: var(--bg); border: 1px solid var(--border);
    border-radius: 12px; padding: 12px 14px; outline: none;
}
.form input:focus, .form textarea:focus { border-color: var(--red); }
.form textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; }
.alert-ok { background: rgba(16, 185, 129, .12); color: #6ee7b7; }
.alert-err { background: var(--red-dim); color: #fda4af; }
.contact-aside { display: grid; gap: 12px; }
.contact-aside a, .contact-aside .card { color: inherit; }

.cv-actions { display: flex; gap: 10px; margin: 18px 0 28px; }
.cv-block { margin-bottom: 22px; }
.cv-block h2 { font-size: 1.15rem; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
@media print {
    .site-header, .site-footer, .to-top, .cv-actions, .skip-link { display: none !important; }
    body { background: #fff; color: #111; }
    .card, .container { box-shadow: none; border: 0; }
}

.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.error-page h1 { font-size: 5rem; color: var(--red); }

body.nav-open { overflow: hidden; }

@media (max-width: 1100px) {
    .skills-wrap { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: repeat(5, 1fr); }
    .about-grid { grid-template-columns: 220px 1fr 1fr; }
    .about-quote { grid-column: 1 / -1; }
    .project-grid, .projects-page { grid-template-columns: repeat(2, 1fr); }
    .expertise-grid, .process-grid, .cert-grid, .article-grid { grid-template-columns: 1fr 1fr; }
    .hero-visual { inset: 0 0 0 28%; }
}
@media (max-width: 860px) {
    .site-header { backdrop-filter: none; background: var(--bg); }
    .header-inner { display: flex; grid-template-columns: none; }
    .nav {
        position: fixed;
        top: var(--header); left: 0; right: 0; bottom: 0;
        width: 100%;
        background: var(--bg);
        transform: translateX(100%);
        visibility: hidden;
        pointer-events: none;
        transition: transform .3s var(--ease), visibility .3s var(--ease);
        padding: 24px;
        z-index: 60;
    }
    .nav ul { flex-direction: column; gap: 8px; }
    .nav a { font-size: 1.1rem; padding: 12px 8px; }
    .nav.is-open { transform: none; visibility: visible; pointer-events: auto; }
    .menu-toggle { display: grid; }
    .header-socials { display: none; }
    .nav-social { display: list-item; }
    .btn-cv span:not(.icon) { display: none; }
    .hero { min-height: auto; padding: 24px 0 70px; }
    .hero-visual {
        position: relative; inset: auto; height: 280px; margin: 0 -20px 24px;
        border-radius: 0;
    }
    .hero-visual::before { background: linear-gradient(180deg, var(--bg), transparent 30%); }
    .hero-copy { max-width: none; }
    .about-grid, .contact-grid, .info-grid, .about-page-hero { grid-template-columns: 1fr; }
    .about-quote { text-align: left; }
    .about-quote p { margin-left: 0; }
    .about-stats, .skills-grid, .project-grid, .projects-page,
    .expertise-grid, .process-grid, .cert-grid, .article-grid { grid-template-columns: 1fr 1fr; }
    .timeline::before { left: 18px; }
    .t-item { grid-template-columns: 1fr; padding-left: 36px; }
    .t-item::before { left: 13px; }
}
@media (max-width: 560px) {
    .container { width: min(var(--max), calc(100% - 28px)); }
    .skills-grid, .about-stats, .project-grid, .projects-page,
    .expertise-grid, .process-grid, .cert-grid, .article-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.4rem; }
    .header-actions .icon-btn#theme-toggle { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .scroll-hint span { animation: none; }
}
