/* =========================================================
   Theme
   ========================================================= */

:root {
    --bg: #0b0d10;
    --surface: #12161b;
    --surface-2: #171c22;
    --text: #f5f7fa;
    --muted: #9ca7b3;
    --line: #252c34;
    /* SRP Brand Colors */
    --accent: #38a9ff;
    --accent-hover: #67bcff;
    --accent-soft: rgba(56, 169, 255, 0.12);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
    /* Footer */
    --footer-bg: #071525;
    --footer-text: #f5f7fa;
    --footer-muted: #98a8ba;
    --footer-line: rgba(255, 255, 255, 0.08);
}


    :root[data-theme="light"] {
        --bg: #f7f8fa;
        --surface: #ffffff;
        --surface-2: #f0f2f4;
        --text: #11151a;
        --muted: #5e6873;
        --line: #dde2e7;
        --accent: #087bc1;
        --accent-hover: #0569a5;
        --accent-soft: rgba(8, 123, 193, 0.10);
        --shadow: 0 24px 80px rgba(20, 30, 40, 0.08);
        /* Footer */
        --footer-bg: #ffffff;
        --footer-text: #11151a;
        --footer-muted: #5e6873;
        --footer-line: #dde2e7;
    }


/* =========================================================
   Base
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.site-main {
    width: 100%;
    flex: 1 0 auto;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    color: var(--muted);
}

img {
    max-width: 100%;
}

.container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.narrow {
    width: min(820px, calc(100% - 40px));
}

.section {
    padding: 96px 0;
}

    .section.compact {
        padding-top: 48px;
    }

.muted {
    color: var(--muted);
}


/* =========================================================
   Typography
   ========================================================= */

.eyebrow {
    margin-bottom: 20px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font: 600 12px/1.4 "JetBrains Mono", monospace;
}

h1,
h2,
h3 {
    margin-top: 0;
    color: var(--text);
    letter-spacing: -0.04em;
    line-height: 1.08;
}

h1 {
    max-width: 960px;
    margin-bottom: 28px;
    font-size: clamp(2.4rem, 4.5vw, 4.5rem);
}

h2 {
    font-size: clamp(1.9rem, 3vw, 3rem);
}

h3 {
    font-size: 1.35rem;
}

.lead,
.hero-copy {
    max-width: 760px;
    font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}


/* =========================================================
   Header / Navigation
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.nav-wrap {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}


/* =========================================================
   Navbar Logo
   ========================================================= */

.navbar-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.navbar-logo {
    width: 150px;
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.02);
}


/*
   Dark theme
   Show white/blue logo.
*/

.navbar-logo-dark-theme {
    display: block;
}

.navbar-logo-light-theme {
    display: none;
}


/*
   Light theme
   Show navy/blue logo.
*/

:root[data-theme="light"] .navbar-logo-dark-theme {
    display: none;
}

:root[data-theme="light"] .navbar-logo-light-theme {
    display: block;
}


/* =========================================================
   Navigation Links
   ========================================================= */

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--muted);
    font-size: 0.95rem;
}

    .nav-links > a:not(.btn) {
        position: relative;
        transition: color 0.18s ease;
    }

        .nav-links > a:not(.btn):hover {
            color: var(--text);
        }

        .nav-links > a:not(.btn)::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -7px;
            width: 0;
            height: 2px;
            border-radius: 999px;
            background: var(--accent);
            transition: width 0.2s ease;
        }

        .nav-links > a:not(.btn):hover::after {
            width: 100%;
        }


/* =========================================================
   Navigation Actions
   ========================================================= */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle,
.menu-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

    .theme-toggle:hover,
    .menu-toggle:hover {
        border-color: var(--accent);
        transform: translateY(-1px);
    }

.menu-toggle {
    display: none;
}


/* =========================================================
   Buttons
   ========================================================= */

/* Button base */
/* Button base */
.button,
.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

    /* Hover */
    .button:hover,
    .btn:hover {
        transform: translateY(-2px);
        border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18), 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent);
    }

    /* Primary button */
    .button.primary,
    .btn-primary {
        background: var(--accent);
        border-color: var(--accent);
        color: #04111d;
        box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 18%, transparent);
    }

        .button.primary:hover,
        .btn-primary:hover {
            background: var(--accent-hover);
            border-color: var(--accent-hover);
            box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 28%, transparent);
        }

    /* Slightly stronger visual separation */
    .button.secondary,
    .btn-secondary {
        background: linear-gradient( 180deg, color-mix(in srgb, var(--surface) 94%, white), var(--surface) );
        border-color: color-mix(in srgb, var(--line) 82%, white);
    }

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

/* Small buttons */
.btn-sm {
    min-height: 40px;
    padding: 0 18px;
    font-size: 0.9rem;
}

.resume-link {
    margin-left: 4px;
}


/* =========================================================
   Hero
   ========================================================= */

.hero {
    min-height: 760px;
    display: grid;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 72px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(3.4rem, 6vw, 6rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 36px 0 26px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-top: 30px;
    color: var(--muted);
    font-size: 0.9rem;
}

    .hero-meta span {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

        .hero-meta span::before {
            content: "";
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: var(--accent);
        }

.availability {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 0.9rem;
}

    .availability span {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--accent);
        box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 15%, transparent);
    }


/* =========================================================
   Terminal Card
   ========================================================= */

.terminal-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
    transform: rotate(1.25deg);
}

.terminal-top {
    display: flex;
    gap: 7px;
    padding: 16px;
    border-bottom: 1px solid var(--line);
}

    .terminal-top i {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--line);
    }

.terminal-body {
    padding: 26px;
    font: 500 0.9rem/1.8 "JetBrains Mono", monospace;
}

    .terminal-body p {
        margin: 0 0 10px;
        color: var(--text);
    }

.terminal-result {
    margin-bottom: 22px !important;
    padding-left: 16px;
    color: var(--accent) !important;
}


/* =========================================================
   Statistics
   ========================================================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}

    .stats-grid > div {
        padding: 30px;
        border-right: 1px solid var(--line);
    }

        .stats-grid > div:last-child {
            border-right: 0;
        }

    .stats-grid strong {
        display: block;
        margin-bottom: 6px;
        font-size: 1.5rem;
    }

    .stats-grid span {
        color: var(--muted);
        font-size: 0.9rem;
    }


/* =========================================================
   Section Headings
   ========================================================= */

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 36px;
}

.text-link,
.card-link,
.back-link {
    color: var(--accent);
    font-weight: 700;
    transition: color 0.18s ease;
}

    .text-link:hover,
    .card-link:hover,
    .back-link:hover {
        color: var(--accent-hover);
    }


/* =========================================================
   Projects
   ========================================================= */

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-card {
    position: relative;
    min-height: 370px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

    .project-card:hover {
        transform: translateY(-4px);
        border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
    }

    .project-card h2,
    .project-card h3 {
        margin-top: 46px;
    }

.project-number {
    position: absolute;
    top: 28px;
    right: 28px;
    color: var(--muted);
    font: 500 0.85rem "JetBrains Mono", monospace;
}

.project-card .card-link {
    margin-top: auto;
    padding-top: 28px;
}

.project-card-large {
    min-height: 420px;
}


/* =========================================================
   Tags
   ========================================================= */

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

    .tag-list span {
        padding: 7px 10px;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: var(--surface-2);
        color: var(--muted);
        font-size: 0.78rem;
    }

    .tag-list.large span {
        padding: 8px 12px;
        font-size: 0.88rem;
    }


/* =========================================================
   Capability / Stack
   ========================================================= */

.capability-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 90px;
}

.capabilities {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

    .capabilities > div,
    .stack-card,
    .architecture-card {
        padding: 28px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: var(--surface);
    }

.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 48px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
}

    .cta-card h2 {
        max-width: 760px;
        margin-bottom: 0;
    }


/* =========================================================
   Generic Page Layout
   ========================================================= */

.page-hero {
    padding-bottom: 54px;
}

    .page-hero h1 {
        font-size: clamp(3rem, 6vw, 5.7rem);
    }

.two-column {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 70px;
}


/* =========================================================
   About / Profile
   ========================================================= */

.intro-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 90px;
    align-items: start;
}

.intro-copy {
    max-width: 720px;
}

    .intro-copy p:first-child {
        margin-top: 0;
    }

.profile-card h3 {
    margin: 12px 0 16px;
    font-size: 1.8rem;
}

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

.skill-group {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}

    .skill-group h3 {
        margin-bottom: 18px;
    }

    .skill-group .tag-list {
        margin-top: 0;
    }


/* =========================================================
   Education / Credentials
   ========================================================= */

.credentials-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 20px;
}

.credential-card {
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
}

    .credential-card h2 {
        font-size: clamp(1.7rem, 3vw, 2.5rem);
    }

.credential-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .credential-list li {
        padding: 18px 0;
        display: grid;
        gap: 5px;
        border-bottom: 1px solid var(--line);
    }

        .credential-list li:first-child {
            padding-top: 0;
        }

        .credential-list li:last-child {
            padding-bottom: 0;
            border-bottom: 0;
        }

    .credential-list span {
        color: var(--muted);
    }


/* =========================================================
   Experience / Timeline
   ========================================================= */

.timeline {
    border-top: 1px solid var(--line);
}

.timeline-item {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 44px;
    padding: 42px 0;
    border-bottom: 1px solid var(--line);
}

.timeline-meta {
    color: var(--muted);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.85rem;
}

.timeline-content h2 {
    margin-bottom: 7px;
    font-size: 2rem;
}

.company {
    margin-top: 0;
}

.timeline-content li,
.prose li {
    margin: 8px 0;
    color: var(--muted);
}


/* =========================================================
   Contact
   ========================================================= */

.contact-links {
    display: grid;
    gap: 14px;
    margin-top: 40px;
}

.contact-card {
    padding: 24px 26px;
    display: grid;
    grid-template-columns: 120px 1fr auto;
    align-items: center;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    transition: transform 0.18s ease, border-color 0.18s ease;
}

    .contact-card:hover {
        transform: translateY(-2px);
        border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
    }

    .contact-card span {
        color: var(--muted);
    }

    .contact-card i {
        color: var(--accent);
        font-style: normal;
        font-size: 1.3rem;
    }


/* =========================================================
   Project Case Studies
   ========================================================= */

.project-hero .tag-list {
    margin-top: 30px;
}

.back-link {
    display: inline-block;
    margin-bottom: 46px;
}

.case-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 70px;
    align-items: start;
}

.prose h2 {
    margin-top: 52px;
    font-size: 2rem;
}

    .prose h2:first-child {
        margin-top: 0;
    }

.architecture-card {
    position: sticky;
    top: 110px;
}

.mini-label {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font: 500 0.78rem "JetBrains Mono", monospace;
}

.architecture-flow {
    display: grid;
    gap: 12px;
    margin-top: 24px;
    text-align: center;
}

    .architecture-flow div {
        padding: 13px;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: var(--surface-2);
    }

    .architecture-flow b {
        color: var(--accent);
    }


/* =========================================================
   Footer
   ========================================================= */

.site-footer {
    position: static;
    width: 100%;
    flex-shrink: 0;
    margin-top: auto;
    padding: 48px 0;
    border-top: 1px solid var(--footer-line);
    background: var(--footer-bg);
    color: var(--footer-text);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.footer-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 42px;
}


/* =========================================================
   Footer Logo
   ========================================================= */

.footer-brand {
    margin: 0;
}

.footer-logo-link {
    display: inline-block;
}

.footer-logo {
    width: 190px;
    max-width: 100%;
    height: auto;
}


/*
   Dark Theme Footer Logo
*/

.footer-logo-dark-theme {
    display: block;
}

.footer-logo-light-theme {
    display: none;
}


/*
   Light Theme Footer Logo
*/

:root[data-theme="light"] .footer-logo-dark-theme {
    display: none;
}

:root[data-theme="light"] .footer-logo-light-theme {
    display: block;
}


/* =========================================================
   Footer Information
   ========================================================= */

.footer-info {
    min-width: 0;
}

    .footer-info strong {
        display: block;
        color: var(--footer-text);
        font-size: 0.98rem;
    }

    .footer-info p {
        margin: 5px 0 8px;
        color: var(--footer-muted);
        font-size: 0.86rem;
    }

    .footer-info small {
        color: var(--footer-muted);
        font-size: 0.76rem;
    }


/* =========================================================
   Footer Links
   ========================================================= */

.footer-links {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--footer-muted);
    font-size: 0.88rem;
}

    .footer-links a {
        transition: color 0.18s ease;
    }

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


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 900px) {

    .hero-grid,
    .capability-grid,
    .two-column,
    .case-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .intro-grid,
    .credentials-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

        .stats-grid > div:nth-child(2) {
            border-right: 0;
        }

        .stats-grid > div:nth-child(-n+2) {
            border-bottom: 1px solid var(--line);
        }

    .terminal-card {
        transform: none;
    }

    .architecture-card {
        position: static;
    }

    .navbar-logo {
        width: 140px;
    }

    .footer-inner {
        grid-template-columns: auto 1fr;
        align-items: start;
    }

    .footer-links {
        grid-column: 1 / -1;
    }
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 680px) {

    .container {
        width: min(100% - 30px, 1160px);
    }

    .section {
        padding: 72px 0;
    }

    .nav-wrap {
        min-height: 72px;
    }

    .navbar-logo {
        width: 118px;
    }

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

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

        .nav-links .resume-link {
            width: 100%;
            margin-left: 0;
        }

    .menu-toggle {
        display: inline-block;
    }

    .project-grid,
    .capabilities,
    .stats-grid,
    .skill-groups {
        grid-template-columns: 1fr;
    }

        .stats-grid > div {
            border-right: 0;
            border-bottom: 1px solid var(--line);
        }

            .stats-grid > div:last-child {
                border-bottom: 0;
            }

    .section-heading,
    .cta-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .contact-card {
        grid-template-columns: 1fr auto;
    }

        .contact-card span {
            grid-column: 1 / -1;
        }

        .contact-card strong {
            overflow-wrap: anywhere;
        }

    .footer-inner {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .footer-logo {
        width: 170px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 14px 22px;
    }
}


/* =========================================================
   Accessibility / Reduced Motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

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

/* =========================================================
   Contact
   ========================================================= */

.contact-section {
    padding: 110px 0 120px;
}


/* Contact Header */

.contact-header {
    max-width: 850px;
    margin-bottom: 52px;
}

    .contact-header h1 {
        margin-bottom: 24px;
    }

.contact-intro {
    max-width: 760px;
    margin: 0;
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    line-height: 1.75;
}


/* Contact Metadata */

.contact-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin-top: 28px;
    color: var(--muted);
    font-size: 0.88rem;
}

    .contact-meta span {
        display: inline-flex;
        align-items: center;
        gap: 9px;
    }

        .contact-meta span::before {
            content: "";
            width: 6px;
            height: 6px;
            flex-shrink: 0;
            border-radius: 50%;
            background: var(--accent);
            box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
        }


/* Contact Cards */

.contact-links {
    display: grid;
    gap: 14px;
}

.contact-card {
    min-height: 96px;
    padding: 22px 26px;
    display: grid;
    grid-template-columns: 180px 1fr auto;
    align-items: center;
    gap: 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

    .contact-card:hover {
        transform: translateY(-2px);
        border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    }

.contact-card-label {
    display: grid;
    gap: 3px;
}

.contact-card strong {
    color: var(--text);
    font-size: 0.98rem;
}

.contact-card small {
    color: var(--muted);
    font-size: 0.76rem;
}

.contact-card > span {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.contact-card i {
    color: var(--accent);
    font-style: normal;
    font-size: 1.35rem;
    transition: transform 0.18s ease;
}

.contact-card:hover i {
    transform: translateX(3px);
}


/* Contact Bottom CTA */

.contact-cta {
    margin-top: 64px;
    padding: 42px 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient( 135deg, var(--surface), color-mix(in srgb, var(--accent) 6%, var(--surface)) );
}

    .contact-cta h2 {
        max-width: 620px;
        margin: 10px 0 14px;
        font-size: clamp(1.7rem, 3vw, 2.6rem);
    }

    .contact-cta p {
        max-width: 680px;
        margin: 0;
    }


/* =========================================================
   Contact - Tablet
   ========================================================= */

@media (max-width: 900px) {

    .contact-section {
        padding: 90px 0 100px;
    }

    .contact-card {
        grid-template-columns: 150px 1fr auto;
    }

    .contact-cta {
        align-items: flex-start;
        flex-direction: column;
        gap: 28px;
    }
}


/* =========================================================
   Contact - Mobile
   ========================================================= */

@media (max-width: 680px) {

    .contact-section {
        padding: 72px 0 84px;
    }

    .contact-header {
        margin-bottom: 40px;
    }

    .contact-meta {
        flex-direction: column;
        gap: 10px;
    }

    .contact-card {
        min-height: 0;
        padding: 20px;
        grid-template-columns: 1fr auto;
        gap: 10px 16px;
    }

    .contact-card-label {
        grid-column: 1;
    }

    .contact-card > span {
        grid-column: 1 / -1;
        grid-row: 2;
        font-size: 0.88rem;
    }

    .contact-card i {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
    }

    .contact-cta {
        margin-top: 48px;
        padding: 30px 24px;
    }

        .contact-cta .button {
            width: 100%;
        }
}

/* =========================================================
   About Page
   ========================================================= */

.about-hero .lead {
    max-width: 850px;
}


/* At-a-glance information */

.about-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 52px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}

    .about-highlights > div {
        min-height: 120px;
        padding: 24px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        border-right: 1px solid var(--line);
    }

        .about-highlights > div:last-child {
            border-right: 0;
        }

    .about-highlights strong {
        margin-bottom: 5px;
        color: var(--text);
        font-size: 1.25rem;
    }

    .about-highlights span {
        color: var(--muted);
        font-size: 0.82rem;
    }


/* Engineering intro */

.about-intro h2 {
    max-width: 650px;
}

.about-intro p {
    max-width: 720px;
}


/* Primary focus card */

.profile-focus-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

    .profile-focus-list span {
        padding: 7px 10px;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: var(--surface-2);
        color: var(--muted);
        font-size: 0.78rem;
    }


/* Engineering strengths */

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

.strength-card {
    position: relative;
    min-height: 250px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

    .strength-card:hover {
        transform: translateY(-3px);
        border-color: color-mix( in srgb, var(--accent) 45%, var(--line) );
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.07);
    }

.strength-number {
    display: block;
    margin-bottom: 38px;
    color: var(--accent);
    font: 500 0.78rem "JetBrains Mono", monospace;
}

.strength-card h3 {
    margin-bottom: 14px;
    font-size: 1.4rem;
}

.strength-card p {
    margin-bottom: 0;
}


/* Skill notes */

.skill-note {
    margin-top: -6px;
    margin-bottom: 20px;
    font-size: 0.82rem;
}


/* Bottom CTA */

.about-bottom-section {
    padding-bottom: 110px;
}

.about-cta p {
    max-width: 650px;
    margin-bottom: 0;
}

.about-cta-actions {
    display: flex;
    flex-shrink: 0;
    gap: 12px;
}


/* =========================================================
   About - Tablet
   ========================================================= */

@media (max-width: 900px) {

    .about-highlights {
        grid-template-columns: 1fr 1fr;
    }

        .about-highlights > div:nth-child(2) {
            border-right: 0;
        }

        .about-highlights > div:nth-child(-n+2) {
            border-bottom: 1px solid var(--line);
        }

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

    .about-cta-actions {
        width: 100%;
    }
}


/* =========================================================
   About - Mobile
   ========================================================= */

@media (max-width: 680px) {

    .about-highlights {
        grid-template-columns: 1fr;
    }

        .about-highlights > div {
            min-height: 0;
            border-right: 0;
            border-bottom: 1px solid var(--line);
        }

            .about-highlights > div:last-child {
                border-bottom: 0;
            }

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

    .strength-card {
        min-height: 0;
    }

    .about-cta-actions {
        flex-direction: column;
    }

        .about-cta-actions .button {
            width: 100%;
        }

    .about-bottom-section {
        padding-bottom: 84px;
    }
}