:root {
    --bg: #06070a;
    --bg-soft: #0a0c10;
    --bg-2: #0d1016;
    --panel: #10141b;
    --panel-2: #151b24;
    --panel-3: #0c1016;
    --panel-glass: rgba(13, 16, 22, 0.78);
    --text: #eef2f6;
    --text-strong: #ffffff;
    --muted: #9aa3b0;
    --muted-2: #747d89;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --accent: #d7dbe1;
    --accent-strong: #ffffff;
    --accent-soft: rgba(255, 255, 255, 0.08);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    --radius-xl: 34px;
    --radius-lg: 26px;
    --radius-md: 20px;
    --content-width: 1240px;
    --glow-x: 50vw;
    --glow-y: 18vh;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 120px;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Commissioner", sans-serif;
    background:
        radial-gradient(circle at 12% 14%, rgba(255, 255, 255, 0.08), transparent 18%),
        radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.06), transparent 20%),
        radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.05), transparent 24%),
        linear-gradient(180deg, #050608 0%, #080a0e 44%, #050608 100%);
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    content: "";
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.35) 72%, transparent);
    pointer-events: none;
}

body::after {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 24%, transparent 76%, rgba(255, 255, 255, 0.02)),
        radial-gradient(circle at center, transparent 48%, rgba(0, 0, 0, 0.58) 100%);
    pointer-events: none;
}

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

img {
    display: block;
    max-width: 100%;
}

button {
    font: inherit;
}

.site-shell {
    position: relative;
    z-index: 1;
    width: min(100%, var(--content-width));
    margin: 0 auto;
    padding: 18px 22px 48px;
}

.scroll-progress {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 80;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.scroll-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.12));
    box-shadow: 0 0 22px rgba(255, 255, 255, 0.3);
    transition: width 120ms linear;
}

.ambient-glow {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(360px circle at var(--glow-x) var(--glow-y), rgba(255, 255, 255, 0.08), transparent 58%),
        radial-gradient(220px circle at calc(var(--glow-x) + 12%) calc(var(--glow-y) + 4%), rgba(255, 255, 255, 0.03), transparent 62%);
    transition: opacity 220ms ease;
}

.topbar {
    position: sticky;
    top: 18px;
    z-index: 40;
    padding-bottom: 18px;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(18, 22, 30, 0.9), rgba(10, 12, 16, 0.84));
    backdrop-filter: blur(20px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    transition: transform 180ms ease;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.14), transparent 34%),
        linear-gradient(160deg, #1b2028, #0d1016);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.brand-mark img {
    width: 70%;
    height: auto;
    image-rendering: pixelated;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-copy strong {
    color: var(--text-strong);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-copy small {
    color: var(--muted);
    font-size: 0.82rem;
}

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

.nav a {
    position: relative;
    transition: color 180ms ease;
}

.nav a::after {
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
    color: var(--text);
}

.nav a:hover::after,
.nav a:focus-visible::after {
    transform: scaleX(1);
}

.button,
.project-link,
.copy-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0.95rem 1.25rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition:
        transform 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease,
        box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible,
.project-link:hover,
.project-link:focus-visible,
.copy-action:hover,
.copy-action:focus-visible {
    transform: translateY(-1px);
}

.brand:hover,
.brand:focus-visible {
    transform: translateY(-1px);
}

.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 28px rgba(255, 255, 255, 0.06);
    transform: rotate(-4deg) scale(1.04);
}

.button--primary {
    background: linear-gradient(180deg, #f7f9fb, #d8dde4);
    color: #06070a;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 28px rgba(255, 255, 255, 0.12);
}

.button--secondary,
.project-link,
.copy-action {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border-color: var(--line-strong);
}

.button--ghost {
    background: transparent;
    color: var(--muted);
    border-color: var(--line);
}

.button--ghost:hover,
.button--ghost:focus-visible {
    color: var(--text);
    border-color: var(--line-strong);
}

.button--compact,
.copy-action--inline {
    padding: 0.7rem 1rem;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
    gap: 26px;
    align-items: stretch;
    padding: 26px 0 36px;
}

.hero-copy,
.profile-card,
.focus-card,
.feature-card,
.stack-board,
.project-card,
.contact-section {
    position: relative;
    --pointer-x: 50%;
    --pointer-y: 50%;
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --lift: 0px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    overflow: hidden;
    transform: perspective(1200px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--lift));
    transform-style: preserve-3d;
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.hero-copy,
.profile-card,
.feature-card,
.stack-board,
.project-card,
.contact-section,
.contact-card {
    background:
        linear-gradient(180deg, rgba(18, 22, 30, 0.94), rgba(11, 14, 19, 0.96));
}

.hero-copy::before,
.profile-card::before,
.feature-card::before,
.stack-board::before,
.project-card::before,
.contact-section::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.12), transparent 28%),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 24%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent 45%);
    pointer-events: none;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 36px;
    border-radius: var(--radius-xl);
}

.hero-copy::after {
    position: absolute;
    right: -38px;
    bottom: -46px;
    width: 280px;
    height: 280px;
    content: "";
    background: url("assets/brand/zjuqni-logo.png") center/contain no-repeat;
    opacity: 0.08;
    image-rendering: pixelated;
    filter: grayscale(1) contrast(1.1);
    pointer-events: none;
}

.hero-topline {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.58rem 0.85rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-badge::before {
    width: 8px;
    height: 8px;
    content: "";
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff, #b8c0cb);
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.34);
}

.eyebrow {
    position: relative;
    z-index: 1;
    margin: 0 0 18px;
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.contact-copy h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--text-strong);
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(3.4rem, 8vw, 6.2rem);
    line-height: 0.92;
    text-transform: uppercase;
    letter-spacing: -0.04em;
}

.hero h1 {
    max-width: 11ch;
    text-wrap: balance;
}

.hero-lede {
    position: relative;
    z-index: 1;
    max-width: 62ch;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 1.06rem;
    line-height: 1.8;
}

.hero strong,
.contact-copy strong,
.project-body strong {
    color: var(--text);
}

.hero-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-strip {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 34px;
}

.strip-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.strip-value {
    color: var(--text-strong);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 2.25rem;
    line-height: 1;
}

.strip-label {
    color: var(--muted);
    font-size: 0.92rem;
}

.hero-panel {
    display: grid;
    gap: 18px;
}

.profile-card,
.focus-card,
.stack-board,
.feature-card,
.contact-section {
    border-radius: var(--radius-xl);
}

.profile-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 22px;
}

.profile-frame {
    display: grid;
    place-items: center;
    width: 190px;
    height: 190px;
    align-self: start;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.12), transparent 28%),
        linear-gradient(180deg, #141922, #0c1016);
}

.profile-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    image-rendering: pixelated;
}

.profile-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-copy h2 {
    margin: 0 0 8px;
    color: var(--text-strong);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 3rem;
    line-height: 0.95;
    text-transform: uppercase;
}

.profile-copy p:last-child,
.focus-note,
.block-head p,
.section-heading p:last-child,
.contact-copy p:last-child {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.focus-card {
    padding: 24px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 24%),
        linear-gradient(160deg, rgba(17, 20, 26, 0.98), rgba(10, 12, 16, 0.98));
    color: var(--text);
}

.focus-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.focus-card .eyebrow,
.focus-note {
    color: var(--muted);
}

.focus-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.focus-list li {
    position: relative;
    padding: 14px 16px 14px 46px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.focus-list li::before {
    position: absolute;
    left: 16px;
    top: 13px;
    width: 18px;
    height: 18px;
    content: "";
    border-radius: 5px;
    background: linear-gradient(180deg, #ffffff, #a6adb8);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.18);
}

.expertise,
.projects-section {
    padding: 38px 0 12px;
}

.section-heading {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
}

.section-heading h2,
.contact-copy h2 {
    font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-card {
    padding: 26px;
}

.feature-index {
    position: relative;
    z-index: 1;
    margin: 0 0 18px;
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
}

.feature-card h3,
.stack-copy h3,
.block-head h3,
.project-body h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    color: var(--text-strong);
    font-family: "Barlow Condensed", sans-serif;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.feature-card h3,
.stack-copy h3 {
    font-size: 2rem;
    line-height: 0.98;
}

.feature-card p:last-child {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.stack-board {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin-top: 18px;
    padding: 24px 28px;
}

.stack-copy {
    position: relative;
    z-index: 1;
}

.chip-cloud {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.chip-cloud span {
    padding: 0.88rem 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-weight: 600;
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.project-block + .project-block {
    margin-top: 30px;
}

.block-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.block-head h3 {
    font-size: 2.2rem;
    line-height: 0.95;
}

.projects-grid {
    display: grid;
    gap: 18px;
}

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

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

.project-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(17, 21, 28, 0.98), rgba(12, 15, 20, 0.98));
}

.project-card--spotlight,
.project-card--feature {
    display: grid;
    grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.08fr);
}

.project-card::after {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 12px;
    height: 12px;
    content: "";
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff, #a5adba);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.04);
}

.project-card--spotlight {
    grid-column: 1 / -1;
}

.project-card--wide,
.project-card--feature {
    grid-column: span 2;
}

.project-media {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    min-height: 260px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 28%),
        linear-gradient(135deg, #151b24, #0c1016);
}

.project-card--spotlight .project-media,
.project-card--feature .project-media {
    min-height: 100%;
    border-right: 1px solid var(--line);
    border-bottom: 0;
}

.project-media img {
    display: block;
    transition: transform 320ms ease, filter 320ms ease;
}

.project-media--icon img {
    width: clamp(120px, 60%, 280px);
    height: auto;
    max-height: 72%;
    object-fit: contain;
}

.project-media--pixel img {
    image-rendering: pixelated;
}

.project-media--logo img {
    width: clamp(180px, 78%, 620px);
    height: auto;
    max-height: 72%;
    object-fit: contain;
}

.project-media--scene img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card--spotlight .project-media--icon {
    aspect-ratio: auto;
    min-height: 300px;
}

.project-card--spotlight .project-media--icon img {
    width: clamp(150px, 36%, 240px);
    max-height: 64%;
}

.project-card--feature .project-media {
    aspect-ratio: auto;
}

.project-card--feature .project-media--logo img {
    width: clamp(160px, 28%, 260px);
}

.project-card--spotlight .project-body,
.project-card--feature .project-body {
    justify-content: center;
}

.project-card--spotlight .project-body h3,
.project-card--feature .project-body h3 {
    font-size: clamp(2.3rem, 3vw, 3.2rem);
}

.project-media--soft {
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 28%),
        linear-gradient(135deg, #1b2118, #121712);
}

.project-media--generated {
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 24px;
    color: #fff;
}

.project-media--generated::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0.92;
}

.project-media--generated > * {
    position: relative;
    z-index: 1;
}

.pattern-inspector {
    background: linear-gradient(140deg, #12161d, #0d1118);
}

.pattern-inspector::before {
    background:
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.12), transparent 18%),
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: auto, 28px 28px, 28px 28px;
}

.pattern-lupa {
    background: linear-gradient(135deg, #0d1118, #151a21);
}

.pattern-lupa::before {
    background:
        radial-gradient(circle at 26% 32%, rgba(255, 255, 255, 0.24), transparent 12%),
        radial-gradient(circle at 26% 32%, transparent 10%, rgba(255, 255, 255, 0.18) 11%, transparent 15%),
        linear-gradient(135deg, transparent 49%, rgba(255, 255, 255, 0.12) 50%, transparent 51%);
}

.pattern-rps {
    background: linear-gradient(135deg, #171c24, #0f141b);
    color: var(--text-strong);
}

.pattern-rps::before {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 28%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: auto, 36px 36px, 36px 36px;
}

.cover-title {
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 0.9;
    text-transform: uppercase;
}

.project-media--generated p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.project-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.project-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.status,
.project-stack,
.metric {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.77rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.status {
    padding: 0.5rem 0.72rem;
    border-radius: 999px;
    border: 1px solid transparent;
}

.status--public,
.status--private,
.status--contact {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--line-strong);
    color: var(--text);
}

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

.project-body h3 {
    font-size: 2.2rem;
    line-height: 0.94;
}

.project-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.78;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.tag-list li {
    padding: 0.55rem 0.72rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 600;
}

.project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding-top: 20px;
}

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

.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 22px;
    margin-top: 42px;
    padding: 30px;
}

.contact-copy {
    position: relative;
    z-index: 1;
}

.contact-copy p:last-child {
    max-width: 58ch;
}

.contact-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 16px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.03);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.contact-label {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

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

.contact-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.copy-action {
    width: fit-content;
}

.copy-action.is-copied {
    background: linear-gradient(180deg, #f7f9fb, #d8dde4);
    color: #06070a;
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-copy:hover,
.profile-card:hover,
.focus-card:hover,
.feature-card:hover,
.stack-board:hover,
.project-card:hover,
.contact-section:hover,
.contact-card:hover,
.strip-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
    --lift: -4px;
}

.chip-cloud span:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
}

.project-card:hover .project-media--scene img {
    transform: scale(1.04);
}

.project-card:hover .project-media--logo img,
.project-card:hover .project-media--icon img {
    transform: scale(1.04);
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
}

.footer {
    padding: 28px 0 10px;
    color: var(--muted-2);
    text-align: center;
}

.toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 50;
    min-width: 220px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(13, 16, 22, 0.96);
    color: var(--text);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cursor {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 70;
    pointer-events: none;
    opacity: 0;
}

.cursor--core {
    width: 8px;
    height: 8px;
    margin-left: -4px;
    margin-top: -4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff, #c9d0d8);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.55);
}

.cursor--ring {
    width: 34px;
    height: 34px;
    margin-left: -17px;
    margin-top: -17px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
    box-shadow: 0 0 36px rgba(255, 255, 255, 0.08);
    transition:
        width 180ms ease,
        height 180ms ease,
        margin 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease,
        opacity 180ms ease;
}

body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor .project-card,
body.has-custom-cursor .feature-card,
body.has-custom-cursor .contact-card,
body.has-custom-cursor .strip-card,
body.has-custom-cursor .chip-cloud span {
    cursor: none;
}

body.has-custom-cursor .cursor {
    display: block;
}

body.cursor-active .cursor {
    opacity: 1;
}

body.cursor-hover .cursor--ring {
    width: 64px;
    height: 64px;
    margin-left: -32px;
    margin-top: -32px;
    border-color: rgba(255, 255, 255, 0.72);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 72%);
}

body.cursor-pressed .cursor--ring {
    width: 26px;
    height: 26px;
    margin-left: -13px;
    margin-top: -13px;
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1120px) {
    .hero,
    .contact-section,
    .stack-board {
        grid-template-columns: 1fr;
    }

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

    .profile-card {
        grid-template-columns: 160px minmax(0, 1fr);
    }

    .profile-frame {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 900px) {
    .topbar-inner,
    .block-head,
    .focus-head,
    .hero-topline {
        flex-direction: column;
        align-items: stretch;
    }

    .nav {
        justify-content: space-between;
    }

    .expertise-grid,
    .projects-grid--public,
    .projects-grid--private,
    .hero-strip {
        grid-template-columns: 1fr;
    }

    .project-card--spotlight,
    .project-card--feature,
    .project-card--wide {
        display: flex;
        grid-column: auto;
    }

    .project-card--spotlight .project-media,
    .project-card--feature .project-media {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .button--ghost {
        display: none;
    }
}

@media (max-width: 640px) {
    .site-shell {
        padding-inline: 14px;
    }

    .topbar {
        top: 12px;
    }

    .topbar-inner,
    .hero-copy,
    .profile-card,
    .focus-card,
    .feature-card,
    .stack-board,
    .project-body,
    .contact-section,
    .contact-card {
        padding: 18px;
    }

    .brand-copy small,
    .nav {
        font-size: 0.82rem;
    }

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

    .profile-frame {
        width: 180px;
        height: 180px;
        max-width: 100%;
    }

    .hero h1,
    .section-heading h2,
    .contact-copy h2 {
        font-size: clamp(2.3rem, 15vw, 4rem);
    }

    .project-body h3,
    .block-head h3,
    .feature-card h3,
    .stack-copy h3 {
        font-size: 1.7rem;
    }

    .project-topline,
    .project-footer,
    .contact-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .toast {
        left: 14px;
        right: 14px;
        min-width: 0;
    }
}

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .ambient-glow,
    .cursor {
        display: none !important;
    }
}
