:root {
    --bg: #0d0d0d;
    --surface: #131313;
    --white: #f0ede8;
    --muted: rgba(240,237,232,0.45);
    --accent: #c8a97e;
    --border: rgba(240,237,232,0.08);
    --grain-opacity: 0.035;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--white);
    font-family: 'Cormorant Garamond', Georgia, serif;
    overflow-x: hidden;
    cursor: auto;
}

@media (hover: hover) and (pointer: fine) {
    body {
        cursor: none;
    }

    .cursor,
    .cursor-ring {
        display: block;
    }
}

@media (hover: none) and (pointer: coarse) {
    .cursor,
    .cursor-ring {
        display: none !important;
    }
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    opacity: var(--grain-opacity);
    pointer-events: none;
    z-index: 9999;
}

.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), height 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
    box-shadow: 0 0 12px rgba(200, 169, 126, 0.3);
}

.cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(200, 169, 126, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out, width 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), height 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.25s ease;
}

body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring {
    width: 56px;
    height: 56px;
    border-color: var(--accent);
    box-shadow: 0 0 8px rgba(200, 169, 126, 0.2);
}

.landing {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 500;
    transition: opacity 1s ease, visibility 1s;
}

.landing.exit {
    opacity: 0;
    visibility: hidden;
}

.landing-inner {
    text-align: center;
}

.landing-kujin {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(3rem, 10vw, 7rem);
    letter-spacing: 0.04em;
    line-height: 1;
    color: var(--white);
    opacity: 0;
    animation: fadeUp 1.2s 0.3s forwards;
    text-shadow: 0 4px 20px rgba(200, 169, 126, 0.1);
}

.landing-sub {
    font-family: 'Syne', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 18px;
    opacity: 0;
    animation: fadeUp 1.2s 0.7s forwards;
}

.landing-line {
    width: 1px;
    height: 0;
    background: linear-gradient(to bottom, var(--accent), transparent);
    margin: 40px auto;
    animation: growLine 0.8s 1.2s forwards;
    box-shadow: 0 0 12px rgba(200, 169, 126, 0.3);
}

.landing-enter {
    font-family: 'Syne', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 14px 0;
    opacity: 0;
    animation: fadeUp 0.8s 1.6s forwards, floatButton 2.4s 2.4s ease-in-out infinite;
    transition: color 0.3s ease, letter-spacing 0.3s ease;
    position: relative;
    will-change: transform, color, text-shadow;
}

.landing-enter::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    transition: width 0.4s ease;
}

.landing-enter:hover {
    color: var(--accent);
    letter-spacing: 0.45em;
}

.landing-enter:hover::after {
    width: 60%;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes growLine {
    to {
        height: 60px;
    }
}

@keyframes floatButton {
    0%,
    100% {
        transform: translateY(0);
        color: var(--muted);
        text-shadow: 0 0 0 rgba(200, 169, 126, 0);
    }
    25% {
        transform: translateY(-4px);
        color: rgba(240, 237, 232, 0.8);
        text-shadow: 0 0 10px rgba(200, 169, 126, 0.16);
    }
    50% {
        transform: translateY(-6px);
        color: var(--accent);
        text-shadow: 0 0 16px rgba(200, 169, 126, 0.35);
    }
    75% {
        transform: translateY(-2px);
        color: rgba(240, 237, 232, 0.7);
        text-shadow: 0 0 8px rgba(200, 169, 126, 0.12);
    }
}

#main {
    display: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

#main.visible {
    opacity: 1;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 28px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: normal;
    backdrop-filter: blur(4px);
}

nav::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(13, 13, 13, 0.95), rgba(13, 13, 13, 0.7), transparent);
    pointer-events: none;
    z-index: -1;
}

.nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    color: var(--white);
    opacity: 0.9;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-logo:hover {
    opacity: 1;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    font-family: 'Syne', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease, letter-spacing 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
    letter-spacing: 0.3em;
}

.nav-links a:hover::after {
    width: 100%;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 48px 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 70% 40%, rgba(200, 169, 126, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse 40% 50% at 20% 70%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
}

.hero-number {
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(160px, 28vw, 320px);
    font-weight: 300;
    color: rgba(240, 237, 232, 0.025);
    line-height: 1;
    user-select: none;
    letter-spacing: -0.05em;
}

.hero-tagline {
    font-family: 'Syne', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 1s 0.2s forwards;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(3.5rem, 9vw, 8.5rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    max-width: 900px;
    opacity: 0;
    animation: fadeUp 1s 0.4s forwards;
}

.hero-title em {
    font-style: italic;
    color: var(--accent);
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 60px;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 360px;
    line-height: 1.7;
    opacity: 0;
    animation: fadeUp 1s 0.6s forwards;
}

.hero-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeUp 1s 0.8s forwards;
    cursor: none;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.hero-scroll:hover {
    opacity: 0.8;
}

.hero-scroll span {
    font-family: 'Syne', sans-serif;
    font-size: 0.58rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
}

.hero-scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.4;
        transform: scaleY(1);
    }
    50% {
        opacity: 1;
        transform: scaleY(1.15);
    }
}

.freelance-pill {
    position: absolute;
    top: 42%;
    right: 48px;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    font-family: 'Syne', sans-serif;
    font-size: 0.58rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    cursor: none;
    opacity: 0;
    animation: fadeUp 1s 1s forwards;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.freelance-pill::before {
    content: '';
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    opacity: 0.6;
}

.freelance-pill:hover {
    opacity: 1;
    transform: translateY(-50%) translateX(-4px);
}

.divider {
    width: calc(100% - 96px);
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
    margin: 0 48px;
}

.about-section {
    padding: 140px 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1400px;
    margin: auto;
}

.about-label {
    font-family: 'Syne', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 30px;
}

.about-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    line-height: 1.15;
}

.about-title em {
    font-style: italic;
    color: var(--accent);
}

.about-text {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--muted);
}

.about-text strong {
    color: var(--white);
    font-weight: 400;
}

.about-affiliations {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.about-affiliations-label {
    font-family: 'Syne', sans-serif;
    font-size: 0.58rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}

.affiliation-card {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(200,169,126,0.03));
    border-radius: 18px;
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.affiliation-card--featured {
    margin-bottom: 14px;
    grid-template-columns: 68px 1fr auto;
}

.affiliation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.about-affiliations {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.about-affiliations-label {
    font-family: 'Syne', sans-serif;
    font-size: 0.58rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}

.affiliation-list {
    display: grid;
    gap: 0;
}

.affiliation-row {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 18px 0;
    border-top: 1px solid var(--border);
}

.affiliation-row--featured {
    border-top: 0;
    padding-top: 0;
}

.affiliation-mark {
    width: 52px;
    height: 52px;
    border-radius: 0;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: transparent;
    border: 1px solid rgba(240,237,232,0.12);
    flex-shrink: 0;
}

.affiliation-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    display: block;
}

.affiliation-mark--placeholder {
    font-family: 'Syne', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.26em;
    color: rgba(240,237,232,0.72);
}

.affiliation-copy {
    min-width: 0;
}

.affiliation-role {
    font-family: 'Syne', sans-serif;
    font-size: 0.56rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 7px;
}

.affiliation-name {
    font-size: 1.02rem;
    line-height: 1.5;
    color: var(--white);
}

.affiliation-note {
    font-family: 'Syne', sans-serif;
    font-size: 0.56rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(240,237,232,0.58);
    white-space: nowrap;
    align-self: start;
    padding-top: 4px;
}

.about-stat {
    margin-top: 50px;
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.stat-item {
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
}

.stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 300;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-family: 'Syne', sans-serif;
    font-size: 0.58rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 6px;
}

.projects-section {
    padding: 100px 48px 140px;
    max-width: 1400px;
    margin: auto;
}

.socials-section {
    padding: 60px 48px 10px;
    max-width: 1400px;
    margin: auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 80px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 30px;
}

.section-label {
    font-family: 'Syne', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1;
}

.section-count {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.95rem;
    color: var(--muted);
}

.project-item {
    display: grid;
    grid-template-columns: 80px 1fr 180px;
    gap: 40px;
    align-items: start;
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: none;
    position: relative;
}

.project-item::after {
    content: '';
    position: absolute;
    inset: 0 -48px;
    background: linear-gradient(90deg, transparent, rgba(200, 169, 126, 0.03), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-item:hover::after {
    opacity: 1;
}

.project-item:hover {
    padding-left: 12px;
}

.project-num {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--muted);
    padding-top: 4px;
    transition: color 0.3s ease;
}

.project-item:hover .project-num {
    color: var(--accent);
}

.project-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.project-item:hover .project-title {
    color: var(--accent);
}

.project-role {
    font-family: 'Syne', sans-serif;
    font-size: 0.58rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 20px;
}

.project-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--muted);
    max-width: 600px;
}

.project-desc a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 2px solid rgba(200, 169, 126, 0.3);
    transition: all 0.3s ease;
}

.project-desc a:hover {
    border-color: var(--accent);
    padding-bottom: 2px;
}

.project-year {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--muted);
    text-align: right;
    padding-top: 4px;
    transition: color 0.3s ease;
}

.project-item:hover .project-year {
    color: var(--accent);
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 56px;
}

.project-card {
    appearance: none;
    width: 100%;
    text-align: left;
    padding: 0;
    display: block;
    border: 1px solid var(--border);
    border-radius: 0;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
    cursor: none;
}

.project-card:hover,
.project-card:focus-within,
.project-card.is-active {
    transform: translateY(-6px);
    border-color: rgba(200, 169, 126, 0.3);
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.3);
}

.project-card__media {
    position: relative;
    aspect-ratio: 1 / 1.12;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(200, 169, 126, 0.12), rgba(255,255,255,0.02));
}

.project-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.85) contrast(1.05) brightness(0.9);
    transform: scale(1.02);
    transition: transform 0.8s ease, filter 0.5s ease;
    display: block;
}

.project-card:hover .project-card__media img,
.project-card:focus-within .project-card__media img,
.project-card[open] .project-card__media img {
    transform: scale(1.08);
    filter: saturate(1.02) contrast(1.08) brightness(1);
}

.project-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.2) 50%, transparent);
    z-index: 1;
}

.project-card__index {
    position: absolute;
    top: 20px;
    left: 20px;
    font-family: 'Syne', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.project-card__title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(1.75rem, 2.4vw, 2.45rem);
    line-height: 0.98;
    margin-bottom: 8px;
    color: #fff;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.72);
}

.project-card__meta,
.project-card__role {
    font-family: 'Syne', sans-serif;
    font-size: 0.56rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent);
}

.project-card__meta {
    margin-bottom: 16px;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.68);
}

.project-card__teaser {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(240, 237, 232, 0.86);
    max-width: 28ch;
}

.project-card__prompt {
    margin-top: 18px;
    font-family: 'Syne', sans-serif;
    font-size: 0.54rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(240, 237, 232, 0.52);
}

.project-card:hover .project-card__prompt,
.project-card:focus-within .project-card__prompt,
.project-card[open] .project-card__prompt {
    color: var(--white);
}

.project-card__details {
    padding: 0 28px 26px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.35s ease, padding-top 0.35s ease;
}

.project-card[open] .project-card__details {
    max-height: 280px;
    padding-top: 22px;
    opacity: 1;
}

.project-card__copy {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--muted);
    margin-top: 14px;
}

.project-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.project-card__link {
    display: inline-flex;
    align-items: center;
    padding-bottom: 2px;
    font-family: 'Syne', sans-serif;
    font-size: 0.56rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(200, 169, 126, 0.3);
    transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.project-card__link:hover {
    border-color: var(--accent);
    color: var(--white);
    transform: translateY(-1px);
}

.socials-list {
    display: grid;
    gap: 14px;
    margin-top: 56px;
}

.social-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
    text-decoration: none;
    color: var(--white);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.social-list-item:hover,
.social-list-item:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(200, 169, 126, 0.28);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
    outline: none;
}

.social-list-item__icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex-shrink: 0;
}

.social-list-item__name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    line-height: 1;
}

.school-projects-section {
    padding: 100px 48px 140px;
    max-width: 1400px;
    margin: auto;
}

.school-highlight {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 260px;
    gap: 18px;
    margin-top: 56px;
    padding: 32px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
    border-radius: 0;
}

.school-highlight__copy,
.school-highlight__aside,
.school-task {
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
    border-radius: 0;
}

.school-highlight__copy {
    padding: 0;
    border: none;
    background: transparent;
}

.school-highlight__title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    line-height: 0.98;
    margin-top: 10px;
}

.school-highlight__role {
    margin-top: 10px;
    font-family: 'Syne', sans-serif;
    font-size: 0.56rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--accent);
}

.school-highlight__text {
    font-size: 1.08rem;
    line-height: 1.9;
    color: var(--muted);
    margin-top: 18px;
}

.school-highlight__aside {
    padding: 0;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

.school-highlight__meta,
.school-task__top span {
    font-family: 'Syne', sans-serif;
    font-size: 0.56rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--accent);
}

.school-highlight__link,
.school-task__links a {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding-bottom: 2px;
    font-family: 'Syne', sans-serif;
    font-size: 0.56rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(200, 169, 126, 0.3);
    transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.school-highlight__link:hover,
.school-task__links a:hover {
    border-color: var(--accent);
    color: var(--white);
    transform: translateY(-1px);
}

.school-highlight__note {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--muted);
}

.school-task-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.school-task {
    min-height: 220px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

.school-task__top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.school-task__top h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(1.7rem, 2.4vw, 2.4rem);
    line-height: 1;
    margin: 0;
}

.school-task p {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--muted);
    margin: 0;
}

.school-task__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.project-modal {
    position: fixed;
    inset: 0;
    z-index: 700;
    display: grid;
    place-items: center;
    padding: 36px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.project-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.project-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.86);
    backdrop-filter: blur(10px);
}

.project-modal__panel {
    position: relative;
    z-index: 1;
    width: min(1040px, 100%);
    max-height: min(86vh, 900px);
    overflow: auto;
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) 1.05fr;
    background: #111;
    border: 1px solid var(--border);
    border-radius: 0;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.5);
}

.project-modal__media {
    background: #090909;
    min-height: 100%;
}

.project-modal__media img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: contain;
    display: block;
}

.project-modal__content {
    padding: 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-modal__close {
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 2;
    font-family: 'Syne', sans-serif;
    font-size: 0.56rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--muted);
    background: none;
    border: 1px solid transparent;
    cursor: none;
    padding: 10px 14px;
    border-radius: 0;
    transition: color 0.28s ease, border-color 0.28s ease;
}

.project-modal__close:hover,
.project-modal__close:focus-visible {
    color: var(--accent);
    border-color: rgba(200, 169, 126, 0.28);
    outline: none;
}

.project-modal__role,
.project-modal__meta {
    font-family: 'Syne', sans-serif;
    font-size: 0.58rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
}

.project-modal__meta {
    margin-top: 12px;
    color: rgba(240, 237, 232, 0.64);
}

.project-modal__title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    line-height: 0.98;
    margin-top: 14px;
}

.project-modal__copy {
    font-size: 1.08rem;
    line-height: 1.9;
    color: var(--muted);
    margin-top: 22px;
}

.project-modal__link {
    display: inline-flex;
    width: fit-content;
    margin-top: 26px;
    font-family: 'Syne', sans-serif;
    font-size: 0.58rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(200, 169, 126, 0.3);
    padding-bottom: 2px;
    transition: border-color 0.28s ease, color 0.28s ease;
}

.project-modal__link:hover {
    color: var(--white);
    border-color: var(--accent);
}

.gallery-section {
    padding: 110px 48px 150px;
    max-width: 1520px;
    margin: auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 150px;
    grid-auto-flow: dense;
    gap: 10px;
    margin-top: 64px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    display: block;
    min-height: 100%;
    background: #080808;
    border: 1px solid var(--border);
    border-radius: 0;
    cursor: none;
    padding: 0;
    appearance: none;
    grid-column: span 2;
    grid-row: span 2;
    isolation: isolate;
    transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item--hero {
    grid-column: span 4;
    grid-row: span 3;
}

.gallery-item--portrait {
    grid-row: span 3;
}

.gallery-item--wide {
    grid-column: span 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.8) contrast(1.04) brightness(0.9);
    transform: scale(1.01);
    transition: transform 0.9s ease, filter 0.6s ease;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.12) 48%, transparent),
        linear-gradient(135deg, rgba(200, 169, 126, 0.16), transparent 38%);
    opacity: 0.72;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.gallery-item:hover,
.gallery-item:focus-visible {
    border-color: rgba(200, 169, 126, 0.45);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.32);
    transform: translateY(-4px);
    outline: none;
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: saturate(1.05) contrast(1.08) brightness(1);
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
    opacity: 0.92;
}

.gallery-index {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    font-family: 'Syne', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.24em;
    color: rgba(240, 237, 232, 0.72);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 36px 24px 22px;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(0.98rem, 1.3vw, 1.25rem);
    line-height: 1.35;
    text-align: left;
    color: rgba(240, 237, 232, 0.88);
    transform: translateY(10px);
    transition: transform 0.4s ease, color 0.4s ease;
}

.gallery-item:hover .gallery-caption,
.gallery-item:focus-visible .gallery-caption {
    transform: translateY(0);
    color: var(--white);
}

.photo-viewer {
    position: fixed;
    inset: 0;
    z-index: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 48px;
    background: rgba(0, 0, 0, 0.86);
    backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.photo-viewer.active {
    opacity: 1;
    pointer-events: auto;
}

.photo-viewer img {
    max-width: min(1180px, 100%);
    max-height: 82vh;
    object-fit: contain;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.photo-viewer-close {
    position: absolute;
    top: 28px;
    right: 32px;
    background: none;
    border: none;
    color: var(--muted);
    cursor: none;
    font-family: 'Syne', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.photo-viewer-close:hover,
.photo-viewer-close:focus-visible {
    color: var(--accent);
    outline: none;
}

.pricing-section {
    padding: 100px 48px 140px;
    max-width: 1400px;
    margin: auto;
    display: none;
}

.pricing-section.open {
    display: block;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 60px;
}

.price-card {
    background: var(--surface);
    padding: 48px 36px;
    border: 1px solid var(--border);
    position: relative;
    transition: all 0.3s ease;
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, var(--accent), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.price-card:hover::before {
    transform: scaleX(1);
}

.price-card:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-6px);
    border-color: rgba(200, 169, 126, 0.2);
}

.price-category {
    font-family: 'Syne', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.price-name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.price-amount {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 2.4rem;
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1;
}

.price-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--muted);
}

footer {
    padding: 100px 48px 60px;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: end;
    max-width: 1400px;
    margin: auto;
}

.footer-brand {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1;
    color: rgba(240, 237, 232, 0.15);
    transition: color 0.3s ease;
}

.footer-brand:hover {
    color: rgba(240, 237, 232, 0.25);
}

.footer-links {
    text-align: right;
}

.footer-link {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--accent);
    padding-right: 6px;
}

.footer-link:hover::after {
    width: 100%;
}

.footer-copy {
    margin-top: 30px;
    font-family: 'Syne', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(240, 237, 232, 0.2);
}

.contact-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    padding: 0;
    background: rgba(13, 13, 13, 0.78);
    color: var(--white);
    text-decoration: none;
    cursor: pointer;
    z-index: 200;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(240, 237, 232, 0.18);
    border-radius: 0;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    isolation: isolate;
    overflow: hidden;
}

.contact-btn::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(200, 169, 126, 0.16), transparent 46%);
    z-index: -1;
    opacity: 0.75;
    transition: opacity 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-4px);
    background: rgba(19, 19, 19, 0.92);
    border-color: rgba(200, 169, 126, 0.62);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.44), 0 0 28px rgba(200, 169, 126, 0.14);
}

.contact-btn:hover::before {
    opacity: 1;
}

.contact-btn .contact-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: rgba(200, 169, 126, 0.14);
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6.5C4 5.67157 4.67157 5 5.5 5H18.5C19.3284 5 20 5.67157 20 6.5V17.5C20 18.3284 19.3284 19 18.5 19H5.5C4.67157 19 4 18.3284 4 17.5V6.5Z' stroke='%23F0EDE8' stroke-width='1.5'/%3E%3Cpath d='M4.75 6.5L12 12.25L19.25 6.5' stroke='%23F0EDE8' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.contact-btn:hover .contact-icon {
    transform: scale(1.08);
    background-color: rgba(200, 169, 126, 0.22);
    box-shadow: 0 0 0 4px rgba(200, 169, 126, 0.08);
}

.contact-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 300;
}

.contact-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.contact-panel {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(480px, 100vw);
    background: #111;
    border-left: 1px solid var(--border);
    padding: 80px 48px;
    z-index: 400;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
    display: flex;
    flex-direction: column;
}

.contact-panel.active {
    transform: translateX(0);
}

.contact-close {
    position: absolute;
    top: 32px;
    right: 32px;
    font-family: 'Syne', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted);
    background: none;
    border: none;
    cursor: none;
    transition: all 0.3s ease;
}

.contact-close:hover {
    color: var(--white);
    transform: rotate(90deg);
}

.contact-panel h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 14px;
}

.contact-panel h3 em {
    font-style: italic;
    color: var(--accent);
}

.contact-panel > p {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 50px;
    line-height: 1.7;
}

.form-field {
    position: relative;
    margin-bottom: 32px;
}

.form-field label {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: 0.56rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.form-field:focus-within label {
    color: var(--accent);
    letter-spacing: 0.3em;
}

.form-field input,
.form-field textarea {
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border);
    color: var(--white);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    padding: 10px 0;
    outline: none;
    transition: all 0.3s ease;
    resize: none;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--accent);
    padding-bottom: 4px;
}

.form-submit {
    margin-top: auto;
    padding-top: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-submit button {
    font-family: 'Syne', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--bg);
    background: var(--white);
    border: none;
    padding: 16px 40px;
    cursor: none;
    transition: all 0.3s ease;
}

.form-submit button:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(200, 169, 126, 0.15);
}

.form-submit .form-note {
    font-size: 0.85rem;
    color: var(--muted);
    font-style: italic;
}

.contact-success {
    display: none;
    text-align: center;
    margin-top: auto;
    margin-bottom: auto;
}

.contact-success p {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.8rem;
    line-height: 1.5;
    color: var(--white) !important;
    margin-bottom: 0 !important;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

@media (max-width: 1100px) {
    .school-highlight {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    nav {
        padding: 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        gap: 12px 18px;
        width: 100%;
    }

    .nav-links li {
        display: flex;
    }
    
    .hero {
        min-height: 100svh;
        padding: 100px 24px 40px;
        justify-content: flex-start;
    }

    .hero-tagline {
        margin-bottom: 16px;
    }
    
    .hero-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
        margin-top: 28px;
    }
    
    .about-section {
        grid-template-columns: 1fr;
        padding: 80px 24px;
    }

    .affiliation-row {
        grid-template-columns: 46px 1fr;
        gap: 14px;
    }

    .affiliation-note {
        justify-self: start;
        padding-top: 0;
    }

    .projects-section,
    .school-projects-section,
    .gallery-section,
    .socials-section,
    .pricing-section {
        padding: 60px 24px 100px;
    }

    .school-highlight,
    .socials-list,
    .project-gallery {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .school-task-grid {
        grid-template-columns: 1fr;
    }

    .project-modal {
        padding: 16px;
    }

    .project-modal__panel {
        grid-template-columns: 1fr;
        max-height: 88vh;
    }

    .project-modal__content {
        padding: 28px;
    }

    .project-modal__media {
        min-height: 280px;
    }

    .project-modal__close {
        top: 14px;
        right: 14px;
    }

    .project-card__overlay {
        padding: 22px;
    }

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

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 12px;
    }

    .gallery-item,
    .gallery-item--hero,
    .gallery-item--portrait,
    .gallery-item--wide {
        grid-column: auto;
        grid-row: auto;
        aspect-ratio: 4 / 5;
    }

    .gallery-item--wide {
        aspect-ratio: 16 / 10;
    }

    .gallery-caption {
        padding: 54px 18px 18px;
        transform: none;
    }

    .photo-viewer {
        padding: 72px 18px 40px;
    }

    .photo-viewer-close {
        top: 24px;
        right: 20px;
    }

    .social-list-item {
        padding: 14px 16px;
        gap: 14px;
    }

    .social-list-item__icon {
        width: 30px;
        height: 30px;
    }
    
    footer {
        grid-template-columns: 1fr;
        gap: 28px;
        align-items: start;
        padding: 56px 24px 120px;
    }

    .footer-brand {
        font-size: clamp(2.35rem, 13vw, 3.4rem);
        color: rgba(240, 237, 232, 0.28);
    }
    
    .footer-links {
        text-align: left;
        display: grid;
        gap: 14px;
        max-width: 100%;
    }

    .footer-link {
        width: fit-content;
        max-width: 100%;
        margin-bottom: 0;
        font-size: 0.58rem;
        letter-spacing: 0.18em;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    .footer-link::after {
        right: auto;
        left: 0;
    }

    .footer-link:hover {
        padding-right: 0;
        padding-left: 4px;
    }

    .footer-copy {
        margin-top: 8px;
        font-size: 0.5rem;
        letter-spacing: 0.14em;
        line-height: 1.7;
        color: rgba(240, 237, 232, 0.36);
    }

    .contact-btn {
        right: 24px;
        bottom: 20px;
        padding: 13px 24px;
    }
    
    .contact-panel {
        padding: 60px 24px;
    }
    
    .freelance-pill {
        display: none;
    }
    
    .hero-number {
        display: none;
    }
}
