@font-face {
    font-family: VazirmatnLocal;
    src: local("Vazirmatn"), local("Tahoma");
}

:root {
    --ink: #f4f4f7;
    --muted: #a0a0ad;
    --night: #08090c;
    --panel: #111216;
    --line: rgba(255, 255, 255, 0.1);
    --glow: color-mix(in srgb, var(--accent) 72%, #8b5cf6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--night);
    font-family: VazirmatnLocal, Tahoma, Arial, sans-serif;
    line-height: 1.8;
    overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(circle at 15% 15%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 28%),
        radial-gradient(circle at 85% 45%, color-mix(in srgb, var(--secondary) 10%, transparent), transparent 30%),
        var(--night);
}

::selection { color: #08090c; background: var(--secondary); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(820px, calc(100% - 40px)); }
main > .section:first-child { padding-top: 155px; }
main > .stats-band:first-child,
main > .tech-marquee:first-child { margin-top: 76px; }
.page-noise {
    position: fixed;
    inset: 0;
    z-index: 99;
    opacity: 0.035;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}
.cursor-glow {
    position: fixed;
    inset: 0;
    z-index: 30;
    pointer-events: none;
    background: radial-gradient(420px circle at var(--x, 50%) var(--y, 50%), color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
}
.scroll-progress {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    height: 3px;
    direction: ltr;
    pointer-events: none;
}
.scroll-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--secondary), #fff);
    box-shadow: 0 0 16px var(--secondary);
    transform: scaleX(0);
    transform-origin: left;
}

.site-header {
    position: fixed;
    top: 0;
    z-index: 40;
    width: 100%;
    background: rgba(8, 9, 12, 0.7);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}
.nav-shell {
    width: min(1240px, calc(100% - 36px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; font-size: 1rem; font-weight: 900; }
.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: #08090c;
    border-radius: 12px;
    background: var(--secondary);
    box-shadow: 0 0 28px color-mix(in srgb, var(--secondary) 35%, transparent);
}
.nav-links { display: flex; align-items: center; gap: 26px; color: var(--muted); font-size: 0.86rem; }
.nav-links a { position: relative; transition: color .25s ease; }
.nav-links a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -9px;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width .3s ease;
}
.nav-links a:hover, .nav-links a.active { color: white; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.menu-toggle { display: none; }

.hero {
    position: relative;
    min-height: 100svh;
    padding: 135px 0 70px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.hero-grid-lines {
    position: absolute;
    inset: 0;
    opacity: .22;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: linear-gradient(to bottom, black, transparent 90%);
    animation: gridTravel 14s linear infinite;
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .35; translate: 0 var(--parallax, 0); animation: drift 9s ease-in-out infinite; }
.orb-one { width: 380px; height: 380px; top: 10%; right: -180px; background: var(--accent); filter: blur(100px); }
.orb-two { width: 280px; height: 280px; bottom: -90px; left: 12%; background: #7c3aed; filter: blur(110px); animation-delay: -4s; }
.light-beam {
    position: absolute;
    z-index: 1;
    width: 1px;
    height: 75%;
    top: 8%;
    opacity: .35;
    background: linear-gradient(to bottom, transparent, var(--secondary), transparent);
    box-shadow: 0 0 22px var(--secondary);
    translate: 0 var(--parallax, 0);
    transform: rotate(28deg);
    transform-origin: center;
    animation: beamPulse 4s ease-in-out infinite;
}
.beam-one { left: 18%; }
.beam-two { right: 22%; transform: rotate(-32deg); animation-delay: -2s; }
.eyebrow { margin: 0 0 18px; color: var(--secondary); font-size: .78rem; font-weight: 900; letter-spacing: .08em; }
.eyebrow span { display: inline-block; width: 28px; height: 1px; margin-left: 8px; vertical-align: middle; background: currentColor; }
h1, h2, h3, p { overflow-wrap: anywhere; }
.hero h1 {
    margin: 0;
    font-size: clamp(3.8rem, 8vw, 7.4rem);
    line-height: .96;
    letter-spacing: -.055em;
    text-shadow: 0 12px 70px rgba(255,255,255,.1);
}
.hero h2 { max-width: 700px; margin: 24px 0 0; color: #d7d7df; font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.45; }
.role-prefix { color: var(--muted); }
.gradient-text {
    color: transparent;
    background: linear-gradient(100deg, var(--secondary), #fff 50%, var(--glow));
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    animation: shine 5s linear infinite;
}
.lead { max-width: 620px; margin: 25px 0; color: var(--muted); font-size: 1rem; }
.hero-actions, .social-row, .project-links, .tag-row, .category-row { display: flex; flex-wrap: wrap; gap: 11px; align-items: center; }
.btn {
    min-height: 52px;
    padding: 10px 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn.primary { color: #08090c; background: var(--secondary); box-shadow: 0 10px 35px color-mix(in srgb, var(--secondary) 18%, transparent); }
.btn.primary b { font-size: 1.2rem; }
.btn.secondary { color: white; border-color: var(--line); background: rgba(255,255,255,.06); }
.btn.ghost { color: var(--muted); border-color: transparent; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 38px rgba(0,0,0,.3); }
.social-row { margin-top: 28px; }
.social-row a { color: #777784; font-size: .82rem; transition: color .2s ease, transform .2s ease; }
.social-row a:not(:last-child)::after { content: " / "; margin: 0 10px; color: #34343b; }
.social-row a:hover { color: white; transform: translateY(-2px); }

.hero-visual { position: relative; min-height: 560px; display: grid; place-items: center; direction: ltr; }
.spark-field { position: absolute; inset: 0; }
.spark-field i {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 14px var(--secondary);
    animation: spark 4s ease-in-out infinite;
}
.spark-field i:nth-child(1) { top: 18%; left: 13%; }
.spark-field i:nth-child(2) { top: 27%; right: 8%; animation-delay: -.7s; }
.spark-field i:nth-child(3) { bottom: 20%; left: 8%; animation-delay: -1.4s; }
.spark-field i:nth-child(4) { bottom: 12%; right: 22%; animation-delay: -2.1s; }
.spark-field i:nth-child(5) { top: 8%; right: 40%; animation-delay: -2.8s; }
.spark-field i:nth-child(6) { bottom: 35%; left: 31%; animation-delay: -3.5s; }
.visual-ring { position: absolute; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; }
.ring-outer { width: 510px; height: 510px; border-style: dashed; animation: spin 35s linear infinite; }
.ring-middle { width: 390px; height: 390px; border-color: color-mix(in srgb, var(--accent) 45%, transparent); animation: spinReverse 22s linear infinite; }
.ring-inner { width: 286px; height: 286px; border: 1px solid color-mix(in srgb, var(--secondary) 50%, transparent); box-shadow: inset 0 0 60px rgba(255,255,255,.025), 0 0 80px color-mix(in srgb, var(--accent) 10%, transparent); }
.code-core {
    position: relative;
    z-index: 2;
    width: 254px;
    height: 254px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(14,15,20,.76);
    box-shadow: 0 25px 90px rgba(0,0,0,.5);
    backdrop-filter: blur(18px);
}
.code-core::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px dashed rgba(255,255,255,.1);
    border-radius: inherit;
    animation: spin 18s linear infinite;
}
.core-prompt { position: relative; color: var(--secondary); font: 11px monospace; }
.code-core strong { position: relative; margin: 15px 0; font-size: 2.2rem; line-height: .82; letter-spacing: -.04em; }
.code-core strong i { color: var(--secondary); font-style: normal; }
.code-core small { position: relative; color: #646470; font: 8px monospace; letter-spacing: .13em; }
.orbit-chip {
    position: absolute;
    z-index: 3;
    padding: 7px 13px;
    color: #bcbcc6;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(10,11,14,.86);
    font: 11px monospace;
    box-shadow: 0 8px 25px rgba(0,0,0,.3);
    animation: float 5s ease-in-out infinite;
}
.chip-one { top: 12%; left: 22%; }
.chip-two { right: 7%; top: 36%; animation-delay: -1s; }
.chip-three { bottom: 14%; left: 16%; animation-delay: -2s; }
.chip-four { top: 52%; left: 3%; animation-delay: -3s; }
.floating-card {
    position: absolute;
    z-index: 4;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(20,21,26,.76);
    box-shadow: 0 20px 45px rgba(0,0,0,.35);
    backdrop-filter: blur(15px);
    transition: transform .18s ease;
}
.card-code { top: 8%; right: 3%; display: grid; gap: 7px; }
.card-code span { color: #696976; font: 9px monospace; }
.card-code code { color: var(--secondary); font-size: 12px; }
.card-status { right: 2%; bottom: 11%; display: flex; align-items: center; gap: 11px; font-size: 10px; line-height: 1.35; }
.card-status i { width: 9px; height: 9px; border-radius: 50%; background: #45ee91; box-shadow: 0 0 18px #45ee91; animation: pulse 1.4s ease infinite; }
.card-status b { color: var(--secondary); }
.scroll-cue { position: absolute; z-index: 3; bottom: 24px; left: 50%; width: 28px; height: 45px; border: 1px solid var(--line); border-radius: 999px; }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; border-radius: 9px; background: var(--secondary); transform: translateX(-50%); animation: scrollDown 1.8s ease infinite; }

.tech-marquee {
    position: relative;
    z-index: 4;
    width: 100%;
    overflow: hidden;
    border-block: 1px solid var(--line);
    background: var(--secondary);
    color: #08090c;
    transform: rotate(-1.2deg) scale(1.02);
}
.marquee-track {
    width: max-content;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 28px;
    font: 900 12px/1 monospace;
    letter-spacing: .08em;
    animation: marquee 22s linear infinite;
}
.marquee-track i { font-style: normal; }

.stats-band { position: relative; z-index: 3; border-block: 1px solid var(--line); background: rgba(255,255,255,.025); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat-item { position: relative; padding: 33px 28px; display: grid; gap: 0; text-align: center; }
.stat-item:not(:last-child) { border-left: 1px solid var(--line); }
.stat-item strong { color: var(--secondary); font-size: 2.2rem; line-height: 1.2; }
.stat-item span { font-weight: 800; }
.stat-item small { color: #666672; }

.section { position: relative; padding: 115px 0; scroll-margin-top: 70px; }
.surface { background: rgba(255,255,255,.025); border-block: 1px solid rgba(255,255,255,.05); }
.two-column, .contact-grid, .timeline-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 75px; }
.section h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.25; letter-spacing: -.035em; }
.section-heading { max-width: 670px; margin-bottom: 40px; }
.section-text { margin: 0; color: var(--muted); font-size: 1.06rem; }
.about-copy { padding-top: 18px; }
.signature-line { margin-top: 30px; display: flex; align-items: center; gap: 14px; color: #777784; font-size: .82rem; }
.signature-line span { width: 50px; height: 1px; background: var(--secondary); }

.skills-grid, .card-grid, .project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.skill-group, .info-card, .project-card, .quote-card, .timeline-item {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
    box-shadow: 0 20px 55px rgba(0,0,0,.18);
    transition: transform .18s ease, border-color .3s ease, box-shadow .3s ease;
    transform-style: preserve-3d;
}
.skill-group:hover, .info-card:hover, .project-card:hover, .quote-card:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 25px 70px rgba(0,0,0,.35); }
.skill-group, .info-card, .quote-card, .timeline-item { padding: 28px; }
.skill-group h3, .info-card h3, .project-card h3, .timeline-item h3 { margin: 0 0 10px; font-size: 1.2rem; }
.skill-row { margin-top: 21px; display: grid; grid-template-columns: 1fr auto; gap: 8px; color: #c5c5ce; font-size: .9rem; }
.skill-row small { color: var(--secondary); }
.bar { grid-column: 1 / -1; height: 4px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.08); }
.bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--secondary)); box-shadow: 0 0 14px var(--secondary); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.icon-pill { display: inline-flex; margin: 6px 0 20px; color: var(--secondary); font: 11px monospace; text-transform: uppercase; }
.card-number { position: absolute; left: 24px; top: 20px; color: #464650; font: 13px monospace; }
.info-card p, .project-card p { color: var(--muted); }
.info-card::after { content: "↗"; position: absolute; left: 25px; bottom: 22px; color: #555561; font-size: 1.4rem; transition: color .2s, transform .2s; }
.info-card { padding-bottom: 55px; }
.info-card:hover::after { color: var(--secondary); transform: translate(-3px, -3px); }
.category-row { margin: -18px 0 30px; }
.category-row span, .tag-row span { padding: 5px 11px; color: #858591; border: 1px solid var(--line); border-radius: 999px; font-size: .76rem; }
.project-card { overflow: hidden; }
.project-visual { position: relative; height: 230px; padding: 26px; overflow: hidden; background: linear-gradient(135deg, #171821, #0e0f13); }
.project-visual::before { content: ""; position: absolute; width: 180px; height: 180px; top: -60px; left: -40px; border-radius: 50%; background: var(--accent); filter: blur(65px); opacity: .35; transition: transform .6s ease; }
.project-visual-2::before { background: var(--secondary); }
.project-visual-3::before { background: #7c3aed; }
.project-card:hover .project-visual::before { transform: scale(1.5) translate(20px, 20px); }
.project-visual > span { position: absolute; top: 18px; right: 20px; color: rgba(255,255,255,.25); font: 12px monospace; }
.project-window {
    position: relative;
    height: 100%;
    padding: 15px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 12px;
    background: rgba(5,6,9,.54);
    box-shadow: 0 20px 50px rgba(0,0,0,.35);
    transform: rotate(-4deg) translateY(12px);
    transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.project-card:hover .project-window { transform: rotate(0) translateY(0) scale(1.03); }
.project-window i { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: #555561; }
.project-window b { height: calc(100% - 26px); display: grid; place-items: center; color: rgba(255,255,255,.65); font-size: 1.4rem; }
.project-body { padding: 24px; }
.project-body small, .timeline-item span, .info-card small, .quote-card span { color: #6d6d79; }
.tag-row { margin: 20px 0; }
.project-links a, .text-link { color: var(--secondary); font-weight: 900; }

.timeline-grid { align-items: start; }
.timeline-item { margin-bottom: 17px; border-right: 2px solid var(--accent); }
.timeline-item::before { content: ""; position: absolute; right: -6px; top: 30px; width: 10px; height: 10px; border-radius: 50%; background: var(--secondary); box-shadow: 0 0 20px var(--secondary); }
.timeline-item p, .quote-card p { color: var(--muted); }
.quote-card p { margin-top: 0; font-size: 1.04rem; }

.contact-section { overflow: hidden; background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 14%, #090a0d), #090a0d 55%); }
.contact-section::before { content: "LET'S TALK"; position: absolute; left: -1%; bottom: -11%; color: rgba(255,255,255,.025); font-size: 16vw; font-weight: 900; line-height: 1; direction: ltr; white-space: nowrap; }
.contact-form { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.04); backdrop-filter: blur(12px); }
.contact-form label { display: grid; gap: 7px; color: #aaaab5; font-size: .82rem; }
.contact-form label:nth-child(5) { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea { width: 100%; padding: 13px 14px; color: white; border: 1px solid var(--line); border-radius: 11px; outline: none; background: rgba(0,0,0,.22); transition: border-color .2s, box-shadow .2s; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--secondary) 10%, transparent); }
.contact-form button { justify-self: start; }
.message { margin-top: 16px; padding: 12px 14px; color: #9ff2bd; border: 1px solid rgba(69,238,145,.25); border-radius: 11px; background: rgba(69,238,145,.08); }

.site-footer { padding: 26px 0; color: #6f6f7b; border-top: 1px solid var(--line); background: #050609; font-size: .78rem; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a:hover { color: white; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-radius: 50%; background: #45ee91; box-shadow: 0 0 12px #45ee91; }
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal-right { transform: translateX(45px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.skills-grid > :nth-child(2), .card-grid > :nth-child(2), .project-grid > :nth-child(2) { transition-delay: .12s; }
.skills-grid > :nth-child(3), .card-grid > :nth-child(3), .project-grid > :nth-child(3) { transition-delay: .24s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinReverse { to { transform: rotate(-360deg); } }
@keyframes drift { 50% { transform: translate3d(35px, 30px, 0) scale(1.1); } }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes pulse { 50% { opacity: .3; transform: scale(.75); } }
@keyframes shine { to { background-position: 200% center; } }
@keyframes scrollDown { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 18px); } }
@keyframes gridTravel { to { background-position: 0 70px, 70px 0; } }
@keyframes beamPulse { 50% { opacity: .12; filter: blur(2px); } }
@keyframes spark { 0%, 100% { opacity: .15; transform: scale(.5); } 50% { opacity: 1; transform: scale(1.7); } }
@keyframes marquee { to { transform: translateX(50%); } }

@media (max-width: 950px) {
    .nav-shell { min-height: 66px; }
    .nav-links { max-width: 58%; overflow-x: auto; gap: 18px; padding: 14px 0; scrollbar-width: none; }
    .hero { padding-top: 110px; }
    .hero-grid, .two-column, .contact-grid, .timeline-grid { grid-template-columns: 1fr; }
    .hero-copy { text-align: center; }
    .lead { margin-inline: auto; }
    .hero-actions, .social-row { justify-content: center; }
    .hero-visual { min-height: 500px; }
    .skills-grid, .card-grid, .project-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    .container { width: min(100% - 26px, 1180px); }
    .site-header { background: rgba(8,9,12,.9); }
    .nav-shell { width: calc(100% - 26px); min-height: 66px; padding: 0; flex-direction: row; align-items: center; }
    .brand > span:last-child { display: inline; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .brand-mark { width: 36px; height: 36px; border-radius: 10px; font-size: .8rem; }
    .menu-toggle {
        width: 42px;
        height: 42px;
        padding: 0;
        display: grid;
        place-content: center;
        gap: 6px;
        color: white;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: rgba(255,255,255,.04);
    }
    .menu-toggle span { width: 20px; height: 2px; background: currentColor; transition: transform .3s ease; }
    .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
    .nav-links {
        position: fixed;
        inset: 66px 0 auto;
        max-width: none;
        height: calc(100svh - 66px);
        padding: 34px 24px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        overflow-y: auto;
        color: #d5d5dc;
        background: rgba(8,9,12,.97);
        backdrop-filter: blur(22px);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-18px);
        transition: opacity .28s ease, transform .28s ease, visibility .28s;
    }
    .nav-links.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
    .nav-links a { padding: 13px 6px; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
    .nav-links a::after { display: none; }
    .hero { min-height: auto; padding: 105px 0 66px; }
    .hero-grid { gap: 20px; }
    .hero-copy { text-align: right; }
    .hero h1 { font-size: clamp(3.1rem, 17vw, 5.2rem); line-height: 1.02; }
    .hero h2 { margin-top: 17px; font-size: clamp(1.15rem, 5.2vw, 1.55rem); }
    .lead { margin: 18px 0 22px; font-size: .92rem; line-height: 1.9; }
    .hero-actions, .social-row { justify-content: flex-start; }
    .hero-actions .btn { min-height: 48px; padding: 8px 15px; font-size: .84rem; }
    .hero-actions .btn.ghost { padding-inline: 8px; }
    .social-row { margin-top: 20px; }
    .hero-visual {
        width: min(100%, 390px);
        min-height: 390px;
        margin: 0 auto;
        transform: none;
    }
    .ring-outer { width: min(92vw, 370px); height: min(92vw, 370px); }
    .ring-middle { width: min(72vw, 290px); height: min(72vw, 290px); }
    .ring-inner { width: min(54vw, 220px); height: min(54vw, 220px); }
    .code-core { width: min(49vw, 200px); height: min(49vw, 200px); padding: 24px; }
    .core-prompt { font-size: 8px; }
    .code-core strong { margin: 12px 0; font-size: clamp(1.55rem, 7vw, 1.9rem); }
    .code-core small { font-size: 6px; }
    .orbit-chip { padding: 5px 9px; font-size: 9px; }
    .chip-one { top: 11%; left: 14%; }
    .chip-two { right: 2%; top: 38%; }
    .chip-three { bottom: 13%; left: 12%; }
    .chip-four { top: 51%; left: 0; }
    .floating-card { padding: 11px; border-radius: 12px; }
    .card-code { top: 5%; right: 1%; }
    .card-code code { font-size: 9px; }
    .card-status { right: 0; bottom: 8%; font-size: 8px; }
    .scroll-cue { display: none; }
    .light-beam { opacity: .16; }
    .tech-marquee { transform: rotate(-1.5deg) scale(1.04); }
    .marquee-track { gap: 22px; padding: 9px 0; font-size: 10px; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-item { padding: 23px 18px; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; text-align: right; }
    .stat-item strong { grid-row: 1 / 3; font-size: 1.8rem; }
    .stat-item:not(:last-child) { border-left: 0; border-bottom: 1px solid var(--line); }
    .section { padding: 76px 0; }
    .section h2 { font-size: clamp(1.9rem, 9vw, 2.65rem); }
    .section-heading { margin-bottom: 28px; }
    .two-column, .contact-grid, .timeline-grid { gap: 34px; }
    .skills-grid, .card-grid, .project-grid { grid-template-columns: 1fr; }
    .skill-group, .info-card, .quote-card, .timeline-item { padding: 22px; }
    .project-visual { height: 205px; padding: 20px; }
    .project-body { padding: 21px; }
    .contact-form { grid-template-columns: 1fr; padding: 20px; }
    .contact-form label:nth-child(5) { grid-column: auto; }
    .contact-form button { width: 100%; }
    .footer-grid { align-items: flex-start; flex-direction: column; }
    .cursor-glow { display: none; }
    .reveal, .reveal-right { transform: translateY(24px); }
}

@media (max-width: 390px) {
    .brand > span:last-child { max-width: 105px; }
    .hero h1 { font-size: 15vw; }
    .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .hero-actions .btn { width: 100%; }
    .hero-actions .btn.ghost { grid-column: 1 / -1; }
    .hero-visual { min-height: 350px; }
    .ring-outer { width: 330px; height: 330px; }
    .card-code { right: 0; }
    .card-status { bottom: 5%; }
}

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