@font-face {
    font-family: 'Dirtyline 36daysoftype 2022';
    src: url("assets/Dirtyline36Daysoftype2022/woff/Dirtyline%2036daysoftype%202022.woff2") format("woff2"),
        url("assets/Dirtyline36Daysoftype2022/woff/Dirtyline%2036daysoftype%202022.woff") format("woff"),
        url("assets/Dirtyline36Daysoftype2022/Dirtyline%2036daysoftype%202022.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #0a0a0a;
    --text: #f4f0e8;
    --muted: #b1aaa1;
    --border: rgba(244, 240, 232, 0.12);
    --accent: #ff5f4a;
    --surface: rgba(255, 255, 255, 0.05);
    --ink: rgba(255, 255, 255, 0.1);
    --wash-1: rgba(255, 95, 74, 0.22);
    --wash-2: rgba(255, 255, 255, 0.08);
    --wash-3: rgba(127, 167, 255, 0.14);
    --ui-track: 0.18em;
    --font-display: 'Dirtyline 36daysoftype 2022', 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Geist', 'Plus Jakarta Sans', sans-serif;
    --font-ui: 'Fira Code', monospace;
    --card-w: 250px;
    --card-h: 250px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='3' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.1'/%3E%3C/svg%3E");
    opacity: 1;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    cursor: none !important;
    transition: background 0.4s, color 0.4s;
}

body.is-loading #cursor-wrap {
    opacity: 0;
}

/* ─── LOADER ─── */
#page-loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    z-index: 10000;
    opacity: 1;
    pointer-events: all;
    transition: opacity 0.6s ease;
    --loader-progress: 0%;
}

body.is-loaded #page-loader {
    opacity: 0;
    pointer-events: none;
}

.loader-text {
    position: relative;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    letter-spacing: 0.04em;
    color: rgba(244, 240, 232, 0.22);
    text-transform: lowercase;
}

.loader-text-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: var(--loader-progress);
    color: var(--accent);
    overflow: hidden;
    white-space: nowrap;
    transition: width 0.25s ease;
}

#hero,
#scene,
#human-stage,
#scroll-hint,
#show-grid-btn,
nav {
    transition: opacity 0.9s ease, transform 0.9s ease;
}

body.is-loading #hero,
body.is-loading #scene,
body.is-loading #human-stage,
body.is-loading #scroll-hint,
body.is-loading #show-grid-btn,
body.is-loading nav {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(6px);
}

#human-stage {
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

#human-stage canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* ─── NAV ─── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem 3rem;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.5s ease;
}

nav.hidden {
    opacity: 0;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text);
    text-decoration: none;
    pointer-events: all;
    cursor: none;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    pointer-events: all;
}

.audio-toggle {
    position: relative;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    background: none;
    border: 0;
    border-radius: 999px;
    cursor: none;
    pointer-events: all;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.audio-toggle:hover,
.audio-toggle.is-enabled {
    color: var(--accent);
}

.audio-toggle:hover {
    transform: translateY(-1px);
}

.audio-icon {
    position: absolute;
    width: 17px;
    height: 17px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.audio-icon-on {
    opacity: 0;
    transform: scale(0.8);
}

.audio-icon-off {
    opacity: 1;
    transform: scale(1);
}

.audio-toggle.is-enabled .audio-icon-on {
    opacity: 1;
    transform: scale(1);
}

.audio-toggle.is-enabled .audio-icon-off {
    opacity: 0;
    transform: scale(0.8);
}

.nav-audio-item {
    display: none;
}

.nav-back-item {
    display: none;
}

.nav-back-button {
    border: 0;
    background: none;
    color: var(--muted);
    font-family: var(--font-ui);
    font-size: 0.75rem;
    letter-spacing: var(--ui-track);
    text-transform: lowercase;
    cursor: none;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    pointer-events: all;
    align-items: center;
}

.nav-links a {
    font-size: 0.75rem;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: var(--ui-track);
    text-transform: lowercase;
    transition: color 0.25s ease, text-shadow 0.25s ease;
    cursor: none;
    background: none;
    border: none;
    font-family: var(--font-ui);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(255, 95, 74, 0.35);
}

.nav-logo.active {
    color: var(--accent);
    text-shadow: 0 0 12px rgba(255, 95, 74, 0.35);
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-direction: column;
    width: 42px;
    height: 42px;
    border: 0;
    background: none;
    border-radius: 999px;
    pointer-events: all;
    cursor: none;
}

.nav-toggle-line {
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-logo,
.hero-quote,
.proj-title-line,
h1,
h2,
h3,
#commit-title,
.massive-name,
.proj-lead,
.about-block {
    font-family: var(--font-display);
    font-style: normal;
}

.nav-links a,
.grid-title,
.blog-date,
.local-time,
.meta-item label,
.blog-btn,
.close-grid-btn,
#show-grid-btn,
.proj-highlights span {
    font-family: var(--font-ui);
    letter-spacing: var(--ui-track);
}

.nav-links li {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.4s ease;
}

.nav-links li:last-child {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

nav.scrolled .nav-links li {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

/* ─── HERO SECTION ─── */
#hero {
    position: fixed;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    padding: 0 6vw;
    z-index: 50;
    will-change: opacity, filter;
    justify-content: center !important;
}

#hero::before,
#projects-grid::before,
#all-blogs-page::before,
#blog-read-page::before {
    content: '';
    position: absolute;
    inset: -20% -10% 0 -10%;
    background:
        radial-gradient(900px 600px at 10% -10%, var(--wash-1), transparent 65%),
        radial-gradient(800px 500px at 90% 0%, var(--wash-3), transparent 60%),
        radial-gradient(700px 500px at 50% 20%, var(--wash-2), transparent 70%);
    opacity: 0.65;
    pointer-events: none;
    z-index: 0;
}

#hero::after,
#projects-grid::after,
#all-blogs-page::after,
#blog-read-page::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.25'/></svg>");
    opacity: 0.08;
    mix-blend-mode: soft-light;
    pointer-events: none;
    z-index: 1;
}

#hero>*,
#projects-grid>*,
#all-blogs-page>*,
#blog-read-page>* {
    position: relative;
    z-index: 2;
}

.hero-left {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center !important;
    text-align: center !important;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto !important;
    margin-top: 15vh !important;
    justify-content: center;
    align-self: center;
    will-change: transform;
}

.hero-quote {
    font-family: 'Dirtyline 36daysoftype 2022', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(3rem, 6.5vw, 7rem);
    line-height: 0.9;
    letter-spacing: 0.02em;
    width: 100%;
    max-width: 1450px;
    text-transform: none;
    color: var(--text);
    position: relative;

}

.hero-quote em {
    font-style: italic;
    color: var(--accent);
    /* text-transform: uppercase; */
}

.hero-quote u {
    text-decoration-color: var(--accent);
    text-underline-offset: 6px;
    /* text-transform: uppercase; */
}

.hero-cite {
    display: block;
    text-align: center !important;
    margin-top: 1.1rem;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: var(--muted);
    text-transform: none;
}

/* Right Panel */
.right-panel {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding-right: 2rem;
    will-change: transform;
    z-index: 10;
}

.hero-model-slot {
    width: 100%;
    height: 70vh;
    pointer-events: none;
}

/* Follower Images */
.follower-img {
    position: fixed;
    width: auto;
    height: auto;
    max-width: 350px;
    max-height: 350px;
    object-fit: cover;
    border-radius: 4px;
    pointer-events: none;
    z-index: 150;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    filter: grayscale(20%);
}

.hover-trigger {
    position: relative;
    z-index: 2;
}

.follower-img.visible {
    opacity: 1;
    transform: scale(1);
}

/* ─── SCENE & CARDS ─── */
#scene {
    position: fixed;
    inset: 0;
    perspective: 2200px;
    perspective-origin: 50% -20%;
    z-index: 60;
    pointer-events: none;
    transition: perspective-origin 1.4s, opacity 0.5s;
}

#scene.cards-active {
    pointer-events: all;
}

#scene.focused {
    perspective-origin: 50% 50%;
}

#carousel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-style: preserve-3d;
}

#projects-title-container {
    position: absolute;
    top: 5rem;
    left: 3rem;
    pointer-events: none;
    z-index: 65;
}

.proj-title-line {
    font-family: 'Dirtyline 36daysoftype 2022', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--text);
    font-style: italic;
    opacity: 0;
    transform: translateY(20px);
    will-change: transform, opacity;
    line-height: 1.1;
}

#proj-title-2 {
    margin-left: 2rem;
    color: var(--accent);
}

[data-theme="dark"] #proj-title-2 {
    color: var(--muted);
}

/* ─── COMMIT PANEL ─── */
#commit-panel {
    position: absolute;
    right: 5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 65;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#commit-panel.visible {
    opacity: 1;
    transform: translateY(-50%) translateX(-10px);
}

#commit-title {
    font-family: 'Dirtyline 36daysoftype 2022', 'Plus Jakarta Sans', sans-serif;
    font-size: 3.5rem;
    font-style: italic;
    color: var(--text);
    margin-bottom: 1.25rem;
    line-height: 1;
    text-align: right;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#commit-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.85rem;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.7rem;
}

#commit-count {
    color: rgba(255, 255, 255, 0.75);
}

#commit-note {
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.8rem;
    text-align: right;
    max-width: 240px;
}

#commit-grid {
    display: grid;
    grid-template-rows: repeat(7, 1fr);
    grid-auto-flow: column;
    gap: 4px;
}

.commit-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: var(--border);
    transition: background 0.3s ease;
    will-change: background;
}

.commit-dot.active {
    background: #39d353;
    box-shadow: 0 0 8px rgba(57, 211, 83, 0.2);
}

#commit-panel.is-private .commit-dot.active {
    background: var(--border);
    box-shadow: none;
}

#commit-panel.is-private #commit-grid {
    opacity: 0.5;
}

@media (max-width: 1024px) {
    #commit-panel {
        display: none;
    }
}

/* ─── CARD ─── */
.card {
    position: absolute;
    width: var(--card-w);
    height: var(--card-h);
    top: calc(var(--card-h) / -2);
    left: calc(var(--card-w) / -2);
    cursor: none;
    transform-style: preserve-3d;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-size: cover;
    background-position: center;
    will-change: transform, opacity;
    transition: border-color 0.4s ease;
    opacity: 0.75;
    -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 45%, rgba(0, 0, 0, 0.15) 100%);
    mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 45%, rgba(0, 0, 0, 0.15) 100%);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 100%;
    width: 35px;
    height: 100%;
    transform-origin: left center;
    transform: rotateY(90deg);
    background: rgba(240, 240, 240, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: none;
    transition: background 0.4s, border-color 0.4s;
}

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0) 70%);
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.7);
}

.card.is-active {
    -webkit-mask-image: none !important;
    mask-image: none !important;
    z-index: 100;
    border-color: transparent;
    opacity: 1 !important;
}

.card.is-active::after {
    display: none;
}

.card.is-active .card-info {
    display: none;
}

.card.is-active::before {
    opacity: 0;
}

.card-overlay {
    position: fixed;
    transform: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    opacity: 0;
    pointer-events: none;
    z-index: 120;
}

.card-overlay::before {
    display: none;
}

.card-overlay::after {
    display: none;
}

.card-overlay .card-info {
    display: none;
}

[data-theme="dark"] .card {
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .card:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .card::before {
    background: rgba(30, 30, 30, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 1.4rem;
}

.card-info h2 {
    font-family: 'Dirtyline 36daysoftype 2022', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: #fff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
    transform: translateZ(10px);
    line-height: 1.1;
}

.card-info span {
    display: block;
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: none;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 6px;
    transform: translateZ(10px);
    font-family: var(--font-ui);
}

/* ─── GRID TOGGLE BUTTON ─── */
#show-grid-btn {
    position: fixed;
    bottom: 2.5rem;
    right: 3rem;
    z-index: 65;
    font-size: 0.65rem;
    font-family: monospace;
    letter-spacing: 0.1em;
    text-transform: none;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--ink);
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    cursor: none;
    transition: color 0.3s, opacity 0.4s;
    opacity: 0;
    pointer-events: none;
}

#show-grid-btn:hover {
    color: var(--accent);
}

#scene.cards-active~#show-grid-btn {
    opacity: 1;
    pointer-events: all;
}

body.grid-open #scene,
body.grid-open #projects-title-container,
body.grid-open #commit-panel,
body.grid-open #show-grid-btn,
body.grid-open #scroll-hint,
body.grid-open #normal-content,
body.grid-open #hero,
body.grid-open .vignette,
body.grid-open nav {
    opacity: 0;
    pointer-events: none;
}

/* ─── ALL PROJECTS GRID ─── */
#projects-grid {
    position: fixed;
    inset: 0;
    z-index: 140;
    background: rgba(10, 10, 10, 0.45);
    backdrop-filter: blur(18px) saturate(120%);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    pointer-events: none;
    padding: 8rem 5rem;
    transform: translateY(18px);
    transition: background 0.4s, opacity 0.6s ease, transform 0.6s ease;
    scrollbar-width: none;
}

#projects-grid::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.grid-header h2 {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.close-grid-btn {
    background: none;
    border: 1px solid var(--ink);
    font-size: 0.7rem;
    font-family: monospace;
    text-transform: none;
    letter-spacing: 0.1em;
    color: var(--muted);
    cursor: none;
    transition: color 0.3s;
    background: var(--surface);
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
}

.close-grid-btn:hover {
    color: var(--accent);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3.5rem 3.5rem;
}

@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.grid-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    cursor: none;
}

.grid-img-wrap {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.02);
}

.grid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.grid-item:hover .grid-img {
    transform: scale(1.05);
}

.grid-meta {
    display: grid;
    gap: 0.35rem;
    width: 100%;
}

.grid-index {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    color: var(--muted);
}

.grid-title {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}

.grid-subtitle {
    font-family: var(--font-ui);
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(244, 240, 232, 0.55);
}

/* ─── NORMAL DOCUMENT SCROLL (ABOUT, BLOG, CONTACT) ─── */
#normal-content {
    position: fixed;
    top: 100vh;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 70;
    transition: background 0.4s;
    will-change: transform;
    padding-bottom: 5rem;
}

.section-pad {
    padding: 8rem 5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.sec-title {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: none;
    color: var(--accent);
    margin-bottom: 3rem;
}

/* ─── ABOUT: MAGAZINE BRUTALIST ─── */
.about-wrap {
    position: relative;
}

.about-block {
    font-family: 'Dirtyline 36daysoftype 2022', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2rem, 4.2vw, 4.5rem);
    line-height: 1.1;
    color: var(--text);

    columns: 2;
    column-gap: 4rem;
    text-align: justify;
    text-justify: inter-word;

    column-rule: 1px solid rgba(255, 255, 255, 0.15);
}

.hover-word {
    color: var(--accent);
    font-style: italic;
    cursor: none;
    transition: opacity 0.3s;
    position: relative;
    z-index: 80;
}

.hover-word:hover {
    opacity: 0.8;
}

/* ─── BLOG: HOW I SEE THE WORLD ─── */
.blog-list {
    list-style: none;
    border-top: 1px solid var(--border);
}

.blog-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
    cursor: none;
    transition: padding 0.3s;
    position: relative;
    z-index: 80;
}

.blog-item:hover {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.blog-item h3 {
    font-family: 'Dirtyline 36daysoftype 2022', 'Plus Jakarta Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text);
    transition: color 0.3s;
    text-shadow: 0 0 15px var(--bg), 0 0 30px var(--bg);
}

.blog-item:hover h3 {
    color: var(--accent);
}

.blog-date {
    font-size: 0.85rem;
    color: var(--muted);
    font-family: monospace;
    text-shadow: 0 0 10px var(--bg);
}

.blog-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
}

.blog-btn {
    font-family: monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: none;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--ink);
    padding: 0.7rem 1.2rem;
    cursor: none;
    transition: color 0.3s, border-color 0.3s;
    border-radius: 4px;
}

.blog-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ─── ALL BLOGS PAGE ─── */
#all-blogs-page {
    position: fixed;
    inset: 0;
    z-index: 140;
    background: var(--bg);
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    pointer-events: none;
    padding: 8rem 5rem;
    transition: background 0.4s;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#all-blogs-page::-webkit-scrollbar {
    display: none;
}

.blogs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.blogs-header h2 {
    font-family: 'Dirtyline 36daysoftype 2022', 'Plus Jakarta Sans', sans-serif;
    font-size: 3rem;
    font-weight: 400;
}

.all-blog-list .blog-item h3 {
    font-size: 3.5rem;
}

/* ─── BLOG READING OVERLAY ─── */
#blog-read-page {
    position: fixed;
    inset: 0;
    z-index: 160;
    background: var(--bg);
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    pointer-events: none;
    padding: 8rem 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background 0.4s;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#blog-read-page::-webkit-scrollbar {
    display: none;
}

.blog-read-content {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.blog-read-date {
    font-family: monospace;
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: none;
    margin-bottom: 2rem;
    display: block;
    text-align: center;
}

.blog-read-title {
    font-family: 'Dirtyline 36daysoftype 2022', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(4rem, 8vw, 8rem);
    line-height: 0.85;
    color: var(--text);
    margin-bottom: 3.5rem;
    text-transform: none;
    text-align: center;
    letter-spacing: -0.04em;
    border-top: 2px solid var(--text);
    border-bottom: 2px solid var(--text);
    padding: 2rem 0;
}

.blog-read-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 4rem;
    filter: grayscale(100%);
}

.blog-read-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
    font-family: var(--font-body);
    opacity: 0.85;
    margin-bottom: 2rem;
}

p,
#project-content p,
.proj-text p,
.blog-read-text p,
.contact-links a {
    font-family: var(--font-body);
}

.blog-read-text p {
    margin-bottom: 1.5rem;
}

.blog-read-text h4 {
    font-family: 'Dirtyline 36daysoftype 2022', 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-weight: 400;
    color: var(--text);
}

/* ─── CONTACT & UTILS ─── */
#contact {
    position: relative;
    padding-top: 10rem;
    padding-bottom: 0;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
    position: relative;
    padding-bottom: 4rem;
}

.contact-img-wrap {
    flex: 1;
    margin-right: 4rem;
    height: 300px;
    border: 1px dashed var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 0.7rem;
    font-family: monospace;
    text-transform: none;
    letter-spacing: 0.1em;
    background: rgba(17, 17, 16, 0.02);
}

[data-theme="dark"] .contact-img-wrap {
    background: rgba(255, 255, 255, 0.02);
}

.contact-links {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: right;
    padding: 1.6rem 2.2rem;
    border-radius: 12px;
    background: linear-gradient(270deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.3) 48%, rgba(0, 0, 0, 0) 100%);
    backdrop-filter: blur(6px);
}

.contact-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.05em;
    transition: color 0.3s;
    cursor: none;
}

.contact-links a:hover {
    color: var(--accent);
}

.local-time {
    margin-top: 2rem;
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.1em;
}

.massive-name {
    font-family: 'Dirtyline 36daysoftype 2022', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(4rem, 13.5vw, 19rem);
    line-height: 0.75;
    letter-spacing: -0.02em;
    color: rgba(244, 240, 232, 0.08);
    opacity: 1;
    white-space: nowrap;
    text-align: center;
    margin-top: auto;
    overflow: hidden;
}

.massive-name span {
    color: var(--accent);
    opacity: 0.8;
}

.massive-name .massive-last {
    display: inline;
    color: rgba(244, 240, 232, 0.08);
}

#active-card-title {
    display: none;
}

/* ─── VIGNETTE ─── */
.vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    background: radial-gradient(circle at center, transparent 40%, rgba(255, 95, 74, 0.1) 120%);
    transition: background 0.4s;
}

/* ─── PROJECT PAGE ─── */
#project-page {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    opacity: 0;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 95, 74, 0.12), transparent 34%),
        radial-gradient(circle at 82% 8%, rgba(120, 80, 255, 0.11), transparent 30%),
        linear-gradient(120deg, rgba(0, 0, 0, 0.94), var(--bg) 58%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

#project-page::-webkit-scrollbar {
    display: none;
}

.project-stage {
    display: flex;
    min-height: 100vh;
    width: 100%;
    padding: 4.5rem 5vw 3rem;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

#project-image-slot {
    width: min(42vw, 620px);
    height: min(72vh, 620px);
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.project-image-bg {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.09);
    filter: saturate(0.95) contrast(1.08);
}

#project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.5rem;
    padding: clamp(2rem, 4vw, 4.5rem);
    opacity: 0;
    transform: translateY(22px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 22px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
    transition: background 0.4s;
}

#project-details-full {
    width: 100%;
    padding: 1rem 8vw 7rem;
    background: transparent;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, background 0.4s;
}

.proj-hero {
    display: contents;
}

#project-cover-inline {
    display: none;
}

#project-media {
    display: none;
}

#project-content .proj-tag {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: none;
    color: var(--accent);
    margin-bottom: 1rem;
    opacity: 0.86;
}

#project-content h1 {
    font-family: 'Dirtyline 36daysoftype 2022', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(3rem, 7vw, 6.8rem);
    font-weight: 400;
    line-height: 0.86;
    margin-bottom: 1.5rem;
    letter-spacing: -0.06em;
    text-transform: uppercase;
}

#project-content p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--muted);
    max-width: 42ch;
    margin-bottom: 2.5rem;
}

.project-mag {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    padding-top: 1.2rem;
}

.proj-section {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 2rem;
    padding: 1.8rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.proj-section:first-child {
    border-top: none;
    padding-top: 0;
}

.proj-section-index {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.12em;
}

.proj-section-body {
    display: grid;
    gap: 1.4rem;
}

.proj-lead {
    font-family: 'Dirtyline 36daysoftype 2022', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.25rem, 2.4vw, 2.1rem);
    line-height: 1.45;
    color: var(--text);
    max-width: 46ch;
    margin: 0;
}

.proj-text {
    column-count: 1;
}

#project-details-full .proj-text {
    max-width: none;
}

.proj-text p {
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--muted);
    margin-bottom: 1.4rem;
    max-width: none;
}

.proj-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 0.9rem;
}

.proj-highlights span {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: none;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.045);
    border-radius: 999px;
    color: var(--text);
}

.proj-full img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.proj-collage {
    column-count: 3;
    column-gap: 12px;
    margin: 2rem 0 3rem;
}

.proj-collage .collage-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    break-inside: avoid;
    margin: 0 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.075);
}

.proj-collage .collage-hero {
    grid-row: auto;
}

.proj-collage img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.proj-foot {
    font-family: 'Dirtyline 36daysoftype 2022', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    color: var(--text);
    max-width: 44ch;
    margin: 0;
}

.proj-meta {
    display: flex;
    gap: 2.5rem;
}

.meta-item label {
    display: block;
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: none;
    color: var(--border);
    margin-bottom: 4px;
}

[data-theme="dark"] .meta-item label {
    color: var(--muted);
}

.meta-item span {
    font-size: 0.85rem;
    color: var(--text);
}

#back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 300;
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--surface);
    border: 1px solid var(--ink);
    border-radius: 8px;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: none;
    color: var(--text);
    cursor: none;
    transition: background 0.2s, border-color 0.2s;
}

#back-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

#back-btn svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 1024px) {
    .proj-text {
        column-count: 1;
    }

    .proj-collage {
        column-count: 1;
    }

    .proj-collage .collage-hero {
        grid-row: auto;
    }
}

/* ─── SCROLL HINT ─── */
#scroll-hint {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 190;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 1;
    transition: opacity 0.6s;
    pointer-events: none;
}

#scroll-hint.gone {
    opacity: 0;
}

#scroll-hint span {
    font-size: 9px;
    letter-spacing: 0.15em;
    text-transform: none;
    color: var(--muted);
}

/* ─── HOVER HINT (MOBILE) ─── */
#hover-hint {
    position: fixed;
    left: 50%;
    bottom: 4.5rem;
    transform: translateX(-50%);
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    background: rgba(12, 12, 12, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    opacity: 0;
    pointer-events: none;
    z-index: 200;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

#hover-hint.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(-6px);
}

@media (min-width: 769px) {
    #hover-hint {
        display: none;
    }
}

.line {
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, var(--muted), transparent);
    animation: linePulse 1.8s ease-in-out infinite;
}

@keyframes linePulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(1);
    }

    50% {
        opacity: 1;
        transform: scaleY(1.15);
    }
}

/* ─── CURSOR (Premium Blend) ─── */
#cursor-wrap {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
}

#cursor-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

#cursor-ring {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s ease, height 0.3s ease;
    pointer-events: none;
}

#cursor-label {
    position: absolute;
    left: 24px;
    top: -20px;
    font-family: 'Dirtyline 36daysoftype 2022', 'Plus Jakarta Sans', sans-serif;
    font-style: italic;
    font-size: 1.4rem;
    color: #fff;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#cursor-wrap.hovering #cursor-dot {
    transform: translate(-50%, -50%) scale(0.5);
}

#cursor-wrap.hovering #cursor-ring {
    width: 70px;
    height: 70px;
}

#cursor-wrap.hovering-card #cursor-label {
    opacity: 1;
    transform: translateX(0);
}

#cursor-wrap.sound-prompt #cursor-ring {
    width: 92px;
    height: 92px;
}

#cursor-wrap.sound-prompt #cursor-label {
    opacity: 1;
    transform: translateX(0);
}

@media (hover: none),
(pointer: coarse) {

    #cursor-wrap,
    #img-follower {
        display: none;
    }

    a,
    button,
    .card,
    .grid-item,
    .hover-trigger {
        cursor: pointer;
    }
}

@media (max-width: 768px) {
    .massive-name {
        white-space: normal;
    }

    .massive-name .massive-last {
        display: block;
    }

    :root {
        --card-w: 192px;
        --card-h: 192px;
    }

    nav {
        padding: 1.25rem 1.5rem;
        pointer-events: all;
    }

    .audio-toggle-desktop {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(72vw, 320px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 1.8rem;
        padding: 2.5rem;
        background: var(--bg);
        border-left: 1px solid var(--ink);
        transform: translateX(100%);
        transition: transform 0.35s ease;
        z-index: 220;
    }

    nav.nav-open .nav-links {
        transform: translateX(0);
    }

    .nav-links li {
        opacity: 1;
        pointer-events: all;
        transform: none;
    }

    .nav-audio-item {
        display: block;
    }

    .nav-back-item {
        display: block;
    }

    .audio-toggle-mobile {
        width: 46px;
        height: 46px;
    }

    .audio-toggle-mobile .audio-icon {
        width: 21px;
        height: 21px;
    }

    #commit-panel {
        display: none;
    }

    #projects-title-container {
        top: 4rem;
        left: 1.5rem;
    }

    .proj-title-line {
        font-size: clamp(1.4rem, 5.2vw, 2rem);
        max-width: none;
        white-space: nowrap;
    }

    .about-block {
        columns: 1;
        column-rule: none;
        text-align: left;
        font-size: clamp(1.5rem, 5.2vw, 2.6rem);
    }

    #all-blogs-page,
    #blog-read-page {
        padding: 6rem 2rem 4rem;
    }

    .blog-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
        padding: 2rem 0;
    }

    .blog-item h3 {
        font-size: 1.7rem;
        line-height: 1.15;
    }

    .blog-date {
        font-size: 0.75rem;
    }

    .blogs-header h2 {
        font-size: 2.2rem;
    }

    .blog-read-title {
        font-size: clamp(2.6rem, 9vw, 4.2rem);
        padding: 1.5rem 0;
        margin-bottom: 2.5rem;
    }

    .blog-read-img {
        height: 240px;
        margin-bottom: 2.5rem;
    }

    .blog-read-text {
        font-size: 1rem;
    }

    .contact-top {
        align-items: flex-end;
    }

    .contact-img-wrap {
        display: none;
    }

    #project-page {
        flex-direction: column;
    }

    #project-image-slot {
        display: none;
    }

    #project-content {
        width: 100%;
        height: 70vh;
        padding: 3.5rem 2.2rem 2rem;
        transform: none;
    }

    .proj-hero {
        display: flex;
        gap: 1.2rem;
        align-items: flex-start;
    }

    #project-cover-inline {
        display: block;
        width: 110px;
        height: 110px;
        border-radius: 6px;
        background-size: cover;
        background-position: center;
        flex-shrink: 0;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
        transition: opacity 0.25s ease;
    }

    .proj-hero-text {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
    }

    #project-content h1 {
        font-size: clamp(2rem, 7vw, 3rem);
        margin-bottom: 0.5rem;
    }

    #project-content p {
        margin-bottom: 1.5rem;
    }

    .proj-meta {
        flex-wrap: wrap;
        gap: 1.2rem 2rem;
    }

    .project-mag {
        display: none;
    }

    #project-media {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 30vh;
        width: 100%;
        padding: 1.2rem 1.5rem 2rem;
        background: var(--bg);
    }

    .media-strip {
        width: 100%;
        height: 100%;
        display: flex;
        gap: 0;
        overflow: hidden;
        align-items: center;
    }

    #project-media-img,
    #project-media-img-next {
        height: 100%;
        width: auto;
        object-fit: cover;
        border-radius: 10px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
        flex-shrink: 0;
    }

    #active-card-title {
        display: block;
        max-width: 36vw;
    }

    #active-card-title {
        position: fixed;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 120;
        font-family: var(--font-display);
        font-size: clamp(1.1rem, 4.6vw, 1.6rem);
        color: var(--text);
        letter-spacing: 0.02em;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
        text-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
        max-width: 40vw;
    }

    #active-card-title.visible {
        opacity: 1;
    }
}