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

:root {
    --black: #020202;
    --white: #f4f0eb;
    --surface: #141414;
    --surface-2: #1c1c1c;
    --dim: rgba(255, 255, 255, 0.50);
    --mid: rgba(255, 255, 255, 0.76);
    --accent: #c8ff47;
    --accent-lo: rgba(200, 255, 71, 0.12);
    --display: 'Rajdhani', 'Arial Narrow', sans-serif;
    --sans: 'IBM Plex Sans', Arial, sans-serif;
    --mono: 'IBM Plex Mono', Consolas, monospace;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease2: cubic-bezier(0.45, 0, 0.55, 1);
    --pad: 80px;
    --t1: .28s;
    --t2: .6s;
    --t3: 1.0s;
    --t4: 1.55s;
}

html {
    background: var(--black);
    color: var(--white);
    font-family: var(--sans);
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: auto;
}

body {
    background: var(--black);
    overflow-x: hidden;
}

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

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

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

::-webkit-scrollbar {
    width: 1px;
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
}

* {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='22' viewBox='0 0 20 22'%3E%3Cpath d='M2 1 L2 18 L6 13 L9 20 L12 18 L9 11 L14 11 Z' fill='%23020202' stroke='%23c8ff47' stroke-width='1.5' stroke-linejoin='miter'/%3E%3C/svg%3E") 2 1, auto;
}

a,
button,
.project,
.collage-card,
.hcard,
.related-card,
.gal-nav,
.gal-postcard,
.thumb,
.filter-btn {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='22' viewBox='0 0 20 22'%3E%3Cpath d='M2 1 L2 18 L6 13 L9 20 L12 18 L9 11 L14 11 Z' fill='%23020202' stroke='%23c8ff47' stroke-width='1.5' stroke-linejoin='miter'/%3E%3C/svg%3E") 2 1, pointer;
}

/* ===== NAV ===== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    padding: 0 var(--pad);
    display: flex;
    align-items: center;
    z-index: 500;
    transition: background var(--t2), backdrop-filter var(--t2);
    background: transparent;
}

nav.scrolled {
    background: rgba(2, 2, 2, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Left side: logo + toggle stacked */
.nav-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.logo {
    font-family: var(--display);
    font-size: .92rem;
    font-weight: 400;
    letter-spacing: .48em;
    text-transform: uppercase;
    color: var(--white);
    transition: color var(--t1);
    line-height: 1;
}

.logo:hover {
    color: var(--accent);
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle-label {
    font-size: .58rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--dim);
    transition: color var(--t1);
}

.theme-switch {
    position: relative;
    width: 38px;
    height: 20px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: background var(--t2), border-color var(--t2);
    cursor: pointer;
}

.theme-slider::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    left: 3px;
    top: 3px;
    background: var(--accent);
    transition: transform var(--t2) var(--ease), background var(--t2);
}

.theme-switch input:checked+.theme-slider {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.18);
}

.theme-switch input:checked+.theme-slider::before {
    transform: translateX(18px);
}

nav ul {
    display: flex;
    gap: 46px;
    list-style: none;
}

nav a:not(.logo) {
    font-size: .68rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--dim);
    position: relative;
    padding-bottom: 3px;
    transition: color var(--t1);
}

nav a:not(.logo)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--t2) var(--ease);
}

nav a:not(.logo):hover,
nav a.active {
    color: var(--white);
}

nav a:not(.logo):hover::after,
nav a.active::after {
    width: 100%;
}

/* ===== INTRO ===== */
#intro {
    height: 115vh;
    position: relative;
}

.intro-bg {
    position: absolute;
    inset: 0;
    will-change: transform;
    background:
        radial-gradient(ellipse 70% 50% at 50% 38%, #18120a 0%, transparent 68%),
        var(--black);
}

.intro-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .22;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.06'/%3E%3C/svg%3E");
}

.intro-inner {
    position: sticky;
    top: 28%;
    text-align: center;
    z-index: 2;
    will-change: transform, opacity;
    padding: 0 var(--pad);
}

.intro-eyebrow {
    display: block;
    font-size: .64rem;
    letter-spacing: .42em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 24px;
}

.intro-inner h1 {
    font-family: var(--display);
    font-size: clamp(4.5rem, 10vw, 12rem);
    font-weight: 800;
    font-style: normal;
    letter-spacing: .16em;
    line-height: 1;
    color: var(--white);
}

.intro-divider {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: center;
    margin: 20px 0;
}

.intro-divider span {
    display: block;
    height: 1px;
    width: 44px;
    background: linear-gradient(to right, transparent, var(--accent));
}

.intro-divider span:last-child {
    background: linear-gradient(to left, transparent, var(--accent));
}

.intro-divider i {
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    opacity: .6;
    font-style: normal;
}

.intro-sub {
    font-size: .68rem;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--dim);
    max-width: 520px;
    margin: 0 auto;
    line-height: 2;
}

.intro-scroll-hint {
    display: block;
    margin-top: 36px;
    font-size: .58rem;
    letter-spacing: .4em;
    text-transform: uppercase;
    color: var(--dim);
    animation: pulse 2.8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {

    0%,
    100% {
        opacity: .15
    }

    50% {
        opacity: .6
    }
}

/* ===== SPLIT ABOUT ===== */
#about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
}

.about-sticky-left {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 60px 0 var(--pad);
}

.about-eyebrow {
    font-size: .62rem;
    letter-spacing: .38em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
    display: block;
}

.about-sticky-title {
    font-family: var(--display);
    font-size: clamp(2.4rem, 3.8vw, 4.2rem);
    font-weight: 700;
    line-height: 1.14;
    color: var(--white);
}

.about-sticky-title em {
    font-style: italic;
}

.about-sticky-cue {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 44px;
    width: fit-content;
    transition: gap var(--t2);
}

.about-sticky-cue:hover {
    gap: 22px;
}

.scroll-line {
    display: block;
    width: 32px;
    height: 1px;
    background: var(--accent);
    transition: width var(--t2) var(--ease);
}

.about-sticky-cue:hover .scroll-line {
    width: 54px;
}

.scroll-label {
    font-size: .6rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--dim);
    transition: color var(--t1);
}

.about-sticky-cue:hover .scroll-label {
    color: var(--accent);
}

.about-scroll-right {
    display: flex;
    flex-direction: column;
}

.about-panel {
    min-height: 45vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px var(--pad) 60px 60px;
}

.about-panel--bio {
    min-height: 55vh;
}

.about-panel--tags {
    min-height: 35vh;
}

.about-panel--closing {
    min-height: 40vh;
    justify-content: flex-end;
    padding-bottom: 80px;
}

.about-bio {
    font-size: 1rem;
    line-height: 2.1;
    color: var(--mid);
    font-weight: 300;
    letter-spacing: .03em;
    max-width: 460px;
    margin-top: 1.8em;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.about-tag {
    font-size: .58rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--dim);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 8px 18px;
    transition: color var(--t1), border-color var(--t1);
}

.about-tag:hover {
    color: var(--accent);
    border-color: rgba(185, 160, 122, 0.35);
}

.about-closing-text {
    font-family: var(--display);
    font-size: clamp(1.6rem, 2.8vw, 2.8rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.22);
    line-height: 1.2;
    margin-bottom: 36px;
}

.about-closing-text em {
    font-style: italic;
}

.about-drop-line {
    width: 1px;
    height: 90px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    opacity: .38;
}

/* ===== SECTION LABEL ===== */
.section-label {
    display: block;
    font-size: .62rem;
    letter-spacing: .34em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

/* ===== CREATIVE TECH FEATURE ===== */
#creative-tech-feature {
    padding: 110px 0 0;
}

.ct-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 0 var(--pad) 60px;
}

.ct-header-left h2 {
    font-family: var(--display);
    font-size: clamp(2.2rem, 4vw, 4.6rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: .02em;
}

.ct-header-left h2 em {
    font-style: italic;
}

.ct-header-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 22px;
}

.ct-desc {
    font-size: .9rem;
    line-height: 1.95;
    color: var(--mid);
    font-weight: 300;
    letter-spacing: .02em;
}

.ct-link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-size: .64rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--white);
    width: fit-content;
    transition: color var(--t1), gap var(--t2);
}

.link-line {
    display: block;
    width: 30px;
    height: 1px;
    background: var(--accent);
    transition: width var(--t2) var(--ease);
}

.ct-link:hover {
    color: var(--accent);
    gap: 22px;
}

.ct-link:hover .link-line {
    width: 50px;
}

/* ===== COLLAGE ===== */
.ct-collage {
    margin: 0 var(--pad);
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 280px 200px 240px;
    gap: 8px;
}

.collage-card {
    overflow: hidden;
    position: relative;
    background: var(--surface);
    min-height: 0;
}

/* ROW 1 — 3 cards: big | medium | small */
.collage-card[data-slot="1"] {
    grid-column: 1 / 6;
    grid-row: 1 / 2;
}

.collage-card[data-slot="2"] {
    grid-column: 6 / 10;
    grid-row: 1 / 2;
}

.collage-card[data-slot="3"] {
    grid-column: 10 / 13;
    grid-row: 1 / 2;
}

/* ROW 2 — 3 cards: small | small | wide */
.collage-card[data-slot="4"] {
    grid-column: 1 / 4;
    grid-row: 2 / 3;
}

.collage-card[data-slot="5"] {
    grid-column: 4 / 7;
    grid-row: 2 / 3;
}

.collage-card[data-slot="6"] {
    grid-column: 7 / 13;
    grid-row: 2 / 3;
}

/* ROW 3 — 3 cards: wide | medium | small */
.collage-card[data-slot="7"] {
    grid-column: 1 / 5;
    grid-row: 3 / 4;
}

.collage-card[data-slot="8"] {
    grid-column: 5 / 9;
    grid-row: 3 / 4;
}

.collage-card[data-slot="9"] {
    grid-column: 9 / 13;
    grid-row: 3 / 4;
}

.collage-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1) saturate(1);
    transition: transform var(--t4) var(--ease), filter var(--t2);
}

.collage-card:hover img {
    transform: scale(1.055);
    filter: brightness(.82) saturate(1.08);
}

.collage-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(2, 2, 2, .9) 0%, transparent 52%);
    opacity: 0;
    transition: opacity var(--t2);
}

.collage-card:hover .collage-overlay {
    opacity: 1;
}

.collage-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px 20px;
    z-index: 2;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--t2) var(--ease), transform var(--t2) var(--ease);
}

.collage-card:hover .collage-caption {
    opacity: 1;
    transform: translateY(0);
}

.collage-title {
    font-family: var(--display);
    font-size: 1rem;
    font-style: normal;
    font-weight: 700;
    color: var(--white);
    display: block;
    line-height: 1.2;
}

.collage-year {
    font-size: .56rem;
    letter-spacing: .2em;
    color: var(--accent);
    text-transform: uppercase;
    margin-top: 4px;
    display: block;
}

.collage-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    font-size: .54rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--white);
    background: rgba(0, 0, 0, .55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
}

.collage-card.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity var(--t3) var(--ease), transform var(--t3) var(--ease);
}

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

/* ===== INFINITE LOOP STRIP ===== */
#other-featured {
    padding: 110px 0 0;
}

.hscroll-header {
    padding: 0 var(--pad) 44px;
    display: flex;
    flex-direction: column;
}

.hscroll-header h2 {
    font-family: var(--display);
    font-size: clamp(2rem, 3.4vw, 3.8rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: .02em;
}

.hscroll-header h2 em {
    font-style: italic;
}

.loop-strip-outer {
    position: relative;
    overflow: hidden;
    padding: 0 var(--pad);
    contain: layout;
}

.loop-fade-left,
.loop-fade-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 4;
    pointer-events: none;
}

.loop-fade-left {
    left: 0;
    background: linear-gradient(to right, var(--black), transparent);
}

.loop-fade-right {
    right: 0;
    background: linear-gradient(to left, var(--black), transparent);
}

.loop-track-wrap {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.loop-track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: loopScroll 36s linear infinite;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.loop-track:hover {
    animation-play-state: paused;
}

@keyframes loopScroll {
    0% {
        transform: translateX(0);
    }

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

.hcard {
    flex: 0 0 300px;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hcard-img {
    width: 100%;
    aspect-ratio: 3/2;
    overflow: hidden;
    background: var(--surface-2);
    contain: strict;
}

.hcard-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1) saturate(1);
    transition: transform var(--t4) var(--ease), filter var(--t2);
    content-visibility: auto;
}

.hcard:hover .hcard-img img {
    transform: scale(1.06);
    filter: brightness(.82) saturate(1.08);
}

.hcard-info {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    transition: border-color var(--t1);
}

.hcard:hover .hcard-info {
    border-color: var(--accent);
}

.hcard-cat {
    font-size: .56rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--accent);
}

.hcard-title {
    font-family: var(--display);
    font-size: 1rem;
    font-weight: 700;
    font-style: normal;
    color: var(--white);
    line-height: 1.22;
}

.hcard-year {
    font-size: .54rem;
    letter-spacing: .18em;
    color: var(--dim);
    text-transform: uppercase;
    margin-top: 2px;
}

.hscroll-hint {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px var(--pad);
    font-size: .58rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--dim);
}

.hscroll-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
}

/* ===== CONTACT ===== */
#contact {
    padding: 120px var(--pad) 110px;
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 40% 60% at 0% 50%, #130f09 0%, transparent 55%);
}

.contact-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-left h2 {
    font-family: var(--display);
    font-size: clamp(2.4rem, 4.6vw, 5rem);
    font-weight: 700;
    line-height: .96;
    letter-spacing: .02em;
    margin: 16px 0 32px;
    color: var(--white);
}

.contact-left h2 em {
    font-style: italic;
}

.contact-email {
    font-size: .76rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--mid);
    position: relative;
    padding-bottom: 5px;
    display: inline-block;
    transition: color var(--t1);
}

.contact-email::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, var(--accent), transparent);
    transform: scaleX(.2);
    transform-origin: left;
    transition: transform var(--t2) var(--ease);
}

.contact-email:hover {
    color: var(--accent);
}

.contact-email:hover::after {
    transform: scaleX(1);
}

.contact-right {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-top: 6px;
}

.contact-bio-label {
    font-size: .62rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 2px;
}

.contact-bio {
    font-size: .9rem;
    line-height: 2;
    color: var(--mid);
    font-weight: 300;
    letter-spacing: .02em;
}

.contact-collab {
    font-size: .82rem;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.7;
    font-family: var(--display);
    font-style: italic;
}

/* ===== REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--t3) var(--ease), transform var(--t3) var(--ease);
}

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

/* ===== PAGE HERO ===== */
.page-hero {
    padding: 170px var(--pad) 60px;
    position: relative;
    overflow: hidden;
}

.page-hero h1 {
    font-family: var(--display);
    font-size: clamp(3rem, 5.8vw, 7rem);
    font-weight: 800;
    line-height: .95;
    letter-spacing: .02em;
}

.page-hero h1 em {
    font-style: italic;
}

.page-hero-sub {
    font-size: .62rem;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--dim);
    margin-top: 18px;
    display: block;
}

/* ===== GALLERY NAV ===== */
.gallery-nav {
    position: sticky;
    top: 80px;
    z-index: 200;
    background: rgba(2, 2, 2, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 0 var(--pad);
    display: flex;
    align-items: center;
    gap: 28px;
    height: 54px;
}

.gallery-nav-label {
    font-size: .58rem;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--dim);
    flex-shrink: 0;
}

.filter-btns {
    display: flex;
    gap: 2px;
}

.filter-btn {
    font-size: .58rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--dim);
    border: none;
    padding: 6px 16px;
    background: none;
    font-family: var(--sans);
    transition: color var(--t1);
    position: relative;
}

.filter-btn:hover {
    color: var(--white);
}

.filter-btn.active {
    color: var(--white);
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 16px;
    right: 16px;
    height: 1px;
    background: var(--accent);
}

.gallery-count-label {
    margin-left: auto;
    font-size: .58rem;
    letter-spacing: .18em;
    color: var(--dim);
    text-transform: uppercase;
    flex-shrink: 0;
}

/* ===== PROJECT GRID ===== */
.projects-wrap {
    padding: 0 var(--pad) 100px;
}

.year-marker {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 52px 0 16px;
}

.year-marker-num {
    font-family: var(--display);
    font-size: 4.5rem;
    font-weight: 800;
    font-style: normal;
    color: rgba(255, 255, 255, 0.07);
    line-height: 1;
    flex-shrink: 0;
    user-select: none;
}

.year-marker-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.04);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
}

.project {
    display: block;
    position: relative;
    overflow: hidden;
    grid-column: span 4;
    aspect-ratio: 3/4;
    background: var(--surface);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity var(--t3) var(--ease), transform var(--t3) var(--ease);
}

.project.visible {
    opacity: 1;
    transform: translateY(0);
}

.project.hidden {
    display: none;
}

.project:nth-child(9n+1) {
    grid-column: span 7;
    aspect-ratio: 7/5;
}

.project:nth-child(9n+2) {
    grid-column: span 5;
    aspect-ratio: 5/6;
}

.project:nth-child(9n+3) {
    grid-column: span 4;
}

.project:nth-child(9n+4) {
    grid-column: span 4;
}

.project:nth-child(9n+5) {
    grid-column: span 4;
}

.project:nth-child(9n+6) {
    grid-column: span 5;
    aspect-ratio: 5/4;
}

.project:nth-child(9n+7) {
    grid-column: span 7;
    aspect-ratio: 7/5;
}

.project:nth-child(9n+8) {
    grid-column: span 6;
    aspect-ratio: 1/1;
}

.project:nth-child(9n+9) {
    grid-column: span 6;
    aspect-ratio: 1/1;
}

.project-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1) saturate(1);
    transition: transform var(--t4) var(--ease), filter var(--t2);
}

.project:hover .project-media img {
    transform: scale(1.055);
    filter: brightness(.8) saturate(1.06);
}

.project-vignette {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(2, 2, 2, .9) 0%, rgba(2, 2, 2, .18) 45%, transparent 65%);
}

.project-view {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    font-size: .56rem;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity var(--t2) var(--ease), transform var(--t2) var(--ease);
}

.project-view::before {
    content: '';
    width: 12px;
    height: 1px;
    background: var(--accent);
}

.project:hover .project-view {
    opacity: 1;
    transform: translateY(0);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 22px 20px 20px;
    z-index: 2;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity var(--t2) var(--ease), transform var(--t2) var(--ease);
}

.project:hover .project-meta {
    opacity: 1;
    transform: translateY(0);
}

.project-category {
    font-size: .54rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--accent);
}

.project-year {
    font-size: .54rem;
    letter-spacing: .16em;
    color: var(--dim);
}

.project-title {
    font-family: var(--display);
    font-size: clamp(.96rem, 1.2vw, 1.36rem);
    font-weight: 700;
    font-style: normal;
    line-height: 1.18;
    transform: translateY(4px);
    transition: transform var(--t2) var(--ease);
}

.project:hover .project-title {
    transform: translateY(0);
}

.project-desc {
    font-size: .66rem;
    color: var(--mid);
    margin-top: 5px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity var(--t2) .04s var(--ease), transform var(--t2) .04s var(--ease);
}

.project:hover .project-desc {
    opacity: 1;
    transform: translateY(0);
}

.proj-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 3;
    font-size: .54rem;
    letter-spacing: .18em;
    color: var(--accent);
    border: 1px solid rgba(185, 160, 122, .22);
    padding: 4px 10px;
    transition: border-color var(--t1), background var(--t1);
}

.project:hover .proj-badge {
    border-color: var(--accent);
    background: var(--accent-lo);
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
    padding: 60px var(--pad) 20px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.04);
}

.section-divider span {
    font-size: .58rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--dim);
    flex-shrink: 0;
}

/* ===== PROJECT DETAIL ===== */
.project-detail-page {
    background: var(--black);
}

.detail-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 130px var(--pad) 130px;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 56px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.back-link {
    font-size: .62rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--dim);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color var(--t1), gap var(--t2);
}

.back-link::before {
    content: '';
    width: 18px;
    height: 1px;
    background: currentColor;
    transition: width var(--t2) var(--ease);
}

.back-link:hover {
    color: var(--accent);
    gap: 14px;
}

.back-link:hover::before {
    width: 28px;
}

.detail-breadcrumb {
    font-size: .62rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--accent);
}

.detail-title-block {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 30px;
    margin-bottom: 46px;
}

.detail-title-block h1 {
    font-family: var(--display);
    font-size: clamp(2.6rem, 5vw, 6.5rem);
    font-weight: 800;
    font-style: normal;
    line-height: .94;
}

.detail-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    padding-bottom: 8px;
}

.detail-year {
    font-family: var(--display);
    font-size: 1.7rem;
    font-weight: 700;
    font-style: normal;
    color: var(--accent);
    line-height: 1;
}

.detail-cat-label {
    font-size: .58rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--dim);
}

.detail-media {
    margin-bottom: 46px;
}

.detail-image {
    width: 100%;
    max-height: 90vh;
    object-fit: contain;
    background: var(--surface);
}

.detail-video {
    width: 100%;
    max-height: 85vh;
    background: var(--black);
}

.detail-experience {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 46px;
    font-size: .66rem;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--black);
    background: var(--accent);
    padding: 16px 30px;
    transition: background var(--t1);
}

.detail-experience:hover {
    background: var(--white);
}

.detail-experience::after {
    content: '→';
    font-size: .8rem;
}

.gallery-viewer {
    width: 100%;
}

.gallery-main {
    position: relative;
    background: var(--surface);
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    margin-bottom: 8px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity .26s var(--ease2);
}

.gal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(2, 2, 2, .6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: .9rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background var(--t1), border-color var(--t1);
}

.gal-nav:hover {
    background: var(--accent-lo);
    border-color: var(--accent);
}

.gal-prev {
    left: 20px;
}

.gal-next {
    right: 20px;
}

.gal-counter {
    position: absolute;
    bottom: 16px;
    right: 20px;
    font-size: .56rem;
    letter-spacing: .18em;
    color: var(--dim);
}

.gallery-thumbs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.gallery-thumbs .thumb {
    width: 80px;
    height: 54px;
    object-fit: cover;
    flex-shrink: 0;
    opacity: .28;
    border: 1px solid transparent;
    filter: grayscale(.4);
    transition: opacity var(--t1), filter var(--t1);
}

.gallery-thumbs .thumb:hover {
    opacity: .6;
}

.gallery-thumbs .thumb.active {
    opacity: 1;
    border-color: var(--accent);
    filter: none;
}

.detail-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 48px 0;
    margin-bottom: 68px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.detail-description {
    font-size: .92rem;
    line-height: 2;
    color: var(--mid);
    font-weight: 300;
    letter-spacing: .02em;
}

.detail-link-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-top: 4px;
}

.detail-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: .64rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--white);
    transition: color var(--t1), gap var(--t2);
}

.detail-link::after {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent);
    transition: width var(--t2) var(--ease);
}

.detail-link:hover {
    color: var(--accent);
    gap: 20px;
}

.detail-link:hover::after {
    width: 40px;
}

.detail-related {
    padding-top: 16px;
}

.related-heading {
    font-size: .62rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 24px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.related-card {
    display: block;
    overflow: hidden;
}

.related-thumb {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--surface);
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .72;
    filter: grayscale(.15);
    transition: transform var(--t4) var(--ease), opacity var(--t2), filter var(--t2);
}

.related-card:hover .related-thumb img {
    transform: scale(1.055);
    opacity: 1;
    filter: none;
}

.related-info {
    padding: 12px 0 16px;
}

.related-title {
    font-family: var(--display);
    font-size: .9rem;
    font-style: normal;
    font-weight: 700;
    color: var(--white);
    line-height: 1.22;
}

.related-year {
    font-size: .54rem;
    letter-spacing: .16em;
    color: var(--dim);
    margin-top: 4px;
}

.not-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 14px;
    font-size: .66rem;
    letter-spacing: .22em;
    color: var(--dim);
    text-transform: uppercase;
}

.not-found a {
    color: var(--accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    :root {
        --pad: 48px;
    }

    .ct-collage {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: 220px 180px 200px;
    }

    .collage-card[data-slot="1"] {
        grid-column: 1/4;
        grid-row: 1/2;
    }

    .collage-card[data-slot="2"] {
        grid-column: 4/6;
        grid-row: 1/2;
    }

    .collage-card[data-slot="3"] {
        grid-column: 6/7;
        grid-row: 1/2;
    }

    .collage-card[data-slot="4"] {
        grid-column: 1/3;
        grid-row: 2/3;
    }

    .collage-card[data-slot="5"] {
        grid-column: 3/5;
        grid-row: 2/3;
    }

    .collage-card[data-slot="6"] {
        grid-column: 5/7;
        grid-row: 2/3;
    }

    .collage-card[data-slot="7"] {
        grid-column: 1/3;
        grid-row: 3/4;
    }

    .collage-card[data-slot="8"] {
        grid-column: 3/5;
        grid-row: 3/4;
    }

    .collage-card[data-slot="9"] {
        grid-column: 5/7;
        grid-row: 3/4;
    }

    .ct-header {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .detail-title-block {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .detail-meta {
        align-items: flex-start;
    }

    .detail-body {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .detail-link-wrap {
        justify-content: flex-start;
    }

    .about-sticky-left {
        padding: 0 40px 0 var(--pad);
    }

    .about-panel {
        padding: 60px var(--pad) 60px 40px;
    }
}

@media (max-width: 900px) {
    #about-split {
        grid-template-columns: 1fr;
    }

    .about-sticky-left {
        position: relative;
        height: auto;
        min-height: 50vh;
        padding: 80px var(--pad) 60px;
    }

    .about-panel {
        padding: 60px var(--pad);
        min-height: auto;
    }

    .about-panel--closing {
        padding-bottom: 80px;
    }
}

@media (max-width: 768px) {
    :root {
        --pad: 28px;
    }

    nav {
        padding: 0 var(--pad);
        height: 72px;
    }

    nav ul {
        gap: 20px;
    }

    .nav-left {
        gap: 4px;
    }

    .logo {
        font-size: .82rem;
    }

    .intro-inner h1 {
        font-size: clamp(3rem, 11vw, 5.5rem);
        letter-spacing: .2em;
    }

    #intro {
        height: 65vh;
        min-height: 480px;
    }

    .ct-collage {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(5, 180px);
        gap: 6px;
    }

    .collage-card[data-slot="1"] {
        grid-column: 1/3;
        grid-row: 1/2;
    }

    .collage-card[data-slot="2"] {
        grid-column: 1/2;
        grid-row: 2/3;
    }

    .collage-card[data-slot="3"] {
        grid-column: 2/3;
        grid-row: 2/3;
    }

    .collage-card[data-slot="4"] {
        grid-column: 1/3;
        grid-row: 3/4;
    }

    .collage-card[data-slot="5"] {
        grid-column: 1/2;
        grid-row: 4/5;
    }

    .collage-card[data-slot="6"] {
        grid-column: 2/3;
        grid-row: 4/5;
    }

    .collage-card[data-slot="7"] {
        grid-column: 1/3;
        grid-row: 5/6;
    }

    .collage-card[data-slot="8"] {
        display: none;
    }

    .collage-card[data-slot="9"] {
        display: none;
    }

    .projects-grid {
        gap: 10px;
    }

    .project:nth-child(n) {
        grid-column: span 12;
        aspect-ratio: 4/3;
    }

    .hcard {
        flex: 0 0 240px;
    }

    .page-hero {
        padding: 120px var(--pad) 40px;
    }

    .detail-main {
        padding: 100px var(--pad) 80px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-nav {
        padding: 0 var(--pad);
        top: 72px;
    }

    .year-marker-num {
        font-size: 3rem;
    }

    .projects-wrap {
        padding: 0 var(--pad) 80px;
    }
}

@media (max-width: 480px) {
    :root {
        --pad: 20px;
    }

    nav ul {
        display: none;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .detail-title-block h1 {
        font-size: clamp(2rem, 8vw, 3.2rem);
    }

    .filter-btns {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .filter-btns::-webkit-scrollbar {
        display: none;
    }
}

/* ===== LIGHT THEME ===== */
body.light {
    --black: #f2ede6;
    --white: #1a1a18;
    --surface: #e8e2d9;
    --surface-2: #ddd7ce;
    --dim: rgba(0, 0, 0, 0.50);
    --mid: rgba(0, 0, 0, 0.72);
    --accent: #3e7a00;
    --accent-lo: rgba(62, 122, 0, 0.10);
    background: #f2ede6;
    color: #1a1a18;
}

body.light .intro-bg {
    background:
        radial-gradient(ellipse 70% 50% at 50% 38%, #ddd4c0 0%, transparent 68%),
        #f2ede6;
}

body.light .intro-bg::after {
    opacity: .06;
}

body.light .project-vignette {
    background: linear-gradient(to top, rgba(242, 237, 230, .92) 0%, rgba(242, 237, 230, .15) 45%, transparent 65%);
}

body.light .collage-overlay {
    background: linear-gradient(to top, rgba(242, 237, 230, .92) 0%, transparent 52%);
}

body.light .year-marker-num {
    color: rgba(0, 0, 0, 0.06);
}

body.light .year-marker-line {
    background: rgba(0, 0, 0, 0.06);
}

body.light .hcard-info {
    border-top-color: rgba(0, 0, 0, 0.06);
}

body.light .detail-header,
body.light .detail-body {
    border-color: rgba(0, 0, 0, 0.06);
}

body.light .gal-nav {
    background: rgba(242, 237, 230, .7);
    border-color: rgba(0, 0, 0, 0.12);
    color: #1a1a18;
}

body.light .about-closing-text {
    color: rgba(0, 0, 0, 0.18);
}

body.light #contact::before {
    background: radial-gradient(ellipse 40% 60% at 0% 50%, #e0d5c0 0%, transparent 55%);
}

body.light nav.scrolled {
    background: rgba(242, 237, 230, 0.92);
}

body.light .loop-fade-left {
    background: linear-gradient(to right, #f2ede6, transparent);
}

body.light .loop-fade-right {
    background: linear-gradient(to left, #f2ede6, transparent);
}

body.light .gallery-nav {
    background: rgba(242, 237, 230, 0.92);
}

body.light ::-webkit-scrollbar {
    background: #f2ede6;
}

body.light ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
}

body.light * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='22' viewBox='0 0 20 22'%3E%3Cpath d='M2 1 L2 18 L6 13 L9 20 L12 18 L9 11 L14 11 Z' fill='%23f2ede6' stroke='%233e7a00' stroke-width='1.5' stroke-linejoin='miter'/%3E%3C/svg%3E") 2 1, auto;
}

body.light a,
body.light button,
body.light .project,
body.light .collage-card,
body.light .hcard,
body.light .related-card,
body.light .gal-nav,
body.light .gal-postcard,
body.light .thumb,
body.light .filter-btn {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='22' viewBox='0 0 20 22'%3E%3Cpath d='M2 1 L2 18 L6 13 L9 20 L12 18 L9 11 L14 11 Z' fill='%23f2ede6' stroke='%233e7a00' stroke-width='1.5' stroke-linejoin='miter'/%3E%3C/svg%3E") 2 1, pointer;
}

body.light .theme-slider {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.18);
}

/* ===== DETAIL MEDIUM ===== */
.detail-medium {
    font-size: .62rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

body.light .detail-medium {
    border-top-color: rgba(0, 0, 0, 0.06);
}

/* ===== 3D GALLERY CYLINDER ===== */
.cyl-container {
    position: relative;
    height: 75vh;
    min-height: 520px;
    overflow: hidden;
    background: var(--black);
    margin-bottom: 60px;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

.cyl-container.is-dragging,
.cyl-container.is-dragging * {
    cursor: grabbing;
}

.cyl-container::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    background:
        linear-gradient(to bottom, var(--black) 0%, transparent 16%, transparent 84%, var(--black) 100%),
        linear-gradient(to right, var(--black) 0%, transparent 12%, transparent 88%, var(--black) 100%);
}

.gal-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 9px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--dim);
    pointer-events: none;
}

.gallery-cylinder {
    position: relative;
    width: 1px;
    height: 1px;
    transform-style: preserve-3d;
    will-change: transform;
}

.gal-item-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 180px;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.gal-string {
    width: 1px;
    height: 70px;
    background: linear-gradient(to bottom, transparent 0%, rgba(200, 255, 71, 0.32) 100%);
    margin: 0 auto;
}

.gal-postcard {
    display: block;
    width: 180px;
    background: var(--surface);
    border-radius: 2px;
    overflow: hidden;
    box-shadow:
        0 10px 32px rgba(0, 0, 0, 0.6),
        0 2px 8px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-origin: top center;
    transition: box-shadow 0.4s ease;
    pointer-events: auto;
    -webkit-user-drag: none;
}

.gal-postcard:hover {
    box-shadow:
        0 18px 52px rgba(0, 0, 0, 0.75),
        0 0 22px rgba(200, 255, 71, 0.15);
}

.gal-postcard-img {
    width: 100%;
    height: 116px;
    overflow: hidden;
    background: var(--surface-2);
}

.gal-postcard-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gal-postcard:hover .gal-postcard-img img {
    transform: scale(1.07);
}

.gal-postcard-info {
    padding: 9px 12px 11px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gal-postcard-cat {
    display: block;
    font-size: 8px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 3px;
}

.gal-postcard-title {
    display: block;
    font-family: var(--display);
    font-size: 12px;
    line-height: 1.3;
    color: var(--white);
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gal-postcard-year {
    display: block;
    font-size: 9px;
    color: var(--dim);
    letter-spacing: 0.1em;
}

.gal-drag-hint {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--dim);
    pointer-events: none;
    white-space: nowrap;
    opacity: 0;
    z-index: 5;
    animation: hintFadeInOut 5s ease 0.8s forwards;
}

@keyframes hintFadeInOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    78% { opacity: 1; }
    100% { opacity: 0; }
}

.gallery-empty {
    padding: 80px var(--pad);
    text-align: center;
    font-size: .62rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--dim);
}

body.light .gal-postcard {
    background: #faf7f2;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
}

body.light .gal-postcard:hover {
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22), 0 0 16px rgba(62, 122, 0, 0.1);
}

body.light .gal-postcard-info {
    border-top-color: rgba(0, 0, 0, 0.07);
}

body.light .gal-postcard-title {
    color: var(--black);
}

body.light .gal-string {
    background: linear-gradient(to bottom, transparent 0%, rgba(62, 122, 0, 0.28) 100%);
}

/* ===== EDITORIAL ARCHIVE GRID ===== */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(34px, 5vw, 76px) clamp(18px, 2.4vw, 38px);
    padding: 24px var(--pad) 120px;
}

.archive-card {
    grid-column: span 4;
    display: block;
    min-width: 0;
    color: var(--white);
    text-decoration: none;
}

.archive-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--surface);
}

.archive-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to top, rgba(2, 2, 2, .42), transparent 45%);
    opacity: 0;
    transition: opacity .45s var(--ease);
}

.archive-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .75s var(--ease), filter .45s ease;
}

.archive-card-view {
    position: absolute;
    right: 18px;
    bottom: 16px;
    z-index: 1;
    font-size: .54rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #fff;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .35s ease, transform .45s var(--ease);
    pointer-events: none;
}

.archive-card-info {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-top: 14px;
    border-top: 1px solid transparent;
    transition: border-color .35s ease;
}

.archive-card-category,
.archive-card-year {
    display: block;
    font-size: .53rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--dim);
}

.archive-card-title {
    margin-top: 6px;
    font-family: var(--display);
    font-size: clamp(1rem, 1.35vw, 1.4rem);
    font-weight: 700;
    line-height: 1.18;
    color: var(--white);
    transition: color .3s ease;
}

.archive-card-year {
    flex: 0 0 auto;
    padding-top: 2px;
}

.archive-card:hover .archive-card-media img,
.archive-card:focus-visible .archive-card-media img {
    transform: scale(1.025);
    filter: brightness(.88);
}

.archive-card:hover .archive-card-media::after,
.archive-card:focus-visible .archive-card-media::after,
.archive-card:hover .archive-card-view,
.archive-card:focus-visible .archive-card-view {
    opacity: 1;
}

.archive-card:hover .archive-card-view,
.archive-card:focus-visible .archive-card-view {
    transform: translateY(0);
}

.archive-card:hover .archive-card-info,
.archive-card:focus-visible .archive-card-info {
    border-color: var(--accent);
}

.archive-card:hover .archive-card-title,
.archive-card:focus-visible .archive-card-title {
    color: var(--accent);
}

.archive-card:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: 6px;
}

body.light .archive-card-title {
    color: var(--white);
}

body.light .archive-card:hover .archive-card-title,
body.light .archive-card:focus-visible .archive-card-title {
    color: var(--accent);
}

@media (max-width: 900px) {
    .archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .archive-card {
        grid-column: span 1;
    }
}

@media (max-width: 600px) {
    .archive-grid {
        grid-template-columns: 1fr;
        gap: 42px;
        padding-bottom: 80px;
    }
}

/* ===== HERO TITLE CHARACTER ANIMATION ===== */
.intro-inner h1 .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(72px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-inner h1 .char.in {
    opacity: 1;
    transform: translateY(0);
}

/* ===== HERO ARCHIVE LENS + TYPEWRITER ===== */
.hero-title-wrap {
    --lens-x: 50%;
    --lens-y: 50%;
    position: relative;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    isolation: isolate;
}

.hero-lens-title {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    color: transparent !important;
    background-image:
        linear-gradient(rgba(239, 157, 114, .12), rgba(239, 157, 114, .12)),
        var(--lens-image);
    background-size: cover;
    background-position: center;
    background-clip: text;
    -webkit-background-clip: text;
    filter: saturate(1.08) contrast(1.04);
    opacity: 0;
    transform: scale(1.025);
    -webkit-mask-image: radial-gradient(circle 0 at var(--lens-x) var(--lens-y), #000 0, transparent 100%);
    mask-image: radial-gradient(circle 0 at var(--lens-x) var(--lens-y), #000 0, transparent 100%);
    transition: opacity .5s ease, -webkit-mask-image .7s var(--ease), mask-image .7s var(--ease);
}

.hero-title-wrap.lens-active .hero-lens-title {
    opacity: 1;
    -webkit-mask-image: radial-gradient(circle clamp(90px, 13vw, 190px) at var(--lens-x) var(--lens-y), #000 0 48%, transparent 76%);
    mask-image: radial-gradient(circle clamp(90px, 13vw, 190px) at var(--lens-x) var(--lens-y), #000 0 48%, transparent 76%);
}

.hero-title-wrap::after {
    content: '';
    position: absolute;
    z-index: -1;
    left: var(--lens-x);
    top: var(--lens-y);
    width: clamp(150px, 22vw, 320px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-lo), transparent 68%);
    opacity: 0;
    transform: translate(-50%, -50%) scale(.7);
    transition: opacity .5s ease, transform .8s var(--ease);
    pointer-events: none;
}

.hero-title-wrap.lens-active::after {
    opacity: .8;
    transform: translate(-50%, -50%) scale(1);
}

.hero-typewriter {
    min-height: 2.4em;
    max-width: 760px;
    margin-top: clamp(30px, 4vh, 48px);
    text-transform: none;
    font-family: var(--sans);
    font-size: clamp(.72rem, 1vw, .9rem);
    letter-spacing: .09em;
    color: var(--mid);
    white-space: nowrap;
}

.typed-character {
    display: inline-block;
    transform-origin: 50% 130%;
    animation: typedSpiralIn .72s var(--ease) both;
}

@keyframes typedSpiralIn {
    0% {
        opacity: 0;
        transform: translate(8px, -15px) rotate(12deg) scale(.78);
        filter: blur(3px);
    }
    52% {
        opacity: .72;
        transform: translate(-3px, 4px) rotate(-3deg) scale(1.03);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) rotate(0) scale(1);
        filter: blur(0);
    }
}

.hero-typewriter + .intro-scroll-hint {
    margin-top: clamp(110px, 14vh, 160px);
}

/* About is one concise section, not a sequence of empty scroll panels. */
#about-split {
    align-items: start;
    padding: clamp(110px, 14vw, 190px) var(--pad);
    gap: clamp(56px, 8vw, 130px);
}

.about-sticky-left {
    position: relative;
    top: auto;
    height: auto;
    padding: 0;
}

.about-scroll-right {
    display: block;
}

.about-panel,
.about-panel--bio,
.about-panel--tags {
    min-height: 0;
    padding: 0;
}

.about-panel--tags {
    margin-top: 54px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.about-bio:first-child {
    margin-top: 0;
}

.about-practice-label {
    display: block;
    margin-bottom: 20px;
    font-size: .56rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--accent);
}

.about-tags {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    counter-reset: practice;
}

.about-tag {
    counter-increment: practice;
    position: relative;
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: baseline;
    padding: 15px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    color: var(--mid);
    font-family: var(--display);
    font-size: clamp(1rem, 1.5vw, 1.35rem);
    font-weight: 700;
    letter-spacing: .01em;
    text-transform: none;
    pointer-events: none;
}

.about-tag::before {
    content: counter(practice, decimal-leading-zero);
    position: static;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    transform: none;
    font-family: var(--sans);
    font-size: .5rem;
    font-weight: 400;
    letter-spacing: .18em;
    color: var(--accent);
}

.about-tag:hover {
    color: var(--mid);
    border-color: var(--line);
}

@media (max-width: 760px) {
    #about-split {
        padding-top: 100px;
        padding-bottom: 110px;
        gap: 64px;
    }

    .about-tags {
        grid-template-columns: 1fr;
    }
}

/* Highlights move only when the visitor chooses to scroll. */
.loop-strip-outer {
    overflow: visible;
}

.loop-track-wrap {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding-bottom: 20px;
}

.loop-track-wrap::-webkit-scrollbar {
    display: none;
}

.loop-track-wrap::-webkit-scrollbar-thumb {
    background: var(--accent);
}

.loop-track {
    animation: none !important;
    transform: none !important;
    padding-right: var(--pad);
}

.hcard {
    scroll-snap-align: start;
}

.hero-typewriter i {
    display: inline-block;
    width: 1px;
    height: 1.05em;
    margin-left: 5px;
    vertical-align: -.13em;
    background: var(--accent);
    animation: typeCursor 1s steps(1, end) infinite;
}

@keyframes typeCursor {
    0%, 48% { opacity: 1; }
    49%, 100% { opacity: 0; }
}

@media (hover: none), (pointer: coarse) {
    .hero-lens-title {
        opacity: .8;
        -webkit-mask-image: radial-gradient(circle 30vw at 50% 50%, #000 0 42%, transparent 74%);
        mask-image: radial-gradient(circle 30vw at 50% 50%, #000 0 42%, transparent 74%);
        animation: lensDrift 7s ease-in-out infinite alternate;
    }
}

@keyframes lensDrift {
    from { background-position: 35% 50%; }
    to { background-position: 65% 50%; }
}

/* ============================================================
   2026 GALLERY EDITORIAL SYSTEM
   Warm mineral dark mode + archival paper light mode
============================================================ */
:root {
    --black: #101816;
    --white: #f4f0e8;
    --surface: #18231f;
    --surface-2: #22302b;
    --dim: rgba(244, 240, 232, .58);
    --mid: rgba(244, 240, 232, .78);
    --accent: #ef9d72;
    --accent-lo: rgba(239, 157, 114, .13);
    --line: rgba(244, 240, 232, .11);
    --glass: rgba(16, 24, 22, .82);
    --shadow: 0 24px 70px rgba(3, 10, 8, .22);
    --pad: clamp(24px, 5.2vw, 84px);
}

html {
    background: var(--black);
    color: var(--white);
    font-size: 16px;
}

body {
    min-height: 100vh;
    color: var(--white);
    background:
        radial-gradient(circle at 88% 4%, rgba(61, 103, 87, .2), transparent 30rem),
        radial-gradient(circle at 4% 55%, rgba(85, 53, 39, .1), transparent 32rem),
        var(--black);
    transition: color .45s ease, background-color .6s ease;
}

body,
body * {
    cursor: auto;
}

a,
button,
label,
input,
.thumb,
.archive-card {
    cursor: pointer;
}

p {
    text-wrap: pretty;
}

:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: 5px;
}

nav {
    height: 88px;
    border-bottom: 1px solid transparent;
    transition: background .45s ease, border-color .45s ease, backdrop-filter .45s ease;
}

nav.scrolled,
nav.menu-open {
    background: var(--glass);
    border-bottom-color: var(--line);
    backdrop-filter: blur(22px) saturate(130%);
    -webkit-backdrop-filter: blur(22px) saturate(130%);
}

.nav-left {
    flex-direction: row;
    align-items: center;
    gap: 22px;
}

.logo {
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .34em;
}

.theme-toggle {
    padding-left: 20px;
    border-left: 1px solid var(--line);
}

.theme-slider {
    border-radius: 999px;
    background: var(--surface-2);
    border-color: var(--line);
}

.theme-slider::before {
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--accent-lo);
}

nav ul {
    gap: clamp(20px, 3vw, 48px);
}

nav a:not(.logo) {
    letter-spacing: .14em;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle span {
    width: 16px;
    height: 1px;
    background: var(--white);
    transition: transform .4s var(--ease);
}

#intro {
    min-height: 760px;
    height: 106vh;
}

.intro-bg {
    background:
        radial-gradient(ellipse 58% 52% at 50% 35%, rgba(64, 105, 89, .34), transparent 70%),
        radial-gradient(circle at 50% 45%, rgba(239, 157, 114, .07), transparent 26rem),
        transparent;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 58%, rgba(0, 0, 0, .78) 72%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 58%, rgba(0, 0, 0, .78) 72%, transparent 100%);
}

#intro::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 28vh;
    min-height: 180px;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--black) 82%, transparent));
    opacity: .48;
}

.intro-bg::after {
    opacity: .1;
    mix-blend-mode: soft-light;
}

.intro-inner h1 {
    font-size: clamp(4rem, 11vw, 11rem);
    letter-spacing: .11em;
    text-shadow: 0 18px 70px rgba(0, 0, 0, .14);
}

.intro-sub {
    color: var(--mid);
    letter-spacing: .18em;
}

#about-split,
#creative-tech-feature,
#other-featured,
#contact {
    border-top: 0;
}

#about-split,
#creative-tech-feature,
#other-featured,
#contact {
    background: transparent;
}

.about-sticky-left::before {
    content: '';
    width: 46px;
    height: 46px;
    margin-bottom: 34px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    opacity: .45;
}

.about-bio {
    max-width: 570px;
    font-size: clamp(.98rem, 1.2vw, 1.12rem);
    line-height: 1.9;
    letter-spacing: .01em;
}

.about-tag {
    border-color: var(--line);
    border-radius: 999px;
    padding: 10px 18px;
}

.ct-desc,
.contact-bio,
.detail-description {
    line-height: 1.85;
    letter-spacing: .005em;
}

.collage-card,
.hcard,
.archive-card-media,
.related-thumb,
.gallery-main {
    border-radius: 3px;
}

.collage-card,
.archive-card,
.hcard,
.related-card {
    transition: transform .55s var(--ease), opacity .8s var(--ease);
}

.collage-card:hover,
.archive-card:hover,
.hcard:hover,
.related-card:hover {
    transform: translateY(-5px);
}

.gallery-nav {
    top: 88px;
    height: 62px;
    background: var(--glass);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(22px) saturate(130%);
    -webkit-backdrop-filter: blur(22px) saturate(130%);
}

.filter-btn {
    padding: 8px 14px;
    border-radius: 999px;
    transition: color .25s ease, background .25s ease;
}

.filter-btn:hover {
    color: var(--white);
    background: var(--surface-2);
}

.filter-btn.active {
    color: var(--black);
    background: var(--accent);
}

.filter-btn.active::after {
    display: none;
}

.archive-grid {
    gap: clamp(40px, 5vw, 78px) clamp(20px, 2.8vw, 44px);
    padding-top: clamp(46px, 6vw, 86px);
}

.archive-card-media {
    box-shadow: var(--shadow);
}

.archive-card-info {
    padding-top: 17px;
    border-top-color: var(--line);
}

.archive-card-category,
.archive-card-year {
    color: var(--dim);
}

.archive-card-title {
    margin-top: 8px;
    font-size: clamp(1.08rem, 1.45vw, 1.48rem);
}

.page-hero {
    padding-top: 190px;
    padding-bottom: 74px;
}

.page-hero::after {
    content: '';
    position: absolute;
    right: var(--pad);
    bottom: 28px;
    width: clamp(70px, 10vw, 150px);
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent));
}

.detail-main {
    max-width: 1320px;
    padding-top: 154px;
}

.detail-header,
.detail-body {
    border-color: var(--line);
}

.detail-title-block h1 {
    max-width: 1050px;
    font-size: clamp(2.8rem, 6vw, 7rem);
}

.detail-image,
.detail-video,
.gallery-main {
    background: var(--surface);
    box-shadow: var(--shadow);
}

.detail-body {
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, .6fr);
    gap: clamp(48px, 8vw, 110px);
}

.detail-description {
    max-width: 720px;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
}

.detail-experience {
    border-radius: 999px;
    padding: 17px 28px;
}

#contact {
    background: linear-gradient(135deg, rgba(239, 157, 114, .055), transparent 45%);
}

.contact-email {
    text-decoration-thickness: 1px;
    text-underline-offset: 8px;
}

/* Archival paper mode */
body.light {
    --black: #f2eee6;
    --white: #1b2723;
    --surface: #e7e1d7;
    --surface-2: #dcd5ca;
    --dim: rgba(27, 39, 35, .58);
    --mid: rgba(27, 39, 35, .78);
    --accent: #a94f34;
    --accent-lo: rgba(169, 79, 52, .11);
    --line: rgba(27, 39, 35, .13);
    --glass: rgba(242, 238, 230, .86);
    --shadow: 0 24px 70px rgba(50, 42, 32, .1);
    color: var(--white);
    background:
        radial-gradient(circle at 90% 0%, rgba(190, 162, 120, .18), transparent 34rem),
        radial-gradient(circle at 0% 60%, rgba(76, 117, 99, .08), transparent 32rem),
        var(--black);
}

body.light .intro-bg {
    background:
        radial-gradient(ellipse 58% 52% at 50% 35%, rgba(190, 162, 120, .25), transparent 70%),
        radial-gradient(circle at 50% 45%, rgba(169, 79, 52, .055), transparent 26rem),
        transparent;
}

body.light nav.scrolled,
body.light nav.menu-open,
body.light .gallery-nav {
    background: var(--glass);
}

body.light .loop-fade-left {
    background: linear-gradient(to right, var(--black), transparent);
}

body.light .loop-fade-right {
    background: linear-gradient(to left, var(--black), transparent);
}

body.light .project-vignette,
body.light .collage-overlay {
    background: linear-gradient(to top, rgba(15, 23, 20, .82), transparent 60%);
}

body.light .collage-title,
body.light .collage-year,
body.light .hcard-title {
    color: var(--white);
}

@media (max-width: 760px) {
    nav {
        height: 74px;
    }

    .nav-left {
        gap: 12px;
    }

    .logo {
        letter-spacing: .25em;
    }

    .theme-toggle {
        padding-left: 12px;
    }

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

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

    nav ul {
        display: flex;
        position: fixed;
        inset: 0;
        z-index: 1;
        padding: 120px var(--pad) 50px;
        flex-direction: column;
        justify-content: center;
        gap: 0;
        background: var(--black);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity .35s ease, visibility .35s ease, transform .5s var(--ease);
    }

    nav.menu-open ul {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    nav ul li {
        border-bottom: 1px solid var(--line);
    }

    nav a:not(.logo) {
        display: block;
        padding: 20px 0;
        font-family: var(--display);
        font-size: clamp(1.45rem, 6vw, 2.4rem);
        letter-spacing: .01em;
        text-transform: none;
        color: var(--white);
    }

    nav a:not(.logo)::after {
        display: none;
    }

    nav.menu-open .menu-toggle span:first-child {
        transform: translateY(3.5px) rotate(45deg);
    }

    nav.menu-open .menu-toggle span:last-child {
        transform: translateY(-3.5px) rotate(-45deg);
    }

    body.menu-is-open {
        overflow: hidden;
    }

    .gallery-nav {
        top: 74px;
        gap: 10px;
        overflow: hidden;
    }

    .gallery-nav-label,
    .gallery-count-label {
        display: none;
    }

    .filter-btns {
        width: 100%;
        overflow-x: auto;
    }

    .page-hero {
        padding-top: 132px;
    }

    .about-sticky-left::before {
        display: none;
    }

    .detail-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    #intro {
        min-height: 640px;
    }

    .intro-inner h1 {
        font-size: clamp(3.1rem, 17vw, 5.2rem);
        letter-spacing: .06em;
    }

    .intro-sub br {
        display: none;
    }

    .hero-typewriter {
        font-size: clamp(.62rem, 2.8vw, .72rem);
        letter-spacing: .045em;
    }

    .archive-grid {
        padding-top: 42px;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .reveal,
    .intro-inner h1 .char {
        opacity: 1;
        transform: none;
    }
}

/* Continuous-page finish: no visual section dividers */
#contact {
    background: transparent;
}

.page-hero::after {
    display: none;
}

.gallery-nav {
    border-top: 0;
    border-bottom: 0;
}

/* Authored details only—no decorative iconography. */
.about-sticky-left::before {
    display: none;
    content: none;
}

/* Clear navigation and a shared editorial rhythm across the portfolio. */
#mainNav { background: var(--glass); backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); }
#mainNav .nav-inner { background: none; }
#mainNav ul { gap: 8px; }
#mainNav ul a { display: block; padding: 12px 20px; border-radius: 30px; font-size: .7rem; letter-spacing: .08em; }
#mainNav ul a.active { color: var(--accent); background: var(--accent-lo); }
#mainNav ul a::after { display: none; }
#mainNav ul a:hover { background: var(--surface-2); }
.hero-context { position: absolute; top: 128px; left: var(--pad); right: var(--pad); display: flex; justify-content: space-between; gap: 20px; color: var(--dim); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; }
.hero-explore { display: inline-flex; gap: 36px; align-items: center; padding: 16px 24px; margin-top: 35px; border: 1px solid var(--line); border-radius: 40px; font-size: .72rem; transition: background .25s, color .25s; }
.hero-explore:hover { color: var(--black); background: var(--accent); }
.latest-work { padding: 36px var(--pad) 100px; }
.latest-caption { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.kocep-feature { display: grid; grid-template-columns: 1.2fr 1fr; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.kocep-art { padding: clamp(16px, 2vw, 32px); background: #fcf6f4; display: flex; align-items: center; justify-content: center; }
.kocep-art img { width: 100%; height: auto; box-shadow: 0 12px 36px #37343e15; }
.kocep-feature-copy { padding: clamp(28px, 4vw, 64px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; background: var(--surface); }
.kocep-feature-copy h2 { margin: 24px 0; font: 400 clamp(2rem, 3.5vw, 4rem)/1.12 var(--display); letter-spacing: -.03em; }
.kocep-feature-copy h2 em { color: var(--accent); }
.kocep-feature-copy p { color: var(--mid); font-size: .85rem; line-height: 1.9; max-width: 380px; }
.feature-cta { display: flex; gap: 64px; padding-bottom: 12px; border-bottom: 1px solid var(--accent); margin-top: 36px; font-size: .72rem; }
.feature-cta span { transition: transform .3s; }
.kocep-feature:hover .feature-cta span { transform: translate(4px, -4px); }
.archive-heading h1 { font-size: clamp(3rem, 6vw, 6.5rem); }
.archive-intro { max-width: 510px; font-size: .88rem; line-height: 1.9; color: var(--mid); margin-top: 28px; }
.category-nav { background: var(--glass); backdrop-filter: blur(16px); border-block: 1px solid var(--line); gap: 16px; }
.category-nav .filter-btns { gap: 8px; flex-wrap: wrap; }
.category-nav .filter-btn { white-space: normal; border: 1px solid var(--line); padding: 12px 18px; border-radius: 24px; letter-spacing: .02em; line-height: 1.4; }
.category-nav .filter-btn.active { background: var(--accent); border-color: var(--accent); color: var(--black); }
.about-page { padding-top: 100px; }
.about-page #about-split { scroll-margin-top: 110px; }
@media (max-width: 760px) {
  #mainNav { height: 112px; }
  #mainNav .nav-inner { flex-wrap: wrap; gap: 10px; }
  #mainNav .nav-left { width: 100%; justify-content: space-between; }
  #mainNav .menu-toggle { display: none; }
  #mainNav ul { position: static; inset: auto; width: 100%; padding: 0; flex-direction: row; justify-content: space-between; opacity: 1; visibility: visible; transform: none; background: transparent; }
  #mainNav ul li { border: 0; }
  #mainNav ul a { font: 500 .68rem var(--sans); padding: 10px 16px; text-transform: uppercase; color: var(--white); }
  .hero-context { top: 142px; font-size: .55rem; }
  .hero-context span:last-child { text-align: right; }
  .kocep-feature { grid-template-columns: 1fr; }
  .kocep-art { padding: 16px; }
  .latest-caption { flex-wrap: wrap; }
  .latest-work { padding-bottom: 50px; }
  .category-nav { top: 112px; padding-block: 14px; position: sticky; }
  .category-nav .filter-btns { overflow: visible; display: grid; grid-template-columns: 1fr 1fr; }
  .category-nav .filter-btn { font-size: .62rem; padding: 10px 12px; }
  .page-hero { padding-top: 162px; }
  .about-page { padding-top: 132px; }
  .detail-main { padding-top: 150px; }
}
.theme-switch input { position: absolute; inset: 0; width: 100%; height: 100%; }
.theme-switch input:focus-visible + .theme-slider { outline: 2px solid var(--accent); outline-offset: 5px; }
.category-nav { height: auto; min-height: 64px; padding-block: 12px; top: 88px; overflow: visible; }
@media (max-width: 760px) {
  .gallery-nav { top: 112px; }
  .category-nav { top: 112px; min-height: 116px; }
}

.resume-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.resume-actions a { display: inline-flex; align-items: center; gap: 18px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 28px; font-size: .72rem; }
.resume-actions a:first-child { background: var(--accent); color: var(--black); border-color: var(--accent); }
.resume-actions a:hover { box-shadow: 0 0 0 2px var(--accent-lo); }
.resume-section { padding: 40px var(--pad) 100px; display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 7vw, 110px); }
.resume-heading h2 { margin-top: 22px; font: 400 clamp(2rem, 3.5vw, 3.6rem)/1.16 var(--display); }
.resume-heading h2 em { color: var(--accent); }
.resume-content h3 { margin: 38px 0 22px; font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: .16em; color: var(--accent); }
.resume-content h3:first-child { margin-top: 0; }
.resume-entry { padding: 22px 0; border-top: 1px solid var(--line); }
.resume-date { font-size: .68rem; color: var(--dim); }
.resume-entry h4 { font-size: .95rem; font-weight: 500; line-height: 1.5; margin: 10px 0; }
.resume-entry p, .resume-skills { color: var(--mid); font-size: .82rem; line-height: 1.9; }
.resume-skills + .resume-skills { margin-top: 16px; }
@media (max-width: 760px) { .resume-section { grid-template-columns: 1fr; padding-bottom: 50px; } }

/* Portfolio interface: neutral surfaces, typographic controls, image-led work. */
:root {
    --black: #141516;
    --white: #f0f0ed;
    --surface: #1c1d1f;
    --surface-2: #282a2d;
    --dim: #a3a6aa;
    --mid: #c9cbce;
    --accent: #aebeff;
    --accent-lo: rgba(174,190,255,.08);
    --line: #383a3e;
    --glass: rgba(20,21,22,.97);
    --shadow: none;
}
body.light {
    --black: #f7f7f2;
    --white: #202124;
    --surface: #eeeee8;
    --surface-2: #e3e4df;
    --dim: #62656b;
    --mid: #45484d;
    --accent: #304bb0;
    --accent-lo: rgba(48,75,176,.06);
    --line: #d3d4ce;
    --glass: rgba(247,247,242,.97);
    --shadow: none;
    color-scheme: light;
}
body { background: var(--black); color-scheme: dark; }
body.light { background: var(--black); }
body .intro-bg, body.light .intro-bg { background: none; mask-image: none; -webkit-mask-image: none; }
#intro::after, .intro-bg::after { display: none; }
#intro { height: 94svh; min-height: 650px; }
.intro-inner h1 { text-shadow: none; }
#mainNav { backdrop-filter: none; }
#mainNav ul { gap: 32px; }
#mainNav ul a { border-radius: 0; padding: 13px 0; border-bottom: 1px solid transparent; font-size: .76rem; letter-spacing: .025em; }
#mainNav ul a.active, #mainNav ul a:hover { color: var(--white); background: transparent; border-bottom-color: var(--white); }
.theme-toggle { border-left: 1px solid var(--line); }
.theme-button { border: 0; border-radius: 0; background: transparent; color: var(--mid); font: 400 .7rem var(--sans); letter-spacing: .02em; min-height: 44px; padding: 8px 0; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; }
.theme-button:hover { color: var(--white); text-decoration-color: currentColor; }
.hero-explore, .hero-explore:hover { border: 0; border-bottom: 1px solid var(--white); border-radius: 0; padding: 12px 0; color: var(--white); background: transparent; font-size: .76rem; }
.hero-explore:hover span { transform: translate(3px,-3px); }
.hero-explore span { transition: transform .2s; }
.hero-footnote { position: absolute; bottom: 30px; inset-inline: var(--pad); display: flex; justify-content: space-between; gap: 24px; font: 400 .65rem/1.6 var(--sans); color: var(--dim); }
.hero-footnote a { color: var(--white); }
.hero-context, .section-label, .about-eyebrow, .page-hero-sub, .gallery-count-label, .archive-card-category, .archive-card-year, .resume-date { font-family: var(--mono); letter-spacing: .06em; }
.section-label, .about-eyebrow { color: var(--dim); }
.latest-work { padding-top: 30px; }
.latest-caption { border-top: 1px solid var(--line); padding-top: 20px; }
.kocep-feature { grid-template-columns: 1.65fr 1fr; gap: clamp(28px, 5vw, 76px); border: 0; border-radius: 0; overflow: visible; }
.kocep-art { padding: 0; background: transparent; }
.kocep-art img { box-shadow: none; }
.kocep-feature-copy { padding: 24px 0; background: transparent; }
.kocep-feature-copy h2 { font: 500 clamp(2.4rem,5vw,5rem)/1.05 var(--sans); letter-spacing: -.05em; }
.feature-cta { border-bottom-color: var(--white); }
.ct-header h2, .hscroll-header h2, .contact-left h2, .page-hero h1, .resume-heading h2, .about-sticky-title { font-family: var(--sans); font-weight: 500; letter-spacing: -.05em; line-height: 1.1; }
.ct-header h2 em, .hscroll-header h2 em, .contact-left h2 em, .page-hero h1 em, .resume-heading h2 em, .about-sticky-title em { font-style: normal; color: inherit; }
.archive-heading { padding-bottom: 50px; }
.archive-heading h1 { font-size: clamp(3.5rem,7vw,7rem); }
.archive-intro { max-width: 620px; }
.gallery-nav, body.light .gallery-nav { background: var(--black); backdrop-filter: none; }
.filter-btn, .category-nav .filter-btn { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--dim); padding: 14px 0; font-size: .7rem; text-transform: none; letter-spacing: 0; box-shadow: none; }
.filter-btn.active, .category-nav .filter-btn.active, .filter-btn:hover, .category-nav .filter-btn:hover { color: var(--white); background: transparent; border-bottom-color: var(--white); }
.filter-btns, .category-nav .filter-btns { gap: clamp(18px, 3vw, 40px); }
.category-nav { padding-block: 0; border-block: 1px solid var(--line); }
.archive-card-media, .collage-card, .hcard-img, .gallery-main { border-radius: 0; box-shadow: none; }
.archive-card:hover .archive-card-media img { transform: scale(1.025); }
.archive-card-title { font-family: var(--sans); font-weight: 500; letter-spacing: -.025em; }
.about-tag { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 12px 0; }
.about-tags { column-gap: 28px; }
.resume-actions { gap: 24px; }
.resume-actions a, .resume-actions a:first-child, .resume-actions a:hover { background: transparent; color: var(--white); border: 0; border-bottom: 1px solid var(--white); border-radius: 0; padding: 12px 0; box-shadow: none; }
.detail-experience, .detail-experience:hover { border-radius: 0; background: transparent; color: var(--white); border: 0; border-bottom: 1px solid var(--white); padding: 16px 0; box-shadow: none; }
.gal-nav { border-radius: 0; }
.resume-content h3, .resume-heading h2 em { color: var(--white); }
@media (max-width: 760px) {
    #intro { height: 90svh; min-height: 620px; }
    #mainNav .nav-inner { gap: 0; }
    #mainNav ul { gap: 24px; }
    #mainNav ul a { padding: 10px 0; font-size: .72rem; }
    .theme-toggle { padding-left: 18px; }
    .theme-button { min-height: 36px; font-size: .64rem; }
    .hero-context { top: 142px; font-size: .58rem; letter-spacing: .02em; }
    .hero-footnote { bottom: 24px; justify-content: flex-end; }
    .hover-instruction { display: none; }
    .kocep-feature { grid-template-columns: 1fr; gap: 8px; }
    .kocep-art { padding: 0; }
    .kocep-feature-copy { padding-top: 20px; }
    .category-nav { min-height: 108px; }
    .category-nav .filter-btns { gap: 0 20px; }
    .category-nav .filter-btn { padding: 12px 0; text-align: left; font-size: .67rem; }
    .archive-heading { padding-bottom: 36px; }
}
.hero-lens-title { transform: none; }
.hero-lens-title .char { transition: none !important; }
.hcard, .related-thumb { border-radius: 0; }
.hero-lens-title .char { transform: none !important; }

/* Content links without decorative rules or arrows. */
.resume-actions a, .resume-actions a:first-child, .resume-actions a:hover,
.detail-experience, .detail-experience:hover { border-bottom: 0; }
.detail-experience::after, .detail-link::after { display: none; }
.ct-link, .detail-link, .detail-experience { letter-spacing: .025em; text-transform: none; font-size: .78rem; }
.ct-link:hover, .detail-link:hover { color: var(--mid); }
.kocep-feature:hover h2 { color: var(--mid); }
.loop-track-wrap:focus-visible { outline: 1px solid var(--dim); outline-offset: 4px; }

/* Compact proportions and navigation integrated with the page. */
#mainNav, #mainNav.scrolled, body.light #mainNav.scrolled {
    height: 64px;
    background: var(--black);
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
#mainNav .logo { font-size: .72rem; letter-spacing: .22em; }
#mainNav .nav-left { gap: 24px; }
#mainNav .theme-toggle { border: 0; padding: 0; }
#mainNav .theme-button { font-size: .66rem; text-decoration: none; color: var(--dim); }
#mainNav ul { gap: 28px; }
#mainNav ul a, #mainNav ul a.active, #mainNav ul a:hover {
    padding: 12px 0;
    border: 0;
    background: transparent;
    font-size: .73rem;
    letter-spacing: 0;
    text-transform: none;
}
#mainNav ul a { color: var(--dim); }
#mainNav ul a.active { color: var(--white); font-weight: 600; }
#mainNav ul a:hover { color: var(--white); }
#intro { height: 78svh; min-height: 540px; }
.intro-inner h1 { font-size: clamp(3rem, 8vw, 7rem); letter-spacing: .075em; }
.hero-context { top: 100px; }
.hero-typewriter { margin-top: 24px; font-size: .76rem; }
.hero-footnote { bottom: 24px; }
.page-hero { padding: 124px var(--pad) 30px; }
.page-hero h1, .archive-heading h1 { font-size: clamp(2rem, 3.8vw, 3.5rem); line-height: 1.15; letter-spacing: -.035em; }
.archive-intro { margin-top: 18px; max-width: 580px; font-size: .84rem; }
.ct-header-left h2, .hscroll-header h2, .contact-left h2,
.about-sticky-title, .resume-heading h2 { font-size: clamp(1.7rem, 2.7vw, 2.6rem); line-height: 1.18; letter-spacing: -.035em; font-weight: 500; }
.kocep-feature-copy h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); margin: 16px 0; }
.detail-title-block h1 { font-size: clamp(2rem, 3.8vw, 3.5rem); line-height: 1.15; }
.detail-main { padding-top: 104px; }
.about-page { padding-top: 64px; }
.about-page #about-split { padding-top: 64px; padding-bottom: 72px; }
#creative-tech-feature { padding-top: 56px; }
.ct-header { padding-bottom: 32px; }
.latest-work { padding-bottom: 56px; }
.gallery-nav, .category-nav, body.light .gallery-nav {
    position: relative;
    top: auto;
    height: auto;
    min-height: 44px;
    border: 0;
    padding-block: 4px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.filter-btn, .filter-btn.active, .filter-btn:hover,
.category-nav .filter-btn, .category-nav .filter-btn.active, .category-nav .filter-btn:hover {
    border: 0;
    padding: 10px 0;
}
.filter-btn.active, .category-nav .filter-btn.active { font-weight: 600; }
.archive-grid { padding-top: 28px; }
@media (max-width: 760px) {
    #mainNav, #mainNav.scrolled, body.light #mainNav.scrolled { height: 84px; }
    #mainNav .nav-inner { gap: 0; }
    #mainNav .logo { font-size: .68rem; }
    #mainNav .theme-button { min-height: 30px; }
    #mainNav ul a, #mainNav ul a.active, #mainNav ul a:hover { padding: 9px 0; font-size: .7rem; }
    #intro { height: 72svh; min-height: 480px; }
    .intro-inner h1 { font-size: clamp(2.5rem, 11.5vw, 4.6rem); letter-spacing: .045em; }
    .hero-context { top: 112px; font-size: .55rem; }
    .hero-typewriter { font-size: .66rem; }
    .page-hero { padding-top: 118px; padding-bottom: 22px; }
    .category-nav { min-height: 80px; }
    .category-nav .filter-btns { gap: 0 20px; }
    .category-nav .filter-btn { font-size: .65rem; }
    .archive-grid { padding-top: 24px; }
    .about-page { padding-top: 84px; }
    .about-page #about-split { padding-top: 34px; padding-bottom: 48px; }
    .detail-main { padding-top: 112px; }
}

/* Header proportions follow scroll, with a modest change in text size. */
#mainNav, #mainNav.scrolled, body.light #mainNav.scrolled {
    --nav-progress: 0;
    height: calc(88px - 28px * var(--nav-progress));
    transition: background-color .2s;
}
#mainNav .nav-left { gap: calc(28px - 4px * var(--nav-progress)); }
#mainNav .logo {
    font-size: calc(.88rem - .08rem * var(--nav-progress));
    letter-spacing: .18em;
}
#mainNav ul { gap: calc(34px - 6px * var(--nav-progress)); }
#mainNav ul a, #mainNav ul a.active, #mainNav ul a:hover {
    font-size: calc(.9rem - .1rem * var(--nav-progress));
    line-height: 1.4;
    padding: 12px 0;
}
#mainNav .theme-button { font-size: calc(.78rem - .04rem * var(--nav-progress)); }
@media (max-width: 760px) {
    #mainNav, #mainNav.scrolled, body.light #mainNav.scrolled {
        height: calc(100px - 18px * var(--nav-progress));
    }
    #mainNav .logo { font-size: calc(.8rem - .04rem * var(--nav-progress)); }
    #mainNav .theme-button { font-size: .72rem; }
    #mainNav ul a, #mainNav ul a.active, #mainNav ul a:hover {
        font-size: calc(.82rem - .04rem * var(--nav-progress));
        padding: 8px 0;
    }
}

/* Home is a continuous canvas, with one spacing rhythm between bodies of work. */
.home-page {
    --home-gap: clamp(88px, 9vw, 144px);
    --home-heading-gap: clamp(36px, 4vw, 60px);
    --home-card-gap: clamp(16px, 2vw, 30px);
    --pad: clamp(24px, 6vw, 104px);
}
.home-page #intro {
    height: auto;
    min-height: 100svh;
    padding: 120px var(--pad) 36px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: clamp(36px, 6svh, 72px);
}
.home-page .intro-bg { pointer-events: none; }
.home-page .home-next {
    position: relative;
    z-index: 2;
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    min-height: 44px;
    font-size: .72rem;
    color: var(--mid);
}
.home-page .home-next:hover { color: var(--white); }
.home-page .home-next:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.home-page .intro-inner { position: relative; top: auto; align-self: center; min-width: 0; width: 100%; padding: 0; transform: none; opacity: 1; }
.home-page .hero-context { position: static; line-height: 1.7; }
.home-page .hero-typewriter { margin-top: 32px; min-height: 3.8em; }
.home-page .latest-work { padding: clamp(32px, 5svh, 64px) var(--pad) 0; scroll-margin-top: 100px; }
.home-page .latest-caption { border: 0; padding: 0; margin-bottom: 32px; }
.home-page #creative-tech-feature, .home-page #other-featured { padding-top: var(--home-gap); }
.home-page .ct-header, .home-page .hscroll-header { padding-bottom: var(--home-heading-gap); }
.home-page .section-label { margin-bottom: 20px; }
.home-page .latest-caption .section-label { margin-bottom: 0; }
.home-page .ct-collage, .home-page .loop-track { gap: var(--home-card-gap); }
.home-page .ct-desc { max-width: 460px; }
.home-page .kocep-feature { column-gap: clamp(40px, 6vw, 96px); }
.home-page .kocep-feature-copy { padding-block: 32px; }
.home-page .kocep-feature-copy .section-label { margin-bottom: 0; }
.home-page .kocep-feature-copy h2 { margin-block: 20px 24px; }
.home-page .ct-header { align-items: end; }
.home-page #contact { padding: var(--home-gap) var(--pad) clamp(80px, 8vw, 128px); background: transparent; }
.home-page #contact::before, .home-page #contact::after { display: none; }
.home-page .hcard, .home-page .hcard-info { background: transparent; border: 0; box-shadow: none; }
.home-page .hcard-info { padding: 22px 0 0; gap: 10px; }
.home-page .hcard-title { font-family: var(--sans); font-size: .95rem; font-weight: 500; line-height: 1.4; }
.home-page .hcard-cat, .home-page .contact-bio-label { color: var(--dim); }
.home-page .loop-fade-left, .home-page .loop-fade-right { display: none; }
.home-page .loop-track-wrap { padding-bottom: 0; }
.home-page .contact-email { text-transform: none; letter-spacing: .025em; }
.home-page .contact-email::after { display: none; }
.home-page .reveal, .home-page .collage-card.reveal { opacity: 1; transform: none; }
@media (max-width: 760px) {
    .home-page { --home-gap: 80px; --home-heading-gap: 32px; --home-card-gap: 16px; }
    .home-page #intro { min-height: 100svh; padding: 128px var(--pad) 24px; gap: 32px; }
    .home-page .hero-context { gap: 24px; }
    .home-page .hero-context span:first-child { max-width: 190px; }
    .home-page .kocep-feature { row-gap: 28px; }
    .home-page .kocep-feature-copy { padding-top: 0; }
    .home-page .ct-header { gap: 28px; }
    .home-page .latest-caption { margin-bottom: 28px; }
    .home-page .kocep-feature-copy { padding-bottom: 0; }
    .home-page #contact { padding-bottom: 72px; }
    .home-page .contact-grid { gap: 44px; }
}

/* Keep work readable between phone, tablet, and wide desktop sizes. */
.home-page .kocep-feature > *, .home-page .ct-header > *, .home-page .contact-grid > * { min-width: 0; }
.home-page .contact-email { overflow-wrap: anywhere; }
.home-page .loop-track { padding-left: var(--pad); }
.home-page .hcard { flex-basis: clamp(240px, 28vw, 420px); }
@media (min-width: 761px) and (max-width: 1100px) {
    .home-page .kocep-feature { grid-template-columns: 1.2fr 1fr; gap: 32px; }
    .home-page .ct-collage { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: clamp(180px, 24vw, 260px); }
    .home-page .collage-card[data-slot] { display: block; grid-column: auto; grid-row: auto; }
}
@media (max-width: 760px) {
    .home-page .ct-collage { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: clamp(160px, 36vw, 260px); }
    .home-page .collage-card[data-slot] { display: block; grid-column: auto; grid-row: auto; }
    .home-page .collage-card[data-slot="1"] { grid-column: 1 / -1; }
    .home-page .hcard { flex-basis: min(80vw, 360px); }
}
@media (max-width: 380px) {
    .home-page .intro-inner h1 { font-size: 10.5vw; }
    .home-page .hero-context { font-size: .5rem; gap: 16px; }
}

/* The project stays centered; browsing opens above the page without reflow. */
.project-layout { max-width: 1320px; margin: 0 auto; padding: 120px var(--pad) 100px; }
.project-layout .detail-main { min-width: 0; width: 100%; padding: 0; margin: 0; }
.project-layout .detail-header { position: relative; z-index: 20; padding-right: 0; min-height: 48px; flex-wrap: wrap; }
.work-browser { position: relative; margin-left: auto; flex: 0 0 172px; }
.work-browser details { position: relative; }
.work-browser-content {
    position: absolute;
    top: 100%;
    right: 0;
    width: min(340px, calc(100vw - 2 * var(--pad)));
    max-height: calc(100svh - 180px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--black);
    border: 1px solid var(--line);
    padding: 24px;
    box-shadow: 0 16px 48px rgb(0 0 0 / .12);
}
.work-browser summary { display: flex; align-items: center; justify-content: space-between; list-style: none; padding: 12px 0; background: transparent; font-size: .8rem; font-weight: 500; letter-spacing: -.02em; cursor: pointer; }
.work-browser summary::-webkit-details-marker { display: none; }
.work-browser summary::after { content: '+'; font-size: 1.2rem; font-weight: 300; color: var(--dim); }
.work-browser details[open] summary::after { content: '−'; }

.work-categories { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.work-categories button { position: relative; border: 0; background: transparent; color: var(--dim); font: 400 .72rem/1.5 var(--sans); text-align: left; padding: 11px 0 11px 16px; min-height: 44px; cursor: pointer; transition: color .2s; }
.work-categories button::before { content: ''; position: absolute; left: 0; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0; transform: translateY(-50%); }
.work-categories button[aria-pressed="true"] { color: var(--white); font-weight: 500; }
.work-categories button[aria-pressed="true"]::before { opacity: 1; }
.work-categories button:hover { color: var(--white); }
#work-count { margin: 24px 0 12px; font: .6rem/1.6 var(--mono); color: var(--dim); letter-spacing: .06em; }
#work-list { list-style: none; max-height: max(180px, calc(100svh - 480px)); overflow-y: auto; overscroll-behavior: contain; padding: 2px 6px 2px 2px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
#work-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; min-height: 48px; padding: 14px 0; font-size: .74rem; line-height: 1.65; color: var(--dim); transition: color .2s; }
#work-list a span { overflow-wrap: anywhere; }
#work-list small { flex-shrink: 0; color: var(--dim); font: .58rem/1.6 var(--mono); }
#work-list a:hover { color: var(--white); }
#work-list a:hover span { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--line); }
#work-list a[aria-current="page"] { color: var(--white); font-weight: 500; }
#work-list a[aria-current="page"] span::after { content: 'Viewing'; display: block; margin-top: 4px; color: var(--dim); font: .56rem/1.5 var(--sans); }
.work-index-link { display: block; border-top: 1px solid var(--line); margin-top: 20px; padding: 20px 0 12px; font-size: .68rem; color: var(--dim); }
.work-index-link:hover { color: var(--white); }
.work-browser :is(a, button, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 760px) {
    .project-layout { padding-top: 128px; }
    .project-layout .detail-header { gap: 12px 20px; }
    .project-layout .detail-breadcrumb { flex-basis: 100%; order: 3; }
    .project-layout .detail-header { padding-right: 0; }
    .work-browser-content { max-height: calc(100svh - 172px); }
    #work-list { max-height: 280px; }
}

/* Angular display lettering, with quieter text for reading and controls. */
.intro-inner h1 { font-family: var(--display); font-weight: 600; letter-spacing: .06em; }
#mainNav .logo { font-family: var(--display); font-weight: 600; letter-spacing: .16em; }
.ct-header h2, .hscroll-header h2, .contact-left h2, .page-hero h1,
.resume-heading h2, .about-sticky-title, .detail-title-block h1,
.kocep-feature-copy h2 {
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: -.015em;
    font-style: normal;
}
.archive-card-title, .home-page .hcard-title, .related-title {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: .01em;
}
h1 em, h2 em, .about-closing-text em { font-style: normal; }

/* Project detail: oversized type, an image stage, and a structured colophon. */
.project-detail-page .detail-header { margin-bottom: clamp(36px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.project-detail-page .detail-breadcrumb { font-family: var(--mono); font-size: .6rem; letter-spacing: .04em; color: var(--dim); }
.project-detail-page .detail-title-block { grid-template-columns: minmax(0, 1fr) auto; gap: 32px; margin-bottom: clamp(32px, 5vw, 64px); }
.project-detail-page .detail-title-block h1 { font-size: clamp(3rem, 7vw, 7rem); line-height: .98; letter-spacing: -.025em; overflow-wrap: anywhere; }
.project-detail-page .detail-meta { border-left: 1px solid var(--line); padding: 8px 0 8px 24px; align-items: flex-start; gap: 14px; max-width: 220px; }
.project-detail-page .detail-year { font: 500 2.4rem/1 var(--display); color: var(--white); }
.project-detail-page .detail-cat-label { font-family: var(--mono); font-size: .58rem; line-height: 1.7; letter-spacing: .03em; }
.project-detail-page .detail-media { margin-bottom: 0; }
.project-detail-page .gallery-main { background: transparent; border: 0; margin: 0; aspect-ratio: 16/10; max-height: 78svh; }
.project-detail-page .gallery-main img { padding: 0; }
.gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; }
.gallery-label { font: .62rem var(--mono); color: var(--dim); }
.gallery-controls { display: flex; align-items: center; gap: 8px; }
.project-detail-page .gal-nav { position: static; transform: none; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; color: var(--white); }
.project-detail-page .gal-nav:hover { background: var(--surface); border-color: var(--dim); }
.project-detail-page .gal-counter { position: static; min-width: 56px; text-align: right; font: .62rem var(--mono); color: var(--dim); }
.project-detail-page .gallery-thumbs { gap: 12px; padding: 4px 2px 16px; }
.project-detail-page .gallery-thumbs .thumb { width: 96px; height: 64px; opacity: .6; }
.project-detail-page .gallery-thumbs .thumb.active { opacity: 1; outline: 0; border-color: transparent; box-shadow: 0 3px 0 -1px var(--white); }
.project-detail-page :is(.gal-nav, .thumb):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.project-detail-page .detail-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(32px, 6vw, 96px); margin: clamp(48px, 7vw, 100px) 0; padding: clamp(32px, 5vw, 64px) 0; border-color: var(--line); }
.detail-overview-heading h2 { font: 600 clamp(1.6rem, 3vw, 2.4rem)/1.15 var(--display); }
.project-detail-page .detail-description { font-size: 1rem; line-height: 1.9; font-weight: 400; letter-spacing: 0; max-width: 65ch; }
.project-detail-page .detail-medium { margin-top: 28px; color: var(--dim); font: .68rem/1.9 var(--mono); }
.project-detail-page .detail-experience { margin: 28px 0 0; padding: 12px 18px; border: 1px solid var(--line); font-size: .75rem; background: transparent; color: var(--white); }
.project-detail-page .detail-experience:hover { background: var(--surface); border-color: var(--dim); }
.detail-related-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.project-detail-page .related-heading { font: 600 clamp(1.7rem, 3vw, 2.6rem)/1.2 var(--display); letter-spacing: -.01em; text-transform: none; color: var(--white); margin: 0; }
.detail-related-heading .section-label { margin: 0; }
.project-detail-page .related-grid { gap: 24px; }
.project-detail-page .related-thumb img { opacity: 1; filter: none; }
@media (max-width: 760px) {
    .project-detail-page .detail-title-block { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .project-detail-page .detail-meta { border-left: 0; padding: 0; flex-direction: row; align-items: baseline; max-width: none; gap: 20px; }
    .project-detail-page .detail-year { font-size: 1.6rem; }
    .project-detail-page .detail-body { grid-template-columns: minmax(0, 1fr); }
    .detail-related-heading { flex-direction: column; gap: 12px; }
    .project-detail-page .related-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .project-detail-page .gallery-main { aspect-ratio: 4/3; }
}

/* Quiet edge navigation and an immersive, accessible image viewer. */
.gallery-edge { position: absolute; top: 0; bottom: 0; width: 20%; border: 0; background: transparent; display: flex; align-items: center; padding: 20px; z-index: 2; }
.gallery-edge-prev { left: 0; justify-content: flex-start; }
.gallery-edge-next { right: 0; justify-content: flex-end; }
.gallery-edge span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgb(20 21 22 / .48); color: #fff; border: 0; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 2px 14px rgb(0 0 0 / .08); opacity: 0; transition: opacity 100ms ease-out; font-size: 1.25rem; font-weight: 300; }
.gallery-edge:hover span { opacity: .75; transition-duration: 180ms; }
.gallery-edge:focus-visible span { opacity: 1; outline: 2px solid var(--accent); outline-offset: 3px; }
#galleryMain { touch-action: pan-y pinch-zoom; }
.gallery-expand, .gallery-close { border: 0; background: transparent; color: var(--mid); font: .72rem var(--sans); padding: 12px 0; min-height: 44px; cursor: pointer; }
.gallery-expand:hover, .gallery-close:hover { color: var(--white); }
.gallery-fullscreen { width: 100%; max-width: none; height: 100%; max-height: none; border: 0; padding: 64px clamp(16px, 3vw, 48px) 20px; background: var(--black); color: var(--white); }
.gallery-fullscreen::backdrop { background: var(--black); }
.gallery-close { position: absolute; right: 24px; top: 12px; }
.gallery-fullscreen .gallery-viewer { height: 100%; display: flex; flex-direction: column; }
.project-detail-page .gallery-fullscreen .gallery-main { flex: 1; min-height: 0; max-height: none; aspect-ratio: auto; border: 0; background: transparent; }
.project-detail-page .gallery-fullscreen .gallery-main img { padding: 0; }
.gallery-fullscreen .gallery-thumbs, .gallery-fullscreen .gallery-expand { display: none; }
.gallery-fullscreen .detail-image { width: 100%; height: 100%; max-height: none; object-fit: contain; background: transparent; }
.gallery-expand:focus-visible, .gallery-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (hover: none) { .gallery-edge span { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .gallery-edge span, .gallery-main img { transition: none; } }
