:root {
    --accent: #7164ff;
    --accent-strong: #5e50f6;
    --accent-soft: #f0efff;
    --ink: #22242a;
    --muted: #777b87;
    --muted-2: #a4a7b0;
    --line: #e8e9ef;
    --surface: #ffffff;
    --bg: #f2f3f7;
    --shadow: 0 24px 70px rgba(53, 57, 74, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--bg);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }

/* Frontend admin quick edit */
.frontend-admin-toolbar {
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: max(16px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100vw - 24px);
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 7px 8px 7px 13px;
    border: 1px solid rgba(218, 220, 229, .94);
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 48px rgba(43, 47, 64, .16);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.frontend-admin-context {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 118px;
}
.frontend-admin-context > span:last-child { display: grid; gap: 1px; }
.frontend-admin-context strong { font-size: 10px; font-weight: 600; color: var(--ink); }
.frontend-admin-context small { font-size: 8px; color: var(--muted-2); }
.frontend-admin-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #72b987;
    box-shadow: 0 0 0 4px rgba(114, 185, 135, .12);
}
.frontend-admin-actions { display: flex; align-items: center; gap: 6px; }
.frontend-admin-actions a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
    transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.frontend-admin-actions a:hover { transform: translateY(-1px); }
.frontend-admin-edit {
    color: #fff;
    background: var(--accent);
    box-shadow: 0 8px 20px rgba(113, 100, 255, .20);
}
.frontend-admin-edit:hover { background: var(--accent-strong); }
.frontend-admin-dashboard { color: #666a76; background: #f6f6fa; }
.frontend-admin-dashboard:hover { color: var(--ink); background: #efeff5; }
body.frontend-admin-active .page-shell { padding-bottom: max(88px, calc(env(safe-area-inset-bottom) + 78px)); }

.page-shell {
    position: relative;
    min-height: 100vh;
    padding: clamp(18px, 4vh, 42px) clamp(16px, 4vw, 54px);
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
}

.decor {
    position: fixed;
    z-index: -1;
    border: 2px solid rgba(121, 126, 142, .10);
    background: rgba(255, 255, 255, .22);
    border-radius: 32px;
    pointer-events: none;
    backdrop-filter: blur(2px);
    animation: softBounce 9s ease-in-out infinite alternate;
}
.decor-a { width: 260px; height: 260px; top: -105px; left: -70px; transform: rotate(29deg); }
.decor-b { width: 330px; height: 330px; right: -135px; bottom: -145px; transform: rotate(-30deg); animation-delay: -2.2s; }
.decor-c { width: 125px; height: 125px; right: 7vw; top: -42px; border-radius: 24px; transform: rotate(31deg); animation-delay: -4.2s; }
.decor-d { width: 145px; height: 145px; left: 8vw; bottom: -75px; border-radius: 27px; transform: rotate(-22deg); animation-delay: -6s; }

@keyframes softBounce {
    0% { translate: 0 0; rotate: 0deg; }
    45% { translate: 12px 18px; rotate: 2deg; }
    75% { translate: -8px 8px; rotate: -1deg; }
    100% { translate: 5px -10px; rotate: 1.5deg; }
}

.vcard-card {
    position: relative;
    width: min(1120px, 100%);
    margin: auto;
    padding: 28px 40px 20px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(218, 220, 229, .88);
    border-radius: 28px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: visible;
}
.home-card {
    height: clamp(570px, 70vh, 720px);
    min-height: 0;
}
.inner-card {
    min-height: min(74vh, 760px);
}

.site-header {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex: 0 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; }
.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: var(--accent);
    box-shadow: 0 8px 22px rgba(113, 100, 255, .24);
}
.main-nav { display: flex; align-items: center; gap: 25px; }
.main-nav a {
    position: relative;
    padding: 8px 0;
    color: #a0a2aa;
    font-size: 11px;
    transition: color .2s ease;
}
.main-nav a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width .2s ease, left .2s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; left: 0; }
.nav-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 9px;
    cursor: pointer;
}
.nav-toggle span { display: block; height: 1px; background: var(--ink); margin: 4px 0; }

.hero-section {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    gap: clamp(34px, 7vw, 86px);
    padding: 28px 8% 22px;
}
.hero-copy { max-width: 550px; }
.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .19em;
}
.hero-copy h1, .page-heading h1 {
    margin: 0;
    line-height: 1.02;
    letter-spacing: -.045em;
}
.hero-copy h1 {
    font-size: clamp(1.7rem, 3.8vw, 2.85rem);
    line-height: 1.08;
    letter-spacing: -.04em;
    white-space: nowrap;
}
.page-heading h1 {
    font-size: clamp(2.25rem, 4.2vw, 4rem);
}
.hero-copy h2 {
    margin: 10px 0 0;
    color: #5e626e;
    font-size: clamp(1rem, 1.7vw, 1.35rem);
    line-height: 1.35;
    font-weight: 500;
}
.hero-copy p {
    max-width: 520px;
    margin: 16px 0 14px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.75;
}
.hero-contact { display: flex; flex-wrap: wrap; gap: 7px 18px; margin: 0 0 18px; }
.hero-contact a {
    color: #858894;
    font-size: 10px;
    transition: color .2s ease;
}
.hero-contact a:hover { color: var(--accent); }
.hero-actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 10px;
    font-weight: 500;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-outline { border-color: var(--accent); color: var(--accent); background: white; box-shadow: 0 5px 16px rgba(113,100,255,.08); }
.btn-outline:hover { background: var(--accent); color: white; }
.btn-primary { background: var(--accent); color: white; box-shadow: 0 9px 24px rgba(113,100,255,.18); }
.btn-primary:hover { background: var(--accent-strong); box-shadow: 0 12px 28px rgba(113,100,255,.25); }
.btn-text { color: var(--muted); background: transparent; }
.btn-text:hover { color: var(--ink); }
.expertise-strip {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}
.expertise-strip span {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fafafd;
    padding: 6px 9px;
    color: #7f828d;
    font-size: 9px;
}

.hero-visual { display: grid; place-items: center; gap: 34px; }
.portrait-ring {
    position: relative;
    isolation: isolate;
    width: min(285px, 25vw);
    aspect-ratio: 1;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(246,245,255,.98));
    padding: 10px;
    box-shadow: 0 18px 46px rgba(69, 63, 118, .14), 0 0 0 1px rgba(89,76,183,.07);
}
.portrait-ring::before {
    content: '';
    position: absolute;
    z-index: -2;
    inset: -18px;
    border: 1px solid rgba(113, 100, 255, .14);
    border-radius: 50%;
    background: radial-gradient(circle at 70% 28%, rgba(113,100,255,.10), transparent 34%);
}
.portrait-ring::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 5px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(113,100,255,.16), rgba(255,255,255,.05) 48%, rgba(112,194,153,.12));
    pointer-events: none;
}
.portrait-ring img, .portrait-placeholder {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.portrait-ring img {
    filter: saturate(.92) contrast(1.035) brightness(1.015);
    transition: filter .3s ease, transform .3s ease;
}
.portrait-ring:hover img {
    filter: saturate(1.03) contrast(1.04) brightness(1.02);
    transform: scale(1.012);
}
.portrait-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #f0efff, #e6e8f1 55%, #e7f4ee);
    color: #7164d9;
    font-size: 6rem;
    font-weight: 600;
}
.availability-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #7f828b;
    font-size: 9px;
}
.availability-pill span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #74b487;
    box-shadow: 0 0 0 4px rgba(116,180,135,.10);
}

.site-footer {
    flex: 0 0 auto;
    min-height: 36px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}
.social-links { display: flex; gap: 17px; flex-wrap: wrap; }
.site-footer a, .site-footer small { color: #a2a5ae; font-size: 9px; }
.site-footer a:hover { color: var(--accent); }
.footer-meta { display: flex; align-items: center; gap: 12px; }
.footer-meta small + small { padding-left: 12px; border-left: 1px solid var(--line); }

.content-page { flex: 1; padding: 42px 5% 34px; }
.page-heading { margin-bottom: 28px; max-width: 760px; }
.page-heading h1 { font-size: clamp(2rem, 3.6vw, 3.4rem); }
.page-heading > p { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.page-heading .meta { margin-top: 12px; }
.content-panel, .info-panel, .skills-panel, .contact-form {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    padding: 24px;
}
.interactive-panel { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.interactive-panel:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(51,55,72,.07); border-color: #dedfe7; }
.panel-label { display: inline-block; margin-bottom: 13px; color: var(--muted-2); font-size: 9px; font-weight: 600; letter-spacing: .15em; }
.prose { color: #636671; font-size: 12px; line-height: 1.85; }
.prose h2 { margin: 0 0 12px; color: var(--ink); font-size: 22px; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.about-grid, .contact-grid { display: grid; grid-template-columns: 1.45fr .85fr; gap: 20px; }
.info-panel dl { margin: 0; display: grid; gap: 15px; }
.info-panel dl div { display: grid; gap: 3px; }
.info-panel dt { color: #aaaab4; font-size: 9px; text-transform: uppercase; letter-spacing: .11em; }
.info-panel dd { margin: 0; font-size: 12px; overflow-wrap: anywhere; }
.info-panel a:hover { color: var(--accent); }

.resume-grid { display: grid; grid-template-columns: 1.5fr .75fr; gap: 42px; }
.section-title { margin: 0 0 21px; font-size: 16px; }
.section-gap { margin-top: 38px; }
.timeline { position: relative; padding-left: 25px; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 7px; bottom: 6px; width: 1px; background: #dedfe6; }
.timeline-item { position: relative; padding: 0 0 27px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -25px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px white; }
.timeline-item h3 { margin: 0 0 5px; font-size: 14px; }
.timeline-item p { margin: 7px 0 0; color: #6f717b; font-size: 11px; line-height: 1.7; }
.meta { color: var(--accent) !important; font-size: 10px !important; }
.skill-row { margin-bottom: 18px; }
.skill-label { display: flex; justify-content: space-between; gap: 14px; font-size: 11px; margin-bottom: 7px; }
.skill-label strong { color: #a3a5af; font-weight: 500; }
.skill-track { height: 4px; overflow: hidden; border-radius: 999px; background: #ececf2; }
.skill-track span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.portfolio-card { border: 1px solid var(--line); border-radius: 19px; overflow: hidden; background: #fff; transition: .24s ease; }
.portfolio-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(71,74,95,.08); }
.portfolio-thumb { aspect-ratio: 16 / 9; display: grid; place-items: center; background: linear-gradient(145deg, #f5f5f8, #eceef3); color: var(--accent); font-size: 46px; font-weight: 700; }
.portfolio-thumb img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-body { padding: 18px; }
.portfolio-body h2 { margin: 9px 0 5px; font-size: 15px; }
.project-domain { display:block; margin:0 0 8px; color:#a0a3ad; font-size:8px; overflow-wrap:anywhere; }
.portfolio-body p { margin: 0 0 13px; color: #7a7c86; font-size: 10px; line-height: 1.65; }
.portfolio-body a { color: var(--accent); font-size: 10px; font-weight: 600; }
.tag { display: inline-flex; padding: 5px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }

.blog-list { display: grid; gap: 8px; }
.blog-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); padding: 18px 0; }
.blog-card h2 { margin: 5px 0; font-size: 16px; }
.blog-card p { margin: 0; color: #7a7c86; font-size: 10px; }
.blog-card > a, .back-link { color: var(--accent); font-size: 10px; font-weight: 600; white-space: nowrap; }
.article-page { max-width: 900px; }
.article-page .content-panel { margin-top: 8px; }

.contact-grid { grid-template-columns: .8fr 1.2fr; }
.contact-info h2 { margin: 0 0 8px; font-size: 19px; }
.contact-info > p { color: #7a7c86; font-size: 10px; line-height: 1.7; margin-bottom: 20px; }
.text-link { color: var(--accent); font-weight: 500; }
.contact-form { display: grid; gap: 13px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.contact-form label { display: grid; gap: 6px; color: #686a74; font-size: 10px; }
.contact-form input, .contact-form textarea {
    width: 100%;
    border: 1px solid #e4e5ec;
    border-radius: 11px;
    padding: 10px 12px;
    outline: 0;
    color: var(--ink);
    background: #fbfbfd;
    font-size: 11px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(113,100,255,.08); background: #fff; }
.alert { border-radius: 11px; padding: 11px 13px; font-size: 10px; }
.alert.success { background: #effaf3; color: #27633c; }
.alert.error { background: #fff1f1; color: #8a3030; }
.empty-state { padding: 60px 0; text-align: center; }
.empty-state a { color: var(--accent); }

@media (max-width: 960px) {
    .page-shell { padding: 18px; align-items: center; }
    .vcard-card { width: min(860px, 100%); padding: 24px 24px 18px; border-radius: 24px; }
    .home-card { height: auto; min-height: calc(100vh - 36px); }
    .nav-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        z-index: 20;
        top: 72px;
        left: 24px;
        right: 24px;
        padding: 10px;
        border-radius: 15px;
        background: rgba(255,255,255,.98);
        border: 1px solid var(--line);
        box-shadow: 0 16px 34px rgba(43,45,61,.10);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 10px 11px; }
    .main-nav a::after { display: none; }
    .hero-section { grid-template-columns: 1fr 1fr; gap: 34px; padding: 42px 4% 34px; }
    .portrait-ring { width: min(250px, 34vw); }
    .about-grid, .resume-grid, .contact-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
    .page-shell { padding: 12px; overflow: visible; }
    .decor { opacity: .75; }
    .vcard-card { min-height: calc(100vh - 24px); padding: 20px 17px 16px; border-radius: 22px; }
    .brand span:last-child { max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .hero-section { grid-template-columns: 1fr; padding: 38px 0 30px; gap: 35px; text-align: center; }
    .hero-visual { order: -1; gap: 28px; }
    .portrait-ring { width: min(220px, 58vw); }
    .hero-copy { margin: 0 auto; }
    .hero-copy p { margin-left: auto; margin-right: auto; }
    .hero-contact, .hero-actions, .expertise-strip { justify-content: center; }
    .availability-pill { font-size: 8px; }
    .content-page { padding: 36px 0 28px; }
    .page-heading { margin-bottom: 22px; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .site-footer { align-items: flex-start; flex-direction: column; gap: 10px; }
    .footer-meta { width: 100%; justify-content: space-between; }

    .frontend-admin-toolbar {
        width: calc(100vw - 24px);
        justify-content: space-between;
        gap: 9px;
        bottom: max(10px, env(safe-area-inset-bottom));
        padding: 6px 7px 6px 11px;
        border-radius: 16px;
    }
    .frontend-admin-context { min-width: 0; }
    .frontend-admin-context small { display: none; }
    .frontend-admin-actions { margin-left: auto; }
    .frontend-admin-actions a { min-height: 36px; padding: 0 11px; }
    body.frontend-admin-active .page-shell { padding-bottom: max(82px, calc(env(safe-area-inset-bottom) + 74px)); }
}

@media (max-width: 480px) {
    .page-shell { padding: 8px; }
    .vcard-card { min-height: calc(100vh - 16px); border-radius: 19px; padding: 17px 14px 14px; }
    .brand { font-size: 11px; }
    .brand-mark { width: 31px; height: 31px; }
    .brand span:last-child { max-width: 150px; }
    .hero-section { padding-top: 30px; }
    .hero-copy h1 { font-size: clamp(1.55rem, 7.2vw, 1.9rem); }
    .page-heading h1 { font-size: 2rem; }
    .hero-copy h2 { font-size: .98rem; }
    .hero-copy p { font-size: 11px; }
    .hero-contact { flex-direction: column; gap: 5px; }
    .hero-actions { gap: 7px; }
    .btn { min-height: 37px; padding: 0 13px; }
    .expertise-strip span { font-size: 8px; }
    .form-row { grid-template-columns: 1fr; }
    .blog-card { align-items: flex-start; flex-direction: column; }
    .content-panel, .info-panel, .skills-panel, .contact-form { padding: 19px; border-radius: 17px; }
}

@media (max-width: 340px) {
    .hero-copy h1 { font-size: 1.45rem; }
}

@media (max-height: 680px) and (min-width: 961px) {
    .page-shell { padding-top: 18px; padding-bottom: 18px; }
    .home-card { height: calc(100vh - 36px); min-height: 520px; }
    .hero-section { padding-top: 18px; padding-bottom: 16px; }
    .portrait-ring { width: min(245px, 24vw); }
    .hero-copy h1 { font-size: clamp(2.05rem, 3vw, 2.75rem); }
    .hero-copy p { margin-top: 11px; margin-bottom: 10px; line-height: 1.6; }
    .expertise-strip { margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* v1.6.0 - Portfolio discovery and project study cases */
.portfolio-toolbar{display:grid;gap:12px;margin:-4px 0 24px;padding:14px;border:1px solid var(--line);border-radius:18px;background:rgba(250,250,253,.92)}.portfolio-search{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:center;gap:7px;padding:0 12px;border:1px solid var(--line);border-radius:13px;background:#fff;color:var(--muted)}.portfolio-search span{font-size:18px;line-height:1}.portfolio-search input{width:100%;height:43px;border:0;outline:0;background:transparent;color:var(--ink);font-family:inherit;font-size:10px}.portfolio-category-filter{display:flex;gap:7px;flex-wrap:wrap}.portfolio-category-filter button{min-height:31px;padding:0 11px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--muted);font:inherit;font-size:8px;cursor:pointer;transition:.2s ease}.portfolio-category-filter button:hover,.portfolio-category-filter button.active{border-color:var(--accent);background:var(--accent);color:#fff}.portfolio-result-count{color:var(--muted);font-size:8px}.portfolio-result-count strong{color:var(--ink)}.portfolio-card-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:auto;padding-top:7px}.portfolio-card-actions a{font-size:8px;font-weight:600;color:var(--muted)}.portfolio-card-actions .case-link{color:var(--accent)}.portfolio-card-actions a:hover{text-decoration:underline}.portfolio-empty-filter{padding:28px;border:1px dashed var(--line);border-radius:18px;text-align:center;color:var(--muted)}.portfolio-empty-filter strong{display:block;color:var(--ink);margin-bottom:4px}.portfolio-card[hidden]{display:none!important}
.project-domain{display:block;margin:-1px 0 7px;color:#a1a4ad;font-size:7.5px;overflow-wrap:anywhere}

.project-detail-page{max-width:1040px;margin:0 auto}.back-link{display:inline-flex;margin-bottom:18px;color:var(--muted);font-size:9px}.back-link:hover{color:var(--accent)}.project-detail-hero{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(300px,.92fr);align-items:center;gap:42px;margin-bottom:28px}.project-detail-hero h1{margin:8px 0 13px;font-size:clamp(2rem,4.6vw,3.5rem);line-height:1.05;letter-spacing:-.05em}.project-detail-hero p{max-width:620px;color:var(--muted);font-size:11px;line-height:1.8}.project-detail-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:19px}.primary-action,.secondary-action{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 15px;border-radius:12px;font-size:9px;font-weight:600}.primary-action{background:var(--accent);color:#fff;box-shadow:0 12px 24px rgba(113,100,255,.16)}.secondary-action{border:1px solid var(--line);background:#fff;color:var(--ink)}.project-detail-visual{aspect-ratio:16/10;border:1px solid var(--line);border-radius:24px;padding:10px;background:#fafafd;box-shadow:0 20px 48px rgba(40,43,56,.07);overflow:hidden}.project-detail-visual img{width:100%;height:100%;border-radius:17px;object-fit:cover}.project-detail-placeholder{width:100%;height:100%;display:grid;place-items:center;align-content:center;gap:8px;border-radius:17px;background:linear-gradient(145deg,#f2f1ff,#eeeef3);color:var(--accent)}.project-detail-placeholder span{font-size:58px;font-weight:700}.project-detail-placeholder small{font-size:8px;color:var(--muted);text-transform:uppercase;letter-spacing:.12em}.project-detail-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr);gap:18px}.project-story-stack,.project-detail-aside{display:grid;gap:14px;align-content:start}.project-story{display:grid;grid-template-columns:38px minmax(0,1fr);gap:13px}.story-number{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);font-size:8px;font-weight:700}.project-story small,.project-detail-aside .eyebrow{color:var(--accent);font-size:7px;font-weight:600;letter-spacing:.12em}.project-story h2{margin:4px 0 8px}.project-story p{margin:0}.project-facts{display:grid;gap:10px;margin-top:13px}.project-facts>div{display:grid;gap:2px;padding-bottom:9px;border-bottom:1px solid var(--line)}.project-facts>div:last-child{padding-bottom:0;border-bottom:0}.project-facts small{color:var(--muted);font-size:7px}.project-facts strong{font-size:9px;overflow-wrap:anywhere}.project-tech-list{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}.project-tech-list span{padding:7px 9px;border:1px solid var(--line);border-radius:999px;background:#fafafd;color:#696c76;font-size:7.5px}.project-feature-list{display:grid;gap:8px;margin:13px 0 0;padding:0;list-style:none}.project-feature-list li{position:relative;padding-left:16px;color:var(--muted);font-size:8px;line-height:1.55}.project-feature-list li::before{content:'✓';position:absolute;left:0;top:0;color:var(--accent);font-weight:700}

@media(max-width:900px){.project-detail-hero{grid-template-columns:1fr;gap:24px}.project-detail-visual{max-width:650px;width:100%}.project-detail-grid{grid-template-columns:1fr}.project-detail-aside{grid-template-columns:repeat(2,minmax(0,1fr))}.project-detail-aside>section:first-child{grid-column:1/-1}}
@media(max-width:700px){.portfolio-toolbar{padding:12px}.project-detail-aside{grid-template-columns:1fr}.project-detail-aside>section:first-child{grid-column:auto}.project-detail-hero h1{font-size:2.25rem}.project-detail-actions{display:grid;grid-template-columns:1fr 1fr}.primary-action,.secondary-action{width:100%}}
@media(max-width:460px){.portfolio-category-filter{flex-wrap:nowrap;overflow-x:auto;padding-bottom:3px;scrollbar-width:none}.portfolio-category-filter::-webkit-scrollbar{display:none}.portfolio-category-filter button{flex:0 0 auto}.project-detail-actions{grid-template-columns:1fr}.project-story{grid-template-columns:32px minmax(0,1fr)}.story-number{width:32px;height:32px}.project-detail-visual{border-radius:18px;padding:7px}.project-detail-visual img,.project-detail-placeholder{border-radius:13px}}


/* v1.6.1 - natural color portrait treatment */
@media (max-width: 700px) {
    .portrait-ring { box-shadow: 0 14px 34px rgba(69,63,118,.12), 0 0 0 1px rgba(89,76,183,.06); }
    .portrait-ring::before { inset: -13px; }
}
@media (max-width: 480px) {
    .portrait-ring { padding: 8px; }
    .portrait-ring::before { inset: -10px; }
}
@media (prefers-reduced-motion: reduce) {
    .portrait-ring img { transition: none; }
    .portrait-ring:hover img { transform: none; }
}

/* v1.6.2 - Theme toggle, richer hero, icon footer, and dark mode */
.site-header{position:relative}
.header-actions{display:flex;align-items:center;gap:14px}
.theme-toggle{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.9);color:var(--ink);cursor:pointer;box-shadow:0 6px 18px rgba(36,39,55,.06);transition:transform .2s ease,background .2s ease,border-color .2s ease,color .2s ease,box-shadow .2s ease}
.theme-toggle:hover{transform:translateY(-1px);border-color:rgba(113,100,255,.28);color:var(--accent)}
.theme-toggle-icon::before{content:'☾';display:block;font-size:15px;line-height:1}
html[data-theme='dark'] .theme-toggle-icon::before{content:'☀'}

.hero-visual{position:relative;overflow:visible}
.hero-visual::before,.hero-visual::after{content:'';position:absolute;border-radius:50%;pointer-events:none}
.hero-visual::before{top:14%;right:12%;width:8px;height:8px;background:rgba(113,100,255,.8);box-shadow:-248px 34px 0 rgba(187,191,205,.9),-174px 172px 0 rgba(113,100,255,.52),112px 116px 0 rgba(119,187,145,.75),28px -6px 0 rgba(113,100,255,.5);animation:orbitDots 8.2s ease-in-out infinite alternate}
.hero-visual::after{bottom:18%;left:16%;width:6px;height:6px;background:rgba(119,187,145,.9);box-shadow:112px -138px 0 rgba(163,167,185,.82),226px -30px 0 rgba(113,100,255,.68),-16px 32px 0 rgba(113,100,255,.42);animation:orbitDots 10s ease-in-out infinite alternate-reverse}
@keyframes orbitDots{0%{transform:translate3d(0,0,0)}50%{transform:translate3d(7px,-10px,0)}100%{transform:translate3d(-6px,8px,0)}}

.portrait-ring{overflow:visible}
.portrait-ring::before{box-shadow:0 0 0 1px rgba(113,100,255,.14),0 0 0 22px rgba(113,100,255,.02)}
.portrait-ring::after{background:linear-gradient(145deg,rgba(113,100,255,.18),rgba(255,255,255,.06) 48%,rgba(112,194,153,.18))}

.social-links{gap:10px}
.social-links a{position:relative;width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:50%;background:transparent;color:#858a97;font-size:0;transition:transform .2s ease,background .2s ease,border-color .2s ease,color .2s ease,box-shadow .2s ease}
.social-links a:hover{transform:translateY(-2px);background:rgba(113,100,255,.08);border-color:rgba(113,100,255,.16);color:var(--accent);box-shadow:0 10px 20px rgba(113,100,255,.10)}
.social-links a::before{content:'';width:14px;height:14px;display:block;background:currentColor;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain}
.social-links a[href*='x.com']::before,.social-links a[href*='twitter.com']::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M18.9 2H22l-6.77 7.74L23 22h-6.2l-4.86-6.73L5.96 22H2.84l7.24-8.28L1 2h6.36l4.39 6.14L18.9 2Zm-1.09 18h1.72L6.43 3.9H4.59L17.81 20Z'/%3E%3C/svg%3E") ;mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M18.9 2H22l-6.77 7.74L23 22h-6.2l-4.86-6.73L5.96 22H2.84l7.24-8.28L1 2h6.36l4.39 6.14L18.9 2Zm-1.09 18h1.72L6.43 3.9H4.59L17.81 20Z'/%3E%3C/svg%3E")}
.social-links a[href*='facebook.com']::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M13.5 22v-8h2.7l.4-3h-3.1V9.1c0-.9.3-1.6 1.6-1.6h1.7V4.8c-.8-.1-1.6-.2-2.3-.2-2.3 0-3.9 1.4-3.9 4V11H8v3h2.6v8h2.9Z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M13.5 22v-8h2.7l.4-3h-3.1V9.1c0-.9.3-1.6 1.6-1.6h1.7V4.8c-.8-.1-1.6-.2-2.3-.2-2.3 0-3.9 1.4-3.9 4V11H8v3h2.6v8h2.9Z'/%3E%3C/svg%3E")}
.social-links a[href*='instagram.com']::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 2h10a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5Zm0 2.2A2.8 2.8 0 0 0 4.2 7v10A2.8 2.8 0 0 0 7 19.8h10a2.8 2.8 0 0 0 2.8-2.8V7A2.8 2.8 0 0 0 17 4.2H7Zm10.4 1.5a1.1 1.1 0 1 1 0 2.2 1.1 1.1 0 0 1 0-2.2ZM12 7a5 5 0 1 1 0 10 5 5 0 0 1 0-10Zm0 2.2a2.8 2.8 0 1 0 0 5.6 2.8 2.8 0 0 0 0-5.6Z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 2h10a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5Zm0 2.2A2.8 2.8 0 0 0 4.2 7v10A2.8 2.8 0 0 0 7 19.8h10a2.8 2.8 0 0 0 2.8-2.8V7A2.8 2.8 0 0 0 17 4.2H7Zm10.4 1.5a1.1 1.1 0 1 1 0 2.2 1.1 1.1 0 0 1 0-2.2ZM12 7a5 5 0 1 1 0 10 5 5 0 0 1 0-10Zm0 2.2a2.8 2.8 0 1 0 0 5.6 2.8 2.8 0 0 0 0-5.6Z'/%3E%3C/svg%3E")}
.social-links a[href*='whatsapp.com']::before,.social-links a[href*='wa.me']::before,.social-links a[href*='api.whatsapp.com']::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M20.5 3.5A11.4 11.4 0 0 0 2.7 17.2L1 23l6-1.6A11.5 11.5 0 0 0 12 22.5h0A11.5 11.5 0 0 0 20.5 3.5Zm-8.5 17a9.4 9.4 0 0 1-4.8-1.3l-.3-.2-3.5.9.9-3.4-.2-.3A9.5 9.5 0 1 1 12 20.5Zm5.2-7.1c-.3-.2-1.6-.8-1.9-.9s-.5-.2-.7.2-.8.9-.9 1-.4.2-.7 0a7.8 7.8 0 0 1-2.3-1.4 8.7 8.7 0 0 1-1.6-2c-.2-.4 0-.5.2-.7l.5-.6a.8.8 0 0 0 .1-.7c-.1-.2-.7-1.8-1-2.4-.2-.6-.5-.5-.7-.5h-.6c-.2 0-.7.1-1 .5s-1.2 1.1-1.2 2.7 1.3 3.2 1.5 3.4c.2.2 2.6 4 6.3 5.5.9.4 1.6.6 2.1.8.9.3 1.8.2 2.4.1.8-.1 1.6-.7 1.8-1.4.2-.7.2-1.3.2-1.4 0-.2-.2-.3-.5-.4Z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M20.5 3.5A11.4 11.4 0 0 0 2.7 17.2L1 23l6-1.6A11.5 11.5 0 0 0 12 22.5h0A11.5 11.5 0 0 0 20.5 3.5Zm-8.5 17a9.4 9.4 0 0 1-4.8-1.3l-.3-.2-3.5.9.9-3.4-.2-.3A9.5 9.5 0 1 1 12 20.5Zm5.2-7.1c-.3-.2-1.6-.8-1.9-.9s-.5-.2-.7.2-.8.9-.9 1-.4.2-.7 0a7.8 7.8 0 0 1-2.3-1.4 8.7 8.7 0 0 1-1.6-2c-.2-.4 0-.5.2-.7l.5-.6a.8.8 0 0 0 .1-.7c-.1-.2-.7-1.8-1-2.4-.2-.6-.5-.5-.7-.5h-.6c-.2 0-.7.1-1 .5s-1.2 1.1-1.2 2.7 1.3 3.2 1.5 3.4c.2.2 2.6 4 6.3 5.5.9.4 1.6.6 2.1.8.9.3 1.8.2 2.4.1.8-.1 1.6-.7 1.8-1.4.2-.7.2-1.3.2-1.4 0-.2-.2-.3-.5-.4Z'/%3E%3C/svg%3E")}
.social-links a[href*='linkedin.com']::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6.5 8.2A1.7 1.7 0 1 1 6.5 4.8a1.7 1.7 0 0 1 0 3.4ZM5 9.8h3v9.2H5V9.8Zm4.8 0h2.8V11h0c.4-.7 1.4-1.5 2.8-1.5 3 0 3.6 2 3.6 4.5v5h-3v-4.4c0-1 0-2.4-1.5-2.4s-1.8 1.1-1.8 2.3v4.5h-3V9.8Z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6.5 8.2A1.7 1.7 0 1 1 6.5 4.8a1.7 1.7 0 0 1 0 3.4ZM5 9.8h3v9.2H5V9.8Zm4.8 0h2.8V11h0c.4-.7 1.4-1.5 2.8-1.5 3 0 3.6 2 3.6 4.5v5h-3v-4.4c0-1 0-2.4-1.5-2.4s-1.8 1.1-1.8 2.3v4.5h-3V9.8Z'/%3E%3C/svg%3E")}

html[data-theme='dark']{--accent:#8478ff;--accent-strong:#968bff;--accent-soft:rgba(132,120,255,.16);--ink:#f5f7ff;--muted:#aab2cb;--muted-2:#7f8ab0;--line:rgba(151,161,205,.16);--surface:#07142f;--bg:#030b20;--shadow:0 34px 90px rgba(0,0,0,.42)}
html[data-theme='dark'] body{background:radial-gradient(circle at 22% 20%,rgba(50,80,255,.18),transparent 28%),radial-gradient(circle at 82% 16%,rgba(0,145,255,.10),transparent 20%),radial-gradient(circle at 78% 82%,rgba(94,84,255,.15),transparent 24%),linear-gradient(180deg,#020814 0%,#07152f 58%,#071329 100%);color:var(--ink)}
html[data-theme='dark'] .decor{border-color:rgba(124,134,180,.16);background:rgba(8,18,52,.22)}
html[data-theme='dark'] .vcard-card{background:linear-gradient(145deg,rgba(4,14,40,.96) 0%,rgba(6,17,45,.95) 52%,rgba(5,21,59,.92) 100%);border-color:rgba(124,132,184,.18);box-shadow:0 40px 90px rgba(0,0,0,.45)}
html[data-theme='dark'] .brand,html[data-theme='dark'] .hero-copy h1,html[data-theme='dark'] .page-heading h1,html[data-theme='dark'] .prose h2,html[data-theme='dark'] .info-panel dd{color:#fff}
html[data-theme='dark'] .brand-mark{box-shadow:0 10px 30px rgba(132,120,255,.36)}
html[data-theme='dark'] .main-nav a{color:#a6b0d4}
html[data-theme='dark'] .main-nav a:hover,html[data-theme='dark'] .main-nav a.active{color:#fff}
html[data-theme='dark'] .nav-toggle,html[data-theme='dark'] .theme-toggle{background:rgba(12,24,59,.9);border-color:rgba(144,154,198,.18);color:#dfe5ff;box-shadow:0 10px 28px rgba(0,0,0,.24)}
html[data-theme='dark'] .nav-toggle span{background:#eaf0ff}
html[data-theme='dark'] .theme-toggle:hover{background:rgba(18,34,79,.92);color:#fff;border-color:rgba(132,120,255,.44)}
html[data-theme='dark'] .hero-copy h2{color:#dce0f6}
html[data-theme='dark'] .hero-copy p,html[data-theme='dark'] .page-heading>p,html[data-theme='dark'] .prose,html[data-theme='dark'] .info-panel dt,html[data-theme='dark'] .availability-pill,html[data-theme='dark'] .site-footer a,html[data-theme='dark'] .site-footer small,html[data-theme='dark'] .hero-contact a,html[data-theme='dark'] .project-domain{color:#aab2cb}
html[data-theme='dark'] .hero-contact a:hover,html[data-theme='dark'] .site-footer a:hover{color:#fff}
html[data-theme='dark'] .btn-outline{background:rgba(10,22,53,.7);border-color:rgba(132,120,255,.44);color:#f2f4ff;box-shadow:0 10px 24px rgba(0,0,0,.16)}
html[data-theme='dark'] .btn-outline:hover{background:var(--accent);color:#fff}
html[data-theme='dark'] .btn-text{color:#d8ddf1}
html[data-theme='dark'] .btn-text:hover{color:#fff}
html[data-theme='dark'] .expertise-strip span,html[data-theme='dark'] .project-tech-list span{background:rgba(10,22,53,.75);border-color:rgba(144,154,198,.18);color:#d4daf0}
html[data-theme='dark'] .portrait-ring{background:linear-gradient(145deg,rgba(8,20,54,.98),rgba(13,33,86,.98));box-shadow:0 24px 56px rgba(0,0,0,.34),0 0 0 1px rgba(132,120,255,.15)}
html[data-theme='dark'] .portrait-ring::before{border-color:rgba(132,120,255,.24);background:radial-gradient(circle at 50% 50%,rgba(132,120,255,.24),transparent 58%);box-shadow:0 0 0 1px rgba(132,120,255,.22),0 0 26px rgba(132,120,255,.28),0 0 52px rgba(41,85,255,.12)}
html[data-theme='dark'] .portrait-ring::after{background:linear-gradient(145deg,rgba(132,120,255,.26),rgba(6,20,56,.08) 45%,rgba(72,153,255,.16) 78%,rgba(116,184,135,.12))}
html[data-theme='dark'] .availability-pill span{box-shadow:0 0 0 4px rgba(116,180,135,.20)}
html[data-theme='dark'] .site-footer{border-top-color:rgba(144,154,198,.14)}
html[data-theme='dark'] .footer-meta small+small{border-left-color:rgba(144,154,198,.14)}
html[data-theme='dark'] .social-links a{border-color:rgba(144,154,198,.14);background:rgba(10,22,53,.56);color:#dbe2fd}
html[data-theme='dark'] .social-links a:hover{background:rgba(132,120,255,.18);border-color:rgba(132,120,255,.42);color:#fff;box-shadow:0 16px 28px rgba(3,8,26,.34)}
html[data-theme='dark'] .content-panel,html[data-theme='dark'] .info-panel,html[data-theme='dark'] .skills-panel,html[data-theme='dark'] .contact-form,html[data-theme='dark'] .portfolio-card,html[data-theme='dark'] .blog-card,html[data-theme='dark'] .project-detail-visual,html[data-theme='dark'] .portfolio-toolbar,html[data-theme='dark'] .portfolio-empty-filter{background:rgba(8,18,48,.72);border-color:rgba(144,154,198,.14);box-shadow:0 16px 40px rgba(0,0,0,.16)}
html[data-theme='dark'] .interactive-panel:hover,html[data-theme='dark'] .portfolio-card:hover,html[data-theme='dark'] .blog-card:hover{border-color:rgba(132,120,255,.28);box-shadow:0 24px 50px rgba(0,0,0,.24)}
html[data-theme='dark'] .portfolio-search{background:rgba(8,18,48,.78);border-color:rgba(144,154,198,.14);color:#b5bdd8}
html[data-theme='dark'] .portfolio-search input,html[data-theme='dark'] .contact-form input,html[data-theme='dark'] .contact-form textarea{color:#f2f4ff;background:rgba(5,15,40,.72);border-color:rgba(144,154,198,.14)}
html[data-theme='dark'] .contact-form input:focus,html[data-theme='dark'] .contact-form textarea:focus{background:rgba(10,22,53,.88);box-shadow:0 0 0 3px rgba(132,120,255,.18)}
html[data-theme='dark'] .portfolio-category-filter button,html[data-theme='dark'] .secondary-action{background:rgba(10,22,53,.72);border-color:rgba(144,154,198,.14);color:#f0f3ff}
html[data-theme='dark'] .portfolio-category-filter button:hover,html[data-theme='dark'] .portfolio-category-filter button.active{border-color:var(--accent);background:var(--accent);color:#fff}
html[data-theme='dark'] .project-detail-placeholder{background:linear-gradient(145deg,#091837,#102757);color:#fff}
html[data-theme='dark'] .back-link,html[data-theme='dark'] .portfolio-card-actions a,html[data-theme='dark'] .empty-state,html[data-theme='dark'] .portfolio-result-count{color:#aab2cb}
html[data-theme='dark'] .back-link:hover,html[data-theme='dark'] .portfolio-card-actions .case-link{color:#fff}
html[data-theme='dark'] .frontend-admin-toolbar{background:rgba(8,18,48,.86);border-color:rgba(144,154,198,.18);box-shadow:0 18px 52px rgba(0,0,0,.32)}
html[data-theme='dark'] .frontend-admin-context strong{color:#fff}
html[data-theme='dark'] .frontend-admin-context small{color:#aab2cb}
html[data-theme='dark'] .frontend-admin-dashboard{background:rgba(10,22,53,.78);color:#dfe5ff}
html[data-theme='dark'] .frontend-admin-dashboard:hover{background:rgba(18,34,79,.9);color:#fff}
html[data-theme='dark'] .hero-visual::before{background:rgba(132,120,255,.94);box-shadow:-248px 34px 0 rgba(102,122,192,.58),-174px 172px 0 rgba(132,120,255,.72),112px 116px 0 rgba(104,201,146,.88),28px -6px 0 rgba(132,120,255,.54)}
html[data-theme='dark'] .hero-visual::after{background:rgba(104,201,146,.94);box-shadow:112px -138px 0 rgba(132,120,255,.74),226px -30px 0 rgba(132,120,255,.86),-16px 32px 0 rgba(121,140,220,.58)}

@media (max-width:960px){.header-actions{gap:10px}.theme-toggle{width:36px;height:36px}}
@media (max-width:700px){.header-actions{margin-left:auto}.social-links{gap:8px}.social-links a{width:30px;height:30px}}

/* v1.7.0 - Exactly two hero accent dots, positioned outside the portrait */
.hero-visual::before{
    top:18%;
    left:-3%;
    right:auto;
    width:8px;
    height:8px;
    background:rgba(113,100,255,.82);
    box-shadow:none;
    animation:orbitDots 8.5s ease-in-out infinite alternate;
}
.hero-visual::after{
    top:31%;
    left:-7%;
    bottom:auto;
    width:7px;
    height:7px;
    background:rgba(112,194,153,.9);
    box-shadow:none;
    animation:orbitDots 10s ease-in-out infinite alternate-reverse;
}
html[data-theme='dark'] .hero-visual::before{
    background:rgba(132,120,255,.96);
    box-shadow:0 0 14px rgba(132,120,255,.42);
}
html[data-theme='dark'] .hero-visual::after{
    background:rgba(104,201,146,.96);
    box-shadow:0 0 14px rgba(104,201,146,.30);
}
@media(max-width:700px){
    .hero-visual::before{top:14%;left:8%;}
    .hero-visual::after{top:28%;left:4%;}
}
/* v1.7.0 - dot placement anchored to portrait ring */
.hero-visual::before,.hero-visual::after{display:none!important}
.portrait-accent-dot{position:absolute;z-index:4;border-radius:50%;pointer-events:none;animation:portraitDotFloat 7.5s ease-in-out infinite alternate}
.portrait-accent-purple{width:8px;height:8px;left:-17%;top:18%;background:#7a6cff;box-shadow:0 0 0 5px rgba(122,108,255,.08)}
.portrait-accent-green{width:7px;height:7px;left:-22%;top:34%;background:#78c795;box-shadow:0 0 0 5px rgba(120,199,149,.08);animation-delay:-2.4s}
@keyframes portraitDotFloat{0%{transform:translate3d(0,0,0)}55%{transform:translate3d(-2px,7px,0)}100%{transform:translate3d(4px,-4px,0)}}
html[data-theme='dark'] .portrait-accent-purple{background:#8b80ff;box-shadow:0 0 16px rgba(139,128,255,.45),0 0 0 5px rgba(139,128,255,.08)}
html[data-theme='dark'] .portrait-accent-green{background:#71cf94;box-shadow:0 0 15px rgba(113,207,148,.32),0 0 0 5px rgba(113,207,148,.07)}
@media(max-width:700px){.portrait-accent-purple{left:-13%;top:15%}.portrait-accent-green{left:-17%;top:32%}}
/* v1.7.0 - keep captured website previews focused on the top of the page */
.portfolio-thumb img,.project-detail-visual img{object-position:top center}
