:root {
    --bg-deep: #03040c;
    --bg-space: #090a1a;
    --bg-card: rgba(17, 21, 44, 0.94);
    --bg-card-hover: rgba(30, 36, 74, 0.97);
    --border-glass: rgba(147, 130, 255, 0.3);
    --border-glass-glow: rgba(168, 85, 247, 0.5);
    --text-primary: #ffffff;
    --text-secondary: #a3b8cc;
    --text-muted: #8a97ad;
    --accent-cyan: #38bdf8;
    --accent-indigo: #818cf8;
    --accent-purple: #c084fc;
    --accent-pink: #f472b6;
    --accent-green: #34d399;
    --accent-yellow: #fbbf24;
    --glow-cyan: 0 0 20px rgba(56, 189, 248, 0.4);
    --glow-purple: 0 0 25px rgba(192, 132, 252, 0.4);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'Space Grotesk', monospace;
    --font-code: 'JetBrains Mono', monospace;
    --topbar-height: 38px;
    --mainnav-height: 76px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    scroll-padding-top: calc(var(--topbar-height) + var(--mainnav-height) + 12px);
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    padding-top: calc(var(--topbar-height) + var(--mainnav-height));
    padding-bottom: 40px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-indigo), var(--accent-purple));
    border-radius: 4px;
}

/* Fixed Background Canvas for Space Animation Dots */
#space-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Nebula Ambient Background Glows */
.nebula-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.22;
    z-index: -1;
    pointer-events: none;
}

.nebula-1 {
    top: -10%;
    left: -10%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, #4f46e5, #1e1b4b);
}

.nebula-2 {
    top: 40%;
    right: -15%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, #9333ea, #312e81);
}

.nebula-3 {
    bottom: 5%;
    left: 20%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, #0284c7, #0f172a);
}

/* ====================================================
   1. RETRO DESKTOP TOP MENU BAR (FIXED MAC/OS BAR)
   ==================================================== */
.desktop-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--topbar-height);
    background: rgba(9, 10, 26, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 10000;
    font-family: var(--font-main);
    font-size: 0.82rem;
    user-select: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.top-menu-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 5px 11px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-menu-btn:hover {
    background: rgba(139, 92, 246, 0.25);
    color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.top-menu-btn.apple-icon {
    font-size: 1rem;
    color: var(--accent-cyan);
    padding: 4px 10px;
}

.top-bar-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.top-status-btn {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: var(--accent-cyan);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-status-btn:hover {
    background: rgba(56, 189, 248, 0.22);
    box-shadow: var(--glow-cyan);
}

/* Interactive Floating Rocket Ship across space */
#cosmic-rocket {
    position: fixed;
    bottom: 130px;
    right: 35px;
    z-index: 900;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--border-glass-glow);
    padding: 10px 16px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--glow-purple);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    user-select: none;
}

#cosmic-rocket:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.8);
    border-color: var(--accent-cyan);
}

#cosmic-rocket .rocket-icon {
    font-size: 1.3rem;
    display: inline-block;
    transition: transform 0.4s ease;
}

#cosmic-rocket:hover .rocket-icon {
    transform: rotate(-15deg) scale(1.2);
}

/* ====================================================
   MODAL WINDOWS (RETRO DESKTOP POPUP WINDOWS)
   ==================================================== */
.desktop-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 4, 12, 0.7);
    backdrop-filter: blur(8px);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 20px;
}

.desktop-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.desktop-window-modal {
    background: rgba(15, 20, 42, 0.95);
    border: 1px solid var(--border-glass-glow);
    border-radius: 0;
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), var(--glow-purple);
    transform: translateY(20px) scale(0.96);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.desktop-modal-backdrop.active .desktop-window-modal {
    transform: translateY(0) scale(1);
}

.window-titlebar {
    background: rgba(26, 31, 65, 0.9);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-glass);
}

.window-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.win-btn {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.win-close {
    background: #ff5f56;
}

.win-min {
    background: #ffbd2e;
}

.win-max {
    background: #27c93f;
}

.window-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.window-content {
    padding: 24px;
    overflow-y: auto;
    color: var(--text-primary);
    line-height: 1.7;
}

/* File Explorer List inside Modal */
.file-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.file-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 16px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.file-item:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: var(--accent-cyan);
    transform: translateX(4px);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-info i {
    font-size: 1.3rem;
    color: var(--accent-cyan);
}

.file-name {
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
}

.file-meta {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.file-action {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #fff;
    padding: 6px 14px;
    border-radius: 0;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.file-action:hover {
    background: var(--accent-indigo);
    color: #fff;
}

/* Toast Notification Popup */
.retro-toast {
    position: fixed;
    top: 55px;
    right: 20px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), var(--glow-cyan);
    padding: 14px 22px;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 15000;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.retro-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.retro-toast i {
    font-size: 1.3rem;
    color: var(--accent-green);
}

/* ====================================================
   HERO BANNER (CLIENT RESUME MATCHED STYLE)
   ==================================================== */
/* ====================================================
   SECTION CONTAINERS & RETRO DESKTOP WINDOW CARDS
   ==================================================== */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(88px, 10.5vw, 138px) 24px;
    position: relative;
    z-index: 5;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(52px, 6vw, 76px);
}

.section-subtitle {
    font-weight: 600;
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent-cyan);
    margin-bottom: 14px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
}

.section-line {
    width: 96px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    margin: 0 auto;
    border-radius: 0;
}

/* Desktop Window Card Wrapper */
.desktop-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 0;
    overflow: hidden;
    backdrop-filter: blur(14px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
    transition: all 0.3s ease;
}

.desktop-card:hover {
    border-color: var(--border-glass-glow);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), var(--glow-purple);
}

.desktop-card-header {
    background: rgba(26, 31, 65, 0.75);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-glass);
}

.desktop-card-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 0;
    padding: 28px;
    backdrop-filter: blur(14px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glass-glow);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), var(--glow-purple);
    background: var(--bg-card-hover);
}

/* Grid Layouts */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 28px;
}

.project-card.featured {
    grid-column: span 1;
    border-color: rgba(56, 189, 248, 0.45);
}

@media (min-width: 900px) {
    .project-card.featured-wide {
        grid-column: span 2;
    }
}

.project-top {
    margin-bottom: 20px;
}

.project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.project-badge {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 4px 12px;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-badge.cern {
    background: rgba(192, 132, 252, 0.15);
    color: var(--accent-purple);
    border-color: rgba(192, 132, 252, 0.3);
}

.project-badge.mpi {
    background: rgba(244, 114, 182, 0.15);
    color: var(--accent-pink);
    border-color: rgba(244, 114, 182, 0.3);
}

.project-date {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.32rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.35;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.65;
}

.project-collab {
    margin-top: 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 10px;
}

.project-collab strong {
    color: var(--text-secondary);
}

.project-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.project-inst {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-links {
    display: flex;
    gap: 10px;
}

.project-github-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 14px;
    border-radius: 0;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.project-github-btn:hover {
    background: var(--accent-cyan);
    color: #000;
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 0;
    font-size: 0.78rem;
    font-family: var(--font-mono);
}

/* ====================================================
   MUSIC PLAYER DESKTOP WIDGET (#music)
   ==================================================== */
.music-player-window {
    background: var(--bg-card);
    border: 1px solid var(--border-glass-glow);
    border-radius: 0;
    padding: 28px;
    max-width: 760px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), var(--glow-purple);
}

.music-player-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.music-track-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.music-cover {
    width: 70px;
    height: 70px;
    border-radius: 0;
    background: linear-gradient(135deg, #38bdf8, #818cf8, #c084fc);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    box-shadow: var(--glow-cyan);
}

.music-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.music-artist {
    color: var(--accent-cyan);
    font-size: 0.88rem;
}

.visualizer-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 35px;
}

.bar {
    width: 5px;
    background: var(--accent-cyan);
    border-radius: 3px;
    animation: bounceBar 1.2s ease-in-out infinite alternate;
}

.bar:nth-child(2) {
    animation-delay: 0.2s;
    background: var(--accent-indigo);
}

.bar:nth-child(3) {
    animation-delay: 0.4s;
    background: var(--accent-purple);
}

.bar:nth-child(4) {
    animation-delay: 0.1s;
    background: var(--accent-pink);
}

.bar:nth-child(5) {
    animation-delay: 0.3s;
    background: var(--accent-cyan);
}

@keyframes bounceBar {
    0% {
        height: 6px;
    }

    100% {
        height: 32px;
    }
}

.music-playlist {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.playlist-track {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: all 0.2s ease;
}

.playlist-track:hover,
.playlist-track.active {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid var(--accent-cyan);
}

/* ====================================================
   RESOURCES & OTHERS SECTIONS
   ==================================================== */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.resource-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 0;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.resource-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-4px);
    box-shadow: var(--glow-cyan);
}

.resource-title {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ====================================================
   2. BOTTOM DOCKED NAVIGATION BAR (RETRO DESKTOP DOCK)
   ==================================================== */
/* ====================================================
   PRIMARY TOP NAVIGATION
   Light over the cream hero, dark glass once scrolled.
   ==================================================== */
.main-navbar {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    width: 100%;
    height: var(--mainnav-height);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 0 clamp(18px, 3.2vw, 46px);
    background: rgba(6, 8, 20, 0.92);
    border-bottom: 1px solid var(--border-glass);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.main-navbar.is-scrolled {
    background: rgba(6, 8, 20, 0.94);
    border-bottom-color: var(--border-glass-glow);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
}

/* Boxed monogram, as in the reference */
.nav-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-brand-mark {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    font-family: var(--font-heading);
    font-size: 1.32rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffffff;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 0;
    transition: color 0.35s ease, border-color 0.35s ease;
}

.main-navbar.is-scrolled .nav-brand-mark {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.85);
}

/* Link row */
.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(8px, 2.2vw, 34px);
    list-style: none;
    margin-left: auto;
    min-width: 0;
}

.nav-item {
    position: relative;
}

.nav-item > a,
.nav-dd-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 2px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.83rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    position: relative;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.main-navbar.is-scrolled .nav-item > a,
.main-navbar.is-scrolled .nav-dd-toggle {
    color: rgba(255, 255, 255, 0.82);
}

.nav-item > a::after,
.nav-dd-toggle::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item > a:hover,
.nav-dd-toggle:hover,
.nav-item.is-open .nav-dd-toggle {
    color: var(--accent-cyan);
    opacity: 1;
}

.main-navbar.is-scrolled .nav-item > a:hover,
.main-navbar.is-scrolled .nav-dd-toggle:hover,
.main-navbar.is-scrolled .nav-item.is-open .nav-dd-toggle {
    color: var(--accent-cyan);
}

.nav-item > a:hover::after,
.nav-dd-toggle:hover::after,
.nav-item > a.active::after {
    transform: scaleX(1);
}

.nav-caret {
    font-size: 0.6rem;
    transition: transform 0.28s ease;
}

.nav-item.is-open .nav-caret {
    transform: rotate(180deg);
}

/* Dropdown panels */
.nav-dd-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: -14px;
    min-width: 244px;
    list-style: none;
    padding: 8px;
    background: #0a0d1c;
    border: 1px solid var(--border-glass);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.main-navbar.is-scrolled .nav-dd-menu {
    background: #0a0d1c;
    border-color: var(--border-glass);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.7);
}

.nav-item.is-open .nav-dd-menu,
.nav-item:hover .nav-dd-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dd-menu a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 14px;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-dd-menu a i {
    font-size: 0.85rem;
    opacity: 0.55;
    width: 16px;
    text-align: center;
}

.nav-dd-menu a:hover {
    background: rgba(147, 130, 255, 0.16);
    color: #ffffff;
}

.main-navbar.is-scrolled .nav-dd-menu a {
    color: rgba(255, 255, 255, 0.85);
}

.main-navbar.is-scrolled .nav-dd-menu a:hover {
    background: rgba(147, 130, 255, 0.16);
    color: #ffffff;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: #ffffff;
    width: 44px;
    height: 44px;
    font-size: 1.05rem;
    cursor: pointer;
    margin-left: auto;
    transition: color 0.35s ease, border-color 0.35s ease;
}

.main-navbar.is-scrolled .nav-toggle {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 1080px) {
    .nav-toggle {
        display: grid;
        place-items: center;
    }

    .nav-links {
        position: fixed;
        top: calc(var(--topbar-height) + var(--mainnav-height));
        left: 0;
        width: 100%;
        max-height: calc(100vh - var(--topbar-height) - var(--mainnav-height));
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-left: 0;
        padding: 10px 22px 26px;
        background: rgba(6, 8, 20, 0.98);
        border-bottom: 1px solid var(--border-glass-glow);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    }

    .main-navbar.is-scrolled .nav-links {
        background: rgba(6, 8, 20, 0.98);
        border-bottom-color: var(--border-glass-glow);
    }

    .nav-links.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-item > a,
    .nav-dd-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 15px 2px;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-navbar.is-scrolled .nav-item > a,
    .main-navbar.is-scrolled .nav-dd-toggle {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    .nav-item > a::after,
    .nav-dd-toggle::after {
        display: none;
    }

    /* Dropdowns become inline accordions on small screens */
    .nav-dd-menu {
        position: static;
        min-width: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        box-shadow: none;
        background: transparent;
        padding: 0 0 6px 14px;
        display: none;
    }

    .main-navbar.is-scrolled .nav-dd-menu {
        background: transparent;
    }

    .nav-item.is-open .nav-dd-menu {
        display: block;
    }

    .nav-item:hover .nav-dd-menu {
        display: none;
    }

    .nav-item.is-open:hover .nav-dd-menu {
        display: block;
    }
}

/* Retro OS menu bar needs ~820px of labels; collapse it down in stages
   so it never forces the page into horizontal overflow. */
@media (max-width: 1024px) {
    .desktop-top-bar {
        overflow: hidden;
        padding: 0 10px;
    }

    /* Collapses the buttons' text nodes, leaving the icons */
    .top-menu-btn {
        font-size: 0;
        gap: 0;
        padding: 5px 8px;
    }

    .top-menu-btn i {
        font-size: 0.95rem;
    }
}

@media (max-width: 760px) {
    .top-bar-badge {
        display: none;
    }
}

@media (max-width: 560px) {
    .top-status-btn {
        font-size: 0;
        padding: 4px 7px;
        gap: 4px;
    }

    .top-status-btn i {
        font-size: 0.8rem;
    }
}

/* ====================================================
   HOME HERO — same dark theme as the rest of the site
   ==================================================== */
.jk-hero {
    position: relative;
    width: 100%;
    min-height: calc(100vh - var(--topbar-height) - var(--mainnav-height));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background:
        radial-gradient(ellipse 95% 65% at 50% -8%, rgba(56, 189, 248, 0.16), transparent 70%),
        radial-gradient(ellipse 75% 55% at 84% 38%, rgba(168, 85, 247, 0.18), transparent 70%),
        radial-gradient(ellipse 60% 50% at 12% 70%, rgba(129, 140, 248, 0.12), transparent 70%),
        linear-gradient(180deg, #3d497bc2 0%, #5970c5c2 45%, #6f83d5cf 78%, rgba(9, 11, 26, 0.9) 100%);
    color: var(--text-primary);
}

.jk-inner {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1560px;
    margin: 0 auto;
    padding: clamp(18px, 3vw, 42px) clamp(20px, 3.4vw, 52px) 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.jk-name {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 8.6vw, 7.6rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    text-align: center;
    color: #ffffff;
    white-space: nowrap;
    user-select: none;
    text-shadow: 0 6px 46px rgba(0, 0, 0, 0.55);
}

.jk-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(240px, 27vw, 430px) minmax(0, 1fr);
    column-gap: clamp(16px, 2vw, 34px);
    align-items: start;
    margin-top: clamp(34px, 7.5vw, 104px);
    padding-bottom: clamp(90px, 12vw, 150px);
}

.jk-left {
    font-size: clamp(1rem, 1.55vw, 1.62rem);
    line-height: 1.45;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.88);
    max-width: 22ch;
}

.jk-left strong {
    font-weight: 700;
    color: #ffffff;
}

.jk-right {
    justify-self: end;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.jk-stat {
    padding-left: 16px;
    border-left: 3px solid transparent;
    border-image: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple)) 1;
}

.jk-stat-val {
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 1.75vw, 1.6rem);
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
}

.jk-stat-lab {
    margin-top: 3px;
    font-family: var(--font-code);
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.72);
}

.jk-btn {
    align-self: flex-start;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
    color: #05070f;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none;
    border: 1px solid transparent;
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.28);
    transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.jk-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(56, 189, 248, 0.45);
}

.jk-photo {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    z-index: 2;
    margin: 0;
    height: min(76%, 700px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}

.jk-photo img {
    height: 100%;
    width: auto;
    max-width: min(46vw, 560px);
    object-fit: contain;
    object-position: bottom center;
    display: block;
}

.jk-photo .photo-placeholder {
    display: none;
}

.jk-photo.no-photo {
    bottom: 34px;
    height: min(56%, 500px);
}

.jk-photo.no-photo .photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    width: clamp(230px, 26vw, 340px);
    height: 100%;
    padding: 30px 22px 34px;
    text-align: center;
    border: 2px dashed var(--border-glass);
    background: rgba(255, 255, 255, 0.03);
    pointer-events: auto;
}

.jk-photo .photo-placeholder i {
    font-size: 2.6rem;
    color: var(--text-muted);
    margin-top: auto;
}

.jk-photo .photo-placeholder span {
    font-family: var(--font-code);
    font-size: 0.72rem;
    line-height: 1.7;
    letter-spacing: 0.6px;
    color: var(--text-secondary);
}

.jk-photo .photo-placeholder code {
    font-family: var(--font-code);
    background: rgba(56, 189, 248, 0.14);
    padding: 2px 6px;
    font-weight: 600;
    color: var(--accent-cyan);
}

@media (max-width: 900px) {
    .jk-name {
        white-space: normal;
        font-size: clamp(2rem, 11vw, 4.4rem);
        line-height: 0.94;
    }

    .jk-cols {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 30px;
        margin-top: 26px;
        padding-bottom: 26px;
    }

    .jk-left {
        max-width: none;
        text-align: center;
        margin: 0 auto;
    }

    .jk-right {
        justify-self: stretch;
        max-width: none;
        align-items: center;
        text-align: center;
    }

    .jk-stat {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
        text-align: left;
    }

    .jk-btn {
        align-self: center;
    }

    .jk-hero {
        padding-bottom: 40px;
    }

    .jk-photo,
    .jk-photo.no-photo {
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        height: auto;
        width: 100%;
        margin: 4px auto 0;
    }

    .jk-photo img {
        height: auto;
        width: auto;
        max-width: 72vw;
        max-height: 44vh;
        margin: 0 auto;
    }

    .jk-photo.no-photo .photo-placeholder {
        height: clamp(230px, 42vw, 320px);
        width: clamp(200px, 56vw, 300px);
    }
}

/* ====================================================
   AWARDS — wide media rows with a corner tag
   ==================================================== */
.awards-list {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.award-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: center;
    column-gap: clamp(20px, 3vw, 48px);
    padding: 22px 26px 22px 22px;
    background: linear-gradient(150deg, rgba(19, 27, 58, 0.92), rgba(10, 14, 32, 0.94));
    border: 1px solid var(--border-glass);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.award-row:hover {
    border-color: var(--border-glass-glow);
    transform: translateY(-3px);
    box-shadow: 0 26px 54px rgba(0, 0, 0, 0.55), 0 0 30px rgba(168, 85, 247, 0.14);
}

.award-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(140deg, var(--tint, rgba(56, 189, 248, 0.22)), rgba(9, 11, 26, 0.9));
    display: grid;
    place-items: center;
}

.award-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.award-media i {
    font-size: 2.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.award-name {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2.1vw, 1.95rem);
    font-weight: 700;
    line-height: 1.18;
    color: #ffffff;
}

.award-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.award-name a:hover {
    color: var(--accent-cyan);
}

.award-copy {
    font-size: 0.92rem;
    line-height: 1.68;
    color: var(--text-secondary);
    padding-bottom: 34px;
}

.award-copy strong {
    color: #ffffff;
    font-weight: 600;
}

.award-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 12px;
}

.award-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-cyan);
    text-decoration: none;
}

.award-links a:hover {
    text-decoration: underline;
}

.award-links a i {
    font-size: 0.72rem;
}

/* Angled ribbon tag in the lower-right corner */
.award-tag {
    position: absolute;
    right: -8px;
    bottom: 20px;
    padding: 11px 24px 11px 36px;
    font-family: var(--font-main);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #0a0d1a;
    background: var(--tag, var(--accent-cyan));
    clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
    white-space: nowrap;
}

@media (max-width: 1080px) {
    .award-row {
        grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
        row-gap: 16px;
    }

    .award-copy {
        grid-column: 1 / -1;
        padding-bottom: 46px;
    }
}

@media (max-width: 680px) {
    .award-row {
        grid-template-columns: minmax(0, 1fr);
        padding: 18px;
    }

    .award-media {
        aspect-ratio: 16 / 9;
    }

    .award-copy {
        grid-column: auto;
        padding-bottom: 52px;
    }

    .award-tag {
        right: -6px;
        bottom: 14px;
        font-size: 0.82rem;
        padding: 9px 18px 9px 30px;
    }
}

/* ====================================================
   ABOUT MYSELF — photo panel beside a statement panel
   ==================================================== */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    gap: clamp(20px, 2.6vw, 38px);
    align-items: stretch;
}

/* Both columns are cards; the photo sits inset inside its own */
.about-panel {
    background: linear-gradient(155deg, rgba(19, 27, 58, 0.72), rgba(9, 12, 28, 0.9));
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: clamp(16px, 1.7vw, 26px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.about-panel:hover {
    border-color: var(--border-glass-glow);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.5), 0 0 30px rgba(168, 85, 247, 0.12);
}

.about-panel.is-copy {
    padding: clamp(26px, 3vw, 46px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-photo {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: clamp(320px, 42vw, 620px);
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(140deg, rgba(56, 189, 248, 0.16), rgba(9, 11, 26, 0.9));
    display: grid;
    place-items: center;
}

.about-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.about-photo .photo-note {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 24px;
    text-align: center;
}

.about-photo .photo-note i {
    font-size: 2.4rem;
    color: var(--text-muted);
}

.about-photo .photo-note span {
    font-family: var(--font-code);
    font-size: 0.72rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.about-photo .photo-note code {
    font-family: var(--font-code);
    background: rgba(56, 189, 248, 0.14);
    padding: 2px 6px;
    font-weight: 600;
    color: var(--accent-cyan);
}

/* Mono, uppercase opening statement */
.about-lead {
    font-family: var(--font-code);
    font-size: clamp(0.86rem, 1.15vw, 1.04rem);
    font-weight: 600;
    line-height: 1.66;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: clamp(22px, 2.4vw, 34px);
}

.about-body p {
    font-size: clamp(0.95rem, 1.15vw, 1.08rem);
    line-height: 1.78;
    color: var(--text-secondary);
}

.about-body p + p {
    margin-top: clamp(16px, 1.6vw, 24px);
}

.about-body strong {
    color: #ffffff;
    font-weight: 600;
}

.about-body .hl {
    color: var(--accent-cyan);
    font-weight: 600;
}

/* Spec sheet sits underneath the two panels */
.about-specs {
    margin-top: clamp(20px, 2.6vw, 38px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(20px, 2.6vw, 38px);
}

@media (max-width: 940px) {
    .about-grid,
    .about-specs {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-photo {
        min-height: 300px;
    }
}

/* ====================================================
   CURIOSITY / STATS SECTION
   ==================================================== */
.curiosity-section {
    position: relative;
    z-index: 5;
    max-width: 1240px;
    margin: 0 auto;
    padding: 40px 24px 110px;
}

.curiosity-headline {
    font-family: var(--font-heading);
    font-size: clamp(2.1rem, 5.6vw, 4.6rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1.5px;
    line-height: 1.02;
    color: #ffffff;
    margin-bottom: 46px;
    max-width: 15ch;
}

.curiosity-headline .glow {
    background: linear-gradient(120deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.curiosity-body {
    display: grid;
    grid-template-columns: 150px 120px minmax(0, 1fr);
    gap: 0 32px;
    align-items: start;
}

.curiosity-label {
    font-family: var(--font-mono);
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 3.4px;
    color: var(--text-secondary);
    padding-top: 6px;
    text-align: right;
}

/* Hanging bulb — the filament line drops from the headline above */
.bulb-column {
    position: relative;
    display: flex;
    justify-content: center;
    align-self: stretch;
    min-height: 250px;
}

.bulb-cord {
    position: absolute;
    top: -46px;
    left: 50%;
    width: 1px;
    height: 150px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.42) 30%, rgba(255, 255, 255, 0.6));
}

.bulb-hang {
    position: absolute;
    top: 104px;
    left: 50%;
    transform-origin: 50% -104px;
    margin-left: -34px;
    width: 68px;
    animation: bulbSway 9s ease-in-out infinite alternate;
}

@keyframes bulbSway {
    from { transform: rotate(-2.2deg); }
    to   { transform: rotate(2.2deg); }
}

.bulb-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.55));
    animation: bulbGlow 4.5s ease-in-out infinite alternate;
}

@keyframes bulbGlow {
    from { filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.35)); }
    to   { filter: drop-shadow(0 0 26px rgba(192, 132, 252, 0.7)); }
}

.curiosity-main {
    min-width: 0;
}

.curiosity-text {
    font-size: clamp(0.98rem, 1.5vw, 1.12rem);
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 70ch;
    margin-bottom: 52px;
}

.curiosity-text strong {
    color: #ffffff;
    font-weight: 600;
}

.curiosity-text .hl {
    color: var(--accent-cyan);
    font-weight: 600;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-bottom: 46px;
}

.stat-block {
    text-align: center;
}

.stat-figure {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 4.6vw, 4rem);
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
    letter-spacing: -1px;
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.stat-figure .suffix {
    background: linear-gradient(120deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Word suffixes read as part of the figure, not as an accent */
.stat-figure .suffix.plain {
    background: none;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
}

.stat-caption {
    font-size: 0.92rem;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

.curiosity-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 34px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 0;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.6px;
    color: #ffffff;
    text-decoration: none;
    background: transparent;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.curiosity-cta:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(56, 189, 248, 0.08);
    box-shadow: 0 0 26px rgba(56, 189, 248, 0.25);
    letter-spacing: 3.4px;
}

@media (max-width: 900px) {
    .curiosity-body {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .curiosity-label {
        text-align: left;
        padding-top: 0;
    }

    .bulb-column {
        display: none;
    }

    .curiosity-headline {
        max-width: none;
    }

    .stat-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }
}

/* ====================================================
   COMMUNITY CARDS — each with its own sub-navigation
   ==================================================== */
.communities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
    gap: 26px;
}

.community-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, rgba(15, 18, 38, 0.84), rgba(9, 11, 26, 0.92));
    border: 1px solid var(--border-glass);
    border-radius: 0;
    overflow: hidden;
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.45);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.community-card:hover {
    border-color: var(--border-glass-glow);
    transform: translateY(-4px);
    box-shadow: 0 26px 54px rgba(0, 0, 0, 0.6), 0 0 30px rgba(168, 85, 247, 0.16);
}

.cc-head {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 24px 26px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cc-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 0;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    color: var(--accent-cyan);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(168, 85, 247, 0.16));
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.cc-heading {
    flex: 1;
    min-width: 0;
}

.cc-title {
    font-family: var(--font-heading);
    font-size: 1.12rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.28;
    margin-bottom: 5px;
}

.cc-org {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.cc-badge {
    flex-shrink: 0;
    align-self: center;
    font-family: var(--font-code);
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--accent-green);
    padding: 5px 11px;
    border-radius: 0;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.32);
    white-space: nowrap;
}

/* Per-community sub navigation */
.cc-nav {
    display: flex;
    gap: 6px;
    padding: 14px 26px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.cc-nav::-webkit-scrollbar {
    display: none;
}

.cc-tab {
    flex-shrink: 0;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 0;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.24s ease;
}

.cc-tab:hover {
    color: #fff;
    background: rgba(147, 130, 255, 0.16);
}

.cc-tab[aria-selected="true"] {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(168, 85, 247, 0.22));
    border-color: rgba(168, 85, 247, 0.45);
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.22);
}

.cc-panels {
    padding: 20px 26px 26px;
    flex: 1;
}

.cc-panel {
    display: none;
    animation: ccFade 0.35s ease;
}

.cc-panel.is-active {
    display: block;
}

@keyframes ccFade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cc-role {
    font-family: var(--font-code);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.2px;
    color: var(--accent-purple);
    margin-bottom: 9px;
}

.cc-desc {
    font-size: 0.91rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.cc-desc strong {
    color: #ffffff;
    font-weight: 600;
}

.cc-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cc-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-code);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cc-chip i {
    color: var(--accent-cyan);
    font-size: 0.72rem;
}

@media (max-width: 560px) {
    .communities-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .cc-head,
    .cc-nav,
    .cc-panels {
        padding-left: 18px;
        padding-right: 18px;
    }

    .cc-badge {
        display: none;
    }
}

/* Scroll-reveal utility used by the new sections */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .bulb-hang,
    .bulb-svg {
        animation: none !important;
    }
}

/* ====================================================
   GALLERY — alternating auto-scrolling image rows
   ==================================================== */
.gallery-section {
    position: relative;
    z-index: 5;
    padding: clamp(88px, 10.5vw, 138px) 0;
    overflow: hidden;
}

.gallery-head {
    text-align: center;
    margin-bottom: clamp(40px, 5vw, 64px);
    padding: 0 24px;
}

.gallery-rows {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1vw, 16px);
}

/* One scrolling row. Edges fade out so cards enter and leave softly. */
.marquee {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee-track {
    display: flex;
    gap: clamp(10px, 1vw, 16px);
    width: max-content;
    will-change: transform;
}

/* The track holds two identical copies, so -50% lands exactly on a seam */
.marquee.is-ready[data-dir="left"] .marquee-track {
    animation: marqueeLeft var(--speed, 46s) linear infinite;
}

.marquee.is-ready[data-dir="right"] .marquee-track {
    animation: marqueeRight var(--speed, 52s) linear infinite;
}

@keyframes marqueeLeft {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@keyframes marqueeRight {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

/* Cards are deliberately large: these are photographs to look at, not
   thumbnails. The frame is a hairline so the picture keeps the space. */
/* Each card is sized by row height only, so every photograph keeps its own
   native aspect ratio — nothing is cropped or stretched, and the lightbox
   shows exactly the frame you clicked. */
.gal-card {
    position: relative;
    flex: 0 0 auto;
    height: clamp(230px, 27vw, 380px);
    width: auto;
    margin: 0;
    padding: 0;
    background: #0a0e20;
    border: 1px solid var(--border-glass);
    cursor: zoom-in;
    transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.gal-card:hover,
.gal-card:focus-visible {
    border-color: var(--border-glass-glow);
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.6);
}

.gal-card:hover .gal-inner img,
.gal-card:focus-visible .gal-inner img {
    transform: scale(1.04);
}

.gal-inner {
    position: relative;
    width: auto;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(140deg, var(--tint, rgba(56, 189, 248, 0.22)), rgba(9, 11, 26, 0.92));
    display: block;
    text-align: center;
}

/* The image itself dictates the card's width */
.gal-inner img {
    position: static;
    display: block;
    height: 100%;
    width: auto;
    max-width: none;
    object-fit: contain;
    transition: transform 0.55s var(--ease-out);
}

.gal-inner i {
    font-size: 1.9rem;
    color: rgba(255, 255, 255, 0.45);
}

.gal-inner span {
    font-family: var(--font-code);
    font-size: 0.64rem;
    letter-spacing: 1.2px;
    color: var(--text-muted);
}

@media (max-width: 640px) {
    .gal-card {
        height: clamp(170px, 44vw, 250px);
    }
}

/* ----------------------------------------------------
   GALLERY LIGHTBOX
   ---------------------------------------------------- */
.lb {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 56px);
    background: rgba(3, 4, 12, 0.97);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lb.is-open {
    display: flex;
    opacity: 1;
}

.lb-figure {
    position: relative;
    margin: 0;
    max-width: min(1200px, 100%);
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-img {
    max-width: 100%;
    max-height: calc(100vh - clamp(96px, 14vw, 180px));
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

.lb-count {
    position: absolute;
    left: 50%;
    bottom: clamp(-46px, -3.4vw, -34px);
    transform: translateX(-50%);
    font-family: var(--font-code);
    font-size: 0.74rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
}

.lb-btn {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(10, 13, 31, 0.7);
    color: #ffffff;
    font-size: 1.15rem;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.lb-btn:hover,
.lb-btn:focus-visible {
    background: rgba(79, 70, 229, 0.85);
    border-color: rgba(255, 255, 255, 0.6);
}

.lb-close {
    top: clamp(14px, 2.4vw, 30px);
    right: clamp(14px, 2.4vw, 30px);
}

.lb-prev { left: clamp(10px, 2.4vw, 30px); top: 50%; margin-top: -26px; }
.lb-next { right: clamp(10px, 2.4vw, 30px); top: 50%; margin-top: -26px; }

.lb-prev:hover { transform: translateX(-3px); }
.lb-next:hover { transform: translateX(3px); }

@media (max-width: 640px) {
    .lb-btn {
        width: 46px;
        height: 46px;
    }

    .lb-prev { top: auto; bottom: 14px; margin-top: 0; }
    .lb-next { top: auto; bottom: 14px; margin-top: 0; }
    .lb-count { bottom: -38px; }
}

@media (prefers-reduced-motion: reduce) {
    .lb,
    .gal-inner img {
        transition: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none !important;
    }

    .marquee {
        overflow-x: auto;
    }
}

/* ====================================================
   FOOTER — Let's Connect
   ==================================================== */
.site-footer {
    position: relative;
    z-index: 5;
    margin-top: clamp(40px, 6vw, 80px);
    padding: clamp(70px, 9vw, 120px) 24px clamp(34px, 4vw, 52px);
    border-top: 1px solid var(--border-glass);
    background:
        radial-gradient(ellipse 70% 90% at 50% 0%, rgba(129, 140, 248, 0.16), transparent 70%),
        linear-gradient(180deg, rgba(9, 11, 26, 0.6), var(--bg-deep));
    text-align: center;
    overflow: hidden;
}

.footer-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent-cyan);
    margin-bottom: 16px;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 7vw, 5.4rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-title .glow {
    background: linear-gradient(120deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.footer-lead {
    font-size: clamp(0.98rem, 1.5vw, 1.16rem);
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 60ch;
    margin: 0 auto clamp(44px, 5.5vw, 70px);
}

/* Oversized social row — scales up as the footer comes into view */
.footer-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(16px, 2.4vw, 32px);
    margin-bottom: clamp(44px, 5vw, 66px);
}

.social-orb {
    position: relative;
    width: clamp(74px, 9vw, 116px);
    height: clamp(74px, 9vw, 116px);
    display: grid;
    place-items: center;
    text-decoration: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(26px) scale(0.72);
    transition:
        opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

/* Staggered entrance, left to right */
.social-orb:nth-child(1) { transition-delay: 0s, 0s, 0s, 0s, 0s; }
.social-orb:nth-child(2) { transition-delay: 0.09s, 0.09s, 0s, 0s, 0s; }
.social-orb:nth-child(3) { transition-delay: 0.18s, 0.18s, 0s, 0s, 0s; }
.social-orb:nth-child(4) { transition-delay: 0.27s, 0.27s, 0s, 0s, 0s; }
.social-orb:nth-child(5) { transition-delay: 0.36s, 0.36s, 0s, 0s, 0s; }

.site-footer.is-visible .social-orb {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.social-orb i {
    font-size: clamp(1.7rem, 2.6vw, 2.7rem);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

.social-orb:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: var(--accent-cyan);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 34px rgba(56, 189, 248, 0.3);
}

.social-orb:hover i {
    transform: scale(1.16);
    color: var(--accent-cyan);
}

/* Label that slides out underneath on hover */
.social-orb::after {
    content: attr(data-label);
    position: absolute;
    left: 50%;
    bottom: -26px;
    transform: translateX(-50%) translateY(-6px);
    font-family: var(--font-code);
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
    color: var(--accent-cyan);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.social-orb:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 38px;
    margin-bottom: clamp(40px, 5vw, 62px);
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
    color: #05070f;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    box-shadow: 0 12px 34px rgba(56, 189, 248, 0.3);
    transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.footer-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(56, 189, 248, 0.48);
}

.footer-base {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1240px;
    margin: 0 auto;
    padding-top: clamp(26px, 3vw, 38px);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-base nav {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.footer-base a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-base a:hover {
    color: var(--accent-cyan);
}

@media (prefers-reduced-motion: reduce) {
    .social-orb {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* Read-more control on the project rows */
.award-links a.read-more {
    padding: 9px 20px;
    border: 1px solid var(--border-glass-glow);
    background: rgba(147, 130, 255, 0.1);
    color: #ffffff;
    font-size: 0.82rem;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.award-links a.read-more:hover {
    background: rgba(56, 189, 248, 0.16);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateX(3px);
    text-decoration: none;
}

/* Gallery sits on a slightly raised band so the section reads as its own */
.gallery-section {
    background:
        radial-gradient(ellipse 80% 70% at 50% 50%, rgba(129, 140, 248, 0.10), transparent 72%),
        linear-gradient(180deg, transparent, rgba(20, 26, 54, 0.55) 18%, rgba(20, 26, 54, 0.55) 82%, transparent);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ====================================================
   DOSSIER CARDS — spec sheets used by About, Projects,
   the project detail page and the awards page
   ==================================================== */
.dossier-card {
    background: linear-gradient(160deg, rgba(15, 18, 38, 0.86), rgba(9, 11, 26, 0.9));
    border: 1px solid var(--border-glass);
    border-radius: 0;
    padding: 32px 34px;
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.dossier-card:hover {
    border-color: var(--border-glass-glow);
    transform: translateY(-3px);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.55), 0 0 26px rgba(168, 85, 247, 0.14);
}

.dossier-label {
    font-family: var(--font-code);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.6px;
    color: #ffffff;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.dossier-label::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
    flex-shrink: 0;
}

.dossier-text {
    font-size: 0.95rem;
    line-height: 1.72;
    color: var(--text-secondary);
}

.dossier-text strong {
    color: #fff;
    font-weight: 600;
}

.spec-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding: 9px 0;
    font-family: var(--font-code);
    font-size: 0.86rem;
}

.spec-row + .spec-row {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-key {
    color: var(--text-muted);
    white-space: nowrap;
}

.spec-val {
    color: #ffffff;
    font-weight: 600;
    text-align: right;
}

.spec-val em {
    font-style: normal;
    color: var(--accent-cyan);
}

.dossier-divider {
    height: 1px;
    margin: 26px 0 24px;
    background: linear-gradient(90deg, var(--border-glass), transparent);
}

.profile-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.profile-list li {
    position: relative;
    padding-left: 26px;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.profile-list li::before {
    content: '\2192';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-purple);
    font-size: 0.95rem;
}

.profile-list li strong {
    color: #ffffff;
    font-weight: 600;
}

/* ==========================================================
   LIGHT HOME — HERO · ABOUT · PARALLAX TRANSITION
   A single cream band runs from the hero through About, then
   the parallax stage dissolves it back into the deep-space
   sections below.
   ========================================================== */
:root {
    --cream-1: #f7f5f0;
    --cream-2: #f2efe9;
    --cream-3: #ece8f4;
    --cream-4: #e6e1f2;
    --ink: #0f1222;
    --ink-soft: #4a4f66;
    --ink-muted: #7b8098;
    --line-ink: rgba(15, 18, 34, 0.12);
    --indigo-d: #4f46e5;
    --cyan-d: #0891b2;
    --purple-d: #7c3aed;
    --card-light: #ffffff;
    --shadow-soft: 0 18px 46px rgba(24, 20, 60, 0.10);
    --shadow-lift: 0 28px 66px rgba(24, 20, 60, 0.16);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Navbar: glass over the cream hero, dark on scroll ---------- */
/* Opaque, because the strip behind the fixed bar is the dark body */
body.home-light .main-navbar:not(.is-scrolled) {
    background: var(--cream-1);
    border-bottom-color: transparent;
}

body.home-light .main-navbar:not(.is-scrolled) .nav-brand-mark {
    color: var(--ink);
    border-color: rgba(15, 18, 34, 0.7);
}

body.home-light .main-navbar:not(.is-scrolled) .nav-item > a,
body.home-light .main-navbar:not(.is-scrolled) .nav-dd-toggle {
    color: rgba(15, 18, 34, 0.72);
}

body.home-light .main-navbar:not(.is-scrolled) .nav-item > a:hover,
body.home-light .main-navbar:not(.is-scrolled) .nav-dd-toggle:hover,
body.home-light .main-navbar:not(.is-scrolled) .nav-item.is-open .nav-dd-toggle,
body.home-light .main-navbar:not(.is-scrolled) .nav-item > a.active,
body.home-light .main-navbar:not(.is-scrolled) .nav-dd-toggle.active {
    color: var(--indigo-d);
}

body.home-light .main-navbar:not(.is-scrolled) .nav-toggle {
    color: var(--ink);
    border-color: rgba(15, 18, 34, 0.5);
}

@media (max-width: 1080px) {
    body.home-light .main-navbar:not(.is-scrolled) .nav-links {
        background: rgba(250, 249, 246, 0.97);
        border-bottom: 1px solid var(--line-ink);
        box-shadow: 0 22px 44px rgba(24, 20, 60, 0.14);
    }
}

/* ---------- Hero ---------- */
/* ---------- One continuous cream band behind Hero + About ----------
   Both sections are transparent and share this single background, so
   there is no seam where they meet — the colour simply keeps going.
   The band ends fully transparent, dissolving into the dark section
   below it. */
.cream-band {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(ellipse 62% 26% at 82% 3%, rgba(124, 58, 237, 0.16), transparent 66%),
        radial-gradient(ellipse 56% 24% at 12% 11%, rgba(8, 145, 178, 0.15), transparent 68%),
        radial-gradient(ellipse 54% 22% at 88% 60%, rgba(8, 145, 178, 0.10), transparent 66%),
        radial-gradient(ellipse 50% 22% at 6% 78%, rgba(124, 58, 237, 0.10), transparent 66%),
        linear-gradient(180deg,
            var(--cream-1) 0%,
            var(--cream-2) 17%,
            var(--cream-3) 32%,
            var(--cream-4) 44%,
            var(--cream-2) 58%,
            var(--cream-3) 74%,
            #b299e58a 90%,
            #ffffff00 100%);
    color: var(--ink);
}

.jk-hero {
    background: none;
    color: var(--ink);
}

/* Faint engineering grid, masked away behind the wordmark */
.jk-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(15, 18, 34, 0.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 18, 34, 0.045) 1px, transparent 1px);
    background-size: 76px 76px;
    -webkit-mask-image: radial-gradient(ellipse 82% 58% at 50% 38%, transparent 6%, #000 62%, transparent 96%);
    mask-image: radial-gradient(ellipse 82% 58% at 50% 38%, transparent 6%, #000 62%, transparent 96%);
}

.jk-name {
    color: var(--ink);
    background: linear-gradient(178deg, #14172c 0%, #2a2350 58%, #4b3f86 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 10px 34px rgba(79, 70, 229, 0.14));
}

.jk-left {
    color: var(--ink-soft);
}

.jk-left strong {
    color: var(--ink);
}

.jk-stat {
    border-image: linear-gradient(180deg, var(--cyan-d), var(--purple-d)) 1;
    transition: transform 0.4s var(--ease-out);
}

.jk-stat:hover {
    transform: translateX(4px);
}

.jk-stat-val {
    color: var(--ink);
}

.jk-stat-lab {
    color: var(--ink-muted);
}

.jk-btn {
    background: linear-gradient(135deg, var(--indigo-d), var(--cyan-d));
    color: #ffffff;
    border-radius: 2px;
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.28);
}

.jk-btn:hover {
    box-shadow: 0 18px 40px rgba(79, 70, 229, 0.38);
}

.jk-photo.no-photo .photo-placeholder {
    border-color: rgba(15, 18, 34, 0.18);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.jk-photo .photo-placeholder i {
    color: rgba(15, 18, 34, 0.32);
}

.jk-photo .photo-placeholder span {
    color: var(--ink-soft);
}

.jk-photo .photo-placeholder code {
    background: rgba(79, 70, 229, 0.12);
    color: var(--indigo-d);
}

/* ==========================================================
   ABOUT — cream band, light cards.
   Every gap and padding below comes from --about-gap /
   --about-pad, and the type uses only the three families
   already on the site: Outfit for headings and the lead,
   Inter for every piece of running text, Space Grotesk for
   the small uppercase labels.
   ========================================================== */
.about-section {
    --about-gap: clamp(20px, 2.4vw, 34px);
    --about-pad: clamp(26px, 2.8vw, 44px);
    position: relative;
    z-index: 5;
    padding: clamp(64px, 8vw, 118px) 24px clamp(52px, 5.6vw, 88px);
    background: none;
    color: var(--ink);
    font-family: var(--font-main);
}

.about-section > * {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

.about-section .section-header {
    margin-bottom: clamp(38px, 4.4vw, 64px);
}

.about-section .section-subtitle {
    color: var(--indigo-d);
}

.about-section .section-title {
    font-family: var(--font-heading);
    color: var(--ink);
}

.about-section .section-line {
    background: linear-gradient(90deg, var(--cyan-d), var(--purple-d));
}

/* --- Layout rhythm --- */
.about-grid {
    gap: var(--about-gap);
    align-items: stretch;
}

.about-specs {
    margin-top: var(--about-gap);
    gap: var(--about-gap);
}

.about-panel {
    padding: clamp(14px, 1.4vw, 20px);
    background: var(--card-light);
    border: 1px solid rgba(15, 18, 34, 0.09);
    border-radius: 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out),
        border-color 0.4s ease;
}

.about-panel.is-copy {
    padding: var(--about-pad);
}

.about-panel:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 70, 229, 0.28);
    box-shadow: var(--shadow-lift);
}

.about-photo {
    min-height: clamp(300px, 38vw, 560px);
    border-radius: 12px;
    background: linear-gradient(140deg, rgba(8, 145, 178, 0.12), rgba(124, 58, 237, 0.10));
}

.about-photo .photo-note i {
    color: rgba(15, 18, 34, 0.3);
}

.about-photo .photo-note span {
    color: var(--ink-soft);
}

.about-photo .photo-note code {
    background: rgba(79, 70, 229, 0.12);
    color: var(--indigo-d);
}

/* --- Copy typography --- */
.about-lead {
    font-family: var(--font-heading);
    font-size: clamp(1.14rem, 1.62vw, 1.5rem);
    font-weight: 600;
    line-height: 1.44;
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--ink);
    margin-bottom: 0;
    padding-bottom: clamp(20px, 2.1vw, 30px);
    border-bottom: 1px solid rgba(15, 18, 34, 0.10);
}

.about-body {
    margin-top: clamp(20px, 2.1vw, 30px);
}

.about-body p {
    font-family: var(--font-main);
    font-size: clamp(0.95rem, 1.02vw, 1.02rem);
    line-height: 1.76;
    color: var(--ink-soft);
}

.about-body p + p {
    margin-top: 1.1em;
}

.about-body strong {
    font-weight: 600;
    color: var(--ink);
}

.about-body .hl {
    font-weight: 600;
    color: var(--cyan-d);
}

/* --- Dossier cards, scoped so other pages keep the dark version --- */
.about-specs .dossier-card {
    padding: var(--about-pad);
    background: var(--card-light);
    border: 1px solid rgba(15, 18, 34, 0.09);
    border-radius: 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
    color: var(--ink-soft);
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out),
        border-color 0.4s ease;
}

.about-specs .dossier-card:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 70, 229, 0.28);
    box-shadow: var(--shadow-lift);
}

.about-specs .dossier-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 2.6px;
    color: var(--indigo-d);
    margin-bottom: 18px;
}

.about-specs .dossier-label::before {
    background: var(--cyan-d);
    box-shadow: 0 0 8px rgba(8, 145, 178, 0.7);
}

.about-specs .spec-row {
    font-family: var(--font-main);
    font-size: 0.9rem;
    padding: 11px 0;
}

.about-specs .spec-row + .spec-row {
    border-top-color: rgba(15, 18, 34, 0.09);
}

.about-specs .spec-key {
    font-weight: 500;
    color: var(--ink-muted);
}

.about-specs .spec-val {
    font-weight: 600;
    color: var(--ink);
}

.about-specs .spec-val em {
    color: var(--purple-d);
}

.about-specs .profile-list {
    gap: 14px;
}

.about-specs .profile-list li {
    font-family: var(--font-main);
    font-size: 0.94rem;
    line-height: 1.7;
    color: var(--ink-soft);
}

.about-specs .profile-list li::before {
    color: var(--cyan-d);
}

.about-specs .profile-list li strong {
    font-weight: 600;
    color: var(--ink);
}

@media (max-width: 940px) {
    .about-photo {
        min-height: 280px;
    }
}



/* ==========================================================
   PROJECT SLIDER (#projects)
   One project at a time on the same cream sheet as the hero
   and About, with a photo, arrows and dot indicators.
   ========================================================== */
.ps-section {
    position: relative;
    z-index: 5;
    padding: clamp(64px, 8vw, 120px) 0 clamp(60px, 7vw, 104px);
    /* background:
        radial-gradient(ellipse 52% 42% at 12% 8%, rgba(8, 145, 178, 0.10), transparent 66%),
        radial-gradient(ellipse 50% 40% at 92% 76%, rgba(124, 58, 237, 0.10), transparent 66%),
        linear-gradient(180deg, #ffffff00 0%, var(--cream-2) 16%, var(--cream-1) 50%, var(--cream-3) 88%, #ffffff00 100%); */
    color: var(--ink);
    font-family: var(--font-main);
    overflow: hidden;
    background: whitesmoke;
}

.ps-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 64px);
}

.ps-headline {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4.2rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: clamp(30px, 4vw, 58px);
}

/* Stage holds the arrows either side of the slide track */
.ps-stage {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(4px, 1.6vw, 26px);
}

/* The viewport clips; the track slides. All slides sit side by side in
   flow, so the track is always as tall as the tallest slide and the
   height never jumps between transitions. */
.ps-viewport {
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.ps-track {
    display: flex;
    align-items: stretch;
    width: 100%;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}

/* While a finger is down the track follows it directly */
.ps-track.is-dragging {
    transition: none;
    cursor: grabbing;
}

.ps-slide {
    flex: 0 0 100%;
    min-width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    align-items: center;
    gap: clamp(28px, 4.4vw, 76px);
    padding-block: 4px;
}

.ps-field {
    display: block;
    margin-bottom: 14px;
    font-family: var(--font-code);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--indigo-d);
}

.ps-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.5vw, 2.35rem);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.ps-text {
    margin-top: clamp(14px, 1.6vw, 22px);
    max-width: 52ch;
    font-size: clamp(0.96rem, 1.08vw, 1.05rem);
    line-height: 1.68;
    color: var(--ink-soft);
}

.ps-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: clamp(24px, 2.8vw, 38px);
    padding: 15px 32px;
    border: 1px solid var(--ink);
    font-family: var(--font-code);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    background: transparent;
    transition: background 0.28s ease, color 0.28s ease;
}

.ps-btn:hover {
    background: var(--ink);
    color: var(--cream-1);
}

/* Slide photograph */
.ps-media {
    position: relative;
    margin: 0;
    width: 100%;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: #e4e2db;
}

.ps-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ps-media.no-photo {
    border: 1px dashed rgba(15, 18, 34, 0.18);
    background: rgba(255, 255, 255, 0.5);
}

.ps-note {
    display: none;
}

.ps-media.no-photo .ps-note {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: var(--font-code);
    font-size: 0.72rem;
    letter-spacing: 0.6px;
    color: var(--ink-muted);
}

.ps-note i {
    font-size: 1.9rem;
}

.ps-note code {
    font-family: var(--font-code);
    color: var(--indigo-d);
}

/* Arrows */
.ps-arrow {
    display: grid;
    place-items: center;
    width: clamp(38px, 3.4vw, 48px);
    height: clamp(38px, 3.4vw, 48px);
    border: none;
    background: transparent;
    font-size: clamp(1.2rem, 1.8vw, 1.7rem);
    color: rgba(15, 18, 34, 0.42);
    cursor: pointer;
    transition: color 0.25s ease, transform 0.25s ease;
}

.ps-arrow:hover {
    color: var(--ink);
}

.ps-prev:hover { transform: translateX(-3px); }
.ps-next:hover { transform: translateX(3px); }

/* Dots */
.ps-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: clamp(34px, 4vw, 58px);
}

.ps-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(15, 18, 34, 0.2);
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.ps-dot:hover {
    background: rgba(15, 18, 34, 0.42);
}

.ps-dot.is-active {
    background: var(--indigo-d);
    transform: scale(1.25);
}

@media (max-width: 860px) {
    .ps-stage {
        grid-template-columns: minmax(0, 1fr);
    }

    .ps-slide {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .ps-media {
        order: -1;
        aspect-ratio: 4 / 3;
    }

    .ps-text {
        max-width: none;
    }

    /* Arrows drop below the slide, beside the dots */
    .ps-arrow {
        position: absolute;
        bottom: calc(-1 * clamp(34px, 4vw, 58px) - 14px);
        z-index: 2;
    }

    .ps-prev { left: 0; }
    .ps-next { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .ps-track {
        transition: none;
    }
}


/* ==========================================================
   UI REFINEMENT PASS
   Typography measure, vertical rhythm, focus states and
   restrained micro-interactions. Content and palette are
   unchanged; this layer only adjusts how they are presented.
   ========================================================== */
:root {
    --measure: 68ch;
    --rhythm-lg: clamp(88px, 10.5vw, 138px);
    --rhythm-md: clamp(46px, 5.4vw, 76px);
    --rhythm-sm: clamp(18px, 2.2vw, 30px);
}

/* ---------- Accessibility ---------- */

/* One visible focus ring everywhere, tuned per background */
:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 3px;
}

body.home-light .jk-hero :focus-visible,
body.home-light .about-section :focus-visible,
body.home-light .ps-section :focus-visible,
body.page-light :focus-visible {
    outline-color: var(--indigo-d, #4f46e5);
}

/* Keyboard users get a way past the fixed chrome */
.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 20000;
    padding: 12px 20px;
    background: #ffffff;
    color: #0f1222;
    font-family: var(--font-code);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

/* Comfortable tap targets on touch devices */
@media (pointer: coarse) {
    .nav-item > a,
    .nav-dd-toggle,
    .nav-dd-menu a,
    .footer-base a {
        padding-top: 12px;
        padding-bottom: 12px;
    }
}

/* ---------- Typography: hierarchy and measure ---------- */
.section-title {
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.section-subtitle {
    letter-spacing: 3.4px;
}

.section-header {
    margin-bottom: var(--rhythm-md);
}

/* Long-form copy gets a comfortable reading width */
.curiosity-text,
.footer-lead,
.dossier-text {
    max-width: var(--measure);
}

.curiosity-text {
    line-height: 1.78;
}

/* ---------- Hero: more room, clearer hierarchy ---------- */
.jk-inner {
    padding-top: clamp(26px, 4.2vw, 58px);
}

.jk-name {
    line-height: 0.92;
}

.jk-cols {
    margin-top: clamp(40px, 8vw, 116px);
}

.jk-left {
    line-height: 1.5;
}

.jk-btn {
    margin-top: 14px;
}

/* ---------- Section rhythm ---------- */
.curiosity-headline {
    line-height: 1.05;
    margin-bottom: var(--rhythm-md);
}

.curiosity-text {
    margin-bottom: var(--rhythm-md);
}

.stat-row {
    margin-bottom: var(--rhythm-md);
}

.gallery-head {
    margin-bottom: var(--rhythm-md);
}

/* ---------- Micro-interactions ---------- */

/* Staggered reveal: each element in a group follows the one before it */
.reveal {
    transition-delay: calc(var(--reveal-i, 0) * 70ms);
}

.jk-btn,
.curiosity-cta,
.footer-cta,
.ps-btn {
    will-change: transform;
}

.jk-btn:active,
.curiosity-cta:active,
.footer-cta:active,
.ps-btn:active {
    transform: translateY(1px);
}

/* ---------- Footer: a firmer close to the page ---------- */
.site-footer {
    padding-top: clamp(84px, 10vw, 140px);
}

.footer-title {
    line-height: 1.04;
    letter-spacing: -0.03em;
}

.footer-lead {
    margin-left: auto;
    margin-right: auto;
    line-height: 1.72;
}

.footer-base {
    color: var(--text-secondary);
}

.footer-base a:hover,
.footer-base a:focus-visible {
    color: var(--accent-cyan);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition-delay: 0ms !important;
    }
}

/* ---------- Wider dropdowns for the per-topic menus ---------- */
.nav-dd-wide {
    min-width: 306px;
}

/* Parent menu stays lit while one of its pages is open */
.main-navbar .nav-dd-toggle[data-page-group] {
    color: var(--accent-cyan);
}

body.home-light .main-navbar:not(.is-scrolled) .nav-dd-toggle[data-page-group] {
    color: var(--indigo-d);
}

.main-navbar .nav-dd-toggle[data-page-group]::after {
    transform: scaleX(1);
}


/* ==========================================================
   NAVBAR — one appearance across the whole site
   Height, padding, font size, spacing and alignment are left
   exactly as they are; this only stops the bar changing its
   COLOUR between the homepage and the inner pages, and stops
   it swapping to dark on scroll. The target is the homepage's
   unscrolled bar, which is the correct one.
   ========================================================== */
.main-navbar,
.main-navbar.is-scrolled,
body.home-light .main-navbar,
body.home-light .main-navbar.is-scrolled,
body.page-light .main-navbar,
body.page-light .main-navbar.is-scrolled {
    background: #f7f5f0;
    border-bottom: 1px solid rgba(15, 18, 34, 0.08);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.main-navbar .nav-brand-mark,
.main-navbar.is-scrolled .nav-brand-mark,
body.home-light .main-navbar .nav-brand-mark,
body.page-light .main-navbar .nav-brand-mark {
    color: #0f1222;
    border-color: rgba(15, 18, 34, 0.7);
}

.main-navbar .nav-item > a,
.main-navbar .nav-dd-toggle,
.main-navbar.is-scrolled .nav-item > a,
.main-navbar.is-scrolled .nav-dd-toggle,
body.home-light .main-navbar .nav-item > a,
body.home-light .main-navbar .nav-dd-toggle,
body.page-light .main-navbar .nav-item > a,
body.page-light .main-navbar .nav-dd-toggle {
    color: rgba(15, 18, 34, 0.72);
}

body .main-navbar .nav-item > a:hover,
body .main-navbar .nav-dd-toggle:hover,
body .main-navbar .nav-item.is-open .nav-dd-toggle,
body .main-navbar .nav-item > a.active,
body .main-navbar .nav-dd-toggle.active,
body .main-navbar .nav-dd-toggle[data-page-group],
body .main-navbar.is-scrolled .nav-item > a:hover,
body .main-navbar.is-scrolled .nav-dd-toggle:hover,
body .main-navbar.is-scrolled .nav-item.is-open .nav-dd-toggle,
body .main-navbar.is-scrolled .nav-item > a.active,
body .main-navbar.is-scrolled .nav-dd-toggle.active,
body .main-navbar.is-scrolled .nav-dd-toggle[data-page-group] {
    color: #4f46e5;
}

.main-navbar .nav-toggle,
.main-navbar.is-scrolled .nav-toggle,
body.home-light .main-navbar .nav-toggle,
body.page-light .main-navbar .nav-toggle {
    color: #0f1222;
    border-color: rgba(15, 18, 34, 0.5);
}

/* Dropdown panel, same on every page */
.main-navbar .nav-dd-menu,
.main-navbar.is-scrolled .nav-dd-menu,
body.page-light .main-navbar .nav-dd-menu {
    background: #f7f5f0;
    border-color: rgba(15, 18, 34, 0.10);
    box-shadow: 0 20px 46px rgba(24, 20, 60, 0.16);
}

.main-navbar .nav-dd-menu a,
.main-navbar.is-scrolled .nav-dd-menu a,
body.page-light .main-navbar .nav-dd-menu a {
    color: rgba(15, 18, 34, 0.82);
}

.main-navbar .nav-dd-menu a i {
    color: rgba(15, 18, 34, 0.45);
}

body .main-navbar .nav-dd-menu a:hover,
body .main-navbar.is-scrolled .nav-dd-menu a:hover {
    background: rgba(79, 70, 229, 0.10);
    color: #0f1222;
}

@media (max-width: 1080px) {
    .main-navbar .nav-links,
    .main-navbar.is-scrolled .nav-links,
    body.home-light .main-navbar .nav-links,
    body.page-light .main-navbar .nav-links {
        background: #f7f5f0;
        border-bottom-color: rgba(15, 18, 34, 0.10);
        box-shadow: 0 22px 44px rgba(24, 20, 60, 0.14);
    }

    .main-navbar .nav-item > a,
    .main-navbar .nav-dd-toggle,
    .main-navbar.is-scrolled .nav-item > a,
    .main-navbar.is-scrolled .nav-dd-toggle {
        border-bottom-color: rgba(15, 18, 34, 0.10);
    }
}

/* The homepage rule body.home-light .main-navbar:not(.is-scrolled) carries
   four classes and was still cancelling the hairline, leaving the homepage
   bar without the 1px underline every other page had. Matched here so the
   bar is pixel-identical everywhere. */
body.home-light .main-navbar:not(.is-scrolled),
body.home-light .main-navbar.is-scrolled,
body.page-light .main-navbar:not(.is-scrolled),
body.page-light .main-navbar.is-scrolled,
body .main-navbar:not(.is-scrolled),
body .main-navbar.is-scrolled {
    background: #f7f5f0;
    border-bottom: 1px solid rgba(15, 18, 34, 0.08);
    box-shadow: none;
}

body.home-light .main-navbar:not(.is-scrolled) .nav-brand-mark,
body.page-light .main-navbar:not(.is-scrolled) .nav-brand-mark,
body .main-navbar:not(.is-scrolled) .nav-brand-mark,
body .main-navbar.is-scrolled .nav-brand-mark {
    color: #0f1222;
    border-color: rgba(15, 18, 34, 0.7);
}

body.home-light .main-navbar:not(.is-scrolled) .nav-item > a,
body.home-light .main-navbar:not(.is-scrolled) .nav-dd-toggle,
body.page-light .main-navbar:not(.is-scrolled) .nav-item > a,
body.page-light .main-navbar:not(.is-scrolled) .nav-dd-toggle,
body .main-navbar:not(.is-scrolled) .nav-item > a,
body .main-navbar:not(.is-scrolled) .nav-dd-toggle,
body .main-navbar.is-scrolled .nav-item > a,
body .main-navbar.is-scrolled .nav-dd-toggle {
    color: rgba(15, 18, 34, 0.72);
}

body.home-light .main-navbar:not(.is-scrolled) .nav-item > a:hover,
body.home-light .main-navbar:not(.is-scrolled) .nav-dd-toggle:hover,
body.home-light .main-navbar:not(.is-scrolled) .nav-item.is-open .nav-dd-toggle,
body.home-light .main-navbar:not(.is-scrolled) .nav-item > a.active,
body.home-light .main-navbar:not(.is-scrolled) .nav-dd-toggle.active,
body.home-light .main-navbar:not(.is-scrolled) .nav-dd-toggle[data-page-group],
body.page-light .main-navbar:not(.is-scrolled) .nav-item > a:hover,
body.page-light .main-navbar:not(.is-scrolled) .nav-dd-toggle:hover,
body.page-light .main-navbar:not(.is-scrolled) .nav-item.is-open .nav-dd-toggle,
body.page-light .main-navbar:not(.is-scrolled) .nav-dd-toggle[data-page-group] {
    color: #4f46e5;
}

body.home-light .main-navbar:not(.is-scrolled) .nav-toggle,
body.page-light .main-navbar:not(.is-scrolled) .nav-toggle,
body .main-navbar:not(.is-scrolled) .nav-toggle,
body .main-navbar.is-scrolled .nav-toggle {
    color: #0f1222;
    border-color: rgba(15, 18, 34, 0.5);
}

/* ==========================================================
   NAVBAR — "you are here" state
   The top-level item, or the dropdown entry for the exact
   project page being viewed, is marked so the current page
   is obvious at a glance.
   ========================================================== */
body .main-navbar .nav-item > a.is-current,
body .main-navbar .nav-dd-toggle.is-current-parent,
body .main-navbar.is-scrolled .nav-item > a.is-current,
body .main-navbar.is-scrolled .nav-dd-toggle.is-current-parent,
body.home-light .main-navbar:not(.is-scrolled) .nav-item > a.is-current,
body.page-light .main-navbar:not(.is-scrolled) .nav-item > a.is-current {
    color: #4f46e5;
}

/* The underline that hover uses, held open for the current page */
body .main-navbar .nav-item > a.is-current::after,
body .main-navbar .nav-dd-toggle.is-current-parent::after {
    transform: scaleX(1);
}

/* The exact project inside the dropdown */
body .main-navbar .nav-dd-menu a.is-current,
body .main-navbar.is-scrolled .nav-dd-menu a.is-current,
body.page-light .main-navbar .nav-dd-menu a.is-current {
    position: relative;
    background: rgba(79, 70, 229, 0.09);
    color: #4f46e5;
    font-weight: 700;
}

body .main-navbar .nav-dd-menu a.is-current::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: #4f46e5;
}

body .main-navbar .nav-dd-menu a.is-current i {
    color: #4f46e5;
    opacity: 1;
}

@media (max-width: 1080px) {
    body .main-navbar .nav-dd-menu a.is-current {
        background: rgba(79, 70, 229, 0.12);
    }
}
