:root {
    --background: #07111f;
    --background-light: #0b1728;
    --surface: #101f33;
    --surface-light: #152841;
    --border: #263b55;
    --text: #e8eef7;
    --text-muted: #a8b5c7;
    --accent: #67e8f9;
    --accent-dark: #0e7490;
    --accent-soft: rgba(103, 232, 249, 0.1);
    --success: #86efac;
    --header-height: 76px;
    --max-width: 1120px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.6;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(14, 116, 144, 0.16),
            transparent 28rem
        ),
        radial-gradient(
            circle at 85% 25%,
            rgba(37, 99, 235, 0.08),
            transparent 25rem
        );
    pointer-events: none;
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

img {
    max-width: 100%;
}

section {
    scroll-margin-top: calc(var(--header-height) + 24px);
}

.container {
    width: min(100% - 40px, var(--max-width));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 9999;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--accent);
    color: var(--background);
    font-weight: 800;
    text-decoration: none;
    transform: translateY(-150%);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    border-bottom: 1px solid rgba(38, 59, 85, 0.8);
    background: rgba(7, 17, 31, 0.88);
    backdrop-filter: blur(16px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
}

.brand {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-decoration: none;
}

.brand span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.93rem;
    font-weight: 650;
    text-decoration: none;
    transition:
        color 160ms ease,
        transform 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--accent);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    border-radius: 10px;
    background: var(--text);
}

.hero {
    display: grid;
    min-height: calc(100vh - var(--header-height));
    align-items: center;
    padding: 90px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
    gap: 64px;
    align-items: center;
}

.eyebrow,
.panel-label,
.timeline-label {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.hero h1 {
    margin: 0;
    font-size: clamp(3.4rem, 9vw, 6.8rem);
    line-height: 0.95;
    letter-spacing: -0.07em;
}

.hero-title {
    margin: 22px 0 0;
    color: var(--accent);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 750;
}

.hero-title span {
    margin: 0 8px;
    color: var(--text-muted);
}

.hero-copy {
    max-width: 720px;
    margin: 22px 0 0;
    color: var(--text-muted);
    font-size: 1.12rem;
    line-height: 1.8;
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
    transition:
        transform 160ms ease,
        background 160ms ease,
        border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--accent);
    color: var(--background);
}

.button-primary:hover,
.button-primary:focus-visible {
    background: #a5f3fc;
}

.button-secondary {
    border-color: var(--border);
    background: var(--surface);
    color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
}

.hero-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 42px 0 0;
    padding: 0;
    list-style: none;
}

.hero-details li {
    padding-top: 14px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.86rem;
}

.hero-details span {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-panel {
    position: relative;
    padding: 34px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background:
        linear-gradient(
            145deg,
            rgba(21, 40, 65, 0.95),
            rgba(11, 23, 40, 0.95)
        );
    box-shadow: var(--shadow);
}

.hero-panel::after {
    position: absolute;
    right: -75px;
    bottom: -75px;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(103, 232, 249, 0.16);
    border-radius: 50%;
    content: "";
}

.hero-panel h2 {
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.2;
}

.checklist {
    display: grid;
    gap: 16px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.checklist li {
    position: relative;
    padding-left: 30px;
    color: var(--text-muted);
}

.checklist li::before {
    position: absolute;
    top: 1px;
    left: 0;
    color: var(--success);
    content: "✓";
    font-weight: 900;
}

.section {
    padding: 110px 0;
}

.section-alt {
    border-top: 1px solid rgba(38, 59, 85, 0.55);
    border-bottom: 1px solid rgba(38, 59, 85, 0.55);
    background: rgba(11, 23, 40, 0.58);
}

.section-heading {
    max-width: 790px;
    margin-bottom: 48px;
}

.section-heading h2,
.contact-card h2 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.12;
    letter-spacing: -0.045em;
}

.section-heading > p:last-child {
    max-width: 700px;
    margin: 18px 0 0;
    color: var(--text-muted);
    font-size: 1.04rem;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 64px;
}

.about-copy p {
    margin: 0 0 22px;
    color: var(--text-muted);
    font-size: 1.08rem;
    line-height: 1.85;
}

.principles {
    display: grid;
    gap: 14px;
}

.principle-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface);
}

.principle-card > span {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 850;
}

.principle-card h3 {
    margin: 7px 0 6px;
}

.principle-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.94rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.skill-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    transition:
        transform 160ms ease,
        border-color 160ms ease;
}

.skill-card:hover {
    border-color: var(--accent-dark);
    transform: translateY(-3px);
}

.skill-card h3 {
    margin: 0 0 20px;
    font-size: 1.16rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tag-list li {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--accent-soft);
    color: #c8f7ff;
    font-size: 0.76rem;
    font-weight: 700;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.project-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.project-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.project-number {
    color: var(--accent);
    font-size: 0.86rem;
    font-weight: 900;
}

.status {
    padding: 5px 9px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 750;
}

.project-card h3 {
    margin: 22px 0 12px;
    font-size: 1.45rem;
}

.project-card > p {
    color: var(--text-muted);
}

.project-outcome {
    margin: auto 0 0;
    padding-top: 24px;
    font-size: 0.9rem;
}

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

.project-card .tag-list {
    margin: 18px 0 24px;
}

.lab-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    gap: 64px;
    align-items: center;
}

.lab-grid > div:first-child > p {
    color: var(--text-muted);
    font-size: 1.04rem;
}

.lab-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.lab-list li {
    position: relative;
    padding-left: 22px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.lab-list li::before {
    position: absolute;
    left: 0;
    color: var(--accent);
    content: ">";
    font-weight: 900;
}

.terminal {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #050b13;
    box-shadow: var(--shadow);
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 16px;
    border-bottom: 1px solid #1a2a3c;
    background: #0d1724;
}

.terminal-bar > span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #41536a;
}

.terminal-bar p {
    margin: 0 0 0 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.terminal-body {
    min-height: 370px;
    padding: 26px;
    font-family:
        "Cascadia Code",
        "SFMono-Regular",
        Consolas,
        monospace;
    font-size: 0.88rem;
}

.terminal-body p {
    margin: 0 0 12px;
}

.prompt {
    margin-right: 8px;
    color: var(--accent);
}

.output {
    padding-left: 23px;
    color: var(--success);
}

.cursor {
    display: inline-block;
    width: 9px;
    height: 16px;
    background: var(--accent);
    vertical-align: middle;
    animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.timeline {
    position: relative;
    display: grid;
    gap: 34px;
    max-width: 850px;
}

.timeline::before {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 7px;
    width: 1px;
    background: var(--border);
    content: "";
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 24px;
}

.timeline-marker {
    position: relative;
    z-index: 1;
    width: 15px;
    height: 15px;
    margin-top: 5px;
    border: 3px solid var(--background);
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-dark);
}

.timeline-item h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.timeline-item p:last-child {
    margin: 0;
    color: var(--text-muted);
}

.contact-section {
    padding-top: 30px;
}

.contact-card {
    padding: clamp(32px, 7vw, 70px);
    border: 1px solid var(--border);
    border-radius: 24px;
    background:
        linear-gradient(
            135deg,
            rgba(21, 40, 65, 0.98),
            rgba(11, 23, 40, 0.98)
        );
    box-shadow: var(--shadow);
}

.contact-card > p:not(.eyebrow) {
    max-width: 720px;
    margin: 20px 0 0;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.site-footer {
    padding: 34px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.footer-content p {
    margin: 0;
}

@media (max-width: 900px) {
    .hero-grid,
    .about-grid,
    .lab-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero-panel {
        max-width: 650px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lab-grid {
        gap: 46px;
    }
}

@media (max-width: 760px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: calc(var(--header-height) - 1px);
        right: 20px;
        left: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: var(--surface);
        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 12px;
        border-radius: 8px;
    }

    .nav-links a:hover,
    .nav-links a:focus-visible {
        background: var(--surface-light);
        transform: none;
    }

    .hero {
        padding: 72px 0;
    }

    .hero-details {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 84px 0;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(100% - 28px, var(--max-width));
    }

    .hero-grid {
        gap: 42px;
    }

    .hero h1 {
        font-size: clamp(3rem, 17vw, 4.5rem);
    }

    .hero-title span {
        display: none;
    }

    .hero-title {
        display: grid;
        gap: 3px;
    }

    .hero-actions,
    .contact-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .hero-panel,
    .skill-card,
    .project-card {
        padding: 24px;
    }

    .lab-list {
        grid-template-columns: 1fr;
    }

    .terminal-body {
        min-height: 340px;
        padding: 20px;
        font-size: 0.78rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   PROJECT CASE STUDY PAGES
   ========================================================= */

.project-hero {
    padding: 88px 0 76px;
    border-bottom: 1px solid rgba(38, 59, 85, 0.65);
    background:
        linear-gradient(
            180deg,
            rgba(11, 23, 40, 0.45),
            rgba(7, 17, 31, 0)
        );
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 34px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 750;
    text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
    color: var(--accent);
}

.project-hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(3rem, 8vw, 6.2rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.project-lead {
    max-width: 850px;
    margin: 26px 0 0;
    color: var(--text-muted);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.8;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.project-meta li {
    min-width: 150px;
    padding: 14px 17px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(16, 31, 51, 0.72);
    color: var(--text-muted);
    font-size: 0.86rem;
}

.project-meta strong {
    display: block;
    margin-bottom: 2px;
    color: var(--text);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.case-study-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 70px;
    align-items: start;
}

.case-study-main > section {
    margin-bottom: 74px;
}

.case-study-main > section:last-of-type {
    margin-bottom: 50px;
}

.case-study-main h2 {
    margin: 0 0 20px;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: 1.16;
    letter-spacing: -0.04em;
}

.case-study-main h3 {
    margin: 0 0 10px;
}

.case-study-main > section > p:not(.eyebrow) {
    color: var(--text-muted);
    font-size: 1.03rem;
    line-height: 1.85;
}

.project-note {
    margin-top: 30px;
    padding: 20px 22px;
    border: 1px solid var(--accent-dark);
    border-left: 4px solid var(--accent);
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--text-muted);
}

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

.objectives-grid,
.results-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 30px;
}

.objective-card,
.result-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface);
}

.objective-card > span {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 850;
}

.objective-card h3,
.result-card h3 {
    margin: 8px 0 9px;
    font-size: 1.08rem;
}

.objective-card p,
.result-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.91rem;
    line-height: 1.7;
}

.architecture-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-top: 32px;
}

.architecture-node {
    min-height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    text-align: center;
}

.architecture-node strong {
    color: var(--text);
}

.architecture-node span {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 0.81rem;
}

.flow-arrow {
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 900;
}

.case-steps {
    counter-reset: case-step;
    display: grid;
    gap: 18px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.case-steps li {
    counter-increment: case-step;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 20px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface);
}

.case-steps li::before {
    content: counter(case-step, decimal-leading-zero);
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent-dark);
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 900;
}

.case-steps h3 {
    margin: 0 0 6px;
    font-size: 1.08rem;
}

.case-steps p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.7;
}

.case-study-main code {
    color: #c8f7ff;
    font-family:
        "Cascadia Code",
        "SFMono-Regular",
        Consolas,
        monospace;
}

.command-block {
    margin-top: 26px;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #050b13;
    box-shadow: var(--shadow);
}

.command-block pre {
    margin: 0;
    padding: 26px;
}

.command-block code {
    color: var(--success);
    font-size: 0.9rem;
    line-height: 1.85;
}

.case-list {
    display: grid;
    gap: 11px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.case-list li {
    position: relative;
    padding-left: 24px;
    color: var(--text-muted);
}

.case-list li::before {
    position: absolute;
    left: 0;
    color: var(--accent);
    content: ">";
    font-weight: 900;
}

.case-study-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    display: grid;
    gap: 16px;
}

.sidebar-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
}

.sidebar-card .panel-label {
    margin-bottom: 18px;
}

.snapshot-list {
    margin: 0;
}

.snapshot-list div {
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
}

.snapshot-list div:first-child {
    padding-top: 0;
}

.snapshot-list div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.snapshot-list dt {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.snapshot-list dd {
    margin: 3px 0 0;
    color: var(--text);
    font-size: 0.9rem;
}

.compact-list {
    margin-top: 0;
    gap: 8px;
    font-size: 0.88rem;
}

.bottom-back-link {
    margin: 0;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.project-link:hover,
.project-link:focus-visible {
    color: #a5f3fc;
}

.project-title-link {
    color: var(--text);
    text-decoration: none;
}

.project-title-link:hover,
.project-title-link:focus-visible {
    color: var(--accent);
}

@media (max-width: 900px) {
    .case-study-layout {
        grid-template-columns: 1fr;
        gap: 54px;
    }

    .case-study-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .case-study-sidebar .sidebar-card:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .project-hero {
        padding: 68px 0 58px;
    }

    .project-meta {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .objectives-grid,
    .results-grid,
    .case-study-sidebar {
        grid-template-columns: 1fr;
    }

    .case-study-sidebar .sidebar-card:first-child {
        grid-column: auto;
    }

    .architecture-flow {
        grid-template-columns: 1fr;
    }

    .flow-arrow {
        text-align: center;
        transform: rotate(90deg);
    }
}

@media (max-width: 520px) {
    .project-meta {
        grid-template-columns: 1fr;
    }

    .case-steps li {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   CYBERSECURITY HOME LAB ARCHITECTURE
   ========================================================= */

.lab-architecture {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    max-width: 850px;
    margin: 0 auto;
}

.lab-node {
    position: relative;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            rgba(21, 40, 65, 0.95),
            rgba(11, 23, 40, 0.95)
        );
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
    transition:
        transform 160ms ease,
        border-color 160ms ease;
}

.lab-node:hover {
    border-color: var(--accent-dark);
    transform: translateY(-3px);
}

.lab-node::before {
    position: absolute;
    top: 0;
    right: 28px;
    left: 28px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
    content: "";
    opacity: 0.65;
}

.node-label {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.16em;
}

.lab-node h3 {
    margin: 0;
    font-size: 1.55rem;
    letter-spacing: -0.025em;
}

.lab-node > p:not(.node-label) {
    max-width: 680px;
    margin: 12px 0 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

.lab-connection {
    display: flex;
    min-height: 90px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.lab-connection span {
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--background-light);
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.connection-line {
    position: relative;
    margin-top: 5px;
    color: var(--accent);
    font-size: 1.6rem;
    line-height: 1;
}

.connection-line::before {
    position: absolute;
    top: -15px;
    bottom: 14px;
    left: 50%;
    z-index: -1;
    width: 1px;
    background: var(--accent-dark);
    content: "";
}

.cloud-divider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 54px 0 28px;
    color: var(--text-muted);
}

.cloud-divider::before,
.cloud-divider::after {
    height: 1px;
    flex: 1;
    background: var(--border);
    content: "";
}

.cloud-divider span {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.14em;
}

.cloud-node {
    border-color: rgba(103, 232, 249, 0.32);
}

.cloud-node::before {
    opacity: 1;
}

.lab-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.85fr);
    gap: 60px;
    align-items: start;
    max-width: 1000px;
    margin: 72px auto 0;
    padding: 36px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
}

.lab-summary h3 {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -0.035em;
}

.lab-summary > div > p:last-child {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.75;
}

.lab-summary .lab-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin: 0;
}

/* Individual node identifiers */

.attacker-node::after,
.target-node::after,
.defender-node::after,
.cloud-node::after {
    position: absolute;
    top: 24px;
    right: 28px;
    color: rgba(168, 181, 199, 0.16);
    font-family:
        "Cascadia Code",
        "SFMono-Regular",
        Consolas,
        monospace;
    font-size: 2rem;
    font-weight: 900;
}

.attacker-node::after {
    content: "01";
}

.target-node::after {
    content: "02";
}

.defender-node::after {
    content: "03";
}

.cloud-node::after {
    content: "04";
}

/* Tablet */

@media (max-width: 900px) {
    .lab-summary {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .lab-node {
        padding: 24px;
    }

    .lab-node::before {
        right: 22px;
        left: 22px;
    }

    .attacker-node::after,
    .target-node::after,
    .defender-node::after,
    .cloud-node::after {
        top: 21px;
        right: 22px;
        font-size: 1.5rem;
    }

    .lab-connection {
        min-height: 78px;
    }

    .cloud-divider {
        gap: 10px;
        margin-top: 42px;
    }

    .cloud-divider span {
        font-size: 0.58rem;
        letter-spacing: 0.09em;
    }

    .lab-summary {
        margin-top: 52px;
        padding: 25px;
    }
}