:root {
    --bg:           #0c0e13;
    --bg-soft:      #111318;
    --text:         #d4cfc8;
    --text-muted:   #5c5955;
    --text-faint:   #2e2d2b;
    --accent:       #c9a96e;
    --accent-mono:  #4e9eff;
    --border:       #1a1c22;

    --serif: 'Cormorant Garamond', Georgia, serif;
    --mono:  'JetBrains Mono', 'Courier New', monospace;

    --reveal-duration: 600ms;
    --reveal-ease:     cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset  */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--mono);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* INTRO SCREEN */

#intro-screen {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(2rem, 8vw, 7rem);
    transition:
        opacity  750ms var(--reveal-ease),
        transform 750ms var(--reveal-ease);
}

#intro-screen.exiting {
    opacity: 0;
    transform: translateY(-48px);
    pointer-events: none;
}

.intro-inner {
    max-width: 740px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Name */
.intro-name {
    font-family: var(--serif);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 600;
    color: #f0ebe3;
    line-height: 1.0;
    letter-spacing: -0.5px;
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity  650ms var(--reveal-ease),
        transform 650ms var(--reveal-ease);
}

.intro-name.v {
    opacity: 1;
    transform: translateY(0);
}

/* Body — stat chunks */
.intro-body {
    font-family: var(--serif);
    font-size: clamp(1.05rem, 2.2vw, 1.5rem);
    color: var(--text-muted);
    line-height: 1.9;
}

.ic {
    opacity: 0;
    transition: opacity 450ms var(--reveal-ease);
}

.ic.v  { opacity: 1; }

/* Stat highlight */
.ic.is {
    color: var(--accent);
    font-style: italic;
}

/* Statement */
.intro-statement {
    font-family: var(--serif);
    font-size: clamp(1.3rem, 3vw, 2rem);
    color: #f0ebe3;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity  700ms var(--reveal-ease),
        transform 700ms var(--reveal-ease);
}

.intro-statement.v {
    opacity: 1;
    transform: translateY(0);
}

.intro-statement em {
    color: var(--accent);
    font-style: italic;
}

/* Cue button */
.intro-cue {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    opacity: 0;
    transition: opacity 600ms ease;
    margin-top: 0.5rem;
}

.intro-cue.v { opacity: 1; }

.intro-cue-text {
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--text-faint);
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.intro-cue:hover .intro-cue-text { color: var(--accent); }

.intro-cue-bar {
    width: 36px;
    height: 1px;
    background: var(--text-faint);
    transition:
        width    0.35s var(--reveal-ease),
        background 0.2s ease;
}

.intro-cue:hover .intro-cue-bar {
    width: 72px;
    background: var(--accent);
}

/* PORTFOLIO CONTAINER */

.container {
    opacity: 0;
    transition: opacity 800ms ease;

    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.container.revealed { opacity: 1; }

@media (min-width: 900px) {
    body {
        overflow: hidden;
    }
    .container {
        flex-direction: row;
        align-items: flex-start;
        gap: 6rem;
        padding: 0 3rem;
        height: 100vh;
        overflow: hidden;
    }
    .content {
        height: 100vh;
        overflow-y: auto;
        padding-top: 7rem;
        padding-bottom: 7rem;
        overscroll-behavior: contain;
        scroll-behavior: smooth;
        scrollbar-width: thin;
        scrollbar-color: rgba(255,255,255,0.1) transparent;
    }
    .content::-webkit-scrollbar {
        width: 6px;
        background: transparent;
    }
    .content::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
    }
    .content::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.2);
    }
}

/* SCROLL REVEAL */

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity var(--reveal-duration) var(--reveal-ease),
        transform var(--reveal-duration) var(--reveal-ease);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* HERO SIDEBAR */

.hero {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

@media (min-width: 900px) {
    .hero {
        position: static;
        width: 280px;
        flex-shrink: 0;
        height: 100vh;
        overflow-y: auto;
        padding-top: 7rem;
        padding-bottom: 7rem;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: rgba(255,255,255,0.1) transparent;
    }
    .hero::-webkit-scrollbar {
        width: 6px;
        background: transparent;
    }
    .hero::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
    }
    .hero::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.2);
    }
}

.hero-name {
    font-family: var(--serif);
    font-size: 3.4rem;
    font-weight: 600;
    line-height: 1.05;
    color: #f0ebe3;
    letter-spacing: -0.5px;
}

.hero-role {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--accent);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-top: 1rem;
}

.hero-statement {
    font-family: var(--serif);
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.9;
    margin-top: 0.5rem;
}

.hero-statement em {
    font-style: italic;
    color: var(--text-faint);
}

/* Stats */
.hero-stats {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.hero-stats li {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
    transition: color 0.2s ease;
}

.hero-stats li:first-child { color: var(--text); }
.hero-stats:hover li { color: var(--text-faint); }
.hero-stats li:hover { color: var(--text) !important; }

/* Nav */
.hero-nav {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

@media (max-width: 899px) {
    .hero-nav { display: none; }
}

.hero-nav a {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-nav a::before {
    content: '';
    display: block;
    width: 20px;
    height: 1px;
    background: var(--text-faint);
    transition: width 0.3s var(--reveal-ease), background 0.2s ease;
    flex-shrink: 0;
}

.hero-nav a:hover,
.hero-nav a.active {
    color: var(--accent);
}

.hero-nav a:hover::before,
.hero-nav a.active::before {
    width: 42px;
    background: var(--accent);
}

/* Social links */
.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.hero-links a {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text-faint);
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.2s ease;
}

.hero-links a:hover { color: var(--accent); }

/* CONTENT */

.content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5.5rem;
}

/* MANIFESTO */

.manifesto {
    border-left: 1px solid var(--border);
    padding-left: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.manifesto p {
    font-family: var(--serif);
    font-size: 1.12rem;
    color: var(--text-muted);
    line-height: 1.95;
    transition: color 0.3s ease;
}

.manifesto .hl {
    color: var(--text-muted);
    cursor: default;
    position: relative;
    transition: color 0.25s ease;
    text-decoration: none;
}

.manifesto .hl::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s var(--reveal-ease);
}

.manifesto .hl:hover { color: #f0ebe3; }
.manifesto .hl:hover::after { width: 100%; }

.manifesto p:hover { color: var(--text-faint); }
.manifesto p:hover .hl { color: #6b6760; }
.manifesto p:hover .hl:hover { color: #f0ebe3; }

/* SECTIONS */

.section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section-label {
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--text-faint);
    letter-spacing: 3px;
    text-transform: uppercase;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    display: block;
}

/* ENTRIES */

.entry {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1.25rem;
    border-radius: 3px;
    transition: background 0.25s ease;
    cursor: default;
}

.entry:hover { background: var(--bg-soft); }

@media (min-width: 640px) {
    .entry {
        grid-template-columns: 130px 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
}

/* Meta */
.entry-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding-top: 0.1rem;
}

.entry-date {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.entry-org {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--text-faint);
    letter-spacing: 0.5px;
}

/* Body */
.entry-title {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.entry:hover .entry-title { color: #f0ebe3; }
.entry.featured .entry-title { color: #f0ebe3; }

.entry-text {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.85;
}

/* Tags */
.tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.tags li {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--accent-mono);
    background: rgba(78, 158, 255, 0.06);
    border: 1px solid rgba(78, 158, 255, 0.14);
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
    letter-spacing: 0.3px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.entry:hover .tags li {
    background: rgba(78, 158, 255, 0.1);
    border-color: rgba(78, 158, 255, 0.22);
}

/* FOOTER */

.site-footer {
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.site-footer p {
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--text-faint);
    letter-spacing: 0.5px;
}