:root {
    --bg: #080C10;
    --bg-raised: #0D1319;
    --surface: rgba(255, 255, 255, 0.035);
    --surface-solid: #121924;
    --border: rgba(255, 255, 255, 0.09);
    --border-soft: rgba(255, 255, 255, 0.055);
    --text: #EDEFF2;
    --text-muted: #93A0AF;
    --text-faint: #576371;
    --amber: #E8A33D;
    --amber-2: #F4C77A;
    --amber-soft: rgba(232, 163, 61, 0.14);
    --teal: #4FD1C5;
    --teal-soft: rgba(79, 209, 197, 0.14);
    --red-commit: #E4676B;

    --font-display: 'Space Grotesk', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    --font-body: 'Inter', sans-serif;

    --max-w: 1180px;
    --ease: cubic-bezier(.19, 1, .22, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

::selection {
    background: var(--amber);
    color: #080C10;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
    border-radius: 2px;
}

.wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 2;
}

section {
    position: relative;
    padding: 140px 0;
}

@media (max-width:720px) {
    section {
        padding: 88px 0;
    }
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.14;
}

.mono {
    font-family: var(--font-mono);
}

/* ============ ambient background system ============ */
.noise {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.04;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.grid-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: linear-gradient(var(--border-soft) 1px, transparent 1px), linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
    background-size: 50px 50px;
    -webkit-mask-image: radial-gradient(ellipse 85% 55% at 50% 0%, rgba(0, 0, 0, 1), transparent 100%);
    mask-image: radial-gradient(ellipse 85% 55% at 50% 0%, rgba(0, 0, 0, 1), transparent 100%);
    opacity: 1;
}

.blob-field {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
    will-change: transform;
}

.blob-a {
    width: 520px;
    height: 520px;
    top: -160px;
    left: -120px;
    background: radial-gradient(circle, var(--amber) 0%, transparent 70%);
    animation: driftA 22s ease-in-out infinite alternate;
}

.blob-b {
    width: 600px;
    height: 600px;
    top: 20%;
    right: -220px;
    background: radial-gradient(circle, var(--teal) 0%, transparent 70%);
    animation: driftB 26s ease-in-out infinite alternate;
}

.blob-c {
    width: 420px;
    height: 420px;
    bottom: -100px;
    left: 30%;
    background: radial-gradient(circle, var(--amber-2) 0%, transparent 70%);
    opacity: 0.22;
    animation: driftC 30s ease-in-out infinite alternate;
}

@keyframes driftA {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(80px, 60px) scale(1.15);
    }
}

@keyframes driftB {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-70px, 90px) scale(1.1);
    }
}

@keyframes driftC {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(60px, -50px) scale(1.2);
    }
}

@media (prefers-reduced-motion: reduce) {
    .blob {
        animation: none;
    }
}

/* ============ custom cursor ============ */
.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9998;
    pointer-events: none;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--amber);
}

.cursor-ring {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(232, 163, 61, 0.55);
    transition: width .25s var(--ease), height .25s var(--ease), border-color .25s ease, background .25s ease;
}

.cursor-ring.hovering {
    width: 56px;
    height: 56px;
    background: rgba(232, 163, 61, 0.08);
    border-color: var(--teal);
}

body.has-cursor,
body.has-cursor a,
body.has-cursor button,
body.has-cursor input,
body.has-cursor textarea {
    cursor: none;
}

/* ============ preloader ============ */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity .7s var(--ease), visibility .7s var(--ease);
}

.preloader.done {
    opacity: 0;
    visibility: hidden;
}

.preloader-term {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-muted);
    width: 280px;
}

.preloader-term .pl-line {
    margin-bottom: 8px;
    opacity: 0;
    animation: plIn .4s ease forwards;
}

.preloader-term .pl-line:nth-child(1) {
    animation-delay: .1s;
}

.preloader-term .pl-line:nth-child(2) {
    animation-delay: .55s;
}

.preloader-term .pl-line:nth-child(3) {
    animation-delay: 1.0s;
}

@keyframes plIn {
    to {
        opacity: 1;
    }
}

.pl-bar {
    height: 2px;
    background: var(--border);
    margin-top: 18px;
    border-radius: 2px;
    overflow: hidden;
}

.pl-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--amber), var(--teal));
    animation: plFill 1.5s var(--ease) forwards .2s;
}

@keyframes plFill {
    to {
        width: 100%;
    }
}

.pl-ok {
    color: var(--teal);
}

/* ============ scroll progress ============ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2.5px;
    width: 0%;
    z-index: 200;
    background: linear-gradient(90deg, var(--amber), var(--teal));
    transition: width .1s linear;
}

/* ============ nav ============ */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}

header.scrolled {
    background: rgba(8, 12, 16, 0.72);
    backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--border-soft);
}

nav {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.logo .blip {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 0 4px var(--amber-soft), 0 0 12px var(--amber);
    animation: pulseDot 2.4s ease-in-out infinite;
}

@keyframes pulseDot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .45;
    }
}

.nav-links {
    display: flex;
    gap: 34px;
    font-family: var(--font-mono);
    font-size: 13.5px;
    color: var(--text-muted);
}

.nav-links a {
    position: relative;
    padding: 4px 0;
    transition: color .25s ease;
}

.nav-links a::before {
    content: './ ';
    color: var(--text-faint);
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 1px;
    background: var(--amber);
    transition: width .3s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 7px 13px 7px 10px;
    border-radius: 20px;
    background: var(--surface);
    backdrop-filter: blur(8px);
}

.status-pill .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ADE80;
    box-shadow: 0 0 8px #4ADE80;
    animation: pulseDot 2.2s ease-in-out infinite;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    font-size: 16px;
}

@media (max-width:900px) {
    .nav-links {
        display: none;
    }

    .status-pill {
        display: none;
    }

    .nav-toggle {
        display: block;
    }
}

/* ============ magnetic buttons ============ */
.btn {
    font-family: var(--font-mono);
    font-size: 14px;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    transition: transform .25s var(--ease), box-shadow .3s ease, filter .25s ease, border-color .25s ease;
    will-change: transform;
}

.btn-primary {
    background: linear-gradient(135deg, var(--amber-2), var(--amber));
    color: #150E04;
    box-shadow: 0 8px 24px -8px rgba(232, 163, 61, 0.55);
}

.btn-primary:hover {
    box-shadow: 0 14px 32px -8px rgba(232, 163, 61, 0.7);
}

.btn-ghost {
    border-color: var(--border);
    color: var(--text);
    background: var(--surface);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    border-color: var(--teal);
    color: var(--teal);
}

/* ============ glass surfaces ============ */
.glass {
    background: var(--surface);
    backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid var(--border);
    border-radius: 14px;
    position: relative;
}

.glass::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(232, 163, 61, 0.35), rgba(79, 209, 197, 0) 45%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: .6;
}

/* ============ scroll reveal ============ */
.reveal {
    opacity: 0;
    transform: translateY(26px) scale(.985);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--d, 0s);
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ============ hero ============ */
.hero {
    padding-top: 190px;
    padding-bottom: 110px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .wrap {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 64px;
    align-items: center;
    width: 100%;
}

@media (max-width:920px) {
    .hero .wrap {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 150px;
    }
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--teal);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 20px;
}

.hero-eyebrow .cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--teal);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero h1 {
    font-size: clamp(38px, 5.4vw, 62px);
    max-width: 17ch;
    margin-bottom: 26px;
    background: linear-gradient(100deg, var(--text) 20%, var(--amber-2) 40%, var(--teal) 60%, var(--text) 80%);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: sheen 9s ease-in-out infinite;
}

@keyframes sheen {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero h1 {
        animation: none;
        background-position: 0% 50%;
    }
}

.hero p.lead {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 60ch;
    margin-bottom: 38px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 16px 40px;
}

@media (max-width:1080px) {
    .hero-stats {
        grid-template-columns: repeat(2, auto);
        gap: 28px 48px;
    }
}

@media (max-width:420px) {
    .hero-stats {
        grid-template-columns: repeat(2, auto);
        gap: 24px 28px;
    }
}

.stat .num {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.stat .num .suffix {
    color: var(--amber);
}

.stat .label {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-faint);
    margin-top: 5px;
    white-space: nowrap;
}

/* terminal window */
.terminal {
    overflow: hidden;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-soft);
}

.terminal-bar span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #3A4552;
}

.terminal-bar .fname {
    margin-left: auto;
    background: transparent;
    width: inherit;
    height: inherit;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-faint);
}

.terminal-body {
    padding: 24px 22px;
    font-family: var(--font-mono);
    font-size: 13.5px;
    line-height: 1.95;
    min-height: 230px;
}

.terminal-body .line {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.terminal-body .prompt {
    color: var(--teal);
}

.terminal-body .path {
    color: var(--text-faint);
}

.terminal-body .out {
    color: var(--text-muted);
    padding-left: 20px;
    display: block;
}

.terminal-body .role-line {
    color: var(--amber);
    font-weight: 500;
}

.terminal-body .cursor2 {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: var(--amber);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

/* ============ about ============ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

@media (max-width:860px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

.about-grid h2 {
    font-size: clamp(26px, 3.6vw, 34px);
    margin-bottom: 20px;
}

.about-grid p {
    color: var(--text-muted);
    font-size: 16.5px;
    margin-bottom: 18px;
    max-width: 56ch;
}

.file-lines {
    font-family: var(--font-mono);
    font-size: 13.5px;
}

.file-lines .fl {
    display: flex;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border-soft);
    transition: background .2s ease;
}

.file-lines .fl:hover {
    background: rgba(255, 255, 255, 0.025);
}

.file-lines .fl:last-child {
    border-bottom: none;
}

.file-lines .ln {
    color: var(--text-faint);
    width: 26px;
    flex-shrink: 0;
}

.file-lines .key {
    color: var(--teal);
    margin-right: 8px;
}

.file-lines .val {
    color: var(--text-muted);
}

/* ============ pipeline ============ */
.pipeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    position: relative;
}

@media (max-width:980px) {
    .pipeline {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.stage {
    position: relative;
    padding: 0 18px;
}

.stage:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 27px;
    right: -2px;
    width: calc(100% - 34px);
    height: 2px;
    background: linear-gradient(90deg, var(--amber) 0%, var(--border) 100%);
    background-size: 200% 100%;
    animation: flow 3.2s linear infinite;
}

@media (max-width:980px) {
    .stage:not(:last-child)::after {
        display: none;
    }
}

@keyframes flow {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: 0 0;
    }
}

.stage:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 23px;
    left: 52px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 10px var(--teal);
    z-index: 2;
    animation: travel 3.2s linear infinite;
}

@media (max-width:980px) {
    .stage:not(:last-child)::before {
        display: none;
    }
}

@keyframes travel {
    0% {
        left: 52px;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        left: calc(100% - 20px);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {

    .stage::after,
    .stage::before {
        animation: none;
    }
}

.stage-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--amber);
    margin-bottom: 20px;
    position: relative;
    z-index: 3;
    transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease;
}

.stage:hover .stage-icon {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 0 0 6px var(--amber-soft);
    border-color: var(--amber);
}

.stage-num {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-faint);
    margin-bottom: 6px;
}

.stage h3 {
    font-size: 17px;
    margin-bottom: 14px;
    font-weight: 600;
}

.stage ul {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.stage li {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.stage li::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--teal);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ============ section head ============ */
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 56px;
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: 24px;
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 38px);
}

.section-head .tag {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-faint);
    white-space: nowrap;
}

/* ============ projects ============ */
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
    perspective: 1200px;
}

@media (max-width:860px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    overflow: hidden;
    transition: border-color .3s ease, box-shadow .3s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.project-card:hover {
    border-color: rgba(232, 163, 61, 0.4);
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.55);
}

.project-card .terminal-bar .fname {
    color: var(--text-muted);
}

.project-body {
    padding: 24px 22px 26px;
    position: relative;
}

.glow-spot {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 163, 61, 0.15), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s ease;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
}

.project-card:hover .glow-spot {
    opacity: 1;
}

.tag-pill {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--teal);
    background: var(--teal-soft);
    padding: 3px 9px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.project-body h3 {
    font-size: 19px;
    margin-bottom: 10px;
}

.project-body p {
    color: var(--text-muted);
    font-size: 14.5px;
    margin-bottom: 18px;
}

.stack-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.stack-row span {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-faint);
    border: 1px solid var(--border);
    padding: 4px 9px;
    border-radius: 4px;
}

.project-links {
    display: flex;
    gap: 18px;
}

.project-links a {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 7px;
    transition: color .2s ease, gap .2s ease;
}

.project-links a:hover {
    color: var(--amber);
    gap: 10px;
}

/* ============ experience / git log ============ */
.gitlog {
    position: relative;
    padding-left: 28px;
}

.gitlog::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(var(--border), transparent);
}

.commit {
    position: relative;
    padding-bottom: 46px;
}

.commit:last-child {
    padding-bottom: 0;
}

.commit::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--amber);
    transition: box-shadow .3s ease;
}

.commit:hover::before {
    box-shadow: 0 0 0 6px var(--amber-soft);
}

.commit-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.commit-hash {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--red-commit);
    background: rgba(228, 103, 107, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.commit-branch {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--teal);
}

.commit-date {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-faint);
    margin-left: auto;
}

.commit h3 {
    font-size: 19px;
    margin-bottom: 6px;
}

.commit .role {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--amber);
    margin-bottom: 10px;
}

.commit p {
    color: var(--text-muted);
    font-size: 14.5px;
    max-width: 62ch;
}

/* ============ CTA band ============ */
.cta-band {
    padding: 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-band h2 {
    font-size: clamp(28px, 4.4vw, 44px);
    max-width: 16ch;
    margin: 0 auto 18px;
}

.cta-band p {
    color: var(--text-muted);
    max-width: 48ch;
    margin: 0 auto 34px;
    font-size: 16.5px;
}

@media (max-width:720px) {
    .cta-band {
        padding: 44px 24px;
    }
}

/* ============ contact ============ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

@media (max-width:860px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-left {
    padding: 48px;
    border-right: 1px solid var(--border-soft);
}

@media (max-width:860px) {
    .contact-left {
        border-right: none;
        border-bottom: 1px solid var(--border-soft);
    }
}

.contact-left h2 {
    font-size: clamp(24px, 3.2vw, 30px);
    margin-bottom: 16px;
}

.contact-left p {
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 44ch;
}

.contact-channel {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--border-soft);
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-muted);
    transition: color .2s ease, padding-left .2s ease;
}

.contact-channel:hover {
    color: var(--amber);
    padding-left: 6px;
}

.contact-channel i {
    width: 20px;
    color: var(--amber);
}

.contact-right {
    padding: 48px;
}

.field {
    margin-bottom: 22px;
}

.field label {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-faint);
    margin-bottom: 8px;
}

.field label::before {
    content: '$ ';
    color: var(--teal);
}

.field input,
.field textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14.5px;
    resize: vertical;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--amber);
    outline: none;
    box-shadow: 0 0 0 3px var(--amber-soft);
}

.submit-btn {
    width: 100%;
    justify-content: center;
    border: none;
    cursor: pointer;
}

/* ============ back to top ============ */
.back-to-top {
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 150;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 15px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(.92);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s,
        border-color .25s ease, color .25s ease, box-shadow .25s ease;
    will-change: transform;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    color: var(--amber);
    border-color: rgba(232, 163, 61, 0.5);
    box-shadow: 0 10px 26px -10px rgba(232, 163, 61, 0.5);
}

.back-to-top i {
    transition: transform .25s var(--ease);
}

.back-to-top:hover i {
    transform: translateY(-2px);
}

@media (max-width:720px) {
    .back-to-top {
        right: 18px;
        bottom: 18px;
        width: 44px;
        height: 44px;
    }
}

/* ============ footer ============ */
footer {
    border-top: 1px solid var(--border-soft);
    padding: 32px 0;
}

footer .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

footer p {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-faint);
}

.footer-socials {
    display: flex;
    gap: 18px;
}

.footer-socials a {
    color: var(--text-faint);
    font-size: 16px;
    transition: color .25s ease, transform .25s ease;
    display: inline-block;
}

.footer-socials a:hover {
    color: var(--amber);
    transform: translateY(-3px);
}