:root {
    --bg: #13120f;
    --surface: #1c1a15;
    --surface2: #242018;
    --border: #332e22;
    --border2: #4a4332;
    --text: #ede4d3;
    --muted: #9e8f78;
    --faint: #635847;
    --gold: #d4a853;
    --gold-dim: #8a6e35;
    --amber: #c97f3a;
    --rust: #7a3120;
    --cream: #f5edd8;
    --serif: 'Playfair Display', Georgia, serif;
    --body: 'Lora', Georgia, serif;
    --mono: 'JetBrains Mono', 'Courier New', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.75;
    overflow-x: hidden;
}

body::after {
    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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.028'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1000;
}

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

/* NAV */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 5rem;
    background: rgba(19, 18, 15, 0.88);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 0.01em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: var(--muted);
    text-transform: lowercase;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--gold);
}

/* STATUS WIDGETS (Music & Reading) */
#status-container {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.widget-wrapper {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.status-widget {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    backdrop-filter: blur(12px);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    max-width: 220px;
    position: relative;
}

.status-widget.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.status-widget:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--gold);
    transform: translateY(-2px);
}

/* Art & Fallback */
.art-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-art {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
}

.status-art-fallback {
    display: none; /* Shown via JS if image fails */
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    background: var(--surface2);
    border-radius: 4px;
    color: var(--gold);
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Reading Nav Buttons */
.reading-nav-btn {
    background: none;
    border: none;
    color: var(--faint);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visible + .reading-nav-btn,
.reading-nav-btn:has(+ .visible) {
     opacity: 0.5;
     pointer-events: all;
     transform: scale(1);
}

.reading-nav-btn:hover {
    color: var(--gold);
    opacity: 1;
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.1);
}

.status-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    line-height: 1.3;
}

.status-title {
    font-family: var(--serif);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-subtitle {
    font-family: var(--mono);
    font-size: 0.62rem;
    color: var(--faint);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Music Specific */
.music-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 10px;
    margin-right: 4px;
}

.bar {
    width: 2px;
    background: var(--gold);
    animation: bounce 0.8s ease-in-out infinite alternate;
}

/* Reading Specific */
#reading-widget .status-art {
    width: 24px;
    height: 34px;
    border-radius: 2px;
}

@keyframes bounce {
    0% { height: 2px; }
    100% { height: 10px; }
}

@media (max-width: 1100px) {
    .status-widget {
        position: relative;
    }
    .status-info {
        display: none;
    }
    .status-widget {
        padding: 0.35rem;
        gap: 0;
    }
    .status-widget.mobile-expanded .status-info {
        display: flex;
        position: absolute;
        top: 130%;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(28, 26, 21, 0.95);
        backdrop-filter: blur(12px);
        padding: 0.8rem 1rem;
        border: 1px solid var(--border);
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        z-index: 300;
        min-width: max-content;
        pointer-events: none;
        align-items: flex-start;
    }
    /* Small arrow for tooltip */
    .status-widget.mobile-expanded .status-info::before {
        content: '';
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 6px solid transparent;
        border-bottom-color: var(--border);
    }
}

/* HERO */
#hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 7rem 5rem 5rem;
    gap: 5rem;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -80px;
    width: 640px;
    height: 640px;
    background: radial-gradient(ellipse, rgba(196, 127, 58, 0.055) 0%, transparent 65%);
    pointer-events: none;
}

.hero-rule {
    width: 36px;
    height: 2px;
    background: var(--gold);
    margin-bottom: 1.4rem;
    opacity: 0;
    animation: riseIn 0.6s ease forwards 0.05s;
}

.hero-eyebrow {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--amber);
    text-transform: lowercase;
    margin-bottom: 1rem;
    opacity: 0;
    animation: riseIn 0.6s ease forwards 0.15s;
}

.hero-name {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(3rem, 5.5vw, 5.2rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1.6rem;
    opacity: 0;
    animation: riseIn 0.7s ease forwards 0.3s;
}

.hero-name span {
    color: var(--gold);
    font-style: italic;
}

.hero-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.6rem;
    max-width: 650px;
}

.hero-socials {
    display: flex;
    gap: 1.2rem;
    opacity: 0;
    animation: riseIn 0.7s ease forwards 0.35s;
    padding-bottom: 0.8rem;
}

.social-link {
    color: var(--faint);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
}

.social-link:hover {
    color: var(--gold);
    transform: translateY(-3px);
    filter: drop-shadow(0 0 8px rgba(212, 168, 83, 0.3));
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.hero-desc {
    font-size: 1rem;
    font-weight: 400;
    color: var(--muted);
    max-width: 430px;
    line-height: 1.85;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: riseIn 0.7s ease forwards 0.45s;
}

.hero-cta {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: riseIn 0.7s ease forwards 0.6s;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.35rem;
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.07em;
    border-radius: 2px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--bg);
    font-weight: 500;
}

.btn-primary:hover {
    background: var(--amber);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(196, 127, 58, 0.18);
}

.btn-outline {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border2);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.2rem;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--faint);
    opacity: 0;
    animation: riseIn 0.6s ease forwards 0.75s;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2.2s ease infinite;
}

/* HERO CARD */
.hero-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.5s;
    position: relative;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--rust), var(--gold), var(--amber));
}

.card-header {
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-dots {
    display: flex;
    gap: 0.4rem;
}

.cdot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.cdot-r {
    background: #ff5f57;
}

.cdot-y {
    background: #ffbd2e;
}

.cdot-g {
    background: #28ca41;
}

.card-title {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--faint);
    letter-spacing: 0.1em;
    margin-left: auto;
}

.card-body {
    padding: 1.6rem 1.7rem;
    font-family: var(--mono);
    font-size: 0.8rem;
    line-height: 2;
}

.c-cmt {
    color: var(--faint);
    font-style: italic;
}

.c-key {
    color: #91b4d9;
}

.c-str {
    color: var(--gold);
}

.c-num {
    color: var(--amber);
}

.c-pun {
    color: var(--muted);
}

.c-bool {
    color: #7ecfaf;
}

.cursor {
    display: inline-block;
    width: 6px;
    height: 0.9em;
    background: var(--gold);
    vertical-align: text-bottom;
    animation: blink 1.1s step-end infinite;
}

/* SECTIONS */
section {
    padding: 7rem 5rem;
    border-top: 1px solid var(--border);
}

.sec-label {
    font-family: var(--mono);
    font-size: 0.67rem;
    letter-spacing: 0.26em;
    text-transform: lowercase;
    color: var(--amber);
    margin-bottom: 0.5rem;
}

.sec-title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    letter-spacing: -0.015em;
    line-height: 1.2;
    margin-bottom: 0.4rem;
}

.sec-title em {
    font-style: italic;
    color: var(--gold);
}

.rule {
    width: 36px;
    height: 2px;
    background: var(--amber);
    margin: 1.4rem 0;
    border-radius: 2px;
}

/* ABOUT */
.about-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 6rem;
    margin-top: 2.5rem;
    align-items: start;
}

.about-text p {
    color: var(--muted);
    margin-bottom: 1.1rem;
    font-size: 0.97rem;
    line-height: 1.9;
}

.about-text p strong {
    color: var(--text);
    font-weight: 600;
}

.about-aside {
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1.4rem 1.5rem;
    margin-top: 1.8rem;
    background: var(--surface2);
    position: relative;
}

.about-aside::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--gold), var(--rust));
    border-radius: 2px 0 0 2px;
}

.aside-label {
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    color: var(--faint);
    text-transform: lowercase;
    margin-bottom: 0.6rem;
}

.aside-text {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1rem;
    color: var(--gold);
    line-height: 1.65;
}

/* AI ETHICS CALLOUT */
.ethics-aside {
    border: 1px solid rgba(212, 168, 83, 0.18);
    border-radius: 4px;
    padding: 1.2rem 1.5rem;
    margin-top: 1.4rem;
    background: rgba(88, 78, 30, 0.08);
    position: relative;
}

.ethics-aside::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--amber), var(--gold));
    border-radius: 2px 0 0 2px;
}

.ethics-label {
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    color: var(--amber);
    text-transform: lowercase;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ethics-text {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.75;
}

.ethics-text strong {
    color: var(--text);
}

/* SKILLS */
.skills-label {
    font-family: var(--mono);
    font-size: 0.67rem;
    letter-spacing: 0.2em;
    text-transform: lowercase;
    color: var(--amber);
    margin-bottom: 1rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.skill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    font-family: var(--mono);
    font-size: 0.76rem;
    color: var(--faint);
    transition: all 0.2s;
}

.skill:hover {
    border-color: var(--gold-dim);
    color: var(--gold);
    background: rgba(212, 168, 83, 0.04);
}

.skill svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* PROJECTS */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    grid-auto-rows: 1fr;
    gap: 1.4rem;
    margin-top: 2.8rem;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.9rem;
    transition: all 0.28s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--rust), var(--gold), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.38s ease;
}

.project-card:hover {
    border-color: rgba(212, 168, 83, 0.22);
    transform: translateY(-3px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.project-card:hover::after {
    transform: scaleX(1);
}

.project-card.featured {
    border-color: rgba(212, 168, 83, 0.2);
    background: linear-gradient(140deg, var(--surface) 0%, rgba(88, 78, 30, 0.1) 100%);
}

.project-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--mono);
    font-size: 0.63rem;
    letter-spacing: 0.15em;
    color: var(--gold);
    background: rgba(212, 168, 83, 0.1);
    border: 1px solid rgba(212, 168, 83, 0.2);
    border-radius: 100px;
    padding: 0.16rem 0.6rem;
    margin-bottom: 0.8rem;
}

.project-badge.research {
    color: #7ecfaf;
    background: rgba(126, 207, 175, 0.08);
    border-color: rgba(126, 207, 175, 0.2);
}

.project-badge.extension {
    color: #91b4d9;
    background: rgba(145, 180, 217, 0.08);
    border-color: rgba(145, 180, 217, 0.2);
}

.project-lang {
    font-family: var(--mono);
    font-size: 0.67rem;
    letter-spacing: 0.13em;
    color: var(--amber);
    text-transform: lowercase;
    margin-bottom: 0.8rem;
    display: block;
}

.project-card h3 {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    margin-bottom: 0.7rem;
    line-height: 1.3;
}

.project-card p {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.75;
    flex: 1;
}

.project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.6rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border);
    gap: 0.8rem;
}

.project-stack {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    flex: 1;
}

/* ICON PILLS (replace clunky text tags) */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    padding: 0.2rem 0.55rem;
    background: rgba(75, 65, 35, 0.35);
    border: 1px solid rgba(212, 168, 83, 0.1);
    border-radius: 2px;
    font-family: var(--mono);
    font-size: 0.67rem;
    color: var(--gold-dim);
    letter-spacing: 0.04em;
    transition: all 0.18s;
}

.pill:hover {
    border-color: rgba(212, 168, 83, 0.28);
    color: var(--gold);
    background: rgba(75, 65, 35, 0.55);
}

.pill svg {
    opacity: 0.8;
    flex-shrink: 0;
}

.pill.highlight {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(212, 168, 83, 0.08);
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--faint);
    transition: color 0.2s;
    white-space: nowrap;
}

.project-link:hover {
    color: var(--gold);
}

/* TIMELINE */
.timeline {
    max-width: 620px;
    position: relative;
    margin-top: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 0;
    width: 1px;
    background: var(--border);
}

.tl-item {
    padding: 0 0 3.2rem 2.2rem;
    position: relative;
}

.tl-item::before {
    content: '';
    position: absolute;
    left: -3.5px;
    top: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 10px rgba(201, 127, 58, 0.3);
}

.tl-date {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--faint);
    margin-bottom: 0.3rem;
}

.tl-role {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.015em;
    margin-bottom: 0.2rem;
}

.tl-org {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--amber);
    margin-bottom: 0.6rem;
}

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

.interests-row {
    display: flex;
    gap: 1.4rem;
    flex-wrap: wrap;
    margin-top: 5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}

.interest {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--mono);
    font-size: 0.76rem;
    color: var(--faint);
    letter-spacing: 0.04em;
}

.interest-dot {
    width: 4px;
    height: 4px;
    background: var(--amber);
    border-radius: 50%;
}

/* CONTACT */
#contact {
    text-align: center;
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 650px;
    height: 380px;
    background: radial-gradient(ellipse, rgba(122, 49, 32, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.contact-mark {
    font-family: var(--serif);
    font-style: italic;
    font-size: 3.5rem;
    color: rgba(212, 168, 83, 0.07);
    margin-bottom: 0.5rem;
    user-select: none;
}

.contact-sub {
    color: var(--muted);
    max-width: 400px;
    margin: 0 auto 2.5rem;
    line-height: 1.85;
    font-size: 0.97rem;
}

.contact-links {
    display: flex;
    gap: 0.9rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* FOOTER */
footer {
    border-top: 1px solid var(--border);
    padding: 2rem 5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--faint);
    font-family: var(--mono);
    font-size: 0.75rem;
}

footer a {
    transition: color 0.2s;
}

footer a:hover {
    color: var(--gold);
}

.footer-name {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1rem;
    color: var(--gold);
}

/* SOLIDARITY FLAGS */
.solidarity-row {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    flex-wrap: wrap;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border);
}

.solidarity-label {
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    color: var(--faint);
    text-transform: lowercase;
}

.flag-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--faint);
    letter-spacing: 0.04em;
}

.flag-item:hover {
    color: var(--muted);
}

.flag-svg {
    width: 22px;
    height: 14px;
    border-radius: 1px;
    overflow: hidden;
    flex-shrink: 0;
}

/* ANIMATIONS */
@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.55;
        transform: scale(0.8);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* CONTACT MODAL */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 12, 10, 0.82);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-content {
    background: var(--surface);
    border: 1px solid var(--border);
    width: 90%;
    max-width: 520px;
    padding: 3rem;
    position: relative;
    transform: translateY(30px) scale(0.96);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 4px;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.45), 0 18px 36px -18px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--faint);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-title {
    font-family: var(--serif);
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--gold);
    letter-spacing: -0.01em;
}

.modal-subtitle {
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--muted);
    text-transform: lowercase;
    letter-spacing: 0.12em;
    margin-bottom: 2.4rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-label {
    font-family: var(--mono);
    font-size: 0.6rem;
    color: var(--faint);
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.form-input,
.form-textarea {
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 1rem 1.2rem;
    font-family: var(--body);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--gold-dim);
    background: rgba(45, 40, 30, 0.4);
    box-shadow: 0 0 0 1px var(--gold-dim);
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

.submit-btn {
    margin-top: 0.8rem;
    justify-content: center;
    background: var(--gold);
    color: var(--bg);
    font-weight: 600;
    height: 52px;
    letter-spacing: 0.1em;
    text-transform: lowercase;
}

.submit-btn:hover:not(:disabled) {
    background: var(--cream);
    color: var(--bg);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-status {
    font-family: var(--mono);
    font-size: 0.7rem;
    margin-top: 1.2rem;
    text-align: center;
    display: none;
    letter-spacing: 0.05em;
}

/* RESPONSIVE */
@media (max-width: 880px) {
    nav {
        padding: 1rem 1.5rem;
        justify-content: flex-start;
        gap: 1.2rem;
    }

    .nav-links {
        display: none;
    }

    #hero {
        grid-template-columns: 1fr;
        padding: 6rem 1.5rem 3rem;
        gap: 2.5rem;
    }

    .hero-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .hero-socials {
        padding-bottom: 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    section {
        padding: 5rem 1.5rem;
    }

    footer {
        padding: 1.5rem;
    }

    .footer-main {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}
