:root {
    --black: #050505;
    --black-soft: #0a0a0a;
    --panel: rgba(13, 13, 13, 0.92);
    --white: #f4f4f0;
    --gray-100: #deded9;
    --gray-300: #aaa9a3;
    --gray-500: #74736e;
    --line: rgba(244, 244, 240, 0.14);
    --line-strong: rgba(244, 244, 240, 0.28);
    --font-display: 'Syne', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --page: 1360px;
    --gutter: clamp(1.25rem, 4vw, 4.5rem);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    background: var(--black);
    color-scheme: dark;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-500) var(--black);
}

body {
    min-width: 320px;
    background: transparent;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

body.intro-active {
    overflow: hidden;
}

::selection {
    background: var(--white);
    color: var(--black);
}

::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--gray-500);
    border: 2px solid var(--black);
    border-radius: 999px;
}

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

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

button {
    color: inherit;
    font: inherit;
}

img,
svg {
    display: block;
}

ul {
    list-style: none;
}

:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 5px;
}

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1rem;
    background: var(--white);
    color: var(--black);
    font-weight: 600;
    transform: translateY(-160%);
    transition: transform 0.25s ease;
}

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

html.intro-pending {
    overflow: hidden;
}

.intro-pending .site-header,
.intro-pending main {
    opacity: 0;
    visibility: hidden;
}

.intro-pending .skip-link {
    display: none;
}

.intro-screen {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    background: #030303;
    clip-path: circle(150% at 50% 50%);
}

.intro-screen[hidden] {
    display: none;
}

#intro-sparkles {
    position: absolute;
    inset: 0;
    z-index: -3;
    width: 100%;
    height: 100%;
}

.intro-comets {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.intro-comets span {
    position: absolute;
    width: clamp(90px, 9vw, 170px);
    height: 1px;
    opacity: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95));
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.6));
    transform: rotate(-34deg);
    animation: intro-comet 7s linear infinite;
}

.intro-comets span:nth-child(1) {
    top: 16%;
    right: 8%;
    animation-delay: -5.1s;
}

.intro-comets span:nth-child(2) {
    top: 44%;
    right: 27%;
    animation-delay: -4s;
    animation-duration: 9s;
}

.intro-comets span:nth-child(3) {
    top: 74%;
    right: 4%;
    animation-delay: -7.5s;
    animation-duration: 11s;
}

.intro-vignette {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 48% 34% at 50% 52%, transparent 0, rgba(3, 3, 3, 0.24) 45%, rgba(3, 3, 3, 0.92) 100%),
        linear-gradient(to bottom, rgba(3, 3, 3, 0.32), transparent 32%, transparent 68%, rgba(3, 3, 3, 0.52));
    pointer-events: none;
}

.intro-content {
    width: min(92vw, 1100px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: opacity 0.48s ease, transform 0.8s var(--ease-out), filter 0.8s ease;
}

.intro-eyebrow {
    margin-bottom: clamp(1.5rem, 4vh, 3rem);
    color: var(--gray-300);
    font-family: var(--font-mono);
    font-size: clamp(0.58rem, 1vw, 0.7rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(14px);
    animation: intro-rise 0.9s 0.2s var(--ease-out) forwards;
}

.intro-name {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 17vw, 14rem);
    font-weight: 800;
    letter-spacing: -0.09em;
    line-height: 0.78;
    cursor: pointer;
}

.intro-name span {
    display: inline-block;
    opacity: 0;
    transform: translateY(80px) rotate(4deg);
    filter: blur(12px);
    animation: intro-letter 1s var(--ease-out) forwards;
    transition: color 0.3s ease, transform 0.45s var(--ease-out), text-shadow 0.4s ease;
}

.intro-name span:nth-child(1) {
    animation-delay: 0.18s;
}

.intro-name span:nth-child(2) {
    animation-delay: 0.23s;
}

.intro-name span:nth-child(3) {
    animation-delay: 0.28s;
}

.intro-name span:nth-child(4) {
    animation-delay: 0.33s;
}

.intro-name span:nth-child(5) {
    animation-delay: 0.38s;
}

.intro-name span:nth-child(6) {
    animation-delay: 0.43s;
}

.intro-name span:nth-child(7) {
    animation-delay: 0.48s;
}

.intro-name:hover span {
    transform: translateY(-7px);
    text-shadow: 0 0 26px rgba(255, 255, 255, 0.24);
}

.intro-name:hover span:nth-child(even) {
    transform: translateY(4px);
    color: var(--gray-300);
}

.intro-name:focus-visible {
    outline-offset: 18px;
}

.intro-light {
    position: relative;
    width: min(72vw, 720px);
    height: clamp(70px, 13vh, 130px);
    margin-top: clamp(0.8rem, 2vh, 1.5rem);
    overflow: hidden;
    opacity: 0;
    animation: intro-light-in 1.2s 0.7s ease forwards;
}

.intro-light::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 54% 100% at 50% 0, transparent 0, #030303 72%);
}

.intro-light span,
.intro-light i {
    position: absolute;
    top: 0;
    left: 50%;
    display: block;
    transform: translateX(-50%);
}

.intro-light span {
    width: 72%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--white), transparent);
    filter: blur(4px);
}

.intro-light i {
    width: 58%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--white), transparent);
}

.intro-instruction {
    margin-top: clamp(-2rem, -4vh, -1rem);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--gray-500);
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(12px);
    animation: intro-rise 0.8s 1s var(--ease-out) forwards;
}

.intro-click-icon {
    position: relative;
    width: 20px;
    height: 28px;
    display: inline-block;
    border: 1px solid var(--gray-500);
    border-radius: 999px;
}

.intro-click-icon::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    width: 2px;
    height: 5px;
    border-radius: 999px;
    background: var(--white);
    transform: translateX(-50%);
    animation: intro-click 1.8s ease-in-out infinite;
}

.intro-coordinate {
    position: absolute;
    z-index: 2;
    color: var(--gray-500);
    font-family: var(--font-mono);
    font-size: 0.52rem;
    letter-spacing: 0.14em;
}

.intro-coordinate-top {
    top: clamp(1.2rem, 4vw, 3rem);
    left: clamp(1.2rem, 4vw, 3rem);
}

.intro-coordinate-bottom {
    right: clamp(1.2rem, 4vw, 3rem);
    bottom: clamp(1.2rem, 4vw, 3rem);
}

.intro-corners span {
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: var(--line-strong);
}

.intro-corners {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.intro-corners span:nth-child(1) {
    top: clamp(1rem, 3vw, 2rem);
    right: clamp(1rem, 3vw, 2rem);
    border-top: 1px solid;
    border-right: 1px solid;
}

.intro-corners span:nth-child(2) {
    right: clamp(1rem, 3vw, 2rem);
    bottom: clamp(1rem, 3vw, 2rem);
    border-right: 1px solid;
    border-bottom: 1px solid;
}

.intro-corners span:nth-child(3) {
    bottom: clamp(1rem, 3vw, 2rem);
    left: clamp(1rem, 3vw, 2rem);
    border-bottom: 1px solid;
    border-left: 1px solid;
}

.intro-corners span:nth-child(4) {
    top: clamp(1rem, 3vw, 2rem);
    left: clamp(1rem, 3vw, 2rem);
    border-top: 1px solid;
    border-left: 1px solid;
}

.intro-screen.is-leaving {
    pointer-events: none;
    animation: intro-collapse 1.15s 0.28s var(--ease-out) forwards;
}

.intro-screen.is-leaving .intro-content {
    opacity: 0;
    filter: blur(12px);
    transform: scale(1.2);
}

.intro-screen.is-leaving .intro-coordinate,
.intro-screen.is-leaving .intro-corners {
    opacity: 0;
    transition: opacity 0.25s ease;
}

.portfolio-ready .site-header {
    animation: portfolio-header-in 0.9s 0.22s var(--ease-out) both;
}

.portfolio-ready main {
    animation: portfolio-content-in 1.1s var(--ease-out) both;
}

@keyframes intro-letter {
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0) rotate(0);
    }
}

@keyframes intro-rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes intro-light-in {
    from {
        opacity: 0;
        transform: scaleX(0.35);
    }

    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes intro-click {

    0%,
    100% {
        opacity: 0;
        transform: translate(-50%, 0);
    }

    25% {
        opacity: 1;
    }

    70% {
        opacity: 0;
        transform: translate(-50%, 8px);
    }
}

@keyframes intro-comet {

    0%,
    72% {
        opacity: 0;
        translate: 0 0;
    }

    75% {
        opacity: 1;
    }

    84% {
        opacity: 0;
        translate: -330px 220px;
    }

    100% {
        opacity: 0;
        translate: -330px 220px;
    }
}

@keyframes intro-collapse {
    0% {
        opacity: 1;
        clip-path: circle(150% at 50% 50%);
    }

    55% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        clip-path: circle(0% at 50% 50%);
    }
}

@keyframes portfolio-header-in {
    from {
        opacity: 0;
        transform: translateY(-24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes portfolio-content-in {
    from {
        opacity: 0;
        transform: scale(0.985);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

.scroll-progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 2000;
    height: 2px;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.scroll-progress span {
    width: 100%;
    height: 100%;
    display: block;
    background: var(--white);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
    transform: scaleX(var(--scroll-progress, 0));
    transform-origin: left center;
    will-change: transform;
}

.intro-pending .scroll-progress {
    opacity: 0;
}

.space-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: var(--black);
}

#starfield {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.9;
}

.star-haze {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 76% 34%, transparent 0, rgba(5, 5, 5, 0.12) 28%, rgba(5, 5, 5, 0.7) 68%),
        linear-gradient(to bottom, rgba(5, 5, 5, 0.05), rgba(5, 5, 5, 0.45) 82%, var(--black));
}

.shooting-star {
    position: absolute;
    width: 120px;
    height: 1px;
    border-radius: 999px;
    opacity: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85));
    transform: rotate(-36deg);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.45));
    animation: shoot 12s linear infinite;
}

.shooting-star-one {
    top: 17%;
    right: 16%;
}

.shooting-star-two {
    top: 54%;
    right: 42%;
    animation-delay: 7s;
    animation-duration: 15s;
}

@keyframes shoot {

    0%,
    72% {
        opacity: 0;
        translate: 0 0;
    }

    74% {
        opacity: 1;
    }

    82% {
        opacity: 0;
        translate: -260px 185px;
    }

    100% {
        opacity: 0;
    }
}

main,
.site-header {
    position: relative;
    z-index: 1;
}

.section-shell {
    width: min(calc(100% - (var(--gutter) * 2)), var(--page));
    margin-inline: auto;
}

.section-space {
    padding-block: clamp(7rem, 12vw, 12rem);
    scroll-margin-top: 5rem;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    padding-inline: var(--gutter);
    transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s var(--ease-out);
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background: rgba(5, 5, 5, 0.84);
    border-color: var(--line);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header-inner {
    width: min(100%, var(--page));
    min-height: 88px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.brand-mark {
    width: 42px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid var(--white);
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    transition: background 0.25s ease, color 0.25s ease;
}

.brand:hover .brand-mark {
    background: var(--white);
    color: var(--black);
}

.brand-copy {
    display: grid;
    line-height: 1.15;
}

.brand-copy strong {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
}

.brand-copy small {
    margin-top: 0.25rem;
    color: var(--gray-500);
    font-family: var(--font-mono);
    font-size: 0.56rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-navigation {
    display: flex;
    align-items: center;
    gap: clamp(0.15rem, 1vw, 0.8rem);
}

.nav-link {
    min-height: 44px;
    padding: 0.7rem 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--gray-300);
    font-size: 0.82rem;
    font-weight: 500;
    transition: color 0.25s ease;
}

.nav-link>span {
    color: var(--gray-500);
    font-family: var(--font-mono);
    font-size: 0.55rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.nav-link-cta {
    margin-left: 0.55rem;
    padding-inline: 1.25rem;
    border: 1px solid var(--line-strong);
}

.nav-link-cta:hover {
    background: var(--white);
    color: var(--black);
}

.nav-link-cta:hover>span {
    color: var(--black);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line-strong);
    background: var(--black);
    cursor: pointer;
}

.menu-toggle span {
    width: 18px;
    height: 1px;
    margin: 5px auto;
    display: block;
    background: var(--white);
    transition: transform 0.3s ease;
}

.hero {
    min-height: 100svh;
    padding-top: clamp(7.5rem, 13vh, 10rem);
    padding-bottom: clamp(4rem, 7vh, 6rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-margin-top: 5rem;
}

.hero-status {
    margin-bottom: clamp(2rem, 5vh, 4rem);
    padding-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    color: var(--gray-300);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.availability,
.contact-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.status-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.07);
    animation: status-pulse 2.8s ease-out infinite;
}

@keyframes status-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
    }

    50% {
        box-shadow: 0 0 0 9px rgba(255, 255, 255, 0);
    }
}

.hero-location span {
    margin-inline: 0.45rem;
    color: var(--gray-500);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
    align-items: center;
    gap: clamp(3rem, 7vw, 8rem);
}

.eyebrow,
.section-index,
.project-kicker,
.card-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow {
    margin-bottom: 1.2rem;
    color: var(--gray-300);
}

.eyebrow span {
    margin-inline: 0.5rem;
    color: var(--gray-500);
}

.hero h1 {
    max-width: 9ch;
    font-family: var(--font-display);
    font-size: clamp(4.2rem, 9.2vw, 9.3rem);
    font-weight: 800;
    letter-spacing: -0.075em;
    line-height: 0.78;
}

.hero h1>span {
    display: block;
}

.title-outline {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(244, 244, 240, 0.75);
}

.hero-intro {
    max-width: 37rem;
    margin-top: clamp(2rem, 4vw, 3.25rem);
    padding-left: clamp(1rem, 3vw, 3rem);
    border-left: 1px solid var(--line-strong);
    color: var(--gray-300);
    font-size: clamp(1.08rem, 1.6vw, 1.35rem);
    font-weight: 300;
    line-height: 1.55;
}

.hero-actions {
    margin-top: 2.25rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.button {
    min-height: 54px;
    padding: 0.85rem 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
    border: 1px solid var(--line-strong);
    font-size: 0.84rem;
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-out);
}

.button svg {
    width: 18px;
    height: 18px;
}

.button-light {
    background: var(--white);
    border-color: var(--white);
    color: var(--black);
}

.button-light:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-3px);
}

.button-ghost:hover {
    border-color: var(--white);
    transform: translateY(-3px);
}

.portrait-card {
    position: relative;
    width: min(100%, 440px);
    justify-self: end;
}

.portrait-frame {
    position: relative;
    aspect-ratio: 0.88;
    overflow: hidden;
    background: #0c0c0c;
    border: 1px solid var(--line-strong);
    clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 34px 100%, 0 calc(100% - 34px));
}

.portrait-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to top, rgba(5, 5, 5, 0.9), transparent 38%), linear-gradient(110deg, rgba(255, 255, 255, 0.07), transparent 30%);
    pointer-events: none;
}

.portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(1) contrast(1.12) brightness(0.83);
    transform: scale(1.03);
    transition: filter 0.6s ease, transform 0.8s var(--ease-out);
}

.portrait-card:hover img {
    filter: grayscale(1) contrast(1.08) brightness(0.95);
    transform: scale(1.065);
}

.portrait-index {
    position: absolute;
    right: 1rem;
    bottom: 0.85rem;
    z-index: 3;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.12em;
}

.portrait-scanline {
    position: absolute;
    inset: 0 0 auto;
    z-index: 3;
    height: 1px;
    opacity: 0.55;
    background: linear-gradient(90deg, transparent, var(--white), transparent);
    animation: portrait-scan 6s ease-in-out infinite;
}

@keyframes portrait-scan {

    0%,
    12% {
        top: 8%;
        opacity: 0;
    }

    25% {
        opacity: 0.55;
    }

    78% {
        top: 88%;
        opacity: 0.3;
    }

    100% {
        top: 88%;
        opacity: 0;
    }
}

.corner {
    position: absolute;
    z-index: 4;
    width: 14px;
    height: 14px;
    border-color: var(--white);
}

.corner-top-left {
    top: 0.8rem;
    left: 0.8rem;
    border-top: 1px solid;
    border-left: 1px solid;
}

.corner-top-right {
    top: 0.8rem;
    right: 0.8rem;
    border-top: 1px solid;
    border-right: 1px solid;
}

.corner-bottom-left {
    bottom: 0.8rem;
    left: 0.8rem;
    border-bottom: 1px solid;
    border-left: 1px solid;
}

.corner-bottom-right {
    right: 0.8rem;
    bottom: 0.8rem;
    border-right: 1px solid;
    border-bottom: 1px solid;
}

.portrait-orbit {
    position: absolute;
    z-index: -1;
    border: 1px solid var(--line);
    border-radius: 50%;
}

.orbit-one {
    width: 120%;
    aspect-ratio: 1;
    top: -10%;
    left: -10%;
}

.orbit-two {
    width: 92%;
    aspect-ratio: 1;
    top: 3%;
    left: 4%;
    border-style: dashed;
    animation: orbit 45s linear infinite;
}

@keyframes orbit {
    to {
        transform: rotate(1turn);
    }
}

.portrait-card figcaption {
    padding-top: 0.85rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--gray-500);
    font-family: var(--font-mono);
    font-size: 0.56rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-facts {
    width: min(66%, 760px);
    margin-top: clamp(3rem, 7vh, 5.5rem);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
}

.hero-facts>div {
    padding: 1.2rem 1.2rem 0 0;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: 0.75rem;
}

.hero-facts dt {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
}

.hero-facts dd {
    max-width: 9rem;
    color: var(--gray-500);
    font-family: var(--font-mono);
    font-size: 0.55rem;
    line-height: 1.45;
    text-transform: uppercase;
}

.scroll-cue {
    position: absolute;
    right: 0;
    bottom: clamp(4rem, 7vh, 6rem);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-500);
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-line {
    position: relative;
    width: 42px;
    height: 1px;
    overflow: hidden;
    background: var(--line);
}

.scroll-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--white);
    transform: translateX(-100%);
    animation: line-pass 2.4s ease-in-out infinite;
}

@keyframes line-pass {

    50%,
    100% {
        transform: translateX(100%);
    }
}

.section-header {
    margin-bottom: clamp(3rem, 7vw, 6.5rem);
    padding-top: 1.25rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
    align-items: end;
    gap: 3rem;
    border-top: 1px solid var(--line);
}

.section-index {
    margin-bottom: 1.4rem;
    color: var(--gray-500);
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 7vw, 7.2rem);
    font-weight: 700;
    letter-spacing: -0.07em;
    line-height: 0.9;
}

.section-header h2 span,
.contact h2 span {
    color: transparent;
    -webkit-text-stroke: 1px rgba(244, 244, 240, 0.52);
}

.section-summary {
    max-width: 29rem;
    padding-left: 1.25rem;
    border-left: 1px solid var(--line-strong);
    color: var(--gray-300);
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    font-weight: 300;
}

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

.project-card {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(255, 255, 255, 0.055), transparent 27%),
        var(--panel);
    border: 1px solid var(--line);
    transition: border-color 0.4s ease, transform 0.5s var(--ease-out);
}

.project-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-4px);
}

.project-featured {
    min-height: 600px;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
}

.project-compact {
    min-height: 780px;
    display: flex;
    flex-direction: column;
}

.project-copy {
    position: relative;
    z-index: 2;
    padding: clamp(1.5rem, 3.5vw, 3.5rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3rem;
}

.project-compact .project-copy {
    min-height: 395px;
}

.project-topline {
    padding-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    color: var(--gray-500);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.project-kicker {
    margin-bottom: 0.65rem;
    color: var(--gray-500);
}

.project-copy h3 {
    margin-bottom: 1.1rem;
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.8vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.02;
    overflow-wrap: break-word;
    word-break: normal;
}

.project-compact .project-copy h3 {
    font-size: clamp(1.55rem, 2.1vw, 2.2rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.project-copy>div>p:last-child {
    max-width: 31rem;
    color: var(--gray-300);
    font-size: 1rem;
    font-weight: 300;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tech-list li {
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--line);
    color: var(--gray-300);
    font-family: var(--font-mono);
    font-size: 0.56rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.project-art {
    position: relative;
    overflow: hidden;
    background-color: #080808;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 48px 48px;
}

.project-featured .project-art {
    margin: 1rem;
}

.project-compact .project-art {
    min-height: 385px;
    flex: 1;
    margin: 0 1rem 1rem;
}

.project-art::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 10%, rgba(5, 5, 5, 0.82) 90%);
    pointer-events: none;
}

.dashboard-window {
    position: absolute;
    z-index: 1;
    width: min(90%, 720px);
    aspect-ratio: 1.55;
    top: 50%;
    left: 50%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: #0d0d0d;
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.55);
    transform: translate(-50%, -50%) perspective(1200px) rotateY(-4deg) rotateX(2deg);
    transition: transform 0.8s var(--ease-out);
}

.project-card:hover .dashboard-window {
    transform: translate(-50%, -52%) perspective(1200px) rotateY(0) rotateX(0);
}

.window-bar {
    height: 44px;
    padding-inline: 0.9rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-bottom: 1px solid var(--line);
    color: var(--gray-500);
    font-family: var(--font-mono);
    font-size: 0.48rem;
    text-transform: uppercase;
}

.window-dots {
    display: flex;
    gap: 4px;
}

.window-dots i {
    width: 5px;
    height: 5px;
    display: block;
    border-radius: 50%;
    background: var(--gray-500);
}

.window-status {
    justify-self: end;
    color: var(--gray-300);
}

.window-status::before {
    content: '';
    width: 5px;
    height: 5px;
    margin-right: 0.4rem;
    display: inline-block;
    border-radius: 50%;
    background: var(--white);
}

.dashboard-body {
    height: calc(100% - 44px);
    display: grid;
    grid-template-columns: 58px 1fr 0.68fr;
}

.dashboard-sidebar {
    padding-block: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    border-right: 1px solid var(--line);
}

.sidebar-logo,
.avatar {
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    font-family: var(--font-display);
}

.sidebar-logo {
    width: 27px;
    height: 27px;
    margin-bottom: 0.5rem;
    background: var(--white);
    color: var(--black);
    font-size: 0.62rem;
    font-weight: 800;
}

.sidebar-item {
    width: 16px;
    height: 16px;
    border: 1px solid var(--line);
}

.sidebar-item.active {
    border-color: var(--white);
    box-shadow: inset 0 0 0 4px #0d0d0d;
    background: var(--white);
}

.chat-panel {
    min-width: 0;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--line);
}

.chat-header {
    padding-bottom: 0.75rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.55rem;
    border-bottom: 1px solid var(--line);
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-family: var(--font-mono);
    font-size: 0.46rem;
}

.chat-header strong,
.chat-header small {
    display: block;
    font-size: 0.52rem;
    line-height: 1.3;
}

.chat-header small {
    color: var(--gray-500);
    font-weight: 400;
}

.chat-header>i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--white);
}

.chat-content {
    flex: 1;
    padding-block: 0.65rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
}

.chat-date {
    align-self: center;
    color: var(--gray-500);
    font-family: var(--font-mono);
    font-size: 0.38rem;
}

.message {
    max-width: 72%;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--line);
    color: var(--gray-300);
    font-size: 0.48rem;
    line-height: 1.4;
}

.message-out {
    align-self: flex-end;
    background: var(--white);
    color: var(--black);
}

.message.short {
    max-width: 60%;
}

.chat-input {
    height: 32px;
    padding-inline: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--line);
    color: var(--gray-500);
    font-size: 0.45rem;
}

.chat-input i {
    color: var(--white);
    font-style: normal;
}

.metrics-panel {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
}

.metric-label,
.metric-caption {
    color: var(--gray-500);
    font-family: var(--font-mono);
    font-size: 0.44rem;
}

.metrics-panel>strong {
    margin-top: 0.25rem;
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3vw, 2.1rem);
}

.metric-chart {
    height: 45%;
    margin-block: auto 0.75rem;
    display: flex;
    align-items: end;
    gap: 6px;
    border-bottom: 1px solid var(--line);
}

.metric-chart i {
    width: 100%;
    background: var(--gray-500);
}

.metric-chart i:nth-child(1) {
    height: 25%;
}

.metric-chart i:nth-child(2) {
    height: 38%;
}

.metric-chart i:nth-child(3) {
    height: 32%;
}

.metric-chart i:nth-child(4) {
    height: 54%;
}

.metric-chart i:nth-child(5) {
    height: 48%;
}

.metric-chart i:nth-child(6) {
    height: 76%;
}

.metric-chart i:nth-child(7) {
    height: 91%;
    background: var(--white);
}

.flow-art {
    min-height: 400px;
}

.flow-node {
    position: absolute;
    z-index: 2;
    width: 145px;
    padding: 0.8rem;
    display: grid;
    border: 1px solid var(--line-strong);
    background: rgba(10, 10, 10, 0.94);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.42);
    transition: transform 0.55s var(--ease-out), border-color 0.35s ease;
}

.flow-node>span {
    color: var(--gray-500);
    font-family: var(--font-mono);
    font-size: 0.46rem;
}

.flow-node strong {
    margin-block: 0.7rem 0.15rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
}

.flow-node i {
    color: var(--gray-500);
    font-family: var(--font-mono);
    font-size: 0.48rem;
    font-style: normal;
}

.node-one {
    top: 14%;
    left: 8%;
}

.node-two {
    top: 42%;
    left: 39%;
    border-color: rgba(255, 255, 255, 0.5);
}

.node-three {
    right: 7%;
    bottom: 12%;
    background: var(--white);
    color: var(--black);
}

.node-three>span,
.node-three i {
    color: #555;
}

.project-card:hover .node-one {
    transform: translate(-3px, -4px);
}

.project-card:hover .node-two {
    transform: translateY(-7px);
}

.project-card:hover .node-three {
    transform: translate(3px, -4px);
}

.flow-path {
    position: absolute;
    z-index: 1;
    height: 1px;
    background: repeating-linear-gradient(90deg, var(--gray-500) 0 5px, transparent 5px 10px);
    transform-origin: left center;
}

.flow-path::after {
    content: '';
    position: absolute;
    top: -3px;
    right: 0;
    width: 7px;
    height: 7px;
    border-top: 1px solid var(--gray-300);
    border-right: 1px solid var(--gray-300);
    transform: rotate(45deg);
}

.path-one {
    width: 39%;
    top: 34%;
    left: 28%;
    transform: rotate(31deg);
}

.path-two {
    width: 34%;
    top: 61%;
    left: 59%;
    transform: rotate(27deg);
}

.mobile-art {
    display: grid;
    place-items: center;
}

.phone {
    position: relative;
    z-index: 2;
    width: min(48%, 210px);
    aspect-ratio: 0.52;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 28px;
    background: #050505;
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.7);
    transform: rotate(5deg) translateY(8%);
    transition: transform 0.7s var(--ease-out);
}

.project-card:hover .phone {
    transform: rotate(0) translateY(3%);
}

.phone-speaker {
    position: absolute;
    z-index: 3;
    top: 13px;
    left: 50%;
    width: 44px;
    height: 9px;
    border-radius: 99px;
    background: #030303;
    transform: translateX(-50%);
}

.phone-screen {
    height: 100%;
    padding: 2.1rem 0.8rem 0.9rem;
    overflow: hidden;
    border-radius: 21px;
    background: #efefeb;
    color: #0b0b0b;
}

.mobile-head {
    margin-bottom: 1.7rem;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.38rem;
    text-transform: uppercase;
}

.mobile-head i {
    font-style: normal;
}

.phone-screen>p {
    color: #777;
    font-size: 0.48rem;
    line-height: 1;
}

.phone-screen>strong {
    font-family: var(--font-display);
    font-size: 1rem;
}

.travel-card {
    min-height: 120px;
    margin-top: 1rem;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    background: #111;
    color: var(--white);
}

.travel-card>span,
.travel-card small {
    color: #888;
    font-size: 0.4rem;
}

.travel-card>strong {
    font-family: var(--font-display);
    font-size: 1rem;
}

.route-line {
    margin-block: auto 0.5rem;
    display: flex;
    align-items: center;
}

.route-line i {
    width: 5px;
    height: 5px;
    border: 1px solid var(--white);
    border-radius: 50%;
}

.route-line i:last-child {
    background: var(--white);
}

.route-line span {
    height: 1px;
    flex: 1;
    background: repeating-linear-gradient(90deg, #777 0 3px, transparent 3px 6px);
}

.mobile-action {
    min-height: 41px;
    margin-top: 0.7rem;
    padding-inline: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 9px;
    font-size: 0.42rem;
    font-weight: 600;
}

.mobile-action span {
    font-size: 1rem;
}

.mobile-ring {
    position: absolute;
    z-index: 1;
    border: 1px solid var(--line);
    border-radius: 50%;
}

.ring-one {
    width: 58%;
    aspect-ratio: 1;
}

.ring-two {
    width: 80%;
    aspect-ratio: 1;
    border-style: dashed;
    animation: orbit 50s linear infinite reverse;
}

.skills-marquee {
    position: relative;
    z-index: 1;
    width: 100%;
    overflow: hidden;
    border-block: 1px solid var(--line);
    background: rgba(5, 5, 5, 0.72);
}

.skills-track {
    width: max-content;
    padding-block: 1.5rem;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    animation: marquee 30s linear infinite;
}

.skills-track span {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.skills-track i {
    color: var(--gray-500);
    font-style: normal;
    font-size: 0.8rem;
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
}

.info-card {
    position: relative;
    min-height: 340px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(255, 255, 255, 0.05), transparent 30%),
        var(--panel);
    border: 1px solid var(--line);
    transition: border-color 0.4s ease, transform 0.5s var(--ease-out);
}

.info-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-4px);
}

.bio-card {
    min-height: 460px;
    grid-column: span 7;
}

.philosophy-card,
.stack-card {
    min-height: 460px;
    grid-column: span 5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.education-card {
    grid-column: span 6;
}

.interests-card,
.focus-card {
    grid-column: span 6;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-label {
    padding-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    color: var(--gray-500);
}

.card-label span {
    color: var(--gray-300);
}

.info-icon {
    width: clamp(54px, 7vw, 84px);
    height: auto;
    margin-block: auto;
    color: var(--line-strong);
    stroke-width: 0.8;
}

.philosophy-card .info-icon {
    color: #38bdf8;
    opacity: 0.8;
}

.bio-lead {
    max-width: 32ch;
    margin-bottom: 1.2rem;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.1vw, 2.1rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.philosophy-content h3 {
    margin-bottom: 0.6rem;
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 1.8vw, 1.6rem);
    color: var(--white);
    line-height: 1.2;
}

.philosophy-content p {
    color: var(--gray-300);
    font-size: 0.92rem;
    line-height: 1.6;
}

.bio-card>p:last-child {
    max-width: 39rem;
    color: var(--gray-300);
    font-weight: 300;
}

.stack-list {
    margin-top: auto;
}

.stack-list li {
    padding-block: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.stack-list li:first-child {
    border-top: 1px solid var(--line);
}

.stack-list span {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 600;
}

.stack-list small {
    color: var(--gray-500);
    font-family: var(--font-mono);
    font-size: 0.5rem;
    text-transform: uppercase;
}

.education-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.education-card .card-label {
    grid-column: 1 / -1;
}

.education-item {
    margin-top: auto;
    padding: 1.2rem;
    border: 1px solid var(--line);
}

.education-item>span {
    color: var(--gray-500);
    font-family: var(--font-mono);
    font-size: 0.5rem;
    text-transform: uppercase;
}

.education-item h3 {
    margin-block: 1.2rem 0.4rem;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.2vw, 2rem);
    line-height: 1.05;
}

.education-item p {
    color: var(--gray-500);
    font-size: 0.8rem;
}

.focus-card {
    justify-content: space-between;
}

.focus-card h3 {
    margin-bottom: 0.65rem;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 3.4rem);
    letter-spacing: -0.05em;
    line-height: 1;
}

.focus-card p {
    max-width: 27rem;
    color: var(--gray-300);
    font-weight: 300;
}

.focus-symbol {
    position: relative;
    width: 112px;
    height: 112px;
    margin-block: 1.5rem;
    display: grid;
    place-items: center;
}

.focus-symbol span {
    position: absolute;
    inset: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
}

.focus-symbol span:nth-child(2) {
    inset: 17px;
    border-style: dashed;
    animation: orbit 18s linear infinite;
}

.focus-symbol i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.42);
}

.contact {
    min-height: 100svh;
    padding-top: clamp(8rem, 15vw, 14rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    scroll-margin-top: 5rem;
}

.contact-inner {
    padding-bottom: clamp(6rem, 12vw, 10rem);
}

.contact-kicker {
    margin-bottom: 1.5rem;
    color: var(--gray-300);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.contact h2 {
    max-width: 12ch;
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 8.5vw, 8.7rem);
    font-weight: 700;
    letter-spacing: -0.075em;
    line-height: 0.9;
}

.contact-email {
    width: 100%;
    margin-top: clamp(3rem, 6vw, 5rem);
    padding-block: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-block: 1px solid var(--line);
    color: var(--gray-300);
    font-family: var(--font-display);
    font-size: clamp(1rem, 2.6vw, 2.5rem);
    transition: color 0.3s ease, padding 0.4s var(--ease-out);
}

.contact-email svg {
    width: clamp(24px, 4vw, 50px);
    height: auto;
    flex-shrink: 0;
}

.contact-email:hover {
    padding-inline: 1rem;
    color: var(--white);
}

.contact-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.contact-links a {
    min-height: 46px;
    padding: 0.7rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid var(--line);
    font-size: 0.8rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.contact-links a:hover {
    background: var(--white);
    color: var(--black);
}

.site-footer {
    min-height: 92px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 1rem;
    border-top: 1px solid var(--line);
    color: var(--gray-500);
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.site-footer p:nth-child(2) {
    justify-self: center;
}

.site-footer a {
    justify-self: end;
    color: var(--gray-300);
}

.site-footer a span {
    margin-left: 0.6rem;
}

.js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.8s var(--ease-out);
}

.js [data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

.js .project-card[data-reveal] {
    opacity: 0;
    clip-path: inset(0 0 12% 0);
    transform: translateY(70px) scale(0.965);
    transition:
        opacity 0.9s ease,
        transform 1s var(--ease-out),
        clip-path 1.1s var(--ease-out),
        border-color 0.4s ease;
}

.js .project-card[data-reveal].revealed {
    opacity: 1;
    clip-path: inset(0);
    transform: translateY(0) scale(1);
}

.js .project-card[data-reveal].revealed:hover {
    transform: translateY(-4px) scale(1);
}

.js .info-card[data-reveal] {
    transform: translateY(54px) rotate(0.8deg);
    transition:
        opacity 0.8s ease,
        transform 0.95s var(--ease-out),
        border-color 0.4s ease;
}

.js .info-card[data-reveal]:nth-child(even) {
    transform: translateY(54px) rotate(-0.8deg);
}

.js .info-card[data-reveal].revealed {
    transform: translateY(0) rotate(0);
}

.js .info-card[data-reveal].revealed:hover {
    transform: translateY(-4px);
}

@media (max-width: 1100px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(270px, 0.65fr);
        gap: 3rem;
    }

    .hero h1 {
        font-size: clamp(4rem, 9.5vw, 7rem);
    }

    .project-featured {
        grid-template-columns: 0.85fr 1.15fr;
    }

    .dashboard-body {
        grid-template-columns: 52px 1fr;
    }

    .metrics-panel {
        display: none;
    }

    .chat-panel {
        border-right: 0;
    }

    .project-compact {
        min-height: 700px;
    }

    .flow-node {
        width: 125px;
    }
}

@media (max-width: 820px) {
    :root {
        --gutter: clamp(1.1rem, 5vw, 2rem);
    }

    .header-inner {
        min-height: 74px;
    }

    .brand-copy {
        display: none;
    }

    .site-navigation {
        gap: 0;
    }

    .nav-link {
        padding-inline: 0.55rem;
        font-size: 0.72rem;
    }

    .nav-link>span {
        display: none;
    }

    .nav-link-cta {
        margin-left: 0;
        padding-inline: 0.75rem;
    }

    .js .menu-toggle {
        position: relative;
        z-index: 2;
        display: block;
    }

    .js .menu-toggle[aria-expanded='true'] span:first-child {
        transform: translateY(3px) rotate(45deg);
    }

    .js .menu-toggle[aria-expanded='true'] span:last-child {
        transform: translateY(-3px) rotate(-45deg);
    }

    .js .site-navigation {
        position: fixed;
        inset: 0;
        z-index: 1001;
        padding: clamp(5rem, 12vh, 7rem) var(--gutter) 2.5rem;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        overflow-y: auto;
        gap: 0;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-16px);
        transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s var(--ease-out);
    }

    .js .site-navigation.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .js .site-navigation .nav-link {
        min-height: auto;
        padding: 0.85rem 0;
        justify-content: space-between;
        border: 0;
        border-bottom: 1px solid var(--line);
        font-family: var(--font-display);
        font-size: clamp(1.8rem, 7.5vw, 3.2rem);
        font-weight: 700;
        letter-spacing: -0.05em;
        line-height: 1.1;
    }

    .js .site-navigation .nav-link>span {
        display: block;
        order: 2;
        font-size: 0.6rem;
    }

    .hero {
        min-height: auto;
        padding-top: 5.5rem;
        padding-bottom: 3.5rem;
    }

    .hero-status {
        margin-bottom: 2rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero h1 {
        font-size: clamp(2.4rem, 10vw, 4rem);
        line-height: 0.95;
    }

    .portrait-card {
        width: min(85vw, 360px);
        justify-self: center;
    }

    .hero-facts {
        width: 100%;
    }

    .scroll-cue {
        display: none;
    }

    .section-header {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }

    .section-header h2 {
        font-size: clamp(2rem, 8vw, 3.2rem);
        line-height: 0.98;
    }

    .section-summary {
        max-width: 100%;
        padding-left: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-featured,
    .project-compact {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .project-copy,
    .project-compact .project-copy {
        min-height: auto;
        padding: clamp(1.4rem, 4.5vw, 2rem);
        gap: 1.4rem;
    }

    .project-copy h3 {
        font-size: clamp(1.6rem, 5.5vw, 2.15rem);
        line-height: 1.1;
        letter-spacing: -0.035em;
        word-break: normal;
        overflow-wrap: break-word;
    }

    .project-compact .project-copy h3 {
        font-size: clamp(1.45rem, 5vw, 1.95rem);
        line-height: 1.12;
    }

    .project-featured .project-art,
    .project-compact .project-art {
        min-height: 250px;
        height: 260px;
        margin: 0 0.85rem 0.85rem;
        border-radius: 12px;
    }

    .bio-card,
    .philosophy-card,
    .stack-card,
    .education-card,
    .interests-card,
    .focus-card {
        grid-column: span 12;
    }

    .bio-card,
    .philosophy-card {
        min-height: auto;
    }

    .contact {
        min-height: auto;
    }

    .site-footer {
        padding-block: 1.5rem;
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.75rem;
    }

    .site-footer p:nth-child(2) {
        display: none;
    }
}

@media (max-width: 560px) {
    .intro-content {
        width: calc(100% - 2rem);
    }

    .intro-name {
        font-size: clamp(2.6rem, 15vw, 4.4rem);
    }

    .intro-light {
        width: 94vw;
        height: 90px;
    }

    .intro-instruction {
        margin-top: -1rem;
        gap: 0.6rem;
        font-size: 0.49rem;
        letter-spacing: 0.08em;
    }

    .intro-coordinate-bottom {
        display: none;
    }

    .hero-location {
        display: none;
    }

    .hero h1 {
        font-size: clamp(2.2rem, 10vw, 3.4rem);
        line-height: 0.95;
    }

    .hero-intro {
        padding-left: 0.85rem;
        font-size: 1rem;
    }

    .hero-actions,
    .button {
        width: 100%;
    }

    .portrait-card {
        width: min(88vw, 340px);
    }

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

    .hero-facts>div {
        min-height: 60px;
        grid-template-columns: 60px 1fr;
        border-bottom: 1px solid var(--line);
    }

    .hero-facts dd {
        max-width: none;
    }

    .section-header h2 {
        font-size: clamp(1.9rem, 8.5vw, 2.75rem);
    }

    .project-featured,
    .project-compact {
        min-height: auto;
    }

    .project-copy,
    .project-compact .project-copy {
        min-height: auto;
        padding: 1.35rem 1.15rem;
        gap: 1.25rem;
    }

    .project-copy h3 {
        font-size: clamp(1.45rem, 5.5vw, 1.85rem);
        line-height: 1.12;
    }

    .project-compact .project-copy h3 {
        font-size: clamp(1.35rem, 5vw, 1.75rem);
        line-height: 1.14;
    }

    .project-featured .project-art,
    .project-compact .project-art {
        min-height: 230px;
        height: 240px;
        margin: 0 0.75rem 0.75rem;
    }

    .dashboard-window {
        width: 92%;
        max-width: 320px;
        transform: translate(-50%, -50%);
    }

    .project-card:hover .dashboard-window {
        transform: translate(-50%, -50%);
    }

    .flow-node {
        width: 96px;
        padding: 0.5rem;
    }

    .node-one {
        top: 11%;
        left: 3%;
    }

    .node-two {
        top: 42%;
        left: 28%;
    }

    .node-three {
        right: 3%;
        bottom: 10%;
    }

    .phone {
        width: 155px;
    }

    .skills-track {
        gap: 1.5rem;
    }

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

    .education-item {
        margin-top: 0;
    }

    .education-card .card-label {
        margin-bottom: 1rem;
    }

    .contact h2 {
        font-size: clamp(2.2rem, 9.5vw, 3.2rem);
    }

    .contact-email {
        align-items: flex-start;
        overflow-wrap: anywhere;
        font-size: 0.95rem;
    }

    .contact-links,
    .contact-links a {
        width: 100%;
    }

    .contact-links a {
        justify-content: space-between;
    }

    .site-footer {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .site-footer a {
        justify-self: start;
    }
}

@media (max-height: 760px) and (min-width: 821px) {
    .hero {
        padding-top: 7rem;
        padding-bottom: 3rem;
    }

    .hero-status {
        margin-bottom: 1.5rem;
    }

    .portrait-card {
        width: min(33vh, 360px);
    }

    .hero-facts {
        margin-top: 2rem;
    }
}

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

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

    .js [data-reveal] {
        opacity: 1;
        transform: none;
    }

    .js .project-card[data-reveal],
    .js .info-card[data-reveal],
    .js .enterprise-card[data-reveal],
    .js .stack-grid[data-reveal],
    .js .terminal-container[data-reveal],
    .js .project-card[data-reveal].revealed,
    .js .info-card[data-reveal].revealed,
    .js .enterprise-card[data-reveal].revealed,
    .js .stack-grid[data-reveal].revealed,
    .js .terminal-container[data-reveal].revealed {
        opacity: 1;
        clip-path: none;
        transform: none;
    }
}

/* ==========================================================================
   NOVOS COMPONENTES EXPANDIDOS â€” PORTFÃ“LIO K4TAKSEXATA
   ========================================================================== */

/* Header Tools & SFX Toggle */
.header-tools {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.audio-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--gray-300);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.2s ease;
}

.audio-toggle:hover {
    border-color: var(--line-strong);
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.audio-toggle .icon-sound {
    display: none;
}

.audio-toggle.active .icon-sound {
    display: block;
    color: #10b981;
}

.audio-toggle.active .icon-mute {
    display: none;
}

.audio-toggle.active {
    border-color: rgba(16, 185, 129, 0.4);
    color: #10b981;
}

.header-github {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--gray-100);
    transition: all 0.25s ease;
}

.header-github:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
    transform: translateY(-1px);
}

.header-github svg {
    width: 15px;
    height: 15px;
}

/* Button Outline */
.button-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--line-strong);
}

.button-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--white);
}

/* Filtros de Projetos */
.project-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
}

.filter-btn {
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    color: var(--gray-300);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.filter-btn:hover {
    border-color: var(--line-strong);
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
    font-weight: 600;
}

.project-card.filtered-out {
    display: none !important;
}

/* Badges e AÃ§Ãµes dos Cards de Projetos */
.badge-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
    font-size: 0.72rem;
    font-family: var(--font-mono);
    color: var(--gray-100);
}

.badge-live {
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
}

.project-card-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--gray-100);
    transition: color 0.2s;
}

.project-link:hover {
    color: var(--white);
    text-decoration: underline;
}

.project-link svg {
    width: 14px;
    height: 14px;
}

.project-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--gray-300);
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.project-modal-btn:hover {
    color: var(--white);
    transform: translateX(2px);
}

.project-modal-btn svg {
    width: 14px;
    height: 14px;
}

/* Artes dos Novos Cards de Projeto */
.database-art {
    display: grid;
    place-items: center;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
}

.db-schema-mini {
    width: 82%;
    max-width: 280px;
    background: rgba(15, 15, 18, 0.88);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.db-table-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.65rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--gray-300);
}

.db-table-row.active {
    border-color: rgba(59, 130, 246, 0.45);
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
}

.db-table-row svg {
    width: 14px;
    height: 14px;
}

.autohub-art {
    display: grid;
    place-items: center;
    background: radial-gradient(circle at center, rgba(234, 179, 8, 0.1) 0%, transparent 70%);
}

.card-mini-stat {
    background: rgba(18, 18, 20, 0.9);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.5rem;
    width: 82%;
    max-width: 260px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    text-align: left;
}

.badge-pill {
    display: inline-block;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    padding: 0.2rem 0.55rem;
    background: rgba(234, 179, 8, 0.15);
    color: #fde047;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
}

.card-mini-stat small {
    display: block;
    color: var(--gray-300);
    font-size: 0.75rem;
    margin-top: 0.2rem;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: 999px;
}

.vault-art {
    display: grid;
    place-items: center;
    background: radial-gradient(circle at center, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
}

.vault-dial {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 2px dashed rgba(168, 85, 247, 0.35);
    display: grid;
    place-items: center;
    animation: rotateSlow 26s linear infinite;
}

.dial-inner {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(18, 18, 22, 0.92);
    border: 1px solid rgba(168, 85, 247, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.2);
}

.vault-icon {
    width: 24px;
    height: 24px;
    color: #c084fc;
}

.dial-inner span {
    font-size: 0.65rem;
    font-family: var(--font-mono);
    letter-spacing: 0.15em;
    color: #e9d5ff;
}

@keyframes rotateSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Badges de Status em Tempo Real */
.pulse-dot-green {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulseGlow 1.8s infinite ease-in-out;
}

.pulse-dot-red {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
    animation: pulseGlow 1.2s infinite ease-in-out;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.85);
    }
}

.project-btn-live {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #34d399;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.project-btn-live:hover {
    background: #10b981;
    color: #050505;
    border-color: #10b981;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.project-btn-live svg {
    width: 13px;
    height: 13px;
}

/* AnimaÃ§Ã£o de Fluxo de Mensagens â€” ItecChatbot */
.flow-packet {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 10px #38bdf8, 0 0 18px #38bdf8;
    z-index: 4;
}

.packet-one {
    animation: packetTravelOne 3.2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.packet-two {
    animation: packetTravelTwo 3.2s infinite cubic-bezier(0.4, 0, 0.2, 1);
    animation-delay: 1.6s;
}

@keyframes packetTravelOne {
    0% {
        top: 22%;
        left: 16%;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    50% {
        top: 48%;
        left: 45%;
    }

    85% {
        opacity: 1;
    }

    100% {
        top: 78%;
        left: 78%;
        opacity: 0;
    }
}

@keyframes packetTravelTwo {
    0% {
        top: 22%;
        left: 16%;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    50% {
        top: 48%;
        left: 45%;
    }

    85% {
        opacity: 1;
    }

    100% {
        top: 78%;
        left: 78%;
        opacity: 0;
    }
}

.node-live-pulse {
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    border: 1px solid rgba(56, 189, 248, 0.6);
    animation: nodeRipple 2.6s infinite ease-out;
    pointer-events: none;
}

@keyframes nodeRipple {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }

    100% {
        transform: scale(1.18);
        opacity: 0;
    }
}

/* Arte & Dashboard Animado â€” VPS Sentinel (consumo.ktzz.online) */
.vps-art {
    display: grid;
    place-items: center;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
}

.vps-window {
    width: 86%;
    max-width: 290px;
    background: rgba(13, 14, 18, 0.94);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
    font-family: var(--font-mono);
}

.vps-win-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--line);
    font-size: 0.72rem;
    color: var(--gray-300);
}

.vps-dots {
    display: flex;
    gap: 4px;
}

.vps-dots i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--line-strong);
    display: inline-block;
}

.vps-host {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--gray-100);
}

.vps-host svg {
    width: 12px;
    height: 12px;
    color: #10b981;
}

.vps-live-tag {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.65rem;
    color: #34d399;
}

.vps-body {
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.vps-metric {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.vps-metric-head {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--gray-300);
}

.vps-metric-head span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.vps-metric-head svg {
    width: 13px;
    height: 13px;
    color: #10b981;
}

.vps-metric-head strong {
    color: var(--white);
    font-weight: 600;
}

.vps-meter {
    height: 5px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    overflow: hidden;
}

.vps-meter span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 999px;
    transition: width 0.8s ease;
}

.vps-sparkline-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.4rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.07);
}

.spark-info span {
    display: block;
    font-size: 0.68rem;
    color: var(--gray-500);
}

.spark-info strong {
    font-size: 0.82rem;
    color: #10b981;
}

.spark-svg {
    width: 90px;
    height: 24px;
}

.spark-path {
    stroke-dasharray: 120;
    stroke-dashoffset: 0;
    animation: sparkAnim 2.8s infinite linear;
}

@keyframes sparkAnim {
    0% {
        stroke-dashoffset: 120;
    }

    50% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: -120;
    }
}

/* Arte & HUD de Alta PrecisÃ£o â€” Lab de VisÃ£o Computacional (OpenCV & IoT) */
.cv-art {
    display: grid;
    place-items: center;
    background: radial-gradient(circle at center, rgba(34, 197, 94, 0.12) 0%, transparent 70%);
    width: 100%;
    height: 100%;
    min-height: 260px;
}

.cv-hud-frame {
    width: 86%;
    max-width: 290px;
    background: rgba(6, 16, 10, 0.94);
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 0 25px rgba(34, 197, 94, 0.05);
    font-family: var(--font-mono);
}

.cv-hud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0.75rem;
    background: rgba(34, 197, 94, 0.08);
    border-bottom: 1px solid rgba(34, 197, 94, 0.2);
    font-size: 0.68rem;
    color: #4ade80;
}

.hud-rec {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.hud-fps {
    color: var(--gray-300);
}

.cv-hud-canvas {
    position: relative;
    height: 135px;
    overflow: hidden;
    background: rgba(0, 10, 5, 0.6);
}

.cv-grid-mesh {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(34, 197, 94, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 197, 94, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
}

.cv-laser-scan {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #22c55e, #86efac, #22c55e, transparent);
    box-shadow: 0 0 10px #22c55e;
    animation: laserScan 2.4s infinite linear;
}

@keyframes laserScan {
    0% {
        top: 0%;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.cv-bounding-box {
    position: absolute;
    top: 25px;
    left: 45px;
    width: 130px;
    height: 75px;
    border: 1px dashed rgba(34, 197, 94, 0.4);
    animation: cvBoxFloat 5s infinite ease-in-out;
}

@keyframes cvBoxFloat {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(14px, -6px);
    }

    66% {
        transform: translate(-10px, 8px);
    }
}

.cv-bracket {
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: #22c55e;
    border-style: solid;
}

.cv-bracket.b-tl {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px;
}

.cv-bracket.b-tr {
    top: -1px;
    right: -1px;
    border-width: 2px 2px 0 0;
}

.cv-bracket.b-bl {
    bottom: -1px;
    left: -1px;
    border-width: 0 0 2px 2px;
}

.cv-bracket.b-br {
    bottom: -1px;
    right: -1px;
    border-width: 0 2px 2px 0;
}

.cv-hud-tag {
    position: absolute;
    top: -20px;
    left: 0;
    font-size: 0.62rem;
    color: #000;
    background: #22c55e;
    padding: 0.1rem 0.35rem;
    border-radius: 2px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.cv-hud-footer {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0.75rem;
    background: rgba(34, 197, 94, 0.06);
    border-top: 1px solid rgba(34, 197, 94, 0.15);
    font-size: 0.65rem;
    color: #4ade80;
}

/* Indicadores nos demais cards */
.query-ping {
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border-radius: 999px;
    margin-left: auto;
    animation: pulsePing 2s infinite;
}

@keyframes pulsePing {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.typing-bubble {
    color: #38bdf8 !important;
    font-style: italic;
    opacity: 0.9;
}

/* ==========================================================================
   SEÃ‡ÃƒO SISTEMAS EMPRESARIAIS & ENGENHARIA DE DADOS
   ========================================================================== */
.enterprise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.enterprise-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: clamp(1.75rem, 3.5vw, 2.5rem);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
}

.enterprise-card-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.badge-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    color: var(--white);
    flex-shrink: 0;
}

.badge-icon svg {
    width: 24px;
    height: 24px;
}

.enterprise-card-header h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--white);
}

.enterprise-card-header p {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--gray-300);
}

.enterprise-desc {
    color: var(--gray-300);
    font-size: 0.95rem;
    line-height: 1.6;
}

.sql-code-box {
    background: #09090b;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.sql-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gray-300);
}

.sql-header span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sql-header svg {
    width: 14px;
    height: 14px;
}

.engine-badge {
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    font-size: 0.7rem;
}

.sql-code {
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.55;
    overflow-x: auto;
    color: var(--gray-100);
}

.sql-code .keyword {
    color: #f43f5e;
    font-weight: 600;
}

.sql-code .func {
    color: #38bdf8;
}

.sql-code .string {
    color: #a3e635;
}

.enterprise-pills {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.enterprise-pills li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: var(--gray-100);
}

.enterprise-pills svg {
    width: 16px;
    height: 16px;
    color: #10b981;
}

.fiscal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.fiscal-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.1rem;
}

.fiscal-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}

.fiscal-item strong {
    display: block;
    font-size: 0.95rem;
    color: var(--white);
    margin-bottom: 0.35rem;
}

.fiscal-item p {
    font-size: 0.8rem;
    color: var(--gray-300);
    line-height: 1.45;
}

.quote-box {
    padding: 1.1rem;
    border-left: 2px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--gray-300);
    font-size: 0.88rem;
}

/* ==========================================================================
   SEÃ‡ÃƒO TERMINAL INTERATIVO (KH-OS CLI)
   ========================================================================== */
.terminal-container {
    max-width: 980px;
    margin: 0 auto;
}

.terminal-window {
    background: rgba(9, 9, 12, 0.97);
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 35px rgba(56, 189, 248, 0.04);
    font-family: var(--font-mono);
}

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.25rem;
    background: rgba(18, 18, 22, 0.8);
    border-bottom: 1px solid var(--line);
}

.terminal-buttons {
    display: flex;
    gap: 0.45rem;
}

.btn-circle {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.btn-close {
    background: #ef4444;
}

.btn-minimize {
    background: #f59e0b;
}

.btn-maximize {
    background: #10b981;
}

.terminal-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--gray-300);
}

.terminal-title svg {
    width: 14px;
    height: 14px;
}

.terminal-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: #10b981;
}

.status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.terminal-body {
    padding: 1.5rem;
    max-height: 420px;
    min-height: 280px;
    overflow-y: auto;
    font-size: 0.85rem;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.term-line {
    word-break: break-word;
}

.term-line.banner {
    color: #38bdf8;
    white-space: pre;
    line-height: 1.15;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.term-line.info {
    color: var(--gray-300);
}

.term-line.cmd-entry {
    color: var(--white);
    margin-top: 0.35rem;
}

.term-line.cmd-output {
    color: #e2e8f0;
}

.term-line.cmd-error {
    color: #f87171;
}

.term-line.cmd-success {
    color: #4ade80;
}

.term-line.divider {
    color: var(--line);
    margin: 0.25rem 0;
}

.term-cmd {
    color: #38bdf8;
    font-weight: 600;
}

.terminal-input-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.25rem;
    background: rgba(14, 14, 18, 0.9);
    border-top: 1px solid var(--line);
}

.term-prompt {
    color: #10b981;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

#terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 0.88rem;
}

.term-send-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    color: var(--gray-300);
    border-radius: 6px;
    padding: 0.3rem 0.5rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.2s;
}

.term-send-btn svg {
    width: 14px;
    height: 14px;
}

.term-send-btn:hover {
    background: var(--white);
    color: var(--black);
}

.terminal-quick-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(10, 10, 12, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.chips-label {
    font-size: 0.72rem;
    color: var(--gray-500);
}

.term-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 0.2rem 0.55rem;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--gray-300);
    cursor: pointer;
    transition: all 0.15s ease;
}

.term-chip:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    color: #38bdf8;
}

.term-chip.codex-chip {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.45);
    color: #38bdf8;
    font-weight: 600;
}

.term-chip.codex-chip:hover {
    background: #38bdf8;
    color: #050505;
    border-color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.codex-code-block {
    margin: 0.6rem 0;
    padding: 0.85rem 1.1rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.55;
    overflow-x: auto;
    color: #e2e8f0;
}

.codex-code-block .kw {
    color: #f43f5e;
    font-weight: 600;
}

.codex-code-block .fn {
    color: #38bdf8;
}

.codex-code-block .str {
    color: #a3e635;
}

.codex-code-block .cm {
    color: #64748b;
    font-style: italic;
}

/* ==========================================================================
   SEÃ‡ÃƒO MATRIZ DE COMPETÃŠNCIAS / TECH RADAR
   ========================================================================== */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.stack-box {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    backdrop-filter: blur(12px);
    transition: border-color 0.25s, transform 0.25s;
}

.stack-box:hover {
    border-color: var(--line-strong);
    transform: translateY(-2px);
}

.stack-box-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.box-icon {
    width: 24px;
    height: 24px;
    color: #38bdf8;
}

.stack-box-header h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--white);
}

.stack-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stack-items li {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.item-name {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--gray-100);
}

.item-name strong {
    font-size: 0.72rem;
    font-family: var(--font-mono);
    color: var(--gray-300);
}

.skill-meter {
    height: 4px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    overflow: hidden;
}

.skill-meter span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    border-radius: 999px;
}

/* ==========================================================================
   REFINAMENTOS NA SEÃ‡ÃƒO SOBRE & FORMAÃ‡ÃƒO
   ========================================================================== */
.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.about-tags span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gray-300);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
}

.formula-pill {
    margin-top: 1rem;
    padding: 0.6rem 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.formula-pill code {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #38bdf8;
    display: block;
}

.edu-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    margin-bottom: 0.4rem;
}

.edu-badge.in-progress {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.edu-badge.finished {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin-top: 1rem;
}

.interest-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--gray-100);
}

.interest-item svg {
    width: 18px;
    height: 18px;
    color: #a78bfa;
}

/* ==========================================================================
   REFINAMENTOS NA SEÃ‡ÃƒO CONTATO & RODAPÃ‰
   ========================================================================== */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.email-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    color: var(--gray-300);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.copy-btn svg {
    width: 14px;
    height: 14px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.contact-btn svg {
    width: 18px;
    height: 18px;
}

.github-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.github-btn:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
    transform: translateY(-2px);
}

.whatsapp-btn {
    background: rgba(37, 211, 102, 0.1);
    border-color: rgba(37, 211, 102, 0.35);
    color: #4ade80;
}

.whatsapp-btn:hover {
    background: #25d366;
    color: #000;
    border-color: #25d366;
    transform: translateY(-2px);
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.footer-repo a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--gray-300);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    transition: color 0.2s;
}

.footer-repo a:hover {
    color: var(--white);
}

.footer-repo svg {
    width: 14px;
    height: 14px;
}

/* ==========================================================================
   MODAL DE DETALHES DE PROJETOS & TOAST
   ========================================================================== */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    z-index: 2;
    background: #0d0d11;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    width: 100%;
    max-width: 620px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 2.25rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.2, 1, 0.3, 1);
}

.project-modal.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: var(--gray-300);
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
}

.modal-close svg {
    width: 16px;
    height: 16px;
}

.modal-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    margin-bottom: 0.5rem;
}

.modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--white);
}

.modal-header p {
    color: var(--gray-300);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modal-section h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.modal-section h4 svg {
    width: 16px;
    height: 16px;
    color: #38bdf8;
}

.modal-section p {
    color: var(--gray-300);
    font-size: 0.9rem;
    line-height: 1.6;
}

.modal-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.modal-tech-list li {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 0.25rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--gray-100);
}

.modal-features-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.modal-features-list li {
    font-size: 0.88rem;
    color: var(--gray-300);
    position: relative;
    padding-left: 1.25rem;
}

.modal-features-list li::before {
    content: '\2192';
    position: absolute;
    left: 0;
    color: #38bdf8;
}

.modal-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    background: rgba(18, 18, 22, 0.96);
    border: 1px solid var(--line-strong);
    color: var(--white);
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    pointer-events: auto;
    animation: toastSlideIn 0.3s ease forwards;
}

.toast.toast-success {
    border-color: rgba(16, 185, 129, 0.5);
}

.toast.toast-success svg {
    width: 16px;
    height: 16px;
    color: #10b981;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   RESPONSIVIDADE COMPLETA PARA SMARTPHONES E TABLETS (MOBILE FIRST MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 992px) {
    .enterprise-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 820px) {
    /* Header & Controles no Mobile */
    .header-inner {
        min-height: 70px;
        gap: 0.75rem;
    }

    .brand-copy small {
        display: none;
    }

    .header-tools {
        gap: 0.5rem;
    }

    .audio-toggle {
        width: 38px;
        height: 38px;
        padding: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        background: rgba(255, 255, 255, 0.05);
    }

    .audio-toggle .audio-label {
        display: none;
    }

    .audio-toggle svg {
        width: 17px;
        height: 17px;
        display: block;
    }

    .audio-toggle.active {
        background: rgba(16, 185, 129, 0.14);
        border-color: rgba(16, 185, 129, 0.5);
        color: #10b981;
        box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
    }

    .header-github {
        width: 38px;
        height: 38px;
        padding: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .header-github .github-handle {
        display: none;
    }

    .header-github svg {
        width: 17px;
        height: 17px;
        display: block;
    }

    .menu-toggle {
        width: 38px;
        height: 38px;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    /* Barra de Filtros de Projetos: Carrossel touch horizontal suave */
    .project-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.65rem;
        margin-bottom: 2rem;
        scrollbar-width: none;
    }

    .project-filters::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 0.78rem;
        padding: 0.5rem 1rem;
    }

    /* Cards de Projetos: Tipografia e espaçamento adaptado */
    .project-copy h3 {
        font-size: clamp(1.75rem, 5.5vw, 2.4rem);
        line-height: 1.08;
        letter-spacing: -0.035em;
        word-break: normal;
        overflow-wrap: break-word;
    }

    .project-compact .project-copy h3 {
        font-size: clamp(1.55rem, 5vw, 2.1rem);
        line-height: 1.12;
    }

    .project-copy,
    .project-compact .project-copy {
        padding: clamp(1.25rem, 4.5vw, 1.85rem);
        min-height: auto;
        gap: 1.4rem;
    }

    .project-featured,
    .project-compact {
        min-height: auto;
    }

    .project-featured .project-art,
    .project-compact .project-art {
        min-height: 270px;
        margin: 0 0.75rem 0.75rem;
    }

    .project-card-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        align-items: center;
    }

    /* Seção Banco de Dados & Fiscal */
    .fiscal-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .enterprise-card {
        padding: 1.4rem;
        border-radius: 16px;
    }

    .sql-code {
        font-size: 0.75rem;
        padding: 0.85rem;
    }

    /* Seção Sobre */
    .interests-grid {
        grid-template-columns: 1fr;
    }

    /* Terminal KS-OS Codex em Telas Médias */
    .terminal-body {
        min-height: 230px;
        max-height: 360px;
        padding: 1rem;
        font-size: 0.82rem;
    }

    .term-line.banner {
        font-size: clamp(0.44rem, 1.9vw, 0.62rem);
        line-height: 1.12;
        overflow-x: auto;
    }

    .toast-container {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

    .toast {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 560px) {
    /* Header no Mobile */
    .header-inner {
        min-height: 64px;
        gap: 0.5rem;
    }

    .brand {
        gap: 0.5rem;
    }

    .brand-mark {
        width: 34px;
        font-size: 0.62rem;
    }

    .brand-copy strong {
        font-size: 0.8rem;
    }

    .header-tools {
        gap: 0.4rem;
    }

    .audio-toggle,
    .header-github,
    .menu-toggle {
        width: 36px;
        height: 36px;
    }

    .audio-toggle svg,
    .header-github svg {
        width: 16px;
        height: 16px;
    }

    /* Hero Section no Mobile */
    .hero {
        padding-top: 5.5rem;
        padding-bottom: 3.5rem;
    }

    .hero-kicker {
        font-size: 0.58rem;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .hero-actions .button {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.25rem;
    }

    /* Seção Títulos Gerais */
    .section-header h2 {
        font-size: clamp(2.3rem, 11vw, 3.4rem);
        line-height: 0.95;
    }

    .section-summary {
        font-size: 0.92rem;
        padding-left: 0.85rem;
    }

    /* Terminal Interativo KS-OS Codex em Telas Pequenas */
    .terminal-container {
        padding: 0;
    }

    .terminal-header {
        padding: 0.6rem 0.85rem;
    }

    .terminal-title span {
        font-size: 0.7rem;
    }

    .terminal-body {
        padding: 0.85rem 0.75rem;
        font-size: 0.78rem;
        min-height: 200px;
        max-height: 320px;
    }

    .term-line.banner {
        font-size: clamp(0.38rem, 2.2vw, 0.52rem);
        letter-spacing: -0.01em;
    }

    .terminal-input-row {
        padding: 0.65rem 0.85rem;
        gap: 0.4rem;
    }

    .term-prompt {
        font-size: 0.74rem;
    }

    #terminal-input {
        font-size: 0.8rem;
    }

    .terminal-quick-chips {
        padding: 0.65rem 0.85rem;
        gap: 0.35rem;
    }

    .chips-label {
        width: 100%;
        font-size: 0.68rem;
        margin-bottom: 0.15rem;
    }

    .term-chip {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    .codex-code-block {
        font-size: 0.72rem;
        padding: 0.65rem 0.75rem;
    }

    /* Stack Box & Tech Radar */
    .stack-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stack-box {
        padding: 1.25rem 1rem;
    }

    /* Seção Contato */
    .contact {
        padding-top: 3.5rem;
    }

    .contact-inner {
        padding-bottom: 3.5rem;
    }

    .contact-methods {
        flex-direction: column;
        width: 100%;
        gap: 0.65rem;
    }

    .contact-btn,
    .copy-btn {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1rem;
        font-size: 0.84rem;
    }

    .contact-email {
        font-size: clamp(0.85rem, 4.4vw, 1.15rem);
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    /* Modal de Detalhes no Mobile */
    .project-modal {
        padding: 0.75rem;
    }

    .modal-content {
        padding: 1.5rem 1.1rem;
        border-radius: 16px;
        max-height: 90vh;
        gap: 1.15rem;
    }

    .modal-header h3 {
        font-size: 1.35rem;
    }

    .modal-section h4 {
        font-size: 0.88rem;
    }

    .modal-features-list li {
        font-size: 0.82rem;
    }
}