*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --ink: #ffffff;
    --paper: #000000;
    --cream: #1a1a1a;
    --accent: #ffffff;
    --accent-light: #ffffff;
    --accent-pale: #2a2a2a;
    --rule: #333333;
    --muted: #808080;
    --max: 860px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: #000000;
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='6' result='noise' seed='2' /%3E%3C/filter%3E%3Crect width='200' height='200' fill='%23000000' /%3E%3Crect width='200' height='200' fill='%23ffffff' opacity='0.02' filter='url(%23noiseFilter)' /%3E%3C/svg%3E");
    background-size: 200px 200px;
    background-repeat: repeat;
    background-attachment: fixed;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' result='noise' /%3E%3C/filter%3E%3Crect width='200' height='200' fill='%23000000' /%3E%3Crect width='200' height='200' fill='%23ffffff' opacity='0.015' filter='url(%23grain)' /%3E%3C/svg%3E");
    background-size: 200px 200px;
    background-repeat: repeat;
    pointer-events: none;
    z-index: -1;
    animation: grain 8s steps(10, end) infinite;
}

@keyframes grain {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 200px 200px;
    }
}

/* ─── NAV ─────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 3rem;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.nav-scrolled {
    border-bottom-color: var(--rule);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    font-style: italic;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* ─── LAYOUT ──────────────────────────────────── */
.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

.divider {
    border: none;
    border-top: 1px solid var(--rule);
    margin: 0;
}

.section {
    padding: 5.5rem 0;
}

.section-label {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0.8rem;
    opacity: 0;
    animation: fadeUp 0.6s forwards;
}

.section-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
}

.section-heading em {
    color: var(--accent);
    font-style: italic;
}

.section-sub {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
}

.inline-link {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ─── HERO ────────────────────────────────────── */
.hero {
    flex-direction: column;
    justify-content: center;
    padding: 5rem 0 1.5rem;
    position: relative;
}

.hero::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 39px, var(--rule) 40px),
        repeating-linear-gradient(90deg, transparent, transparent 39px, var(--rule) 40px);
    background-size: 40px 40px;
    opacity: 0.35;
    z-index: -1;
    pointer-events: none;
}

.hero-inner {
    max-width: 680px;
}

.hero-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 1.2rem;
    opacity: 0;
    animation: fadeUp 0.5s 0.1s forwards;
}

.hero-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(4rem, 10vw, 7.5rem);
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 0.7s 0.2s forwards;
}

.hero-name em {
    font-style: italic;
    color: var(--accent);
}

.hero-quote {
    font-size: 0.95rem;
    color: var(--muted);
    max-width: 520px;
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp 0.7s 0.35s forwards;
    border-left: 2px solid var(--accent-pale);
    padding-left: 1rem;
}

.quote-attr {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: var(--accent);
    font-style: normal;
}

.social-icons {
    display: flex;
    gap: 0.7rem;
    opacity: 0;
    animation: fadeUp 0.7s 0.5s forwards;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1.5px solid var(--rule);
    border-radius: 10px;
    color: var(--muted);
    text-decoration: none;
    background: #1a1a1a;
    transition: color 0.2s, border-color 0.2s, transform 0.2s, background 0.2s;
}

.social-icon:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-pale);
    transform: translateY(-2px);
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 0;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--muted);
    opacity: 0;
    animation: fadeUp 0.6s 0.9s forwards;
}

/* ─── BUTTONS ─────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.6rem;
    background: var(--ink);
    color: #000;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 9px;
    transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.6rem;
    background: #1a1a1a;
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 9px;
    border: 1.5px solid var(--rule);
    transition: border-color 0.2s, transform 0.2s;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* ─── ABOUT ───────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 4rem;
    align-items: start;
}

.about-image-wrap {
    position: sticky;
    top: 6rem;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 14px;
    object-fit: cover;
    border: 1.5px solid var(--rule);
    transition: transform 0.3s;
}

.profile-img:hover {
    transform: scale(1.03);
}

.about-text {
    color: var(--muted);
    font-weight: 300;
    line-height: 1.75;
    margin-bottom: 1.1rem;
    font-size: 0.95rem;
}

.about-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1.8rem;
}

/* ─── FEATURED PROJECT ────────────────────────── */
.featured-card {
    background: #3d3d3d;
    color: #ffffff;
    border-radius: 18px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    border-style: dashed;
    border-width: 1px;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.15;
}

.featured-card-meta {
    margin-bottom: 1rem;
}

.badge-tag {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.3rem 0.7rem;
    border-radius: 5px;
    font-weight: 500;
}

.featured-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.featured-desc {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    line-height: 1.75;
    max-width: 600px;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.featured-card .btn-primary {
    background: #1a1a1a;
    color: var(--ink);
}

.featured-card .btn-primary:hover {
    background: var(--accent-pale);
    color: var(--accent);
}

/* ─── SOFTWARE RELEASES ───────────────────────── */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.software-card {
    border: 1.5px solid var(--rule);
    border-radius: 16px;
    padding: 2rem;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.software-card:nth-child(1) {
    animation-delay: 0s;
}

.software-card:nth-child(2) {
    animation-delay: 0.3s;
}

.software-card:nth-child(3) {
    animation-delay: 0.6s;
}

.software-card:nth-child(4) {
    animation-delay: 0.9s;
}

.software-card:nth-child(5) {
    animation-delay: 1.2s;
}

.software-card:nth-child(n+6) {
    animation-delay: 1.5s;
}

.software-card:hover {
    border-color: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
}

.software-card-empty {
    border-style: dashed;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: transparent;
}

.empty-label {
    font-size: 0.85rem;
    color: var(--muted);
    font-style: italic;
}

.software-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.software-icon {
    width: 42px;
    height: 42px;
    background: var(--accent-pale);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.software-version {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--muted);
    background: var(--cream);
    padding: 0.2rem 0.6rem;
    border-radius: 5px;
    letter-spacing: 0.04em;
}

.software-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.software-desc {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.65;
    font-weight: 300;
}

.software-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--muted);
    background: var(--cream);
    padding: 0.25rem 0.6rem;
    border-radius: 5px;
    border: 1px solid var(--rule);
}

.software-dl-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.3rem;
}

.software-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.45rem 0.85rem;
    background: var(--ink);
    color: #fff;
    border-radius: 7px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.software-dl-btn:hover {
    background: var(--accent);
    transform: translateY(-1px);
}

.software-more-link {
    font-size: 0.82rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    align-self: flex-start;
}

.software-more-link:hover {
    text-decoration: underline;
}

/* ─── PROJECTS GRID ───────────────────────────── */
.project-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.nav-btn {
    padding: 0.5rem 1rem;
    background: #1a1a1a;
    border: 1.5px solid var(--rule);
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
}

.nav-btn:hover,
.nav-btn.active {
    background: var(--ink);
    color: #000;
    border-color: var(--ink);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.project-item {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s, transform 0.5s;
}

.project-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-item.hidden {
    display: none;
}

.project-content {
    border: 1.5px solid var(--rule);
    border-radius: 14px;
    overflow: hidden;
    background: #1a1a1a;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.project-item:nth-child(1) .project-content {
    animation-delay: 0s;
}

.project-item:nth-child(2) .project-content {
    animation-delay: 0.3s;
}

.project-item:nth-child(3) .project-content {
    animation-delay: 0.6s;
}

.project-item:nth-child(4) .project-content {
    animation-delay: 0.9s;
}

.project-item:nth-child(5) .project-content {
    animation-delay: 1.2s;
}

.project-item:nth-child(n+6) .project-content {
    animation-delay: 1.5s;
}

.project-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-light);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--cream);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}

.project-content:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s;
}

.project-content:hover .project-overlay {
    opacity: 1;
}

.project-link-overlay {
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.project-link-overlay:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

.video-container {
    position: relative;
    height: 220px;
}

.youtube-container {
    padding-bottom: 56.25%;
    height: 0;
}

.video-container video,
.youtube-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    padding: 1.4rem;
}

.project-info h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

.project-info p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 0.9rem;
}

.project-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

/* ─── RESEARCH ────────────────────────────────── */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.research-item {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s, transform 0.5s;
}

.research-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.research-card {
    border: 1.5px solid var(--rule);
    border-radius: 14px;
    overflow: hidden;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.research-item:nth-child(1) .research-card {
    animation-delay: 0s;
}

.research-item:nth-child(2) .research-card {
    animation-delay: 0.3s;
}

.research-item:nth-child(3) .research-card {
    animation-delay: 0.6s;
}

.research-item:nth-child(4) .research-card {
    animation-delay: 0.9s;
}

.research-item:nth-child(5) .research-card {
    animation-delay: 1.2s;
}

.research-item:nth-child(n+6) .research-card {
    animation-delay: 1.5s;
}

.research-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-light);
}

.research-thumb {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--cream);
}

.research-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}

.research-card:hover .research-thumb img {
    transform: scale(1.04);
}

.research-type {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #1a1a1a;
    color: var(--ink);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 5px;
}

.research-body {
    padding: 1.4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.research-date {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.research-body h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.research-body p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.65;
    font-weight: 300;
    flex: 1;
    margin-bottom: 1rem;
}

.research-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.research-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: auto;
}

.research-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.view-btn {
    background: var(--ink);
    color: #fff;
}

.view-btn:hover {
    background: var(--accent);
}

.download-btn {
    background: var(--cream);
    color: var(--muted);
    border: 1.5px solid var(--rule);
}

.download-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ─── TIMELINE ────────────────────────────────── */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin-top: 1rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 1.5px;
    background: var(--rule);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding: 1.8rem;
    background: #1a1a1a;
    border: 1.5px solid var(--rule);
    border-radius: 14px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s, border-color 0.2s, box-shadow 0.2s;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:hover {
    border-color: var(--accent-light);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.timeline-marker {
    position: absolute;
    left: -2.65rem;
    top: 1.8rem;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--accent-pale);
}

.timeline-date {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.2rem;
}

.timeline-content .role {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0.7rem;
}

.timeline-content p {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.65;
    font-weight: 300;
}

.experience-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--rule);
}

/* ─── EDUCATION ───────────────────────────────── */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 1rem;
}

.education-list-item {
    display: flex;
    gap: 2.5rem;
    padding: 2rem;
    border: 1.5px solid var(--rule);
    border-radius: 14px;
    background: #1a1a1a;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s, transform 0.5s, border-color 0.2s, box-shadow 0.2s;
}

.education-list-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.education-list-item:hover {
    border-color: var(--accent-light);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.education-list-item:last-child {
    border-bottom: none;
}

.edu-date {
    flex: 0 0 130px;
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 500;
    padding-top: 3px;
}

.edu-content {
    flex: 1;
}

.edu-content h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.3rem;
}

.edu-institution {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.edu-grade {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted);
    background: var(--cream);
    border: 1px solid var(--rule);
    padding: 0.2rem 0.6rem;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.edu-desc {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.65;
    font-weight: 300;
    margin-top: 0.5rem;
}

/* ─── POLAROID ────────────────────────────────── */
.polaroid-wrap {
    display: flex;
    justify-content: center;
    padding: 3rem 0 4rem;
}

.polaroid {
    display: inline-block;
    background: #1a1a1a;
    padding: 14px 14px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transform: rotate(-2deg);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: default;
}

.polaroid img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    display: block;
}

.polaroid-label {
    text-align: center;
    margin-top: 12px;
    font-family: 'Courier New', monospace;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

/* ─── FOOTER ──────────────────────────────────── */
.footer {
    border-top: 1px solid var(--rule);
    padding: 3rem 0 2.5rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}

.footer-logo em {
    color: var(--accent);
    font-style: italic;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 300;
    max-width: 320px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-top: 0.2rem;
}

.footer-link {
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--accent);
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--muted);
}

/* ─── ANIMATIONS ──────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── RESPONSIVE ──────────────────────────────── */
@media (max-width: 700px) {
    .nav {
        padding: 1rem 1.2rem;
    }

    .nav-links {
        gap: 1.2rem;
    }

    .nav-link {
        font-size: 0.8rem;
    }

    .section {
        padding: 4rem 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image-wrap {
        position: static;
    }

    .profile-img {
        width: 140px;
        height: 140px;
    }

    .featured-card {
        padding: 2rem 1.5rem;
    }

    .projects-grid,
    .research-grid,
    .software-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-marker {
        left: -2.1rem;
    }

    .education-list-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .edu-date {
        flex: none;
    }

    .footer-inner {
        flex-direction: column;
    }
}

.bg-img {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
}

/* individual positions */
.img1 {
    top: 0px;
    left: 800px;
    width: 600px;
}

.img2 {
    top: 1000px;
    left: -40px;
    width: 600px;
}

.img3 {
    bottom: 300px;
    left: 900px;
    width: 500px;
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 3.5rem;
    }

    .section-heading {
        font-size: 1.7rem;
    }

    .social-icons {
        gap: 0.5rem;
    }

    .social-icon {
        width: 38px;
        height: 38px;
    }

    .img1 {
        top: 280px;
        left: 105px;
        width: 350px;
    }

    .img2 {
        top: 1020px;
        left: 160px;
        width: 300px;
    }

    .img3 {
        bottom: 300px;
        left: 190px;
        width: 300px;
    }

}

/* ─── STORE PAGE ──────────────────────────────── */
.store-hero {
    position: relative;
    padding: 4.5rem 0 4rem;
    border-bottom: 1px solid var(--rule);
}

.store-hero::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 39px, var(--rule) 40px),
        repeating-linear-gradient(90deg, transparent, transparent 39px, var(--rule) 40px);
    background-size: 40px 40px;
    opacity: 0.35;
    z-index: -1;
    pointer-events: none;
}

.store-hero-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.store-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0.8rem;
    opacity: 0;
    animation: fadeUp 0.5s 0.1s forwards;
}

.store-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
    opacity: 0;
    animation: fadeUp 0.7s 0.2s forwards;
}

.store-title em {
    color: var(--accent);
    font-style: italic;
}

.store-subtitle {
    font-size: 0.95rem;
    color: var(--muted);
    font-weight: 300;
    max-width: 380px;
    line-height: 1.7;
    opacity: 0;
    animation: fadeUp 0.7s 0.35s forwards;
    padding-top: 0.5rem;
}

.store-count {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 500;
    opacity: 0;
    animation: fadeUp 0.6s 0.5s forwards;
    white-space: nowrap;
    padding-bottom: 0.4rem;
}

.store-count span {
    color: var(--accent);
    font-weight: 700;
}

.store-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.store-card {
    border: 1.5px solid var(--rule);
    border-radius: 20px;
    background: #1a1a1a;
    overflow: hidden;
    display: grid;
    grid-template-columns: 220px 1fr;
    opacity: 0;
    transform: translateY(24px);
    transition: border-color 0.25s, box-shadow 0.25s;
}

.store-card:nth-child(1) {
    animation-delay: 0s, 0s;
}

.store-card:nth-child(2) {
    animation-delay: 0.3s, 0.1s;
}

.store-card:nth-child(3) {
    animation-delay: 0.6s, 0.2s;
}

.store-card:nth-child(4) {
    animation-delay: 0.9s, 0.3s;
}

.store-card:nth-child(5) {
    animation-delay: 1.2s, 0.4s;
}

.store-card:nth-child(n+6) {
    animation-delay: 1.5s, 0.5s;
}

.store-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s, transform 0.5s, border-color 0.25s, box-shadow 0.25s;
}

.store-card:hover {
    border-color: var(--accent-light);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.09);
}

.store-card-banner {
    background: var(--ink);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.store-card-banner::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.18;
}

.store-card-banner::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -30px;
    width: 140px;
    height: 140px;
    background: var(--accent-light);
    border-radius: 50%;
    opacity: 0.1;
}

.store-banner-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    z-index: 1;
}

.store-card-content {
    display: flex;
    flex-direction: column;
    padding: 2rem 2.2rem;
    gap: 1rem;
}

.store-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.store-card-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.store-card-badges {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.store-version-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-pale);
    padding: 0.2rem 0.6rem;
    border-radius: 5px;
    letter-spacing: 0.04em;
}

.store-free-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    padding: 0.2rem 0.6rem;
    border-radius: 5px;
    letter-spacing: 0.04em;
}

.store-card-desc {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.75;
    font-weight: 300;
}

.store-card-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.store-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 0.5rem;
    border-top: 1px solid var(--rule);
    margin-top: auto;
}

.store-dl-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.store-dl-label {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    margin-right: 0.3rem;
}

.store-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: var(--ink);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    font-family: 'DM Sans', sans-serif;
}

.store-dl-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.store-dl-btn.coming-soon {
    background: var(--cream);
    color: var(--muted);
    border: 1.5px solid var(--rule);
    cursor: default;
    pointer-events: none;
}

.store-more-link {
    font-size: 0.82rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.store-more-link:hover {
    text-decoration: underline;
}

.platform-icon {
    flex-shrink: 0;
}

/* ─── STORE RESPONSIVE ────────────────────────── */
@media (max-width: 700px) {
    .store-hero {
        padding: 7rem 0 3rem;
    }

    .store-hero-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .store-card {
        grid-template-columns: 1fr;
    }

    .store-card-banner {
        min-height: 120px;
    }

    .store-card-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .store-title {
        font-size: 2.8rem;
    }

    .store-card-name {
        font-size: 1.4rem;
    }
}

/* ─── POLAROID HOVER (CSS, not inline JS) ─────── */
.polaroid:hover {
    transform: rotate(0deg) translateY(-12px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
}

/* ─── UTILITY ─────────────────────────────────── */
.mt-md {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* ─── STORE DETAIL PANEL ──────────────────────── */
.store-entry {
    display: flex;
    flex-direction: column;
}

.store-detail-panel {
    display: none;
    border: 1.5px solid var(--rule);
    border-top: none;
    border-radius: 0 0 20px 20px;
    background: #1a1a1a;
    padding: 2.5rem;
    margin-top: -20px;
    padding-top: calc(2.5rem + 20px);
}

.store-entry.open .store-card {
    border-radius: 20px 20px 0 0;
    border-bottom-color: transparent;
}

.store-entry.open .store-detail-panel {
    display: block;
}

.store-detail-inner {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.store-detail-logo {
    width: 150px;
    height: 150px;
    border-radius: 24px;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1.5px solid var(--rule);
    flex-shrink: 0;
}

.store-detail-logo img {
    width: 130%;
    height: 130%;
    object-fit: contain;
    padding: 1rem;
}

.store-detail-logo-icon {
    color: #fff;
    opacity: 0.9;
}

.store-detail-body {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.store-detail-desc {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.8;
    font-weight: 300;
}

.store-detail-section-title {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.store-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.store-feature-list li {
    font-size: 0.88rem;
    color: var(--ink);
    font-weight: 400;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    line-height: 1.5;
}

.store-feature-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    margin-top: 0.45em;
}

.store-req-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.store-req-list li {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 300;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    line-height: 1.5;
}

.store-req-list li::before {
    content: '—';
    color: var(--rule);
    flex-shrink: 0;
}

/* toggle button inside card footer */
.store-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: #2a2a2a;
    color: var(--ink);
    border: 1.5px solid var(--rule);
    border-radius: 8px;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: border-color 0.2s, color 0.2s;
}

.store-toggle-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.store-toggle-btn .toggle-arrow {
    transition: transform 0.25s;
    display: inline-block;
}

.store-entry.open .store-toggle-btn .toggle-arrow {
    transform: rotate(180deg);
}

/* ─── STORE DETAIL RESPONSIVE ─────────────────── */
@media (max-width: 700px) {
    .store-detail-inner {
        grid-template-columns: 1fr;
    }

    .store-detail-logo {
        width: 100px;
        height: 100px;
    }

    .store-detail-panel {
        padding: 1.5rem;
        padding-top: calc(1.5rem + 20px);
    }
}

/* logo image inside banner */
.store-card-banner img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: 16px;
    position: relative;
    z-index: 1;
}

/* ─── RELEASES SECTION ────────────────────────── */
.releases-featured-card {
    margin-bottom: 2rem;
}