
/* VENNIX ROOT — DESIGN SYSTEM */

:root {
    --bg: #08090f;
    --text: #f5f5ff;
    --muted: #a4a8bd;
    --accent: #a78bfa;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);

    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(120, 75, 200, 0.25),
            transparent 40%
        ),
        var(--bg);
}

/* HEADER */

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 7%;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

header h1 {
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: 0.2em;
}

header p {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
}

/* HERO SECTION */

mmain {
    padding: 0 7%;
}
#home {
    width: 100%;
    max-width: 1100px;
}

#home h2 {
    max-width: 950px;
    margin: 0;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 1.05;
    letter-spacing: -0.06em;

    background: linear-gradient(
        135deg,
        #ffffff 45%,
        #a78bfa 100%
    );

    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

#home p {
    max-width: 550px;
    margin-top: 32px;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* RESPONSIVE */

@media (max-width: 600px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    main {
        padding: 70px 7%;
    }
}

/* NAVIGATION */

nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent);
}

/* HERO LAYOUT */

#home {
    position: relative;
    isolation: isolate;
    min-height: 85vh;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

/* SMALL LABEL */

.eyebrow {
    display: block;
    margin-bottom: 25px;

    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
}

/* HERO BUTTONS */

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 35px;
}

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;

    padding: 16px 28px;
    border-radius: 6px;

    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;

    cursor: pointer;
    transition: all 0.3s ease;
}

/* PRIMARY BUTTON */

.primary-button {
    background: var(--accent);
    color: #08090f;
    text-decoration: none;
    border: 1px solid var(--accent);
}

.primary-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 35px rgba(167,139,250,0.3);
}

/* SECONDARY BUTTON */

.ghost-button {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.25);
}

.ghost-button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* INTERACTIVE AMBIENT GLOW */

#home::before {
    content: "";
    position: absolute;
    inset: 0;

    background: radial-gradient(
        circle at 65% 45%,
        rgba(167,139,250,0.35),
        transparent 60%
    );

    filter: blur(30px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    z-index: -1;
}

body.glow-active #home::before {
    opacity: 1;
}

/* PROJECT SECTION */

#projects {
    max-width: 1100px;
    min-height: 45vh;
    padding: 100px 0;

    border-top: 1px solid rgba(255,255,255,0.1);
}

#projects h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: -0.04em;
}

#projects p {
    color: var(--muted);
    line-height: 1.8;
}

/* MOBILE */

@media (max-width: 600px) {
    nav {
        gap: 20px;
    }

    #home {
        min-height: 70vh;
    }

    .hero-actions {
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .primary-button,
    .ghost-button,
    nav a,
    #home::before {
        transition: none;
    }
}

/* ===================================
   VENNIX ROOT — ARTISTIC HERO
=================================== */

/* TWO-COLUMN LAYOUT */

.hero-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

/* ANIMATED TYPOGRAPHY */

#home h2 {
    font-size: clamp(2.8rem, 5.8vw, 6.5rem);
    line-height: 1.08;
    letter-spacing: -0.055em;
}

.hero-line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
    animation: textReveal 0.9s ease forwards;
}

.hero-line:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-line:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes textReveal {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 3D VISUAL CONTAINER */

.hero-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 450px;
    pointer-events: none;
}

.orb-stage {
    position: relative;
    width: min(100%, 420px);
    aspect-ratio: 1;
    transform-style: preserve-3d;

    transform:
        perspective(900px)
        rotateX(var(--rotate-x, 0deg))
        rotateY(var(--rotate-y, 0deg));

    transition: transform 0.2s ease-out;
}

.orb-assembly {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    animation: floating 6s ease-in-out infinite;
}

/* FLOATING ANIMATION */

@keyframes floating {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* CENTRAL ORB */

.orb-core {
    position: absolute;
    inset: 22%;
    border-radius: 50%;

    background: radial-gradient(
        circle at 30% 25%,
        #ffffff 0%,
        #d8b4fe 12%,
        #8b5cf6 35%,
        #38216c 65%,
        #08090f 100%
    );

    box-shadow:
        0 0 50px rgba(167,139,250,0.5),
        0 0 120px rgba(139,92,246,0.2),
        inset -20px -20px 45px rgba(0,0,0,0.5);

    transform: translateZ(30px);
}

/* GLOWING HALO */

.orb-halo {
    position: absolute;
    inset: 13%;
    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(167,139,250,0.2),
        transparent 70%
    );

    filter: blur(20px);
}

/* ORBITAL RINGS */

.orbit {
    position: absolute;
    border: 1px solid rgba(200,170,255,0.6);
    border-radius: 50%;
    box-shadow: 0 0 18px rgba(167,139,250,0.2);
}

.orbit-one {
    inset: 8%;
    transform: rotate(35deg) rotateX(72deg);
}

.orbit-two {
    inset: 14%;
    transform: rotate(-30deg) rotateY(68deg);
}

.orbit-three {
    inset: 7%;
    transform: rotate(80deg) rotateX(78deg);
}

/* VISUAL CAPTION */

.orb-caption {
    position: absolute;
    bottom: 10px;

    color: var(--muted);
    font-family: monospace;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
}

/* MOBILE RESPONSIVE */

@media (max-width: 800px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hero-visual {
        min-height: 320px;
    }

    .orb-stage {
        width: min(76vw, 320px);
    }

    #home h2 {
        font-size: clamp(2.7rem, 11vw, 4.5rem);
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    .hero-line,
    .orb-assembly {
        animation: none;
    }

    .hero-line {
        opacity: 1;
        transform: none;
    }

    .orb-stage {
        transition: none;
    }
}

/* ===================================
   VENNIX ROOT — PROJECT GALLERY
=================================== */

.projects-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 40px;
    margin-bottom: 45px;
}

.projects-heading h2 {
    margin: 0;
}

.accent-dot {
    color: var(--accent);
}

.projects-heading p {
    max-width: 350px;
    font-size: 0.9rem;
}

/* CATEGORY FILTERS */

.project-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 35px;
}

.filter-button {
    padding: 12px 22px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.15);

    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.8rem;

    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-button:hover {
    color: var(--text);
    border-color: var(--accent);
}

.filter-button.is-active {
    background: var(--accent);
    color: #08090f;
    border-color: var(--accent);
}

/* PROJECT GRID */

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* PROJECT CARD */

.project-card {
    min-width: 0;
    overflow: hidden;

    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 14px;

    transition:
        transform 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(167,139,250,0.5);
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.project-card[hidden] {
    display: none;
}

/* ARTWORK CONTAINER */

.project-art {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    isolation: isolate;
}

/* ABSTRACT LIGHT */

.project-art::before {
    content: "";
    position: absolute;
    width: 65%;
    aspect-ratio: 1;
    border-radius: 50%;

    background: rgba(255,255,255,0.15);
    filter: blur(45px);
    z-index: -1;
}

/* INDIVIDUAL COLOR THEMES */

.art-web {
    background: linear-gradient(135deg, #16102e, #5834a5);
}

.art-visual {
    background: linear-gradient(135deg, #101827, #31566c);
}

.art-experiment {
    background: linear-gradient(135deg, #221128, #9b426c);
}

/* ARTISTIC SYMBOL */

.art-symbol {
    font-size: clamp(5rem, 9vw, 9rem);
    line-height: 1;
    color: rgba(255,255,255,0.85);

    text-shadow: 0 0 40px rgba(255,255,255,0.2);

    transition: transform 0.6s ease;
}

.project-card:hover .art-symbol {
    transform: rotate(-12deg) scale(1.15);
}

/* ART LABELS */

.art-index,
.art-label {
    position: absolute;
    font-family: monospace;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.65);
}

.art-index {
    top: 20px;
    left: 20px;
}

.art-label {
    right: 20px;
    bottom: 20px;
}

/* PROJECT INFORMATION */

.project-info {
    padding: 25px;
}

.project-category {
    color: var(--accent);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
}

.project-info h3 {
    margin: 12px 0;
    font-size: 1.5rem;
    letter-spacing: -0.04em;
}

.project-info > p {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.7;
}

/* EXPANDABLE DETAILS */

.project-details {
    margin-top: 25px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.project-details summary {
    color: var(--text);
    font-size: 0.8rem;
    cursor: pointer;
}

.project-details summary:hover {
    color: var(--accent);
}

.project-details p {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.7;
}

.filter-status {
    margin-top: 25px;
    color: var(--muted);
    font-size: 0.75rem;
}

/* TABLET */

@media (max-width: 950px) {
    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* MOBILE */

@media (max-width: 650px) {
    .projects-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-filters {
        gap: 8px;
    }

    .filter-button {
        padding: 10px 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-card,
    .art-symbol,
    .filter-button {
        transition: none;
    }
}

/* ===================================
   VENNIX ROOT — SCROLL EXPERIENCE
=================================== */

/* SCROLL PROGRESS INDICATOR */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background: linear-gradient(
        90deg,
        #7c3aed,
        #a78bfa,
        #e9d5ff
    );

    transform: scaleX(0);
    transform-origin: left center;

    z-index: 9999;
    pointer-events: none;

    box-shadow: 0 0 15px rgba(167,139,250,0.5);
}

/* ==================================
   MALVIN LAB — ABOUT SECTION
================================== */

#about {
    max-width: 1100px;
    margin: 0 auto;
    padding: 120px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ABOUT HEADING */

.about-heading {
    margin-bottom: 80px;
}

.about-heading h2 {
    margin: 0;
    font-size: clamp(3.5rem, 8vw, 8rem);
    line-height: 0.95;
    letter-spacing: -0.07em;
}

.about-heading h2 span {
    display: block;
    color: var(--accent);
}

/* TWO-COLUMN LAYOUT */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

/* LEFT SIDE */

.about-intro {
    position: relative;
    min-height: 400px;
}

.about-label,
.about-number {
    font-family: monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--accent);
}

.about-intro h3 {
    position: relative;
    z-index: 1;
    max-width: 480px;
    font-size: clamp(2rem, 3.5vw, 3.8rem);
    line-height: 1.15;
    letter-spacing: -0.05em;
}

.about-intro h3 em {
    color: var(--accent);
    font-style: normal;
}

/* DECORATIVE ELEMENT */

.about-decoration {
    position: absolute;
    right: 5%;
    bottom: 0;
    font-size: 12rem;
    line-height: 1;
    color: rgba(167,139,250,0.12);
    pointer-events: none;
}

/* RIGHT SIDE */

.about-content {
    padding-top: 10px;
}

.about-description {
    margin-top: 25px;
    font-size: 1.35rem;
    line-height: 1.7;
    color: var(--text);
}

.about-secondary {
    margin-top: 25px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.9;
}

.about-divider {
    height: 1px;
    margin: 45px 0;
    background: rgba(255,255,255,0.1);
}

/* SKILL TAGS */

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.skill-tags span {
    padding: 12px 18px;
    border: 1px solid rgba(167,139,250,0.25);
    border-radius: 100px;
    color: var(--muted);
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.skill-tags span:hover {
    color: var(--text);
    background: rgba(167,139,250,0.1);
    border-color: var(--accent);
    transform: translateY(-3px);
}

/* CREATIVE PROCESS */

.creative-process {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 100px;
}

.process-item {
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.process-item > span {
    color: var(--accent);
    font-family: monospace;
    font-size: 0.7rem;
}

.process-item h4 {
    margin: 25px 0 12px;
    font-size: 1.8rem;
}

.process-item p {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.7;
}

/* RESPONSIVE */

@media (max-width: 800px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-intro {
        min-height: 260px;
    }

    .creative-process {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    #about {
        padding: 80px 0;
    }

    .about-heading {
        margin-bottom: 50px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .skill-tags span {
        transition: none;
    }
}

/* ==================================
   MALVIN LAB — CONTACT
================================== */

#contact {
    position: relative;
    isolation: isolate;
    max-width: 1100px;
    margin: 0 auto;
    padding: 120px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

#contact::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background: radial-gradient(
        circle at 70% 40%,
        rgba(139,92,246,0.12),
        transparent 55%
    );
}

/* TOP LABELS */

.contact-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.contact-coordinate {
    font-family: monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--muted);
}

/* LARGE TYPOGRAPHY */

.contact-heading {
    margin: 80px 0 100px;
}

.contact-heading h2 {
    margin: 0;
    font-size: clamp(3.5rem, 9vw, 9rem);
    line-height: 0.95;
    letter-spacing: -0.075em;
}

.contact-heading h2 span {
    display: block;
    color: var(--accent);
}

.contact-heading p {
    max-width: 450px;
    margin-top: 35px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
}

/* CONTACT GRID */

.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 70px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.contact-label {
    display: block;
    margin-bottom: 30px;
    color: var(--accent);
    font-family: monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
}

/* EMAIL */

.contact-email > a {
    display: block;
    width: fit-content;
    max-width: 100%;
    overflow-wrap: anywhere;

    color: var(--text);
    font-size: clamp(1.1rem, 2.5vw, 2.5rem);
    text-decoration: none;
    letter-spacing: -0.04em;
    transition: color 0.3s ease;
}

.contact-email > a:hover {
    color: var(--accent);
}

/* COPY BUTTON */

.copy-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    margin-top: 25px;
    padding: 12px 0;

    background: none;
    border: none;
    color: var(--muted);
    font: inherit;
    font-size: 0.85rem;

    cursor: pointer;
    transition: color 0.3s ease;
}

.copy-button:hover {
    color: var(--accent);
}

#copy-status {
    min-height: 1.5em;
    color: var(--accent);
    font-size: 0.8rem;
}

/* SOCIAL LINKS */

.contact-social a {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);

    color: var(--text);
    text-decoration: none;
    font-size: 1rem;

    transition: color 0.3s ease;
}

.contact-social a:hover {
    color: var(--accent);
}

/* ==================================
   MALVIN LAB — FOOTER
================================== */

.site-footer {
    padding: 60px 7% 30px;
    background: #05060a;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
    font-size: clamp(2rem, 5vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.06em;
}

.footer-brand span {
    color: var(--accent);
}

.site-footer > p {
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 80px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);

    font-family: monospace;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.footer-bottom a {
    color: var(--text);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--accent);
}

/* RESPONSIVE */

@media (max-width: 700px) {
    #contact {
        padding: 80px 0;
    }

    .contact-heading {
        margin: 60px 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .contact-coordinate {
        display: none;
    }

    .footer-bottom {
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-email > a,
    .copy-button,
    .contact-social a {
        transition: none;
    }
}

/* ==================================
   MALVIN LAB — RESPONSIVE HEADER
================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(8, 9, 15, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

/* BRAND */

.site-header h1 {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: 0.14em;
}

.brand {
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
}

.brand span {
    color: var(--accent);
}

/* MENU BUTTON — HIDDEN ON DESKTOP */

.menu-toggle {
    display: none;

    position: relative;
    width: 44px;
    height: 44px;

    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;

    background: rgba(255,255,255,0.04);
    color: var(--text);

    cursor: pointer;
}

/* HAMBURGER LINES */

.menu-toggle span {
    position: absolute;
    left: 11px;

    width: 20px;
    height: 2px;

    background: currentColor;
    border-radius: 2px;

    transition: transform 0.3s ease;
}

.menu-toggle span:first-child {
    top: 16px;
}

.menu-toggle span:last-child {
    top: 26px;
}

/* KEYBOARD ACCESSIBILITY */

.site-header a:focus-visible,
.menu-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* ACCOUNT FOR STICKY HEADER */

html {
    scroll-padding-top: 90px;
}

/* ==================================
   MOBILE NAVIGATION
================================== */

@media (max-width: 768px) {

    .site-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;

        padding: 18px 6%;
    }

    .menu-toggle {
        display: block;
        flex-shrink: 0;
    }

    /* MOBILE MENU PANEL */

    .site-header nav {
        position: absolute;

        top: calc(100% - 1px);
        left: 6%;
        right: 6%;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        padding: 14px;

        background: rgba(15, 14, 27, 0.98);
        border: 1px solid rgba(167,139,250,0.2);
        border-radius: 12px;

        box-shadow: 0 25px 60px rgba(0,0,0,0.4);

        /* CLOSED STATE */

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transform: translateY(-10px);

        transition:
            opacity 0.3s ease,
            transform 0.3s ease,
            visibility 0.3s ease;
    }

    .site-header nav a {
        display: block;

        padding: 17px 18px;

        color: var(--text);
        font-size: 0.95rem;

        border-bottom: 1px solid rgba(255,255,255,0.07);
    }

    .site-header nav a:last-child {
        border-bottom: none;
    }

    /* OPEN STATE */

    .site-header.menu-open nav {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        transform: translateY(0);
    }

    /* HAMBURGER BECOMES X */

    .site-header.menu-open
    .menu-toggle span:first-child {
        transform: translateY(5px) rotate(45deg);
    }

    .site-header.menu-open
    .menu-toggle span:last-child {
        transform: translateY(-5px) rotate(-45deg);
    }

}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    .site-header nav,
    .menu-toggle span {
        transition: none;
    }

}

/* ==================================
   MALVIN LAB — MOBILE REFINEMENT
================================== */

@media (max-width: 768px) {

    /* PAGE SPACING */

    main {
        padding: 0 6%;
    }

    /* HERO */

    #home {
        padding: 65px 0 45px;
        min-height: auto;
    }

    .hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        width: 100%;
    }

    .hero-visual {
        min-height: 300px;
    }

    /* PROJECTS */

    #projects {
        padding: 75px 0;
    }

    /* ABOUT */

    #about {
        padding: 75px 0;
    }

    /* CONTACT */

    #contact {
        padding: 75px 0;
    }

}

/* SMALL PHONES */

@media (max-width: 480px) {

    .site-header h1 {
        font-size: 0.9rem;
    }

    #home h2 {
        font-size: clamp(2.5rem, 10.5vw, 3.5rem);
    }

    #home p {
        font-size: 0.95rem;
    }

    .hero-actions {
        width: 100%;
    }

    .primary-button,
    .ghost-button {
        padding: 14px 18px;
        font-size: 0.8rem;
    }

    .orb-stage {
        width: min(75vw, 290px);
    }

    .about-heading h2 {
        font-size: clamp(2.7rem, 12vw, 4rem);
    }

    .about-intro {
        min-height: auto;
    }

    .about-decoration {
        display: none;
    }

    .contact-heading h2 {
        font-size: clamp(2.4rem, 10vw, 3.2rem);
        overflow-wrap: anywhere;
    }

    .contact-email > a {
        font-size: 1.1rem;
    }

    .site-footer {
        padding: 50px 6% 25px;
    }

}

/* ==================================
   MALVIN LAB — CINEMATIC PRELOADER
================================== */

/* DEFAULT: HIDDEN WITHOUT JAVASCRIPT */

.lab-preloader {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;

    background:
        radial-gradient(
            circle at center,
            #171026 0%,
            #08090f 65%
        );

    opacity: 1;
    visibility: visible;

    transition:
        opacity 0.65s ease,
        visibility 0.65s ease;
}

/* SHOW ONLY WHEN ENABLED */

.has-preloader .lab-preloader {
    display: grid;
    place-items: center;

    /* SAFETY FALLBACK */
    animation: preloaderFailsafe 0s linear 5s forwards;
}

/* CONTENT */

.preloader-content {
    width: min(80%, 450px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* SMALL TOP TEXT */

.preloader-kicker {
    color: var(--accent);
    font-family: monospace;
    font-size: 0.65rem;
    letter-spacing: 0.25em;

    animation: preloaderReveal 0.8s ease both;
}

/* BRAND NAME */

.preloader-brand {
    margin: 30px 0;
    color: var(--text);

    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.07em;
    white-space: nowrap;

    animation: preloaderReveal 0.9s ease 0.1s both;
}

.preloader-brand span {
    color: var(--accent);
}

/* LOADING LINE */

.preloader-track {
    width: 100%;
    height: 2px;
    overflow: hidden;

    background: rgba(255,255,255,0.1);
}

.preloader-fill {
    width: 100%;
    height: 100%;

    background: linear-gradient(
        90deg,
        #6d28d9,
        #a78bfa,
        #e9d5ff
    );

    transform: scaleX(0);
    transform-origin: left center;

    animation: preloaderProgress 1.2s ease-out forwards;
}

/* BOTTOM CAPTION */

.preloader-caption {
    margin-top: 25px;

    color: var(--muted);
    font-family: monospace;
    font-size: 0.6rem;
    letter-spacing: 0.18em;

    animation: preloaderReveal 0.9s ease 0.2s both;
}

/* ANIMATIONS */

@keyframes preloaderReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes preloaderProgress {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

/* EXIT STATE */

.lab-preloader.is-exiting {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* AUTOMATIC FALLBACK IF JS FAILS */

@keyframes preloaderFailsafe {
    to {
        visibility: hidden;
        pointer-events: none;
    }
}

/* MOBILE */

@media (max-width: 480px) {
    .preloader-brand {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }

    .preloader-kicker,
    .preloader-caption {
        font-size: 0.55rem;
        letter-spacing: 0.12em;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    .preloader-kicker,
    .preloader-brand,
    .preloader-fill,
    .preloader-caption {
        animation: none;
    }
}

/* ==================================
   MALVIN LAB — CUSTOM CURSOR
================================== */

/* HIDDEN BY DEFAULT */

.cursor-dot,
.cursor-ring {
    display: none;

    position: fixed;
    top: 0;
    left: 0;

    border-radius: 50%;
    pointer-events: none;

    opacity: 0;

    transform:
        translate3d(-100px, -100px, 0)
        translate(-50%, -50%);

    transition:
        opacity 0.2s ease,
        width 0.25s ease,
        height 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

/* DESKTOP MOUSE ONLY */

@media (
    hover: hover
) and (
    pointer: fine
) and (
    prefers-reduced-motion: no-preference
) {

    .has-custom-cursor body,
    .has-custom-cursor a,
    .has-custom-cursor button,
    .has-custom-cursor summary {
        cursor: none !important;
    }

    .has-custom-cursor .cursor-dot,
    .has-custom-cursor .cursor-ring {
        display: block;
    }

}

/* CENTER DOT */

.cursor-dot {
    width: 7px;
    height: 7px;

    background: #e9d5ff;
    box-shadow: 0 0 15px rgba(167,139,250,0.8);

    z-index: 9999;
}

/* OUTER RING */

.cursor-ring {
    width: 38px;
    height: 38px;

    border: 1px solid rgba(167,139,250,0.8);
    background: rgba(167,139,250,0.05);

    box-shadow: 0 0 25px rgba(167,139,250,0.15);

    z-index: 9998;
}

/* CURSOR VISIBLE */

.cursor-dot.is-visible,
.cursor-ring.is-visible {
    opacity: 1;
}

/* INTERACTIVE ELEMENT HOVER */

.cursor-interactive .cursor-ring {
    width: 62px;
    height: 62px;

    background: rgba(167,139,250,0.13);
    border-color: #d8b4fe;
}

.cursor-interactive .cursor-dot {
    background: #ffffff;
}

/* ==================================
   MALVIN LAB — MAGNETIC BUTTONS
================================== */

@media (
    hover: hover
) and (
    pointer: fine
) and (
    prefers-reduced-motion: no-preference
) {

    .magnetic-button {
        --magnet-x: 0px;
        --magnet-y: 0px;

        transform: translate3d(
            var(--magnet-x),
            var(--magnet-y),
            0
        );

        transition:
            transform 0.18s ease-out,
            box-shadow 0.3s ease,
            border-color 0.3s ease,
            color 0.3s ease;
    }

    .magnetic-button:hover {
        transform: translate3d(
            var(--magnet-x),
            calc(var(--magnet-y) - 4px),
            0
        );
    }

}

.magnetic-button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 5px;
}

/* ==================================
   MALVIN LAB — PARTICLE BACKGROUND
================================== */

/* HERO BECOMES THE CANVAS CONTAINER */

#home {
    position: relative;
    isolation: isolate;
}

/* PARTICLE LAYER */

.particle-canvas {
    position: absolute;
    inset: 0;

    display: block;
    width: 100%;
    height: 100%;

    z-index: 0;
    pointer-events: none;

    opacity: 0.65;

    transition: opacity 0.4s ease;
}

/* HERO CONTENT ABOVE PARTICLES */

#home > :not(.particle-canvas) {
    position: relative;
    z-index: 1;
}

/* MORE INTENSE WHEN GLOW IS ACTIVE */

body.glow-active .particle-canvas {
    opacity: 1;
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    .particle-canvas {
        transition: none;
    }
}

/* ==================================
   MALVIN LAB — THEME ENGINE
================================== */

/* DEFAULT THEME: VIOLET */

:root {
    --accent: #a78bfa;
    --accent-soft: #c4b5fd;
    --accent-deep: #6d28d9;
    --accent-pale: #e9d5ff;

    --accent-rgb: 167, 139, 250;

    --orb-hue: 0deg;
}

/* CYAN THEME */

html[data-theme="cyan"] {
    --accent: #67e8f9;
    --accent-soft: #a5f3fc;
    --accent-deep: #0891b2;
    --accent-pale: #cffafe;

    --accent-rgb: 103, 232, 249;

    --orb-hue: -75deg;
}

/* ROSE THEME */

html[data-theme="rose"] {
    --accent: #fda4af;
    --accent-soft: #fecdd3;
    --accent-deep: #e11d48;
    --accent-pale: #ffe4e6;

    --accent-rgb: 253, 164, 175;

    --orb-hue: 85deg;
}

/* ==================================
   THEME SWITCHER BUTTONS
================================== */

.theme-switcher {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-left: 12px;
    padding-left: 14px;

    border-left: 1px solid rgba(255,255,255,0.15);
}

.theme-swatch {
    display: grid;
    place-items: center;

    width: 34px;
    height: 34px;

    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;

    background: transparent;

    cursor: pointer;
    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}

.theme-swatch[data-theme="violet"] {
    --swatch-color: #a78bfa;
}

.theme-swatch[data-theme="cyan"] {
    --swatch-color: #67e8f9;
}

.theme-swatch[data-theme="rose"] {
    --swatch-color: #fda4af;
}

.swatch-dot {
    display: block;

    width: 17px;
    height: 17px;

    border-radius: 50%;
    background: var(--swatch-color);

    box-shadow: 0 0 12px var(--swatch-color);
}

/* ACTIVE THEME */

.theme-swatch[aria-pressed="true"] {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.12);
}

.theme-swatch:hover {
    transform: scale(1.12);
}

.theme-swatch:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* ACCESSIBLE SCREEN READER TEXT */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* MOBILE NAVIGATION */

@media (max-width: 768px) {

    .theme-switcher {
        justify-content: center;

        margin: 12px 0 0;
        padding: 15px 0 0;

        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

}

/* KEEP DESKTOP NAV COMPACT */

@media (min-width: 769px) and (max-width: 950px) {

    .site-header nav {
        gap: 14px;
    }

    .theme-switcher {
        margin-left: 0;
        padding-left: 8px;
    }

}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    .theme-swatch {
        transition: none;
    }

}

/* ==================================
   MALVIN LAB — DYNAMIC EFFECT COLORS
================================== */

/* HERO GLOW */

body.glow-active #home::before {
    background: radial-gradient(
        circle at center,
        rgba(var(--accent-rgb), 0.22),
        transparent 65%
    );
}

/* 3D ORB COLOR SHIFT */

.orb-assembly {
    filter: hue-rotate(var(--orb-hue));

    transition: filter 0.45s ease;
}

/* CUSTOM CURSOR */

.cursor-dot {
    background: var(--accent-soft);

    box-shadow:
        0 0 15px rgba(var(--accent-rgb), 0.8);
}

.cursor-ring {
    border-color: rgba(var(--accent-rgb), 0.8);
    background: rgba(var(--accent-rgb), 0.05);

    box-shadow:
        0 0 25px rgba(var(--accent-rgb), 0.15);
}

.cursor-interactive .cursor-ring {
    border-color: var(--accent-soft);
    background: rgba(var(--accent-rgb), 0.13);
}

/* CONTACT AMBIENT LIGHT */

#contact::before {
    background: radial-gradient(
        circle at 70% 40%,
        rgba(var(--accent-rgb), 0.12),
        transparent 55%
    );
}

/* SKILL TAGS */

.skill-tags span {
    border-color: rgba(var(--accent-rgb), 0.25);
}

.skill-tags span:hover {
    background: rgba(var(--accent-rgb), 0.1);
}

/* PRELOADER PROGRESS */

.preloader-fill {
    background: linear-gradient(
        90deg,
        var(--accent-deep),
        var(--accent),
        var(--accent-pale)
    );
}

@media (prefers-reduced-motion: reduce) {
    .orb-assembly {
        transition: none;
    }
}

/* ==================================
   MALVIN LAB — COMMAND CENTER
================================== */

/* FLOATING LAUNCH BUTTON */

.command-launch {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1500;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px 16px;

    color: var(--text);
    background: rgba(20, 18, 34, 0.9);

    border: 1px solid rgba(var(--accent-rgb), 0.35);
    border-radius: 12px;

    backdrop-filter: blur(15px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.3);

    font: inherit;
    font-size: 0.8rem;
    cursor: pointer;

    transition:
        border-color 0.3s ease,
        transform 0.3s ease;
}

.command-launch:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.command-launch > span:first-child {
    color: var(--accent);
    font-size: 1.1rem;
}

.command-launch kbd {
    padding: 5px 7px;
    border-radius: 5px;

    background: rgba(255,255,255,0.07);

    color: var(--muted);
    font-size: 0.65rem;
}

/* OVERLAY */

.command-overlay {
    position: fixed;
    inset: 0;
    z-index: 9500;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    padding: min(12vh, 100px) 20px 20px;

    background: rgba(3, 4, 10, 0.8);
    backdrop-filter: blur(18px);

    overflow-y: auto;
}

/* IMPORTANT: RESPECT HIDDEN ATTRIBUTE */

.command-overlay[hidden] {
    display: none !important;
}

/* PREVENT PAGE SCROLL WHILE OPEN */

body.command-open {
    overflow: hidden;
}

/* MAIN PANEL */

.command-panel {
    width: min(100%, 620px);

    background: #12111e;
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    border-radius: 18px;

    box-shadow:
        0 30px 100px rgba(0,0,0,0.6),
        0 0 60px rgba(var(--accent-rgb), 0.07);

    overflow: hidden;

    animation: commandAppear 0.25s ease-out;
}

/* PANEL HEADER */

.command-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    padding: 26px;
}

.command-eyebrow {
    color: var(--accent);
    font-family: monospace;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
}

.command-header h2 {
    margin: 12px 0 0;

    color: var(--text);
    font-size: 1.6rem;
    letter-spacing: -0.05em;
}

.command-header h2 span {
    color: var(--accent);
}

.command-close {
    width: 36px;
    height: 36px;

    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 9px;

    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* SEARCH FIELD */

.command-search-wrap {
    display: flex;
    align-items: center;
    gap: 14px;

    margin: 0 26px 16px;
    padding: 14px 16px;

    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
}

.command-search-wrap > span {
    color: var(--accent);
    font-size: 1.5rem;
}

#command-search {
    width: 100%;
    min-width: 0;

    background: transparent;
    border: none;
    outline: none;

    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
}

#command-search::placeholder {
    color: var(--muted);
}

.command-search-wrap:focus-within {
    border-color: var(--accent);
}

/* COMMAND RESULTS */

.command-results {
    max-height: 330px;
    overflow-y: auto;

    padding: 8px 14px 16px;
}

.command-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    width: 100%;
    padding: 15px;

    background: transparent;
    border: 1px solid transparent;
    border-radius: 9px;

    color: var(--text);
    font: inherit;
    text-align: left;

    cursor: pointer;
}

.command-item:hover,
.command-item:focus-visible {
    background: rgba(var(--accent-rgb), 0.1);
    border-color: rgba(var(--accent-rgb), 0.25);
    outline: none;
}

.command-item-name {
    font-size: 0.9rem;
}

.command-item-detail {
    color: var(--muted);
    font-family: monospace;
    font-size: 0.65rem;
    white-space: nowrap;
}

.command-empty {
    padding: 24px 15px;
    color: var(--muted);
    text-align: center;
    font-size: 0.9rem;
}

/* FOOTER HINTS */

.command-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;

    padding: 16px 26px;

    border-top: 1px solid rgba(255,255,255,0.08);

    color: var(--muted);
    font-family: monospace;
    font-size: 0.65rem;
}

/* OPEN ANIMATION */

@keyframes commandAppear {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* MOBILE */

@media (max-width: 600px) {

    .command-launch {
        right: 15px;
        bottom: 15px;
        padding: 12px;
    }

    .command-launch kbd {
        display: none;
    }

    .command-overlay {
        padding: 65px 12px 12px;
    }

    .command-header {
        padding: 20px;
    }

    .command-search-wrap {
        margin: 0 20px 14px;
    }

    .command-header h2 {
        font-size: 1.35rem;
    }

    .command-footer {
        padding: 14px 20px;
    }

}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    .command-panel {
        animation: none;
    }

    .command-launch {
        transition: none;
    }

}

/* ==================================
   MALVIN LAB — 3D PROJECT SHOWCASE
================================== */

/* BASE CARD SETUP */

.project-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --card-lift: 0px;
}

/* DYNAMIC SPOTLIGHT */

.tilt-light {
    position: absolute;
    inset: 0;

    z-index: 5;
    pointer-events: none;

    opacity: 0;

    background: radial-gradient(
        320px circle at
        var(--spot-x, 50%)
        var(--spot-y, 50%),

        rgba(var(--accent-rgb), 0.18),
        transparent 70%
    );

    transition: opacity 0.3s ease;
}

/* KEEP FILTER FUNCTIONAL */

.project-card[hidden] {
    display: none !important;
}

/* DESKTOP INTERACTION ONLY */

@media (hover: hover) and
       (pointer: fine) and
       (prefers-reduced-motion: no-preference) {

    .project-card {
        transform:
            perspective(1000px)
            rotateX(var(--tilt-x))
            rotateY(var(--tilt-y))
            translateY(var(--card-lift));

        transition:
            transform 0.45s ease,
            border-color 0.3s ease,
            box-shadow 0.3s ease;
    }

    .project-card:hover {
        --card-lift: -8px;

        border-color: rgba(var(--accent-rgb), 0.45);

        box-shadow:
            0 25px 60px rgba(0, 0, 0, 0.35),
            0 0 35px rgba(var(--accent-rgb), 0.08);
    }

    /* QUICK RESPONSE WHILE MOVING */

    .project-card.is-tilting {
        transition:
            transform 0.12s linear,
            border-color 0.3s ease,
            box-shadow 0.3s ease;
    }

    .project-card.is-tilting .tilt-light {
        opacity: 1;
    }
}

/* KEYBOARD ACCESSIBILITY */

.project-card:focus-within {
    border-color: var(--accent);
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    .project-card {
        transform: none !important;
        transition: none !important;
    }

    .tilt-light {
        display: none;
    }
}

/* ==================================
   MALVIN LAB — PROJECT DETAIL EXPERIENCE
================================== */

/* CARD DETAIL BUTTON */

.project-detail-trigger {
    position: relative;
    z-index: 6;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    margin-top: 22px;
    padding: 12px 18px;

    color: var(--accent-soft);
    background: rgba(var(--accent-rgb), 0.08);

    border: 1px solid rgba(var(--accent-rgb), 0.3);
    border-radius: 9px;

    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.3s ease,
        border-color 0.3s ease;
}

.project-detail-trigger:hover {
    background: rgba(var(--accent-rgb), 0.16);
    border-color: var(--accent);
}

.project-detail-trigger:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* ==================================
   NATIVE DIALOG
================================== */

.project-modal {
    position: fixed;

    width: min(720px, calc(100vw - 28px));
    max-width: 720px;
    max-height: calc(100dvh - 28px);

    margin: auto;
    padding: 0;

    color: var(--text);
    background: #12111e;

    border: 1px solid rgba(var(--accent-rgb), 0.35);
    border-radius: 20px;

    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(var(--accent-rgb), 0.1);

    overflow-y: auto;
    overscroll-behavior: contain;
}

.project-modal:not([open]) {
    display: none;
}

.project-modal[open] {
    animation: projectModalEnter 0.3s ease-out;
}

/* DARK BACKDROP */

.project-modal::backdrop {
    background: rgba(3, 4, 12, 0.82);
    backdrop-filter: blur(14px);
}

body.project-modal-open {
    overflow: hidden;
}

/* CLOSE BUTTON */

.project-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;

    z-index: 10;

    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    color: #fff;
    background: rgba(10, 10, 20, 0.65);

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;

    font-size: 1.6rem;
    cursor: pointer;
}

/* ==================================
   PROJECT COVER
================================== */

.project-modal-cover {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    min-height: 260px;
    padding: 30px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 70% 45%,
            rgba(var(--accent-rgb), 0.35),
            transparent 55%
        ),
        linear-gradient(
            135deg,
            #242039,
            #0c0c15
        );
}

.project-modal-cover::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background: linear-gradient(
        180deg,
        transparent 40%,
        rgba(0, 0, 0, 0.35)
    );
}

/* OPTIONAL REAL PROJECT IMAGE */

.project-modal-cover img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;
}

.project-modal-cover img[hidden] {
    display: none !important;
}

.project-cover-kicker,
.project-cover-title {
    position: relative;
    z-index: 2;
}

.project-cover-kicker {
    color: var(--accent-pale);
    font-family: monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
}

.project-cover-title {
    max-width: 90%;

    color: #fff;
    font-size: clamp(1.8rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.06em;
    text-transform: uppercase;
}

.project-modal-cover.has-image .project-cover-title {
    display: none;
}

/* ==================================
   PROJECT INFORMATION
================================== */

.project-modal-content {
    padding: 32px;
}

.project-modal-category {
    display: inline-block;

    margin-bottom: 12px;

    color: var(--accent);
    font-family: monospace;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
}

.project-modal-content h2 {
    margin: 0 0 18px;

    color: var(--text);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: -0.05em;
}

.project-modal-description {
    margin: 0 0 16px;

    color: var(--text);
    font-size: 1rem;
    line-height: 1.8;
}

.project-modal-details {
    margin: 0;

    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* TECHNOLOGY TAGS */

.project-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 25px;
}

.project-modal-tags span {
    padding: 8px 13px;

    color: var(--accent-soft);
    background: rgba(var(--accent-rgb), 0.08);

    border: 1px solid rgba(var(--accent-rgb), 0.2);
    border-radius: 100px;

    font-family: monospace;
    font-size: 0.75rem;
}

/* ==================================
   PROJECT LINKS
================================== */

.project-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 30px;
}

.project-modal-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    padding: 12px 20px;

    border-radius: 10px;

    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;

    transition: transform 0.25s ease;
}

.project-modal-link:hover {
    transform: translateY(-3px);
}

.project-modal-link.primary {
    color: #08090f;
    background: var(--accent);
}

.project-modal-link.secondary {
    color: var(--accent-soft);
    background: rgba(var(--accent-rgb), 0.1);

    border: 1px solid rgba(var(--accent-rgb), 0.3);
}

.project-modal-link[hidden],
.project-modal-note[hidden] {
    display: none !important;
}

.project-modal-note {
    margin-top: 20px;

    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.6;
}

/* ANIMATION */

@keyframes projectModalEnter {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* MOBILE */

@media (max-width: 600px) {

    .project-modal-cover {
        min-height: 200px;
        padding: 24px;
    }

    .project-modal-content {
        padding: 24px;
    }

    .project-modal-actions {
        flex-direction: column;
    }

    .project-modal-link {
        width: 100%;
    }

}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    .project-modal[open] {
        animation: none;
    }

    .project-modal-link {
        transition: none;
    }

}


/* ==================================
   MISI 017 — PROJECT MODAL FIX
================================== */

/* ENSURE CLOSED DIALOG STAYS HIDDEN */

dialog#project-modal:not([open]) {
    display: none !important;
}

/* ENSURE OPEN DIALOG IS VISIBLE */

dialog#project-modal[open] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;

    position: fixed !important;
    inset: 0 !important;

    width: min(720px, calc(100vw - 28px));
    max-width: 720px;
    max-height: calc(100dvh - 28px);

    margin: auto !important;

    color: #f5f5ff;
    background: #12111e;

    border: 1px solid rgba(var(--accent-rgb), 0.4);
    border-radius: 20px;

    overflow-y: auto;
    pointer-events: auto;

    z-index: 99999;
}

/* DARK BACKGROUND */

dialog#project-modal::backdrop {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
}

/* ==================================
   MISI 018 — MALVIN LAB TERMINAL
================================== */

/* SECTION */

.terminal-section {
    position: relative;

    padding: 110px 24px;

    scroll-margin-top: 100px;

    background:
        radial-gradient(
            circle at 50% 40%,
            rgba(var(--accent-rgb), 0.06),
            transparent 65%
        );
}

.terminal-container {
    width: min(100%, 1000px);
    margin: 0 auto;
}

/* INTRODUCTION */

.terminal-intro {
    margin-bottom: 42px;
    text-align: center;
}

.terminal-eyebrow {
    color: var(--accent);

    font-family: monospace;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
}

.terminal-intro h2 {
    margin: 16px 0;

    color: var(--text);

    font-size: clamp(2.2rem, 5vw, 4rem);
    letter-spacing: -0.06em;
}

.terminal-intro h2 span {
    color: var(--accent);
}

.terminal-intro p {
    max-width: 560px;
    margin: 0 auto;

    color: var(--muted);
    line-height: 1.8;
}

/* TERMINAL WINDOW */

.lab-terminal {
    overflow: hidden;

    background: #0b0c14;

    border: 1px solid rgba(var(--accent-rgb), 0.3);
    border-radius: 18px;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.35),
        0 0 60px rgba(var(--accent-rgb), 0.06);
}

/* TOP BAR */

.terminal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    padding: 15px 20px;

    background: #141522;

    border-bottom: 1px solid rgba(
        255, 255, 255, 0.07
    );
}

.terminal-dots {
    display: flex;
    gap: 7px;
}

.terminal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dots span:nth-child(1) {
    background: #fb7185;
}

.terminal-dots span:nth-child(2) {
    background: #fbbf24;
}

.terminal-dots span:nth-child(3) {
    background: #4ade80;
}

.terminal-window-title {
    color: #a4a8bd;

    font-family: monospace;
    font-size: 0.75rem;
}

.terminal-clear {
    padding: 7px 12px;

    color: var(--muted);
    background: rgba(255, 255, 255, 0.05);

    border: 1px solid rgba(
        255, 255, 255, 0.1
    );

    border-radius: 7px;

    font-family: monospace;
    font-size: 0.75rem;

    cursor: pointer;
}

.terminal-clear:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* OUTPUT AREA */

.terminal-output {
    height: 310px;
    padding: 25px;

    overflow-y: auto;
    overscroll-behavior: contain;

    font-family:
        "Consolas",
        "Courier New",
        monospace;

    font-size: 0.88rem;
    line-height: 1.9;
}

.terminal-line {
    margin: 0 0 6px;

    color: #d8d9e8;

    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.terminal-line--input {
    color: var(--accent-soft);
}

.terminal-line--info {
    color: var(--accent);
}

.terminal-line--success {
    color: #4ade80;
}

.terminal-line--error {
    color: #fb7185;
}

.terminal-line--muted {
    color: #a4a8bd;
}

/* INPUT AREA */

.terminal-form {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 18px 24px;

    border-top: 1px solid rgba(
        255, 255, 255, 0.08
    );

    background: rgba(
        255, 255, 255, 0.015
    );
}

.terminal-form:focus-within {
    background: rgba(var(--accent-rgb), 0.04);
}

.terminal-prompt {
    flex-shrink: 0;

    color: var(--accent);

    font-family: monospace;
    font-size: 0.85rem;
    font-weight: 600;
}

#terminal-input {
    flex: 1;
    min-width: 0;

    padding: 8px 0;

    color: var(--text);
    background: transparent;

    border: none;
    outline: none;

    font-family: monospace;
    font-size: 0.88rem;

    caret-color: var(--accent);
}

#terminal-input::placeholder {
    color: #74778c;
}

.terminal-run {
    flex-shrink: 0;

    padding: 10px 15px;

    color: #08090f;
    background: var(--accent);

    border: none;
    border-radius: 8px;

    font-family: monospace;
    font-size: 0.8rem;
    font-weight: 700;

    cursor: pointer;
}

.terminal-run:hover {
    filter: brightness(1.1);
}

/* BOTTOM HINT */

.terminal-hint {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    padding: 14px 24px;

    color: var(--muted);

    border-top: 1px solid rgba(
        255, 255, 255, 0.06
    );

    font-family: monospace;
    font-size: 0.7rem;
}

.terminal-hint code {
    padding: 4px 7px;

    color: var(--accent-soft);
    background: rgba(var(--accent-rgb), 0.09);

    border-radius: 5px;
}

/* ACCESSIBILITY */

.terminal-sr-only {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);

    white-space: nowrap;
    border: 0;
}

/* MOBILE */

@media (max-width: 600px) {

    .terminal-section {
        padding: 80px 15px;
    }

    .terminal-output {
        height: 280px;
        padding: 18px;

        font-size: 0.78rem;
    }

    .terminal-form {
        flex-wrap: wrap;
        gap: 10px;

        padding: 15px;
    }

    .terminal-prompt {
        font-size: 0.75rem;
    }

    #terminal-input {
        font-size: 0.8rem;
    }

    .terminal-run {
        padding: 9px 11px;
    }

    .terminal-hint {
        padding: 12px 15px;
    }

}

/* ==================================
   MISI 019 — CINEMATIC BOOT SEQUENCE
================================== */

/* LOCK SCROLL DURING BOOT */

body.boot-loading {
    overflow: hidden;
}

/* MAIN BOOT OVERLAY */

#lab-preloader {
    position: fixed;
    inset: 0;

    z-index: 20000;

    display: grid;
    place-items: center;

    padding: 28px;

    color: #f5f5ff;
    background: #080910;

    opacity: 1;
    visibility: visible;

    transition:
        opacity 0.65s ease,
        visibility 0.65s ease;
}

/* SUBTLE BACKGROUND GRID */

#lab-preloader::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(var(--accent-rgb), 0.045) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(var(--accent-rgb), 0.045) 1px,
            transparent 1px
        );

    background-size: 55px 55px;

    mask-image: radial-gradient(
        circle at center,
        black 20%,
        transparent 85%
    );
}

/* EXIT ANIMATION */

#lab-preloader.boot-exit {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* SCREEN LAYOUT */

#lab-preloader .boot-screen {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    width: min(100%, 920px);
    min-height: min(650px, 85dvh);
}

/* TOP AND BOTTOM LABELS */

.boot-topline,
.boot-bottomline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    color: #89859d;

    font-family: monospace;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
}

.boot-topline {
    padding-bottom: 16px;

    border-bottom: 1px solid rgba(
        var(--accent-rgb),
        0.18
    );
}

.boot-bottomline {
    padding-top: 16px;

    border-top: 1px solid rgba(
        var(--accent-rgb),
        0.18
    );
}

/* CENTER CONTENT */

.boot-main {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: min(100%, 620px);

    margin: 40px auto;

    text-align: center;
}

/* GLOWING EMBLEM */

.boot-emblem {
    display: grid;
    place-items: center;

    width: 96px;
    height: 96px;

    margin-bottom: 28px;

    color: #fff;

    background:
        radial-gradient(
            circle at 35% 25%,
            rgba(var(--accent-rgb), 0.35),
            rgba(var(--accent-rgb), 0.08) 65%,
            #10101a
        );

    border: 1px solid rgba(
        var(--accent-rgb),
        0.6
    );

    border-radius: 24px;

    box-shadow:
        0 0 55px rgba(var(--accent-rgb), 0.2);

    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.1em;

    animation: bootEmblemFloat 3s ease-in-out infinite;
}

.boot-emblem span {
    color: var(--accent);
}

/* TITLES */

.boot-eyebrow {
    margin: 0 0 14px;

    color: var(--accent);

    font-family: monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
}

.boot-title {
    margin: 0;

    color: #f5f5ff;

    font-size: clamp(2.6rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.075em;
}

.boot-title span {
    color: var(--accent);
}

.boot-description {
    margin: 18px 0 0;

    color: #a4a8bd;
    font-size: 0.9rem;
}

/* SYSTEM LOG */

.boot-log {
    width: 100%;
    min-height: 154px;

    margin-top: 35px;
    padding: 18px 20px;

    background: rgba(16, 17, 29, 0.85);

    border: 1px solid rgba(
        var(--accent-rgb),
        0.18
    );

    border-radius: 12px;

    text-align: left;
}

.boot-log-line {
    margin: 0 0 8px;

    color: #a4a8bd;

    font-family: monospace;
    font-size: 0.78rem;
    line-height: 1.6;
}

.boot-log-line.is-ok {
    color: #4ade80;
}

.boot-log-line.is-ready {
    color: var(--accent-soft);
}

/* PROGRESS */

.boot-progress {
    width: 100%;
    margin-top: 28px;
}

.boot-progress-meta {
    display: flex;
    justify-content: space-between;

    margin-bottom: 12px;

    color: var(--accent-soft);

    font-family: monospace;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
}

.boot-progress-track {
    height: 6px;

    overflow: hidden;

    background: rgba(
        var(--accent-rgb),
        0.14
    );

    border-radius: 100px;
}

.boot-progress-fill {
    width: 0%;
    height: 100%;

    background: linear-gradient(
        90deg,
        var(--accent-deep),
        var(--accent-soft)
    );

    border-radius: inherit;

    box-shadow:
        0 0 20px rgba(var(--accent-rgb), 0.5);
}

/* ANIMATIONS */

@keyframes bootEmblemFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

}

/* MOBILE */

@media (max-width: 600px) {

    #lab-preloader {
        padding: 20px;
    }

    #lab-preloader .boot-screen {
        min-height: 90dvh;
    }

    .boot-topline,
    .boot-bottomline {
        font-size: 0.55rem;
    }

    .boot-main {
        margin: 25px auto;
    }

    .boot-emblem {
        width: 76px;
        height: 76px;

        font-size: 2rem;
    }

    .boot-log {
        min-height: 160px;
        padding: 14px;
    }

    .boot-log-line {
        font-size: 0.68rem;
    }

}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    #lab-preloader {
        display: none !important;
    }

    .boot-emblem {
        animation: none;
    }

}

/* ==================================
   MISI 019 — CUSTOM PROFILE PHOTO
================================== */

#lab-preloader .boot-emblem {

    width: 120px;
    height: 120px;

    padding: 5px;

    border-radius: 50%;

    border: 2px solid var(--accent);

    background: rgba(var(--accent-rgb), 0.12);

    box-shadow:
        0 0 20px rgba(var(--accent-rgb), 0.35),
        0 0 55px rgba(var(--accent-rgb), 0.2);

    overflow: hidden;

    animation: bootEmblemFloat 3s ease-in-out infinite;

}

/* PROFILE PHOTO */

.boot-profile-photo {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center 25%;

    border-radius: 50%;

}

/* MOBILE */

@media (max-width: 600px) {

    #lab-preloader .boot-emblem {

        width: 100px;
        height: 100px;

    }

}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    #lab-preloader .boot-emblem {
        animation: none;
    }

}

/* ==================================
   MISI 020 — LIVE SYSTEM DASHBOARD
================================== */

.dashboard-section {
    position: relative;

    padding: 110px 24px;

    scroll-margin-top: 100px;

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(var(--accent-rgb), 0.07),
            transparent 65%
        );
}

.dashboard-container {
    width: min(100%, 1100px);
    margin: 0 auto;
}

/* HEADING */

.dashboard-heading {
    margin-bottom: 45px;
    text-align: center;
}

.dashboard-eyebrow {
    color: var(--accent);

    font-family: monospace;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
}

.dashboard-heading h2 {
    margin: 16px 0;

    color: var(--text);

    font-size: clamp(2.3rem, 5vw, 4rem);
    letter-spacing: -0.06em;
}

.dashboard-heading h2 span {
    color: var(--accent);
}

.dashboard-heading p {
    color: var(--muted);
    line-height: 1.8;
}

/* MAIN PANEL */

.dashboard-panel {
    overflow: hidden;

    color: #f5f5ff;
    background: #0b0d17;

    border: 1px solid rgba(
        var(--accent-rgb),
        0.3
    );

    border-radius: 22px;

    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(var(--accent-rgb), 0.05);
}

/* TOP BAR */

.dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    padding: 22px 26px;

    background: #131522;

    border-bottom: 1px solid rgba(
        255, 255, 255, 0.07
    );
}

.dashboard-brand {
    display: flex;
    align-items: center;
    gap: 12px;

    color: #d8d9eb;

    font-family: monospace;
    font-size: 0.75rem;
    letter-spacing: 0.07em;
}

.dashboard-brand-icon {
    color: var(--accent);
    font-size: 1.5rem;
}

.dashboard-system-status {
    display: flex;
    align-items: center;
    gap: 9px;

    color: #4ade80;

    font-family: monospace;
    font-size: 0.7rem;
}

.dashboard-status-dot {
    width: 8px;
    height: 8px;

    background: #4ade80;
    border-radius: 50%;

    box-shadow: 0 0 15px #4ade80;

    animation: dashboardPulse 2s infinite;
}

/* METRIC GRID */

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;

    padding: 25px;
}

.dashboard-metric {
    min-width: 0;

    padding: 25px 20px;

    background: #151724;

    border: 1px solid rgba(
        255, 255, 255, 0.06
    );

    border-radius: 14px;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}

.dashboard-metric:hover {
    transform: translateY(-5px);

    border-color: rgba(
        var(--accent-rgb),
        0.5
    );
}

.dashboard-metric-label {
    display: block;

    color: #9296ae;

    font-family: monospace;
    font-size: 0.68rem;
    letter-spacing: 0.09em;
}

.dashboard-metric strong {
    display: block;

    margin: 22px 0 12px;

    color: var(--accent-soft);

    font-size: clamp(1.6rem, 2.5vw, 2.5rem);
    font-weight: 750;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.dashboard-metric p {
    margin: 0;

    color: #9296ae;
    font-size: 0.76rem;
}

/* LOWER GRID */

.dashboard-lower {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;

    padding: 0 25px 25px;
}

.dashboard-module {
    min-width: 0;

    padding: 25px;

    background: #131522;

    border: 1px solid rgba(
        255, 255, 255, 0.07
    );

    border-radius: 14px;
}

.dashboard-module h3 {
    margin: 0 0 22px;

    color: var(--accent-soft);

    font-family: monospace;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.dashboard-module-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    padding: 12px 0;

    border-bottom: 1px solid rgba(
        255, 255, 255, 0.06
    );

    color: #b0b3c8;
    font-size: 0.85rem;
}

.dashboard-module-row:last-child {
    border-bottom: none;
}

.dashboard-module-row span:last-child {
    color: #4ade80;

    font-family: monospace;
    font-size: 0.72rem;
    text-align: right;
}

/* QUICK ACTION BUTTONS */

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-actions button {
    min-height: 48px;

    padding: 12px;

    color: #ded9ed;
    background: rgba(var(--accent-rgb), 0.08);

    border: 1px solid rgba(
        var(--accent-rgb),
        0.25
    );

    border-radius: 9px;

    font-family: monospace;
    font-size: 0.75rem;

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.dashboard-actions button:hover {
    background: rgba(var(--accent-rgb), 0.2);
    transform: translateY(-2px);
}

.dashboard-actions button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.dashboard-feedback {
    min-height: 20px;

    margin: 18px 0 0;

    color: #a4a8bd;
    font-family: monospace;
    font-size: 0.73rem;
}

/* FOOTER */

.dashboard-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;

    padding: 17px 26px;

    color: #888ca3;
    background: #111320;

    border-top: 1px solid rgba(
        255, 255, 255, 0.06
    );

    font-family: monospace;
    font-size: 0.7rem;
}

#dash-uptime {
    color: var(--accent-soft);
}

/* ANIMATION */

@keyframes dashboardPulse {

    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }

}

/* TABLET */

@media (max-width: 900px) {

    .dashboard-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* MOBILE */

@media (max-width: 600px) {

    .dashboard-section {
        padding: 80px 15px;
    }

    .dashboard-topbar {
        padding: 18px;
    }

    .dashboard-brand {
        font-size: 0.6rem;
    }

    .dashboard-metrics {
        gap: 10px;
        padding: 15px;
    }

    .dashboard-metric {
        padding: 18px 14px;
    }

    .dashboard-metric-label {
        font-size: 0.58rem;
    }

    .dashboard-metric strong {
        font-size: 1.5rem;
    }

    .dashboard-lower {
        grid-template-columns: 1fr;

        gap: 12px;
        padding: 0 15px 15px;
    }

    .dashboard-module {
        padding: 18px;
    }

    .dashboard-actions {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-footer {
        padding: 15px;
        font-size: 0.6rem;
    }

}

@media (prefers-reduced-motion: reduce) {

    .dashboard-status-dot {
        animation: none;
    }

    .dashboard-metric,
    .dashboard-actions button {
        transition: none;
    }

}

/* ==================================
   MISI 021 — IMMERSIVE PROJECT SHOWCASE
================================== */

.showcase-section {
    position: relative;

    padding: 110px 24px;

    scroll-margin-top: 100px;

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(var(--accent-rgb), 0.07),
            transparent 65%
        );
}

.showcase-container {
    width: min(100%, 1150px);
    margin: 0 auto;
}

/* HEADING */

.showcase-heading {
    margin-bottom: 42px;
    text-align: center;
}

.showcase-eyebrow {
    color: var(--accent);

    font-family: monospace;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
}

.showcase-heading h2 {
    margin: 16px 0;

    color: var(--text);

    font-size: clamp(2.3rem, 5vw, 4rem);
    letter-spacing: -0.06em;
}

.showcase-heading h2 span {
    color: var(--accent);
}

.showcase-heading p {
    color: var(--muted);
    line-height: 1.8;
}

/* PROJECT TABS */

.showcase-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-bottom: 24px;
}

.showcase-tab {
    padding: 14px 22px;

    color: var(--muted);
    background: rgba(var(--accent-rgb), 0.04);

    border: 1px solid rgba(
        var(--accent-rgb),
        0.16
    );

    border-radius: 10px;

    font-family: monospace;
    font-size: 0.78rem;

    cursor: pointer;

    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

.showcase-tab:hover {
    color: var(--text);

    border-color: rgba(
        var(--accent-rgb),
        0.45
    );
}

.showcase-tab[aria-selected="true"] {
    color: var(--accent-soft);

    background: rgba(
        var(--accent-rgb),
        0.16
    );

    border-color: var(--accent);
}

.showcase-tab:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* MAIN PANEL */

.showcase-panel {
    display: grid;
    grid-template-columns: 1.15fr 1fr;

    min-height: 460px;

    overflow: hidden;

    background: #10121d;

    border: 1px solid rgba(
        var(--accent-rgb),
        0.25
    );

    border-radius: 22px;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.25);
}

/* VISUAL STAGE */

.showcase-visual {
    --showcase-rgb: 167, 139, 250;

    position: relative;

    display: grid;
    place-items: center;

    min-height: 440px;
    padding: 35px;

    overflow: hidden;
    isolation: isolate;

    background:
        radial-gradient(
            circle at 50% 40%,
            rgba(var(--showcase-rgb), 0.28),
            transparent 55%
        ),
        #0b0d17;

    transition: background 0.4s ease;
}

.showcase-visual.is-visual {
    --showcase-rgb: 251, 113, 133;
}

.showcase-visual.is-experiment {
    --showcase-rgb: 34, 211, 238;
}

/* GRID BACKGROUND */

.showcase-visual::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.04) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.04) 1px,
            transparent 1px
        );

    background-size: 35px 35px;
}

/* GLOW ORB */

.showcase-orb {
    position: absolute;

    width: 250px;
    height: 250px;

    background: rgba(
        var(--showcase-rgb),
        0.24
    );

    border-radius: 50%;

    filter: blur(65px);

    animation:
        showcaseFloat 6s ease-in-out infinite;
}

/* BROWSER MOCKUP */

.showcase-preview-window {
    position: relative;
    z-index: 1;

    width: min(100%, 420px);

    overflow: hidden;

    background: rgba(17, 19, 33, 0.9);

    border: 1px solid rgba(
        var(--showcase-rgb),
        0.45
    );

    border-radius: 15px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.35),
        0 0 45px rgba(var(--showcase-rgb), 0.12);

    transform: perspective(900px)
        rotateY(-5deg)
        rotateX(3deg);

    transition:
        transform 0.4s ease,
        border-color 0.4s ease;
}

.showcase-visual:hover .showcase-preview-window {
    transform: perspective(900px)
        rotateY(0)
        rotateX(0);
}

.showcase-window-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 15px;

    color: #9195aa;
    background: #181a2a;

    border-bottom: 1px solid rgba(
        255, 255, 255, 0.07
    );

    font-family: monospace;
    font-size: 0.65rem;
}

.showcase-window-dots {
    display: flex;
    gap: 6px;
}

.showcase-window-dots span {
    width: 8px;
    height: 8px;

    border-radius: 50%;
}

.showcase-window-dots span:nth-child(1) {
    background: #fb7185;
}

.showcase-window-dots span:nth-child(2) {
    background: #fbbf24;
}

.showcase-window-dots span:nth-child(3) {
    background: #4ade80;
}

.showcase-window-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;

    min-height: 250px;
    padding: 35px;
}

.showcase-preview-label {
    color: rgb(var(--showcase-rgb));

    font-family: monospace;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
}

#showcase-preview-title {
    color: #f5f5ff;

    font-size: clamp(1.6rem, 3vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -0.05em;
}

.showcase-preview-bars {
    display: flex;
    flex-direction: column;
    gap: 9px;

    width: 100%;
}

.showcase-preview-bars span {
    display: block;

    height: 7px;

    background: rgba(
        var(--showcase-rgb),
        0.25
    );

    border-radius: 10px;
}

.showcase-preview-bars span:nth-child(1) {
    width: 85%;
}

.showcase-preview-bars span:nth-child(2) {
    width: 65%;
}

.showcase-preview-bars span:nth-child(3) {
    width: 45%;
}

.showcase-corner-label {
    position: absolute;
    bottom: 20px;
    left: 25px;

    color: rgba(255, 255, 255, 0.45);

    font-family: monospace;
    font-size: 0.65rem;
}

/* PROJECT DETAILS */

.showcase-details {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 0;
    padding: 45px;

    color: #f5f5ff;
}

.showcase-category {
    color: var(--accent-soft);

    font-family: monospace;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
}

.showcase-details h3 {
    margin: 18px 0;

    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    letter-spacing: -0.055em;
}

.showcase-description {
    margin: 0 0 18px;

    color: #d5d6e4;

    font-size: 1rem;
    line-height: 1.8;
}

.showcase-details-text {
    margin: 0;

    color: #9fa3b8;

    font-size: 0.88rem;
    line-height: 1.9;
}

/* TECHNOLOGY TAGS */

.showcase-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;

    margin-top: 26px;
}

.showcase-tags span {
    padding: 8px 12px;

    color: var(--accent-soft);
    background: rgba(var(--accent-rgb), 0.09);

    border: 1px solid rgba(
        var(--accent-rgb),
        0.18
    );

    border-radius: 7px;

    font-family: monospace;
    font-size: 0.72rem;
}

/* ACTIONS */

.showcase-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;

    margin-top: 35px;
}

.showcase-primary-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    padding: 14px 19px;

    color: #090a10;
    background: var(--accent);

    border-radius: 9px;

    font-size: 0.85rem;
    font-weight: 700;

    text-decoration: none;
}

.showcase-secondary-link {
    color: #b9b5cd;

    font-size: 0.85rem;
    text-decoration: none;
}

.showcase-secondary-link:hover {
    color: var(--accent-soft);
}

/* ANIMATION */

@keyframes showcaseFloat {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-25px);
    }

}

/* RESPONSIVE */

@media (max-width: 900px) {

    .showcase-panel {
        grid-template-columns: 1fr;
    }

    .showcase-visual {
        min-height: 340px;
    }

    .showcase-details {
        padding: 35px;
    }

}

@media (max-width: 600px) {

    .showcase-section {
        padding: 80px 15px;
    }

    .showcase-tabs {
        gap: 8px;
    }

    .showcase-tab {
        padding: 12px;
        font-size: 0.65rem;
    }

    .showcase-visual {
        min-height: 290px;
        padding: 22px;
    }

    .showcase-window-content {
        min-height: 200px;
        padding: 25px;
    }

    .showcase-details {
        padding: 28px 22px;
    }

    .showcase-details h3 {
        font-size: 2rem;
    }

}

@media (prefers-reduced-motion: reduce) {

    .showcase-orb {
        animation: none;
    }

    .showcase-preview-window {
        transform: none;
        transition: none;
    }

}

/* ==================================
   MISI 022 — SKILLS CONSTELLATION
================================== */

/* SECTION */

.ml-skills-section {
    position: relative;

    padding: 110px 24px;

    scroll-margin-top: 100px;

    background:
        radial-gradient(
            circle at 50% 40%,
            rgba(var(--accent-rgb), 0.07),
            transparent 65%
        );
}

.ml-skills-container {
    width: min(100%, 1200px);
    margin: 0 auto;
}

/* INTRO */

.ml-skills-intro {
    margin-bottom: 45px;
    text-align: center;
}

.ml-skills-eyebrow {
    color: var(--accent);

    font-family: monospace;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
}

.ml-skills-intro h2 {
    margin: 16px 0;

    color: var(--text);

    font-size: clamp(2.3rem, 5vw, 4rem);
    letter-spacing: -0.06em;
}

.ml-skills-intro h2 span {
    color: var(--accent);
}

.ml-skills-intro p {
    max-width: 620px;
    margin: 0 auto;

    color: var(--muted);
    line-height: 1.8;
}

/* MAIN LAYOUT */

.ml-skills-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
    gap: 22px;
    align-items: stretch;
}

/* UNIVERSE */

.ml-skills-universe {
    --selected-rgb: 167,139,250;

    position: relative;

    min-height: 520px;

    overflow: hidden;
    isolation: isolate;

    background:
        radial-gradient(
            circle at center,
            rgba(var(--selected-rgb), 0.14),
            transparent 50%
        ),
        #0b0d18;

    border: 1px solid rgba(
        var(--accent-rgb),
        0.25
    );

    border-radius: 22px;
}

/* GRID BACKGROUND */

.ml-skills-universe::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        );

    background-size: 40px 40px;
}

/* CONNECTION LINES */

.ml-skills-lines {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;
}

.ml-skills-lines line {
    stroke: rgba(167, 139, 250, 0.28);
    stroke-width: 1.5;
    stroke-dasharray: 5 6;

    transition:
        stroke 0.3s ease,
        stroke-width 0.3s ease;
}

.ml-skills-lines line.is-active {
    stroke: rgb(var(--selected-rgb));
    stroke-width: 3;
    stroke-dasharray: none;
}

/* ORBIT RINGS */

.ml-skills-orbit {
    position: absolute;

    left: 50%;
    top: 50%;

    border: 1px dashed rgba(
        var(--accent-rgb),
        0.14
    );

    border-radius: 50%;

    pointer-events: none;

    transform: translate(-50%, -50%);
}

.ml-skills-orbit-one {
    width: 55%;
    height: 55%;
}

.ml-skills-orbit-two {
    width: 85%;
    height: 80%;
}

/* CENTRAL CORE */

.ml-skills-core {
    position: absolute;
    z-index: 2;

    left: 50%;
    top: 50%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 116px;
    height: 116px;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 35% 25%,
            rgba(var(--selected-rgb), 0.35),
            #191626 70%
        );

    border: 2px solid rgb(var(--selected-rgb));
    border-radius: 50%;

    box-shadow:
        0 0 45px rgba(var(--selected-rgb), 0.24);

    transform: translate(-50%, -50%);

    pointer-events: none;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.ml-skills-core strong {
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.ml-skills-core span {
    color: var(--accent-soft);

    font-family: monospace;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
}

/* INTERACTIVE NODES */

.ml-skill-node {
    position: absolute;
    z-index: 3;

    left: var(--x);
    top: var(--y);

    display: grid;
    place-items: center;

    width: 98px;
    height: 98px;

    padding: 10px;

    color: #e7e8f5;

    background: #171a29;

    border: 1px solid rgba(
        var(--skill-rgb),
        0.55
    );

    border-radius: 50%;

    box-shadow:
        0 0 25px rgba(var(--skill-rgb), 0.07);

    transform: translate(-50%, -50%);

    font-family: monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.ml-skill-node:hover {
    transform:
        translate(-50%, -50%)
        scale(1.09);

    background: rgba(
        var(--skill-rgb),
        0.17
    );

    box-shadow:
        0 0 35px rgba(var(--skill-rgb), 0.2);
}

.ml-skill-node.is-selected {
    color: #ffffff;

    background: rgba(
        var(--skill-rgb),
        0.23
    );

    border: 2px solid rgb(var(--skill-rgb));

    box-shadow:
        0 0 38px rgba(var(--skill-rgb), 0.3);
}

.ml-skill-node:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 5px;
}

/* DETAIL PANEL */

.ml-skills-detail {
    --selected-rgb: 167,139,250;

    display: flex;
    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    color: #f5f5ff;
    background: #111320;

    border: 1px solid rgba(
        var(--selected-rgb),
        0.35
    );

    border-radius: 22px;
}

/* PANEL TOP */

.ml-skills-detail-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;

    padding: 22px 25px;

    color: #a7a8bd;

    background: #171827;

    border-bottom: 1px solid rgba(
        255, 255, 255, 0.07
    );

    font-family: monospace;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}

#ml-skills-number {
    color: rgb(var(--selected-rgb));
}

/* PANEL BODY */

.ml-skills-detail-body {
    flex: 1;

    padding: 38px 30px;
}

.ml-skills-category {
    color: rgb(var(--selected-rgb));

    font-family: monospace;
    font-size: 0.72rem;
    letter-spacing: 0.13em;
}

.ml-skills-detail h3 {
    margin: 18px 0;

    color: #f5f5ff;

    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.2;
    letter-spacing: -0.05em;
}

.ml-skills-description {
    min-height: 100px;

    margin: 0;

    color: #aeb1c5;

    font-size: 0.9rem;
    line-height: 1.9;
}

/* FOCUS AREA */

.ml-skills-focus {
    margin-top: 35px;
}

.ml-skills-focus h4 {
    margin: 0 0 18px;

    color: #a4a8bd;

    font-family: monospace;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
}

.ml-skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.ml-skills-tags span {
    padding: 9px 12px;

    color: #e4def5;
    background: rgba(
        var(--selected-rgb),
        0.12
    );

    border: 1px solid rgba(
        var(--selected-rgb),
        0.3
    );

    border-radius: 7px;

    font-family: monospace;
    font-size: 0.72rem;
}

/* PANEL BOTTOM */

.ml-skills-detail-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;

    padding: 22px 25px;

    border-top: 1px solid rgba(
        255, 255, 255, 0.07
    );
}

.ml-skills-detail-bottom a {
    color: var(--accent-soft);

    font-size: 0.85rem;
    text-decoration: none;
}

#ml-skills-next {
    padding: 12px 16px;

    color: #ffffff;
    background: rgba(
        var(--selected-rgb),
        0.2
    );

    border: 1px solid rgba(
        var(--selected-rgb),
        0.5
    );

    border-radius: 9px;

    font-family: monospace;
    font-size: 0.78rem;

    cursor: pointer;
}

#ml-skills-next:hover {
    background: rgba(
        var(--selected-rgb),
        0.35
    );
}

#ml-skills-next:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* STATUS */

.ml-skills-status {
    margin: 24px 0 0;

    color: var(--muted);

    font-family: monospace;
    font-size: 0.72rem;
    letter-spacing: 0.1em;

    text-align: center;
}

/* TABLET */

@media (max-width: 950px) {

    .ml-skills-layout {
        grid-template-columns: 1fr;
    }

    .ml-skills-universe {
        min-height: 480px;
    }

}

/* MOBILE */

@media (max-width: 600px) {

    .ml-skills-section {
        padding: 80px 15px;
    }

    .ml-skills-universe {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-content: center;
        gap: 14px;

        min-height: auto;
        padding: 25px 18px;
    }

    .ml-skills-lines,
    .ml-skills-orbit,
    .ml-skills-core {
        display: none;
    }

    .ml-skill-node {
        position: relative;

        left: auto;
        top: auto;

        width: 100%;
        height: 78px;

        border-radius: 14px;

        transform: none;
    }

    .ml-skill-node:hover {
        transform: none;
    }

    .ml-skills-detail-body {
        padding: 30px 24px;
    }

    .ml-skills-description {
        min-height: auto;
    }

    .ml-skills-detail-bottom {
        padding: 20px 24px;
    }

}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    .ml-skill-node,
    .ml-skills-core,
    .ml-skills-lines line {
        transition: none;
    }

}
/* ==================================
   MISI 023 — CREATIVE JOURNEY
================================== */

.journey-section {
    position: relative;

    padding: 120px 24px;

    scroll-margin-top: 100px;

    background:
        radial-gradient(
            circle at 50% 30%,
            rgba(var(--accent-rgb), 0.07),
            transparent 60%
        );
}

.journey-container {
    width: min(100%, 1050px);
    margin: 0 auto;
}


/* ================================
   HEADING
================================ */

.journey-heading {
    max-width: 700px;

    margin: 0 auto 75px;

    text-align: center;
}

.journey-eyebrow {
    color: var(--accent);

    font-family: monospace;
    font-size: 0.72rem;

    letter-spacing: 0.2em;
}

.journey-heading h2 {
    margin: 16px 0;

    color: var(--text);

    font-size: clamp(
        2.4rem,
        6vw,
        4.5rem
    );

    letter-spacing: -0.06em;
}

.journey-heading h2 span {
    color: var(--accent);
}

.journey-heading p {
    margin: 0;

    color: var(--muted);

    line-height: 1.8;
}


/* ================================
   TIMELINE
================================ */

.journey-timeline {
    position: relative;

    padding: 25px 0;
}


/* BASE LINE */

.journey-line {
    position: absolute;

    top: 0;
    bottom: 90px;

    left: 50%;

    width: 2px;

    overflow: hidden;

    background:
        rgba(255, 255, 255, 0.08);

    transform: translateX(-50%);
}


/* ACTIVE PROGRESS */

.journey-progress {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 0%;

    background:
        linear-gradient(
            to bottom,
            var(--accent),
            var(--accent-soft)
        );

    box-shadow:
        0 0 20px
        rgba(var(--accent-rgb), 0.8);

    transition:
        height 0.15s linear;
}


/* ================================
   TIMELINE ITEMS
================================ */

.journey-item {
    position: relative;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        80px
        minmax(0, 1fr);

    align-items: center;

    min-height: 290px;

    opacity: 0.35;

    transition:
        opacity 0.6s ease;
}


/* LEFT CARD */

.journey-item:nth-of-type(odd)
.journey-card {
    grid-column: 1;

    justify-self: end;
}


/* RIGHT CARD */

.journey-item:nth-of-type(even)
.journey-card {
    grid-column: 3;

    justify-self: start;
}


/* ================================
   NODE
================================ */

.journey-node {
    position: absolute;
    z-index: 5;

    left: 50%;
    top: 50%;

    width: 16px;
    height: 16px;

    background: #11131e;

    border:
        2px solid
        rgba(var(--accent-rgb), 0.5);

    border-radius: 50%;

    transform:
        translate(-50%, -50%);

    transition:
        background 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease,
        transform 0.4s ease;
}


/* ================================
   CARD
================================ */

.journey-card {
    width: min(100%, 420px);

    padding: 28px;

    background:
        rgba(17, 19, 32, 0.88);

    border:
        1px solid
        rgba(255, 255, 255, 0.07);

    border-radius: 18px;

    box-shadow:
        0 20px 60px
        rgba(0, 0, 0, 0.15);

    transform: translateY(30px);

    transition:
        transform 0.6s ease,
        border-color 0.5s ease,
        box-shadow 0.5s ease;
}

.journey-stage {
    color: var(--accent);

    font-family: monospace;
    font-size: 0.68rem;

    letter-spacing: 0.14em;
}

.journey-card h3 {
    margin: 14px 0;

    color: #f5f5ff;

    font-size: clamp(
        1.5rem,
        3vw,
        2rem
    );

    letter-spacing: -0.04em;
}

.journey-card p {
    margin: 0;

    color: #a7aabd;

    font-size: 0.88rem;

    line-height: 1.8;
}


/* ================================
   TAGS
================================ */

.journey-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: 22px;
}

.journey-tags span {
    padding: 7px 10px;

    color: var(--accent-soft);

    background:
        rgba(var(--accent-rgb), 0.08);

    border:
        1px solid
        rgba(var(--accent-rgb), 0.18);

    border-radius: 6px;

    font-family: monospace;
    font-size: 0.67rem;
}


/* ================================
   ACTIVE ITEM
================================ */

.journey-item.is-active {
    opacity: 1;
}

.journey-item.is-active
.journey-card {
    transform: translateY(0);

    border-color:
        rgba(var(--accent-rgb), 0.4);

    box-shadow:
        0 20px 70px
        rgba(var(--accent-rgb), 0.08);
}

.journey-item.is-active
.journey-node {
    background: var(--accent);

    border-color: var(--accent);

    box-shadow:
        0 0 0 7px
        rgba(var(--accent-rgb), 0.1),
        0 0 28px
        rgba(var(--accent-rgb), 0.8);

    transform:
        translate(-50%, -50%)
        scale(1.15);
}


/* ================================
   FUTURE
================================ */

.journey-future {
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 18px;

    width: fit-content;

    margin: 50px auto 0;

    padding: 18px 22px;

    color: #989bad;

    background: #10121d;

    border:
        1px dashed
        rgba(var(--accent-rgb), 0.3);

    border-radius: 12px;

    font-family: monospace;
}

.journey-future-dot {
    width: 10px;
    height: 10px;

    flex-shrink: 0;

    background: var(--accent);

    border-radius: 50%;

    box-shadow:
        0 0 20px
        rgba(var(--accent-rgb), 0.7);

    animation:
        journeyFuturePulse
        2s ease-in-out infinite;
}

.journey-future div {
    display: flex;
    flex-direction: column;

    gap: 4px;
}

.journey-future span {
    font-size: 0.62rem;

    letter-spacing: 0.15em;
}

.journey-future strong {
    color: #e5e5ef;

    font-size: 0.78rem;
}


/* ================================
   ANIMATION
================================ */

@keyframes journeyFuturePulse {

    0%,
    100% {
        opacity: 0.4;

        transform: scale(0.85);
    }

    50% {
        opacity: 1;

        transform: scale(1.2);
    }

}


/* ================================
   MOBILE
================================ */

@media (max-width: 760px) {

    .journey-section {
        padding:
            90px 18px;
    }

    .journey-heading {
        margin-bottom: 55px;
    }


    /* MOVE LINE LEFT */

    .journey-line {
        left: 12px;

        transform: none;
    }


    /* ONE COLUMN */

    .journey-item {
        display: block;

        min-height: auto;

        margin-bottom: 45px;

        padding-left: 45px;
    }


    /* MOVE NODE LEFT */

    .journey-node {
        left: 13px;
        top: 40px;
    }


    /* RESET CARDS */

    .journey-item:nth-of-type(odd)
    .journey-card,

    .journey-item:nth-of-type(even)
    .journey-card {

        width: 100%;

        justify-self: auto;
    }

    .journey-card {
        padding: 23px;
    }

}


/* ================================
   REDUCED MOTION
================================ */

@media (
    prefers-reduced-motion: reduce
) {

    .journey-item,
    .journey-card,
    .journey-node,
    .journey-progress {
        transition: none;
    }

    .journey-future-dot {
        animation: none;
    }

}
/* ==================================
   MISI 024 — DIGITAL IDENTITY CARD
================================== */

.ml-identity-wrapper {
    width: min(100%, 950px);

    margin: 65px auto 20px;

    perspective: 1200px;
}


/* CARD */

.ml-identity-card {
    --mouse-x: 50%;
    --mouse-y: 50%;

    position: relative;

    overflow: hidden;
    isolation: isolate;

    color: #f5f5ff;

    background:
        linear-gradient(
            135deg,
            rgba(var(--accent-rgb), 0.08),
            transparent 45%
        ),
        #10121d;

    border:
        1px solid
        rgba(var(--accent-rgb), 0.3);

    border-radius: 24px;

    box-shadow:
        0 35px 100px rgba(0, 0, 0, 0.28),
        0 0 60px rgba(var(--accent-rgb), 0.06);

    transform-style: preserve-3d;

    transition:
        transform 0.18s ease-out,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


/* GRID OVERLAY */

.ml-identity-card::before {
    content: "";

    position: absolute;
    inset: 0;

    z-index: -1;

    pointer-events: none;

    opacity: 0.4;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        );

    background-size: 35px 35px;
}


/* HOLOGRAPHIC LIGHT */

.ml-identity-light {
    position: absolute;
    inset: 0;

    z-index: 5;

    pointer-events: none;

    opacity: 0;

    background:
        radial-gradient(
            320px circle
            at var(--mouse-x) var(--mouse-y),

            rgba(var(--accent-rgb), 0.20),
            transparent 65%
        );

    transition: opacity 0.3s ease;
}

.ml-identity-card:hover
.ml-identity-light {
    opacity: 1;
}


/* ================================
   TOP BAR
================================ */

.ml-identity-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 18px 24px;

    color: #9296aa;

    background:
        rgba(255,255,255,0.025);

    border-bottom:
        1px solid
        rgba(255,255,255,0.06);

    font-family: monospace;
    font-size: 0.68rem;

    letter-spacing: 0.1em;
}


/* ONLINE */

.ml-identity-online {
    display: flex;
    align-items: center;

    gap: 8px;

    color: #4ade80;
}

.ml-identity-online > span {
    width: 7px;
    height: 7px;

    background: #4ade80;

    border-radius: 50%;

    box-shadow:
        0 0 13px #4ade80;

    animation:
        identityOnlinePulse
        2s ease-in-out infinite;
}


/* ================================
   MAIN CONTENT
================================ */

.ml-identity-main {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns:
        230px minmax(0, 1fr);

    gap: 42px;

    align-items: center;

    padding: 45px;
}


/* ================================
   PHOTO
================================ */

.ml-identity-photo-area {
    text-align: center;
}

.ml-identity-photo-frame {
    position: relative;

    width: 190px;
    height: 230px;

    margin: 0 auto;

    padding: 5px;

    overflow: hidden;

    background:
        rgba(var(--accent-rgb), 0.1);

    border:
        1px solid
        rgba(var(--accent-rgb), 0.55);

    border-radius: 18px;

    box-shadow:
        0 0 35px
        rgba(var(--accent-rgb), 0.14);
}

.ml-identity-photo {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 13px;
}


/* SCANNER */

.ml-identity-scan {
    position: absolute;

    left: 5px;
    right: 5px;
    top: 5px;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--accent),
            transparent
        );

    box-shadow:
        0 0 15px
        var(--accent);

    animation:
        identityScan
        3.5s ease-in-out infinite;
}

.ml-identity-photo-code {
    margin-top: 15px;

    color: var(--accent-soft);

    font-family: monospace;
    font-size: 0.67rem;

    letter-spacing: 0.15em;
}


/* ================================
   INFORMATION
================================ */

.ml-identity-label {
    color: var(--accent);

    font-family: monospace;
    font-size: 0.7rem;

    letter-spacing: 0.15em;
}

.ml-identity-info h3 {
    margin: 12px 0 5px;

    color: #ffffff;

    font-size: clamp(
        2.2rem,
        5vw,
        4rem
    );

    letter-spacing: -0.07em;
}

.ml-identity-info h3 span {
    color: var(--accent);
}

.ml-identity-role {
    margin: 0 0 20px;

    color: #d4d5e2;

    font-family: monospace;
    font-size: 0.85rem;
}

.ml-identity-bio {
    max-width: 540px;

    margin: 0;

    color: #a4a7ba;

    line-height: 1.85;
}


/* DATA */

.ml-identity-data {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;

    margin-top: 30px;
}

.ml-identity-data > div {
    padding: 14px;

    background:
        rgba(255,255,255,0.025);

    border:
        1px solid
        rgba(255,255,255,0.06);

    border-radius: 9px;
}

.ml-identity-data span {
    display: block;

    margin-bottom: 7px;

    color: #73778d;

    font-family: monospace;
    font-size: 0.6rem;

    letter-spacing: 0.1em;
}

.ml-identity-data strong {
    color: var(--accent-soft);

    font-family: monospace;
    font-size: 0.72rem;
}


/* ================================
   ACTIVE FOCUS
================================ */

.ml-identity-focus {
    position: relative;
    z-index: 2;

    padding: 0 45px 35px;
}

.ml-identity-focus > span {
    display: block;

    margin-bottom: 14px;

    color: #797d91;

    font-family: monospace;
    font-size: 0.63rem;

    letter-spacing: 0.14em;
}

.ml-identity-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}

.ml-identity-tags span {
    padding: 8px 11px;

    color: var(--accent-soft);

    background:
        rgba(var(--accent-rgb), 0.08);

    border:
        1px solid
        rgba(var(--accent-rgb), 0.2);

    border-radius: 7px;

    font-family: monospace;
    font-size: 0.68rem;
}


/* ================================
   FOOTER
================================ */

.ml-identity-footer {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 20px 24px;

    background:
        rgba(255,255,255,0.025);

    border-top:
        1px solid
        rgba(255,255,255,0.06);
}

.ml-identity-signature {
    color: #74788d;

    font-family: monospace;
    font-size: 0.62rem;

    letter-spacing: 0.1em;
}


/* BUTTONS */

.ml-identity-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;
}

.ml-identity-actions a {
    padding: 10px 14px;

    color: #c6c8d8;

    border:
        1px solid
        rgba(var(--accent-rgb), 0.22);

    border-radius: 8px;

    font-family: monospace;
    font-size: 0.7rem;

    text-decoration: none;

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}

.ml-identity-actions a:hover {
    transform: translateY(-2px);

    background:
        rgba(var(--accent-rgb), 0.12);
}

.ml-identity-actions
.ml-identity-contact {
    color: #080910;

    background: var(--accent);

    border-color: var(--accent);

    font-weight: 700;
}


/* ================================
   ANIMATIONS
================================ */

@keyframes identityScan {

    0% {
        top: 5px;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        top: calc(100% - 7px);
        opacity: 1;
    }

    60%,
    100% {
        top: calc(100% - 7px);
        opacity: 0;
    }
}


@keyframes identityOnlinePulse {

    0%,
    100% {
        opacity: 0.45;
    }

    50% {
        opacity: 1;
    }
}


/* ================================
   MOBILE
================================ */

@media (max-width: 700px) {

    .ml-identity-main {
        grid-template-columns: 1fr;

        gap: 30px;

        padding: 30px 22px;
    }

    .ml-identity-photo-frame {
        width: 160px;
        height: 195px;
    }

    .ml-identity-info {
        text-align: center;
    }

    .ml-identity-bio {
        margin-inline: auto;
    }

    .ml-identity-data {
        text-align: left;
    }

    .ml-identity-focus {
        padding:
            0 22px 30px;
    }

    .ml-identity-footer {
        flex-direction: column;

        align-items: flex-start;
    }

}


/* VERY SMALL PHONE */

@media (max-width: 430px) {

    .ml-identity-data {
        grid-template-columns: 1fr;
    }

    .ml-identity-actions {
        width: 100%;
    }

    .ml-identity-actions a {
        flex: 1;

        text-align: center;
    }

}


/* ACCESSIBILITY */

@media (
    prefers-reduced-motion: reduce
) {

    .ml-identity-card {
        transform: none !important;
        transition: none;
    }

    .ml-identity-scan,
    .ml-identity-online > span {
        animation: none;
    }

}
/* ==================================
   MISI 025 — AMBIENT SOUND SYSTEM
================================== */

.sound-controller {
    position: relative;
    z-index: 1000;

    font-family: monospace;
}


/* ================================
   MAIN BUTTON
================================ */

.sound-toggle {
    display: flex;
    align-items: center;
    gap: 10px;

    min-height: 42px;

    padding: 9px 14px;

    color: var(--muted);

    background:
        rgba(var(--accent-rgb), 0.06);

    border:
        1px solid
        rgba(var(--accent-rgb), 0.2);

    border-radius: 10px;

    font-family: inherit;
    font-size: 0.68rem;
    letter-spacing: 0.08em;

    cursor: pointer;

    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}


.sound-toggle:hover {
    color: var(--text);

    border-color:
        rgba(var(--accent-rgb), 0.55);
}


.sound-toggle:focus-visible {
    outline:
        2px solid var(--accent);

    outline-offset: 3px;
}


/* SOUND ON */

.sound-controller.is-playing
.sound-toggle {

    color: var(--accent-soft);

    background:
        rgba(var(--accent-rgb), 0.14);

    border-color: var(--accent);
}


/* ================================
   AUDIO BARS
================================ */

.sound-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 2px;

    width: 17px;
    height: 18px;
}


.sound-icon i {
    display: block;

    width: 2px;
    height: 5px;

    background: currentColor;

    border-radius: 5px;
}


/* PLAYING ANIMATION */

.sound-controller.is-playing
.sound-icon i:nth-child(1) {

    animation:
        soundBarOne
        0.7s ease-in-out infinite;
}


.sound-controller.is-playing
.sound-icon i:nth-child(2) {

    animation:
        soundBarTwo
        0.55s ease-in-out infinite;
}


.sound-controller.is-playing
.sound-icon i:nth-child(3) {

    animation:
        soundBarThree
        0.8s ease-in-out infinite;
}


/* ================================
   PANEL
================================ */

.sound-panel {
    position: absolute;

    top: calc(100% + 12px);
    right: 0;

    width: 290px;

    padding: 20px;

    color: #f4f4ff;

    background:
        rgba(13, 15, 25, 0.96);

    border:
        1px solid
        rgba(var(--accent-rgb), 0.28);

    border-radius: 14px;

    box-shadow:
        0 25px 70px
        rgba(0, 0, 0, 0.4);

    backdrop-filter:
        blur(18px);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform:
        translateY(-8px)
        scale(0.98);

    transform-origin: top right;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
}


/* PANEL OPEN */

.sound-controller.is-open
.sound-panel {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
        translateY(0)
        scale(1);
}


/* ================================
   PANEL HEADER
================================ */

.sound-panel-header {
    display: flex;
    justify-content: space-between;

    gap: 15px;

    padding-bottom: 14px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.07);

    color: #888ca2;

    font-size: 0.62rem;
    letter-spacing: 0.08em;
}


.sound-status {
    color: #fb7185;
}


.sound-controller.is-playing
.sound-status {

    color: #4ade80;
}


/* ================================
   TRACK INFO
================================ */

.sound-track {
    display: flex;
    flex-direction: column;

    gap: 7px;

    padding:
        20px 0 22px;
}


.sound-track-label {
    color: var(--accent);

    font-size: 0.6rem;
    letter-spacing: 0.14em;
}


.sound-track strong {
    color: #f3f3fb;

    font-size: 0.9rem;
    letter-spacing: 0.05em;
}


/* ================================
   VOLUME
================================ */

.sound-volume {
    display: flex;
    justify-content: space-between;

    margin-bottom: 12px;

    color: #969aaf;

    font-size: 0.63rem;
    letter-spacing: 0.08em;
}


#sound-volume-value {
    color: var(--accent-soft);
}


.sound-volume-slider {
    width: 100%;

    accent-color: var(--accent);

    cursor: pointer;
}


.sound-hint {
    margin:
        14px 0 0;

    color: #666b80;

    font-size: 0.58rem;
    line-height: 1.5;
}


/* ================================
   ANIMATIONS
================================ */

@keyframes soundBarOne {

    0%,
    100% {
        height: 5px;
    }

    50% {
        height: 15px;
    }

}


@keyframes soundBarTwo {

    0%,
    100% {
        height: 10px;
    }

    50% {
        height: 4px;
    }

}


@keyframes soundBarThree {

    0%,
    100% {
        height: 7px;
    }

    50% {
        height: 17px;
    }

}


/* ================================
   MOBILE
================================ */

@media (max-width: 760px) {

    .sound-panel {
        position: fixed;

        top: 80px;
        right: 15px;
        left: 15px;

        width: auto;

        transform-origin: top center;
    }

}


/* ================================
   REDUCED MOTION
================================ */

@media (
    prefers-reduced-motion: reduce
) {

    .sound-icon i {
        animation: none !important;
    }

    .sound-panel {
        transition: none;
    }

}
/* ==================================
   MISI 029 — PROJECT DATA
================================== */

.project-data-line {
    margin-top: 12px;

    color: var(--accent-soft);

    font-family: monospace;
    font-size: 0.68rem;

    letter-spacing: 0.05em;
    line-height: 1.7;
}
/* ==========================================
   MISI 031 — PROJECT MEDIA GALLERY
========================================== */

.showcase-media {
    position: relative;

    margin-top: 32px;
    margin-bottom: 32px;

    padding: 22px;

    background:
        rgba(8, 10, 18, 0.7);

    border:
        1px solid
        rgba(var(--accent-rgb), 0.18);

    border-radius: 18px;

    overflow: hidden;
}


/* HEADER */

.showcase-media-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 18px;
}


.showcase-media-kicker {
    display: block;

    margin-bottom: 7px;

    color: var(--accent);

    font-family: monospace;
    font-size: 0.62rem;

    letter-spacing: 0.15em;
}


.showcase-media-header h3 {
    margin: 0;

    color: #f4f4ff;

    font-size: 1rem;
}


.showcase-media-counter {
    color: var(--accent-soft);

    font-family: monospace;
    font-size: 0.7rem;

    letter-spacing: 0.1em;
}


/* ==================================
   MAIN STAGE
================================== */

.showcase-media-stage {
    position: relative;

    min-height: 340px;

    aspect-ratio: 16 / 9;

    background:
        #070911;

    border:
        1px solid
        rgba(var(--accent-rgb), 0.2);

    border-radius: 14px;

    overflow: hidden;
}


.showcase-media-image {
    position: absolute;
    inset: 0;

    z-index: 2;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 1;

    transition:
        opacity 0.3s ease,
        transform 0.5s ease;
}


.showcase-media-image:hover {
    transform: scale(1.015);
}


.showcase-media-image.is-hidden {
    opacity: 0;
}


/* GRID */

.showcase-media-grid {
    position: absolute;
    inset: 0;

    z-index: 1;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(var(--accent-rgb), 0.05)
            1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(var(--accent-rgb), 0.05)
            1px,
            transparent 1px
        );

    background-size:
        40px 40px;
}


/* ==================================
   FALLBACK
================================== */

.showcase-media-fallback {
    position: absolute;
    inset: 0;

    z-index: 1;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 30px;

    text-align: center;

    opacity: 0;

    background:
        radial-gradient(
            circle at center,
            rgba(var(--accent-rgb), 0.11),
            transparent 55%
        );
}


.showcase-media-fallback.is-visible {
    opacity: 1;
}


.showcase-media-fallback span {
    color: var(--accent);

    font-family: monospace;
    font-size: 0.62rem;

    letter-spacing: 0.16em;
}


.showcase-media-fallback strong {
    color: #f5f5ff;

    font-size: clamp(
        1.3rem,
        4vw,
        2.5rem
    );

    letter-spacing: -0.03em;
}


.showcase-media-fallback small {
    max-width: 80%;

    color: #6f7388;

    font-family: monospace;
    font-size: 0.6rem;

    overflow-wrap: anywhere;
}


/* ==================================
   INDEX
================================== */

.showcase-media-index {
    position: absolute;

    top: 18px;
    left: 18px;

    z-index: 5;

    display: grid;
    place-items: center;

    width: 45px;
    height: 45px;

    color: var(--accent-soft);

    background:
        rgba(5, 7, 13, 0.78);

    border:
        1px solid
        rgba(var(--accent-rgb), 0.35);

    border-radius: 50%;

    font-family: monospace;
    font-size: 0.65rem;

    backdrop-filter:
        blur(10px);
}


/* ==================================
   PREV / NEXT
================================== */

.showcase-media-controls {
    position: absolute;

    right: 18px;
    bottom: 18px;

    z-index: 6;

    display: flex;

    gap: 7px;
}


.showcase-media-controls button {
    display: grid;
    place-items: center;

    width: 44px;
    height: 44px;

    color: #f5f5ff;

    background:
        rgba(5, 7, 13, 0.82);

    border:
        1px solid
        rgba(var(--accent-rgb), 0.3);

    border-radius: 50%;

    cursor: pointer;

    backdrop-filter:
        blur(10px);

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}


.showcase-media-controls button:hover:not(:disabled) {
    color: var(--accent);

    border-color:
        var(--accent);

    background:
        rgba(var(--accent-rgb), 0.12);

    transform:
        translateY(-2px);
}


.showcase-media-controls button:disabled {
    opacity: 0.25;

    cursor: default;
}


/* ==================================
   THUMBNAILS
================================== */

.showcase-media-thumbs {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 10px;

    margin-top: 10px;
}


.showcase-media-thumb {
    position: relative;

    min-height: 80px;

    padding: 0;

    background:
        rgba(var(--accent-rgb), 0.025);

    border:
        1px solid
        rgba(var(--accent-rgb), 0.12);

    border-radius: 10px;

    overflow: hidden;

    cursor: pointer;

    transition:
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.showcase-media-thumb:hover {
    transform:
        translateY(-2px);

    border-color:
        rgba(var(--accent-rgb), 0.5);
}


.showcase-media-thumb.is-active {
    border-color:
        var(--accent);

    box-shadow:
        0 0 20px
        rgba(var(--accent-rgb), 0.13);
}


.showcase-media-thumb img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0.55;

    transition:
        opacity 0.25s ease;
}


.showcase-media-thumb:hover img,
.showcase-media-thumb.is-active img {
    opacity: 0.9;
}


.showcase-media-thumb span {
    position: absolute;

    left: 9px;
    bottom: 7px;

    z-index: 2;

    color: #ffffff;

    font-family: monospace;
    font-size: 0.58rem;

    text-shadow:
        0 1px 6px #000;
}


/* MISSING THUMB */

.showcase-media-thumb.is-missing {
    background:
        linear-gradient(
            135deg,
            rgba(var(--accent-rgb), 0.08),
            rgba(255, 255, 255, 0.01)
        );
}


/* ==================================
   MOBILE
================================== */

@media (max-width: 760px) {

    .showcase-media {
        padding: 14px;

        border-radius: 14px;
    }


    .showcase-media-stage {
        min-height: 240px;

        aspect-ratio: 4 / 3;
    }


    .showcase-media-header {
        align-items: flex-start;
    }


    .showcase-media-thumbs {
    display: flex;

    gap: 8px;

    overflow-x: auto;

    padding-bottom: 5px;

    scroll-snap-type: x proximity;

    scrollbar-width: thin;
}


.showcase-media-thumb {
    flex: 0 0 100px;

    min-height: 70px;

    scroll-snap-align: start;
}


    .showcase-media-controls {
        right: 12px;
        bottom: 12px;
    }


    .showcase-media-index {
        top: 12px;
        left: 12px;
    }

}


/* REDUCED MOTION */

@media (
    prefers-reduced-motion: reduce
) {

    .showcase-media-image,
    .showcase-media-thumb,
    .showcase-media-controls button {

        transition: none;

    }

}
/* ==========================================
   MISI 032 — MOBILE + PERFORMANCE POLISH
========================================== */


/* ==========================================
   01 — GLOBAL SAFETY
========================================== */

html {
    max-width: 100%;

    overflow-x: clip;
}


body {
    max-width: 100%;

    overflow-x: clip;
}


img,
video,
canvas,
svg {
    max-width: 100%;
}


img {
    height: auto;
}


/* Prevent long text / code from destroying
   mobile layout */

p,
h1,
h2,
h3,
h4,
span,
strong {
    overflow-wrap: break-word;
}


/* ==========================================
   02 — TOUCH TARGETS
========================================== */

button,
a,
input,
summary {
    -webkit-tap-highlight-color:
        transparent;
}


button,
a {
    touch-action: manipulation;
}


/* ==========================================
   03 — TABLET
========================================== */

@media (max-width: 980px) {

    section {
        scroll-margin-top: 90px;
    }


    .project-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .ml-identity-main {
        grid-template-columns:
            190px minmax(0, 1fr);
    }

}


/* ==========================================
   04 — MOBILE
========================================== */

@media (max-width: 760px) {

    /* GENERAL SECTION */

    section {
        scroll-margin-top: 80px;
    }


    /* PROJECTS */

    .project-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    .project-card {
        width: 100%;
        max-width: 100%;
    }


    /* PROJECT BUTTON */

    .project-detail-trigger {
        min-height: 44px;
    }


    /* SHOWCASE */

    .showcase-tabs {
        display: grid;

        grid-template-columns: 1fr;

        width: 100%;
    }


    .showcase-tab {
        width: 100%;

        justify-content: flex-start;

        min-height: 46px;
    }


    /* IDENTITY CARD */

    .ml-identity-wrapper {
        width: 100%;
    }


    .ml-identity-card {
        width: 100%;
    }


    .ml-identity-main {
        grid-template-columns: 1fr;
    }


    .ml-identity-photo-area {
        display: flex;
        flex-direction: column;

        align-items: center;
    }


    /* SKILLS */

    .ml-skills-universe {
        max-width: 100%;
    }


    /* TERMINAL */

    #terminal {
        max-width: 100%;
    }


    /* DASHBOARD */

    #system-dashboard {
        max-width: 100%;
    }


    /* MEDIA GALLERY */

    .showcase-media {
        width: 100%;
    }


    .showcase-media-stage {
        min-height: 220px;
    }

}


/* ==========================================
   05 — SMALL MOBILE
========================================== */

@media (max-width: 480px) {

    .showcase-media {
        padding: 10px;
    }


    .showcase-media-header {
        flex-direction: column;

        align-items: flex-start;

        gap: 8px;
    }


    .showcase-media-stage {
        min-height: 200px;

        aspect-ratio: 4 / 3;
    }


    .showcase-media-controls button {
        width: 40px;
        height: 40px;
    }


    .showcase-media-thumbs {
        gap: 7px;
    }


    .showcase-media-thumb {
        min-height: 65px;
    }


    .ml-identity-data {
        grid-template-columns: 1fr;
    }

}


/* ==========================================
   06 — TOUCH DEVICES
========================================== */

@media (hover: none) and (pointer: coarse) {

    /*
       Custom desktop cursor has no purpose
       on touchscreen.
    */

    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }


    /*
       Remove hover-only movement.
    */

    .project-card:hover {
        box-shadow:
            0 15px 40px
            rgba(0, 0, 0, 0.22);
    }


    .showcase-media-image:hover {
        transform: none;
    }


    .showcase-media-thumb:hover {
        transform: none;
    }


    .showcase-media-controls
    button:hover:not(:disabled) {

        transform: none;

    }

}


/* ==========================================
   07 — REDUCED MOTION
========================================== */

@media (
    prefers-reduced-motion: reduce
) {

    html {
        scroll-behavior: auto !important;
    }


    *,
    *::before,
    *::after {

        scroll-behavior:
            auto !important;

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;

    }

}
/* ==========================================
   MISI 032 — SAVE DATA MODE
========================================== */

body[data-network="save-data"]
#particle-canvas {
    display: none;
}


body[data-network="save-data"]
.showcase-media-image {
    transition: none;
}


body[data-motion="reduced"]
#particle-canvas {
    opacity: 0.15;
}

/* ==========================================
   MISI 032 — TOUCH IDENTITY MODE
========================================== */

body[data-pointer="touch"]
.ml-identity-card {
    transform: none !important;
}


body[data-pointer="touch"]
.ml-identity-light {
    opacity: 0.35;
}

/* ==========================================
   MISI 032 — ACCESSIBLE FOCUS
========================================== */

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {

    outline:
        2px solid
        var(--accent);

    outline-offset:
        4px;

}