/* ==========================================
   MAROUF MUSHTAQ — PORTFOLIO v2
   Minimal · Editorial · Dark
   ========================================== */

:root {
    --black: #09090b;
    --dark: #0f0f13;
    --card: #151519;
    --card-hover: #1a1a20;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
    --white: #fafafa;
    --gray-100: #e4e4e7;
    --gray-300: #a1a1aa;
    --gray-500: #71717a;
    --gray-700: #3f3f46;
    --accent: #a78bfa;
    --accent-dim: rgba(167,139,250,0.12);
    --accent-glow: rgba(167,139,250,0.06);
    --font: 'Space Grotesk', -apple-system, sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background: var(--black);
    color: var(--gray-300);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}



::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gray-700); border-radius: 2px; }

a { text-decoration: none; color: inherit; transition: color 0.3s var(--ease); }
img { max-width: 100%; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

/* ==============================
   MARQUEE
   ============================== */
.marquee-strip {
    overflow: hidden;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--dark);
    position: relative;
}
.marquee-strip::before,
.marquee-strip::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}
.marquee-strip::before {
    left: 0;
    background: linear-gradient(90deg, var(--dark), transparent);
}
.marquee-strip::after {
    right: 0;
    background: linear-gradient(270deg, var(--dark), transparent);
}
.marquee-track {
    display: flex;
    gap: 24px;
    animation: marqueeScroll 30s linear infinite;
    width: max-content;
}
.marquee-track span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-500);
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==============================
   HEADER
   ============================== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.4s var(--ease);
}
.header.scrolled {
    background: rgba(9,9,11,0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}
.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -1px;
}
.logo-accent { color: var(--accent); }

.nav { display: flex; gap: 6px; }
.nav-item {
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-500);
    border-radius: 6px;
    letter-spacing: 0.5px;
    transition: all 0.3s var(--ease);
}
.nav-item:hover, .nav-item.active {
    color: var(--white);
    background: rgba(255,255,255,0.04);
}

.menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    padding: 6px;
}
.menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 1px;
    transition: all 0.3s var(--ease);
}
.menu-btn.active span:first-child { transform: rotate(45deg) translate(3px, 3px); }
.menu-btn.active span:last-child { transform: rotate(-45deg) translate(3px, -3px); }

/* ==============================
   INTRO / HERO
   ============================== */
.intro {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 32px 40px;
    overflow: hidden;
}
#bgCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.intro-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}
.intro-label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    opacity: 0;
    animation: slideUp 0.8s var(--ease-out) 0.2s forwards;
}
.label-line {
    width: 48px;
    height: 1px;
    background: var(--accent);
}
.intro-label span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
}
.intro-heading {
    margin-bottom: 28px;
}
.heading-line {
    display: block;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.05;
    letter-spacing: -3px;
    opacity: 0;
    animation: slideUp 0.8s var(--ease-out) forwards;
}
.heading-line[data-delay="0"] { animation-delay: 0.3s; }
.heading-line[data-delay="1"] { animation-delay: 0.45s; }
.heading-dot { color: var(--accent); }

.intro-tagline {
    font-size: 1.05rem;
    color: var(--gray-300);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 28px;
    opacity: 0;
    animation: slideUp 0.8s var(--ease-out) 0.6s forwards;
}

.intro-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    opacity: 0;
    animation: slideUp 0.8s var(--ease-out) 0.75s forwards;
}
.action-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--accent);
    color: var(--black);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.3s var(--ease);
}
.action-primary:hover {
    background: #b9a0fc;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(167,139,250,0.25);
}
.action-primary svg { transition: transform 0.3s var(--ease); }
.action-primary:hover svg { transform: translate(2px, -2px); }

.action-secondary {
    padding: 14px 28px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-300);
    border: 1px solid var(--border-hover);
    border-radius: 8px;
    transition: all 0.3s var(--ease);
}
.action-secondary:hover {
    color: var(--white);
    border-color: var(--gray-500);
    transform: translateY(-2px);
}

.intro-metrics {
    display: flex;
    gap: 0;
    align-items: center;
    opacity: 0;
    animation: slideUp 0.8s var(--ease-out) 0.9s forwards;
}
.metric { text-align: left; padding: 0 28px; }
.metric:first-child { padding-left: 0; }
.metric-val {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    display: block;
    line-height: 1;
}
.metric-label {
    font-size: 0.78rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
    display: block;
}
.metric-divider {
    width: 1px;
    height: 40px;
    background: var(--border-hover);
}

.scroll-cue {
    position: absolute;
    bottom: 36px;
    right: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 2;
    opacity: 0;
    animation: fadeIn 1s var(--ease-out) 1.2s forwards;
}
.scroll-cue span {
    font-size: 0.7rem;
    color: var(--gray-500);
    letter-spacing: 3px;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}
.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease infinite;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes scrollPulse {
    0%,100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.6); transform-origin: top; }
}

/* ==============================
   SECTIONS SHARED
   ============================== */
.section {
    padding: 120px 0;
}
.section-dark {
    background: var(--dark);
}
.section-label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.label-num {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    font-family: var(--mono);
}
.section-label span:last-child {
    font-size: 0.8rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}
.section-heading {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.25;
    letter-spacing: -1px;
    margin-bottom: 48px;
    max-width: 700px;
}

/* REVEAL */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
}
[data-reveal].visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

/* ==============================
   ABOUT
   ============================== */
#about {
    position: relative;
    overflow: hidden;
}
#about::before,
#about::after {
    content: '';
    position: absolute;
    pointer-events: none;
    z-index: 0;
}
#about::before {
    width: 520px;
    height: 520px;
    right: -180px;
    top: -140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167,139,250,0.12), rgba(167,139,250,0.02) 52%, transparent 70%);
}
#about::after {
    width: 440px;
    height: 440px;
    left: -200px;
    bottom: -220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.07), rgba(255,255,255,0.02) 44%, transparent 72%);
}
.about-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 64px;
    align-items: start;
}
.about-text {
    padding: 34px 34px 26px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(21,21,25,0.78), rgba(15,15,19,0.72));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 24px 46px rgba(0,0,0,0.24);
}
.about-text .section-heading {
    margin-bottom: 28px;
    max-width: 620px;
}
.about-text p {
    margin-bottom: 20px;
    font-size: 1.02rem;
    line-height: 1.82;
    color: var(--gray-300);
}
.about-text p:first-of-type::first-letter {
    font-size: 3.4rem;
    font-weight: 700;
    color: #f4f4ff;
    float: left;
    line-height: 1;
    margin: 3px 12px 0 0;
    text-shadow: 0 0 24px rgba(167,139,250,0.24);
}
.about-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.about-photo-card {
    width: min(320px, 100%);
    margin: 0 auto 18px;
    padding: 7px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.01));
    box-shadow: 0 16px 34px rgba(0,0,0,0.28), 0 0 0 1px rgba(167,139,250,0.14) inset;
    overflow: hidden;
}
.about-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 8%;
    border: 0;
    background: var(--card);
}
.about-photo-missing {
    display: grid;
    place-items: center;
    min-height: 306px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 25%, rgba(255,255,255,0.14), rgba(255,255,255,0.02) 60%);
}
.about-photo-missing::after {
    content: 'AF';
    font-family: var(--mono);
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gray-500);
}
.detail-card {
    position: relative;
    display: flex;
    gap: 16px;
    padding: 20px 20px 20px 18px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(21,21,25,0.95), rgba(21,21,25,0.7));
    overflow: hidden;
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}
.detail-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, rgba(167,139,250,0.95), rgba(167,139,250,0.15));
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}
.detail-card:hover {
    border-color: var(--border-hover);
    background: linear-gradient(135deg, rgba(24,24,29,0.95), rgba(24,24,29,0.76));
    transform: translateX(5px);
}
.detail-card:hover::before {
    opacity: 1;
}
.detail-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 8px;
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}
.detail-icon svg { width: 18px; height: 18px; }
.detail-card strong {
    display: block;
    font-size: 0.9rem;
    color: var(--white);
    margin-bottom: 2px;
}
.detail-card span {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ==============================
   PROJECTS
   ============================== */
.work-header {
    margin-bottom: 48px;
}
.work-header .section-heading {
    margin-bottom: 12px;
}
.work-subtitle {
    font-size: 1rem;
    color: var(--gray-500);
    max-width: 600px;
    line-height: 1.7;
}
.projects-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.project-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 32px;
    align-items: start;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--card);
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}
.project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px;
    height: 0;
    background: var(--accent);
    transition: height 0.4s var(--ease);
}
.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.project-card:hover::before { height: 100%; }

.project-index {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gray-700);
    line-height: 1;
    font-family: var(--mono);
    min-width: 70px;
}
.project-card:hover .project-index { color: var(--accent); transition: color 0.3s; }

.project-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}
.project-year {
    font-size: 0.8rem;
    font-family: var(--mono);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 4px;
    background: var(--accent-dim);
}
.project-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.project-tags span {
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 100px;
    border: 1px solid var(--border);
    color: var(--gray-500);
}

.project-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.project-summary {
    font-size: 0.95rem;
    color: var(--gray-300);
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 560px;
}
.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s var(--ease);
}
.project-card:hover .project-link {
    opacity: 1;
    transform: translateY(0);
}
.project-link:hover svg { transform: translate(2px, -2px); }
.project-link svg { transition: transform 0.3s var(--ease); }

.project-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.05;
    transition: opacity 0.4s var(--ease);
}
.project-card:hover .project-visual { opacity: 0.1; }
.project-icon { width: 80px; height: 80px; }

/* ==============================
   TOOLKIT
   ============================== */
.toolkit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 64px;
}
.toolkit-category {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.toolkit-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.toolkit-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--gray-300);
    transition: color 0.3s, transform 0.3s;
}
.toolkit-list li:hover {
    color: var(--white);
    transform: translateX(6px);
}
.tk-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

/* Certs */
.certs-block { margin-top: 0; }
.certs-list {
    display: flex;
    flex-direction: column;
}
.cert-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 24px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s var(--ease);
}
.cert-row:hover {
    padding-left: 12px;
    background: var(--accent-glow);
}
.cert-name {
    font-size: 0.92rem;
    color: var(--gray-100);
    font-weight: 500;
}
.cert-source {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 500;
}
.cert-when {
    font-size: 0.78rem;
    color: var(--gray-500);
    font-family: var(--mono);
    white-space: nowrap;
}

/* ==============================
   JOURNEY
   ============================== */
.journey-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.journey-card {
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--card);
    transition: all 0.3s var(--ease);
    position: relative;
}
.journey-card::after {
    content: '';
    position: absolute;
    top: 0; left: 24px; right: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}
.journey-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
}
.journey-card:hover::after { opacity: 1; }

.journey-period {
    font-size: 0.78rem;
    font-family: var(--mono);
    color: var(--accent);
    margin-bottom: 12px;
}
.journey-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}
.journey-org {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 16px;
}
.journey-desc {
    font-size: 0.88rem;
    color: var(--gray-300);
    line-height: 1.7;
    margin-bottom: 16px;
}
.journey-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.journey-tools span {
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 100px;
    border: 1px solid var(--border);
    color: var(--gray-500);
}

/* ==============================
   CONNECT
   ============================== */
.connect-block {
    text-align: center;
    max-width: 980px;
    margin: 0 auto;
}
.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: 100px;
    border: 1px solid rgba(52, 211, 153, 0.2);
    background: rgba(52, 211, 153, 0.06);
    margin-bottom: 32px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #34d399;
    letter-spacing: 0.5px;
}
.avail-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    animation: pulse 2s ease infinite;
    flex-shrink: 0;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(52,211,153,0); }
}
.connect-heading {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}
.connect-sub {
    font-size: 1.05rem;
    color: var(--gray-300);
    margin-bottom: 48px;
    line-height: 1.8;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.connect-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    text-align: center;
}
.connect-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 38px 22px;
    min-height: 190px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: linear-gradient(150deg, rgba(21,21,25,0.96), rgba(16,16,22,0.9));
    box-shadow: 0 12px 30px rgba(0,0,0,0.22);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.connect-item::after {
    content: '';
    position: absolute;
    inset: auto -20% -62% -20%;
    height: 90px;
    background: radial-gradient(circle, rgba(167,139,250,0.22), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}
.connect-item:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(8,8,14,0.5), 0 0 0 1px rgba(167,139,250,0.15) inset;
}
.connect-item:hover::after {
    opacity: 1;
}
.connect-item svg,
.connect-item [data-lucide] {
    width: 24px;
    height: 24px;
    color: var(--accent);
    flex-shrink: 0;
}
.connect-item strong {
    display: block;
    font-size: 1.05rem;
    color: var(--white);
    margin-bottom: 4px;
}
.connect-item span {
    font-size: 0.95rem;
    color: var(--gray-500);
    word-break: break-word;
    overflow-wrap: anywhere;
    display: block;
    margin-top: 4px;
}

/* ==============================
   FOOTER
   ============================== */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-copy {
    font-size: 0.8rem;
    color: var(--gray-500);
}
.footer-links {
    display: flex;
    gap: 12px;
}
.footer-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    transition: all 0.3s var(--ease);
}
.footer-links a:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}
.footer-links svg { width: 16px; height: 16px; }

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 1024px) {
    .toolkit-grid { grid-template-columns: repeat(2, 1fr); }
    .journey-grid { grid-template-columns: 1fr; }
    .about-layout { grid-template-columns: 1fr; gap: 40px; }
    .about-text { padding: 30px 28px 22px; }
    .connect-links { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: rgba(9,9,11,0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px 24px;
        border-bottom: 1px solid var(--border);
    }
    .nav.open { display: flex; }
    .menu-btn { display: flex; }

    .intro { padding: 120px 20px 60px; }
    .heading-line { font-size: clamp(2.5rem, 12vw, 4rem); }
    .intro-metrics { flex-direction: column; gap: 20px; align-items: flex-start; }
    .metric-divider { width: 40px; height: 1px; }
    .metric { padding: 0; }

    .project-card {
        grid-template-columns: 1fr;
        padding: 28px;
    }
    .project-index { font-size: 2rem; }
    .project-visual { display: none; }

    .toolkit-grid { grid-template-columns: 1fr; }

    .cert-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .connect-links { grid-template-columns: 1fr; }
    .connect-item { min-height: 160px; }

    .footer-inner { flex-direction: column; gap: 16px; text-align: center; }

    .scroll-cue { display: none; }

    .about-text { padding: 24px 20px 18px; }
    .about-text .section-heading { margin-bottom: 20px; }

    .about-photo-card {
        width: min(250px, 76vw);
        margin-bottom: 12px;
    }
    .about-photo-missing { min-height: 236px; }

    .container { padding: 0 20px; }
}
