:root {
    --bg: #08111f;
    --bg-soft: rgba(10, 24, 43, 0.72);
    --panel: rgba(12, 25, 44, 0.82);
    --panel-strong: rgba(7, 16, 31, 0.96);
    --line: rgba(153, 193, 255, 0.18);
    --text: #ecf3ff;
    --muted: #9cb0cb;
    --accent: #66e0c2;
    --accent-strong: #f8b84e;
    --danger: #ff7b73;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: auto;
}

body {
    background:
        radial-gradient(circle at 10% 20%, rgba(102, 224, 194, 0.13), transparent 30%),
        radial-gradient(circle at 85% 15%, rgba(248, 184, 78, 0.14), transparent 30%),
        linear-gradient(180deg, #07101d 0%, #0a1627 45%, #07101a 100%);
    color: var(--text);
    font-family: "Space Grotesk", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.cursor-circle {
    position: fixed;
    top: 0;
    left: 0;
    width: 2.25rem;
    height: 2.25rem;
    pointer-events: none;
    opacity: 0;
    z-index: 79;
    transition: opacity 0.16s ease;
}

.cursor-circle.is-visible {
    opacity: 1;
}

.cursor-circle-ring,
.cursor-circle-orbit,
.cursor-circle-pulse,
.cursor-circle-dot {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    border-radius: 999px;
}

.cursor-circle-pulse {
    width: 2.85rem;
    height: 2.85rem;
    background: radial-gradient(circle, rgba(102, 224, 194, 0.12) 0%, rgba(102, 224, 194, 0.04) 34%, rgba(102, 224, 194, 0) 72%);
    filter: blur(4px);
    opacity: 0.36;
    animation: cursorPulseHalo 2.6s ease-in-out infinite;
}

.cursor-circle-ring {
    width: 2.25rem;
    height: 2.25rem;
    background:
        radial-gradient(circle, rgba(102, 224, 194, 0.08) 0%, rgba(102, 224, 194, 0) 68%),
        conic-gradient(
            from 18deg,
            rgba(236, 243, 255, 0.82) 0deg 44deg,
            transparent 44deg 70deg,
            rgba(236, 243, 255, 0.54) 70deg 128deg,
            transparent 128deg 164deg,
            rgba(102, 224, 194, 0.72) 164deg 214deg,
            transparent 214deg 254deg,
            rgba(236, 243, 255, 0.68) 254deg 312deg,
            transparent 312deg 346deg,
            rgba(236, 243, 255, 0.82) 346deg 360deg
        );
    box-shadow: 0 0 16px rgba(102, 224, 194, 0.08);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 1px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 1px));
    animation: cursorRingSpin 4.8s linear infinite, cursorRingDrift 1.9s ease-in-out infinite alternate;
}

.cursor-circle-orbit {
    width: 1.6rem;
    height: 1.6rem;
    background: conic-gradient(
        from 210deg,
        rgba(124, 240, 255, 0.92) 0deg 26deg,
        transparent 26deg 150deg,
        rgba(248, 184, 78, 0.72) 150deg 182deg,
        transparent 182deg 360deg
    );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
    opacity: 0.9;
    animation: cursorOrbitSpin 2.2s linear infinite reverse;
}

.cursor-circle-dot {
    width: 0.38rem;
    height: 0.38rem;
    background: #ecf3ff;
    box-shadow: 0 0 10px rgba(236, 243, 255, 0.28);
    animation: cursorDotPulse 1.8s ease-in-out infinite;
}

.cursor-circle.is-interactive .cursor-circle-ring {
    background:
        radial-gradient(circle, rgba(248, 184, 78, 0.12) 0%, rgba(248, 184, 78, 0) 68%),
        conic-gradient(
            from 42deg,
            rgba(248, 184, 78, 0.92) 0deg 52deg,
            transparent 52deg 84deg,
            rgba(255, 214, 140, 0.56) 84deg 144deg,
            transparent 144deg 182deg,
            rgba(248, 184, 78, 0.84) 182deg 230deg,
            transparent 230deg 270deg,
            rgba(255, 214, 140, 0.64) 270deg 328deg,
            transparent 328deg 360deg
        );
    box-shadow: 0 0 18px rgba(248, 184, 78, 0.12);
    animation-duration: 2.4s, 1.1s;
}

.cursor-circle.is-interactive .cursor-circle-pulse {
    background: radial-gradient(circle, rgba(248, 184, 78, 0.16) 0%, rgba(248, 184, 78, 0.05) 36%, rgba(248, 184, 78, 0) 74%);
    opacity: 0.44;
}

.cursor-circle.is-interactive .cursor-circle-orbit {
    background: conic-gradient(
        from 160deg,
        rgba(248, 184, 78, 0.96) 0deg 30deg,
        transparent 30deg 144deg,
        rgba(255, 229, 178, 0.78) 144deg 182deg,
        transparent 182deg 360deg
    );
}

.cursor-circle.is-interactive .cursor-circle-dot {
    background: #f8b84e;
    box-shadow: 0 0 10px rgba(248, 184, 78, 0.24);
}

@keyframes cursorRingSpin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes cursorRingDrift {
    from {
        opacity: 0.9;
        filter: drop-shadow(0 0 0 rgba(102, 224, 194, 0));
    }
    to {
        opacity: 1;
        filter: drop-shadow(0 0 5px rgba(102, 224, 194, 0.18));
    }
}

@keyframes cursorOrbitSpin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes cursorPulseHalo {
    0%,
    100% {
        transform: translate(-50%, -50%) scale(0.92);
        opacity: 0.22;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.08);
        opacity: 0.42;
    }
}

@keyframes cursorDotPulse {
    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.12);
    }
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.page-shell {
    position: relative;
    isolation: isolate;
    padding-top: 5rem;
}

.page-backdrop {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -4;
    overflow: hidden;
}

.network-map {
    position: absolute;
    inset: 0;
}

.network-map::before,
.network-map::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.network-map::before {
    background-image: radial-gradient(circle, rgba(236, 243, 255, 0.22) 0 1px, transparent 1.4px);
    background-size: 52px 52px;
    background-position: 10px 14px;
    opacity: 0.46;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.88) 34%, transparent 100%);
    animation: dotFieldDrift 22s linear infinite;
}

.network-map::after {
    background-image:
        radial-gradient(circle, rgba(124, 240, 255, 0.14) 0 1.1px, transparent 1.5px),
        radial-gradient(circle, rgba(248, 184, 78, 0.12) 0 1px, transparent 1.4px);
    background-size: 74px 74px, 96px 96px;
    background-position: 18px 22px, 40px 10px;
    opacity: 0.34;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.82) 24%, transparent 100%);
    animation: dotFieldDriftAlt 30s linear infinite;
}

.network-cloud,
.network-link,
.network-node,
.network-pulse {
    position: absolute;
}

.network-cloud {
    border-radius: 999px;
    filter: blur(90px);
    opacity: 0.22;
}

.cloud-a {
    top: 8%;
    left: 6%;
    width: 28rem;
    height: 18rem;
    background: radial-gradient(circle at 40% 45%, rgba(102, 224, 194, 0.28), rgba(102, 224, 194, 0));
}

.cloud-b {
    top: 30%;
    right: 8%;
    width: 30rem;
    height: 20rem;
    background: radial-gradient(circle at 50% 45%, rgba(124, 240, 255, 0.24), rgba(124, 240, 255, 0));
}

.cloud-c {
    bottom: 6%;
    left: 28%;
    width: 24rem;
    height: 16rem;
    background: radial-gradient(circle at 45% 45%, rgba(248, 184, 78, 0.16), rgba(248, 184, 78, 0));
}

.network-link {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(153, 193, 255, 0.22), transparent);
    transform-origin: left center;
    opacity: 0.7;
}

.link-a {
    top: 26%;
    left: 18%;
    width: 26rem;
    transform: rotate(18deg);
}

.link-b {
    top: 34%;
    left: 38%;
    width: 20rem;
    transform: rotate(-12deg);
}

.link-c {
    top: 56%;
    left: 20%;
    width: 28rem;
    transform: rotate(-8deg);
}

.link-d {
    top: 44%;
    right: 14%;
    width: 16rem;
    transform: rotate(22deg);
}

.link-e {
    bottom: 20%;
    right: 24%;
    width: 18rem;
    transform: rotate(-18deg);
}

.network-node {
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 999px;
    background: rgba(236, 243, 255, 0.72);
    box-shadow: 0 0 18px rgba(124, 240, 255, 0.42);
}

.node-a { top: 24%; left: 20%; }
.node-b { top: 34%; left: 42%; }
.node-c { top: 28%; right: 24%; }
.node-d { top: 56%; left: 24%; }
.node-e { top: 46%; right: 18%; }
.node-f { bottom: 18%; right: 28%; }

.network-pulse {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 999px;
    border: 1px solid rgba(102, 224, 194, 0.18);
    opacity: 0.24;
}

.pulse-a { top: 22.4%; left: 18.7%; }
.pulse-b { top: 32.4%; left: 40.7%; }
.pulse-c { top: 54.5%; left: 22.7%; }

@keyframes dotFieldDrift {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-28px, 20px, 0);
    }
}

@keyframes dotFieldDriftAlt {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(24px, -18px, 0);
    }
}

.ambient {
    position: fixed;
    border-radius: 999px;
    filter: blur(70px);
    pointer-events: none;
    opacity: 0.6;
    z-index: -3;
}

.ambient-one {
    top: 5rem;
    left: -6rem;
    width: 18rem;
    height: 18rem;
    background: rgba(102, 224, 194, 0.22);
}

.ambient-two {
    right: -6rem;
    top: 20rem;
    width: 22rem;
    height: 22rem;
    background: rgba(248, 184, 78, 0.14);
}

.grid-overlay {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at center, black 48%, transparent 100%);
    pointer-events: none;
    z-index: -2;
}

.container {
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section-band {
    background: linear-gradient(180deg, rgba(10, 23, 41, 0.28), rgba(5, 13, 23, 0.46));
    border-block: 1px solid rgba(153, 193, 255, 0.08);
}

.section-heading {
    max-width: 46rem;
    margin-bottom: 2.5rem;
}

.hero-greeting {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: var(--text-muted);
    margin-top: 1.2rem;
    margin-bottom: 1.8rem;
    line-height: 1.7;
}

.hero-name {
    color: var(--text);
    font-weight: 700;
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

.hero-name::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    border-radius: 2px;
}

.section-kicker,
.eyebrow,
.role-label,
.strip-label,
.project-index,
.timeline-year {
    font-family: "IBM Plex Mono", monospace;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-kicker,
.eyebrow,
.role-label,
.strip-label {
    color: var(--accent);
    font-size: 0.82rem;
    margin-bottom: 0.9rem;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.05;
}

.section-heading p,
.about-card p,
.contact-lead,
.timeline-card p,
.skill-panel p,
.project-card p,
.hero-description,
.metric-card p,
.signal-list span,
.footer-content p {
    color: var(--muted);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(5, 13, 23, 0.82);
    border-bottom: 1px solid rgba(153, 193, 255, 0.14);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1), background 0.28s ease, border-color 0.28s ease;
}

.navbar.is-hidden {
    transform: translateY(-110%);
}

.navbar.is-solid {
    background: rgba(5, 13, 23, 0.82);
    border-bottom-color: rgba(153, 193, 255, 0.14);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 5rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 2.4rem;
    width: auto;
    display: block;
    /* invert white background and match site palette */
    filter: brightness(0) invert(1);
    transition: opacity 0.2s ease;
}

.logo:hover .logo-img {
    opacity: 0.8;
}

.nav-panel {
    display: flex;
    gap: 1.4rem;
    align-items: center;
}

.nav-link {
    color: var(--muted);
    position: relative;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.4rem;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--text);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(153, 193, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.32rem;
}

.nav-toggle span {
    width: 1rem;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
    padding-top: 3rem;
    padding-bottom: 2rem;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.8rem, 5.5vw, 5.6rem);
    line-height: 1.08;
    max-width: 16ch;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-title-line {
    display: block;
}

.hero-title-accent {
    font-style: normal;
    background: linear-gradient(100deg, var(--accent) 10%, var(--accent-strong) 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title-sub {
    font-size: 0.52em;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.6em;
    font-family: "IBM Plex Mono", monospace;
}

.hero-description {
    max-width: 40rem;
    margin-top: 1.6rem;
    font-size: 1.08rem;
}

.hero-roles {
    margin-top: 2.2rem;
    display: grid;
    gap: 0.35rem;
    justify-items: start;
}

.role-cycler {
    display: block;
    min-height: 1.8rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
}

.hero-actions {
    margin-top: 2.4rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.45rem;
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #7cf0ff);
    color: #061018;
    font-weight: 700;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(153, 193, 255, 0.18);
    color: var(--text);
}

.btn:hover {
    transform: translateY(-2px);
}

.hero-metrics {
    margin-top: 2.8rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.metric-card,
.about-card,
.skill-panel,
.project-card,
.timeline-card,
.contact-card,
.terminal-card,
.signal-panel,
.about-strip {
    background: linear-gradient(180deg, rgba(12, 25, 44, 0.82), rgba(8, 18, 34, 0.88));
    border: 1px solid rgba(153, 193, 255, 0.12);
    box-shadow: var(--shadow);
}

.metric-card {
    padding: 1.2rem;
    border-radius: var(--radius-md);
}

.metric-value,
.metric-suffix {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--accent-strong);
}

.hero-visual {
    position: relative;
    display: grid;
    gap: 1rem;
    align-content: start;
}

.terminal-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 24rem;
}

.terminal-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(153, 193, 255, 0.08);
}

.terminal-card-controls {
    display: flex;
    gap: 0.5rem;
}

.terminal-card-controls span {
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 999px;
}

.terminal-card-controls span:nth-child(1) { background: #ff7b73; }
.terminal-card-controls span:nth-child(2) { background: #f8b84e; }
.terminal-card-controls span:nth-child(3) { background: #66e0c2; }

.terminal-card-header p,
.terminal-prefix,
.terminal-command,
.terminal-row,
.surface-label,
.signal-header span,
.signal-list strong,
.project-index,
.timeline-year,
.footer-content a {
    font-family: "IBM Plex Mono", monospace;
}

.terminal-card-header p {
    color: var(--muted);
    font-size: 0.82rem;
}

.terminal-card-body {
    display: grid;
    gap: 0.9rem;
    padding: 1.3rem;
}

.terminal-row {
    color: var(--text);
    word-break: break-word;
}

.terminal-row-command {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.terminal-prefix {
    color: var(--accent);
}

.terminal-command {
    color: var(--text);
}

.terminal-row-output {
    padding-left: 1.45rem;
    color: var(--muted);
}

.terminal-row-output.success {
    color: var(--accent);
}

.terminal-row-output.accent {
    color: var(--accent-strong);
}

.surface-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(153, 193, 255, 0.09);
}

.terminal-surface-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.surface-card {
    min-height: 8.6rem;
    padding: 1rem;
    border-radius: var(--radius-lg);
    display: grid;
    align-content: start;
    gap: 0.5rem;
}

.surface-label {
    color: var(--accent);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.surface-card strong {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text);
    text-transform: lowercase;
}

.surface-card p {
    color: var(--muted);
}

.signal-panel {
    display: grid;
    gap: 1rem;
    border-radius: var(--radius-lg);
    padding: 1.2rem;
    width: min(88%, 22rem);
    justify-self: end;
    margin-top: 0;
    background: linear-gradient(180deg, rgba(9, 20, 37, 0.94), rgba(8, 18, 34, 0.9));
}

.signal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.signal-header p {
    font-weight: 700;
}

.signal-header span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    color: var(--accent);
    font-size: 0.75rem;
    background: rgba(102, 224, 194, 0.08);
    border: 1px solid rgba(102, 224, 194, 0.18);
}

.signal-bars {
    display: flex;
    align-items: end;
    gap: 0.5rem;
    min-height: 6rem;
    padding: 0.9rem 0.8rem 0.5rem;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
    border: 1px solid rgba(153, 193, 255, 0.08);
}

.signal-bar {
    flex: 1;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(180deg, var(--accent), rgba(102, 224, 194, 0.08));
    min-height: 1.8rem;
    box-shadow: 0 0 18px rgba(102, 224, 194, 0.12);
}

.signal-bar:nth-child(1) { min-height: 2rem; }
.signal-bar:nth-child(2) { min-height: 3.4rem; }
.signal-bar:nth-child(3) { min-height: 4.8rem; }
.signal-bar:nth-child(4) { min-height: 5.6rem; }
.signal-bar:nth-child(5) { min-height: 4.2rem; }
.signal-bar:nth-child(6) { min-height: 3rem; }

.signal-list {
    list-style: none;
    display: grid;
    gap: 0.8rem;
}

.signal-list li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0.75rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(153, 193, 255, 0.08);
}

.signal-list li:first-child {
    padding-top: 0;
    border-top: 0;
}

.signal-list strong {
    color: var(--text);
}

.signal-list span {
    line-height: 1.5;
}

.about-layout {
    display: grid;
    gap: 1.5rem;
}

.about-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 1rem;
}

.about-card {
    border-radius: var(--radius-xl);
    padding: 1.6rem;
}

.about-card {
    display: grid;
    gap: 1rem;
}

.about-intro {
    min-height: 100%;
}

.about-intro p {
    font-size: 1.02rem;
}

.about-principles {
    align-content: start;
}

.about-principles-list {
    list-style: none;
    display: grid;
    gap: 1rem;
}

.about-principles-list li {
    display: grid;
    gap: 0.3rem;
    padding-top: 0.95rem;
    border-top: 1px solid rgba(153, 193, 255, 0.1);
}

.about-principles-list li:first-child {
    padding-top: 0;
    border-top: 0;
}

.about-principles-list strong {
    color: var(--text);
}

.about-principles-list span {
    color: var(--muted);
}

.skill-grid,
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.skill-panel,
.project-card {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
}

.skill-panel h3,
.project-card h3,
.timeline-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.skill-panel ul,
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
    list-style: none;
}

.skill-panel li,
.chip-row span {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid rgba(153, 193, 255, 0.1);
}

.project-index {
    color: var(--accent);
    font-size: 0.78rem;
}

.timeline {
    display: grid;
    gap: 1rem;
}

.timeline-card {
    border-radius: var(--radius-lg);
    padding: 1.4rem;
}

.timeline-year {
    color: var(--accent-strong);
    font-size: 0.78rem;
    margin-bottom: 0.55rem;
}

.timeline-org {
    color: var(--text);
    margin-bottom: 0.5rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 1.2rem;
    align-items: start;
}

.contact-card {
    border-radius: var(--radius-xl);
    padding: 1.6rem;
    display: grid;
    gap: 0.8rem;
}

.contact-card a {
    font-size: 1.1rem;
}

.contact-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.contact-socials a {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(153, 193, 255, 0.1);
}

.footer {
    padding: 1.8rem 0 2.4rem;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(153, 193, 255, 0.08);
    transform: translateY(0.5rem);
}

.footer-content p {
    max-width: 42rem;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.top-button {
    position: fixed;
    right: 1.4rem;
    bottom: 1.4rem;
    width: 3.35rem;
    height: 3.35rem;
    border: 1px solid rgba(153, 193, 255, 0.16);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(12, 25, 44, 0.96), rgba(8, 18, 34, 0.94));
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
    z-index: 25;
    cursor: pointer;
}

.top-button:hover {
    border-color: rgba(102, 224, 194, 0.45);
    color: var(--accent);
    box-shadow: 0 0 20px rgba(102, 224, 194, 0.12), 0 18px 40px rgba(0, 0, 0, 0.28);
}

.top-button:hover i {
    animation: topBtnArrow 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.top-button.is-visible {
    opacity: 1;
    pointer-events: auto;
    animation: topBtnIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both,
               topBtnFloat 3s ease-in-out 0.6s infinite;
}

@keyframes topBtnIn {
    from { transform: translateY(24px) scale(0.72); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes topBtnFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-6px) scale(1.03); }
}

@keyframes topBtnArrow {
    0%   { transform: translateY(0); }
    45%  { transform: translateY(-6px); }
    75%  { transform: translateY(-2px); }
    100% { transform: translateY(0); }
}

[data-reveal] {
    opacity: 1;
    transform: none;
}

@media (max-width: 1080px) {
    .hero-layout,
    .contact-layout,
    .about-showcase,
    .skill-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .terminal-surface-grid {
        grid-template-columns: 1fr;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .signal-panel {
        width: 100%;
        margin-top: 0;
        justify-self: stretch;
    }
}

@media (hover: hover) and (pointer: fine) {
    body.custom-cursor-active,
    body.custom-cursor-active a,
    body.custom-cursor-active button,
    body.custom-cursor-active .nav-toggle,
    body.custom-cursor-active .btn,
    body.custom-cursor-active .top-button,
    body.custom-cursor-active input,
    body.custom-cursor-active textarea,
    body.custom-cursor-active summary,
    body.custom-cursor-active [role="button"] {
        cursor: none;
    }
}

@media (hover: none), (pointer: coarse) {
    .cursor-circle {
        display: none;
    }
}

@media (max-width: 760px) {
    .section {
        padding: 4.5rem 0;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-panel {
        position: absolute;
        top: calc(100% + 0.75rem);
        right: 1rem;
        left: 1rem;
        display: grid;
        gap: 0.9rem;
        padding: 1rem;
        background: rgba(7, 16, 31, 0.96);
        border: 1px solid rgba(153, 193, 255, 0.14);
        border-radius: 1.4rem;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .nav-panel.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .hero-title {
        max-width: none;
        font-size: clamp(2.4rem, 7vw, 3.6rem);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .footer-content {
        padding-top: 1.25rem;
    }

    .top-button {
        right: 1rem;
        bottom: 1rem;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(var(--container), calc(100% - 1.2rem));
    }

    .network-link {
        opacity: 0.45;
    }

    .cloud-a,
    .cloud-b,
    .cloud-c {
        filter: blur(70px);
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .section-heading h2 {
        font-size: 2rem;
    }

    .metric-value,
    .metric-suffix {
        font-size: 1.7rem;
    }

    .terminal-card,
    .signal-panel {
        padding: 0;
    }
}

