:root {
    --ink: #101828;
    --muted: #627083;
    --navy: #12284c;
    --blue: #2f6fbb;
    --mint: #42b883;
    --coral: #f07167;
    --gold: #f5c542;
    --paper: #f6f8fb;
    --white: #ffffff;
    --line: rgba(16, 40, 76, 0.14);
    --shadow: 0 24px 80px rgba(16, 40, 76, 0.16);
}

body {
    color: var(--ink);
    background: var(--paper);
}

a {
    text-decoration: none;
}

.site-shell {
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 13% 13%, rgba(66, 184, 131, 0.18), transparent 27rem),
        radial-gradient(circle at 88% 3%, rgba(240, 113, 103, 0.20), transparent 25rem),
        linear-gradient(135deg, #f7fbff 0%, #eef3f8 48%, #fbfbf7 100%);
}

.portfolio-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--navy);
    font-weight: 800;
    letter-spacing: 0;
}

.brand-mark img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(18, 40, 76, 0.18);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    color: #334155;
    font-size: 0.94rem;
    font-weight: 700;
    padding: 10px 12px;
    border-radius: 8px;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--navy);
    background: rgba(18, 40, 76, 0.08);
    transform: translateY(-1px);
}

.hero {
    width: min(1180px, calc(100% - 32px));
    min-height: calc(100vh - 72px);
    margin: 0 auto;
    padding: 56px 0 42px;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.82fr);
    align-items: start;
    gap: 48px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    animation: riseIn 700ms ease both;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 8px rgba(66, 184, 131, 0.15);
}

.hero h1 {
    max-width: 760px;
    margin: 24px 0 20px;
    font-size: clamp(2.35rem, 4.1vw, 4.05rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: 0;
    color: var(--navy);
    animation: riseIn 800ms 90ms ease both;
}

.hero h1 span {
    color: transparent;
    background: linear-gradient(90deg, var(--blue), var(--mint) 48%, var(--coral));
    background-clip: text;
    -webkit-background-clip: text;
}

.hero-copy {
    max-width: 650px;
    color: #415065;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.8;
    animation: riseIn 800ms 180ms ease both;
}

.interest-line {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 0 0 12px;
    color: var(--navy);
    font-size: clamp(1.12rem, 2.1vw, 1.45rem);
    font-weight: 800;
    animation: riseIn 800ms 140ms ease both;
}

.interest-label {
    color: var(--muted);
    font-weight: 700;
}

.typed-interest {
    color: var(--blue);
}

.typing-cursor {
    width: 3px;
    height: 1.25em;
    margin-left: 5px;
    background: var(--coral);
    animation: cursorBlink 800ms steps(1) infinite;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
    animation: riseIn 800ms 270ms ease both;
}

.btn-main,
.btn-quiet {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn-main {
    color: var(--white);
    background: var(--navy);
    box-shadow: 0 18px 36px rgba(18, 40, 76, 0.24);
}

.btn-main:hover,
.btn-main:focus {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(18, 40, 76, 0.28);
}

.btn-quiet {
    color: var(--navy);
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--line);
}

.btn-quiet:hover,
.btn-quiet:focus {
    color: var(--navy);
    background: var(--white);
    transform: translateY(-2px);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 42px;
    max-width: 700px;
    animation: riseIn 800ms 360ms ease both;
}

.stat {
    min-height: 108px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 12px 36px rgba(18, 40, 76, 0.08);
}

.stat strong {
    display: block;
    margin-bottom: 6px;
    color: var(--navy);
    font-size: 1.85rem;
    line-height: 1;
}

.stat span {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.showcase {
    position: relative;
    margin-top: 72px;
    animation: floatIn 900ms 220ms ease both;
}

.slideshow {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: var(--navy);
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 5;
    isolation: isolate;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 650ms ease, transform 900ms ease;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide.portrait img {
    object-fit: contain;
    padding: 16%;
    background: linear-gradient(135deg, #354b6f, #182b4e);
}

.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(18, 40, 76, 0.02) 28%, rgba(18, 40, 76, 0.86) 100%);
}

.slide-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 28px;
    color: var(--white);
}

.slide-caption p {
    margin: 0 0 7px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.86rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.slide-caption h2 {
    margin: 0;
    font-size: clamp(1.7rem, 4vw, 2.55rem);
    font-weight: 900;
    letter-spacing: 0;
}

.slide-controls {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    display: flex;
    gap: 8px;
}

.slide-btn {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.88);
    display: inline-grid;
    place-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
    transition: transform 160ms ease, background 160ms ease;
}

.slide-btn:hover,
.slide-btn:focus {
    background: var(--white);
    transform: translateY(-1px);
}

.slide-dots {
    position: absolute;
    left: 28px;
    bottom: 22px;
    z-index: 3;
    display: flex;
    gap: 9px;
}

.slide-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: rgba(255, 255, 255, 0.42);
}

.slide-dot.active {
    width: 30px;
    border-radius: 999px;
    background: var(--gold);
}

.orbit-card {
    position: absolute;
    right: -24px;
    bottom: 46px;
    z-index: 4;
    width: min(260px, 54%);
    padding: 16px;
    color: var(--navy);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 45px rgba(18, 40, 76, 0.2);
    animation: drift 5.2s ease-in-out infinite;
}

.orbit-card strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1.02rem;
}

.orbit-card span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.feature-band {
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 76px 0;
}

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

.section-heading h2 {
    max-width: 720px;
    margin: 0;
    color: var(--navy);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    letter-spacing: 0;
}

.section-heading p {
    max-width: 360px;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.feature-card {
    min-height: 235px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfe;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(47, 111, 187, 0.32);
    box-shadow: 0 18px 38px rgba(18, 40, 76, 0.1);
}

.feature-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--white);
    font-size: 1.2rem;
    background: var(--navy);
}

.feature-card:nth-child(2) .feature-icon { background: var(--blue); }
.feature-card:nth-child(3) .feature-icon { background: var(--mint); }
.feature-card:nth-child(4) .feature-icon { background: var(--coral); }

.feature-card h3 {
    margin: 0 0 12px;
    color: var(--navy);
    font-size: 1.17rem;
    font-weight: 900;
}

.feature-card p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.65;
}

.feature-card a {
    color: var(--navy);
    font-weight: 900;
}

.project-strip {
    background:
        linear-gradient(135deg, rgba(18, 40, 76, 0.96), rgba(34, 76, 126, 0.92)),
        url("../assets/wildcat.png") center / cover;
    color: var(--white);
}

.project-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 34px;
    align-items: center;
}

.project-layout h2 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    font-weight: 900;
    letter-spacing: 0;
}

.project-layout p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.08rem;
    line-height: 1.8;
}

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

.project-link {
    min-height: 104px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.09);
    transition: transform 180ms ease, background 180ms ease;
}

.project-link:hover,
.project-link:focus {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.project-link strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.project-link span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
}

.experience-section {
    background: #fbfcfe;
}

.experience-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: 34px;
    align-items: center;
}

.experience-copy h2 {
    margin: 0 0 16px;
    max-width: 620px;
    color: var(--navy);
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 900;
    letter-spacing: 0;
}

.experience-copy p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.experience-carousel {
    position: relative;
    min-height: 360px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--navy);
    box-shadow: var(--shadow);
}

.experience-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    opacity: 0;
    transform: translateX(18px);
    transition: opacity 520ms ease, transform 620ms ease;
}

.experience-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.experience-slide img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

.experience-caption {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px;
    color: var(--white);
    background: linear-gradient(135deg, rgba(18, 40, 76, 0.96), rgba(47, 111, 187, 0.9));
}

.experience-caption p {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.84rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.experience-caption h3 {
    margin: 0 0 14px;
    font-size: clamp(1.7rem, 3vw, 2.55rem);
    font-weight: 900;
    letter-spacing: 0;
}

.experience-caption span {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.75;
}

.experience-controls {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 4;
    display: flex;
    gap: 8px;
}

.experience-btn {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.9);
    display: inline-grid;
    place-items: center;
    transition: transform 160ms ease, background 160ms ease;
}

.experience-btn:hover,
.experience-btn:focus {
    background: var(--white);
    transform: translateY(-1px);
}

.experience-dots {
    position: absolute;
    left: 20px;
    bottom: 24px;
    z-index: 4;
    display: flex;
    gap: 9px;
}

.experience-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: rgba(255, 255, 255, 0.42);
}

.experience-dot.active {
    width: 30px;
    border-radius: 999px;
    background: var(--gold);
}

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

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(28px) rotate(1.5deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(0);
    }
}

@keyframes drift {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes cursorBlink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

@media (max-width: 1000px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 38px;
    }

    .showcase {
        max-width: 560px;
        width: 100%;
        margin-top: 0;
    }

    .slideshow {
        aspect-ratio: 16 / 12;
    }

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

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

    .experience-layout,
    .experience-slide {
        grid-template-columns: 1fr;
    }

    .experience-carousel {
        min-height: 640px;
    }

    .experience-slide img {
        min-height: 300px;
        height: 300px;
    }
}

@media (max-width: 720px) {
    .nav-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 0;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
        gap: 4px;
    }

    .nav-links a {
        padding: 8px 9px;
        font-size: 0.88rem;
    }

    .hero {
        min-height: auto;
        gap: 30px;
    }

    .hero h1 {
        font-size: clamp(2.4rem, 11vw, 3.55rem);
    }

    .stats-row,
    .feature-grid,
    .project-links {
        grid-template-columns: 1fr;
    }

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

    .section-inner {
        padding: 58px 0;
    }

    .experience-carousel {
        min-height: 620px;
    }

    .experience-caption {
        padding: 26px 22px 78px;
    }

    .slide-caption {
        padding: 22px;
    }

    .slide-dots {
        left: 22px;
        bottom: 18px;
    }

    .orbit-card {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        margin-top: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }
}
