/* =========================================================
   UNREAL GAMING — Portfolio
   Bold gaming/creator aesthetic. Warm dark base, amber/ember
   accent system, angular cuts, tactile interaction states.
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* --- Core palette: warm charcoal-black base --- */
    --bg-void: #0b0705;
    --bg-void-2: #120c08;
    --bg-surface: #17110c;
    --bg-surface-2: #1f160f;
    --bg-header: rgba(10, 7, 5, 0.94);

    /* --- Accent system: amber / ember / gold --- */
    --amber: #ff9d2e;
    --amber-rgb: 255, 157, 46;
    --amber-bright: #ffbb55;
    --amber-deep: #e8720c;
    --ember: #ff4d2e;
    --ember-rgb: 255, 77, 46;
    --gold: #ffd166;
    --gold-rgb: 255, 209, 102;

    /* --- Text --- */
    --text-primary: #f7ede1;
    --text-secondary: #cbb9a8;
    --text-muted: #93826f;
    --text-on-accent: #1a0f05;

    /* --- Borders --- */
    --border-subtle: rgba(255, 187, 120, 0.14);
    --border-strong: rgba(255, 157, 46, 0.45);

    /* --- Status (tuned warm, not neon) --- */
    --success: #3ddc84;
    --success-rgb: 61, 220, 132;
    --danger: #ff5252;
    --danger-rgb: 255, 82, 82;
    --warn: #ffb347;
    --warn-rgb: 255, 179, 71;

    /* --- Typography --- */
    --font-display: 'Archivo Black', 'Segoe UI Black', 'Arial Black', 'Haettenschweiler', Impact, sans-serif;
    --font-body: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'Cascadia Code', 'Consolas', 'SFMono-Regular', ui-monospace, Menlo, monospace;

    /* --- Motion --- */
    --ease-snap: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    /* --- Shape --- */
    --cut-lg: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
    --cut-sm: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-void);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Atmosphere: warm radial glows + faint diagonal energy lines */
body::before {
    content: '';
    position: fixed;
    top: -35%;
    right: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(var(--amber-rgb), 0.16) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    animation: float 9s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    bottom: -25%;
    left: -12%;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, rgba(var(--ember-rgb), 0.11) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    animation: float 11s ease-in-out infinite reverse;
}

.grain-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
    mix-blend-mode: overlay;
    background-image:
        repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.025) 0px, rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 4px),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

main, header, footer {
    position: relative;
    z-index: 2;
}

.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 420px;
    height: 420px;
    margin-left: -210px;
    margin-top: -210px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--amber-rgb), 0.18) 0%, rgba(var(--ember-rgb), 0.09) 42%, transparent 72%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
    will-change: transform;
}

.cursor-glow.active {
    opacity: 1;
}

@media (max-width: 900px), (pointer: coarse) {
    .cursor-glow {
        display: none;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(28px); }
}

/* =====================================================
   Header / Nav
   ===================================================== */

header {
    background: var(--bg-header);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--amber), var(--ember), transparent);
    opacity: 0.7;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: linear-gradient(120deg, var(--amber-bright), var(--ember));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    transition: filter 0.2s var(--ease-out);
}

.logo:hover {
    filter: brightness(1.2);
}

nav {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

nav button {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 0.7rem 1.1rem;
    transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.12s var(--ease-out);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 3px;
    position: relative;
}

nav button::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 2px;
    background: linear-gradient(90deg, var(--amber), var(--ember));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease-out);
}

nav button:hover {
    color: var(--text-primary);
    background: rgba(var(--amber-rgb), 0.08);
}

nav button:hover::after {
    transform: scaleX(1);
}

nav button:active {
    transform: translateY(1px);
}

nav button.active {
    color: var(--amber-bright);
    background: rgba(var(--amber-rgb), 0.12);
    border-color: var(--border-subtle);
}

nav button.active::after {
    transform: scaleX(1);
}

/* =====================================================
   Layout / page transitions
   ===================================================== */

main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.page {
    display: none;
    animation: pageIn 0.5s var(--ease-out);
}

.page.active {
    display: block;
}

@keyframes pageIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--amber);
    text-align: center;
    margin-bottom: 0.75rem;
}

.eyebrow-center {
    text-align: center;
}

.about-box .eyebrow,
.contact-form .eyebrow {
    text-align: left;
}

.section-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 3.5rem auto;
}

.section-divider span {
    display: block;
    height: 4px;
    background: var(--amber);
    transform: skewX(-22deg);
    box-shadow: 0 0 10px rgba(var(--amber-rgb), 0.5);
}

.section-divider span:nth-child(1) { width: 46px; }
.section-divider span:nth-child(2) { width: 26px; background: var(--ember); box-shadow: 0 0 10px rgba(var(--ember-rgb), 0.5); }
.section-divider span:nth-child(3) { width: 14px; background: var(--gold); box-shadow: 0 0 10px rgba(var(--gold-rgb), 0.5); }

/* =====================================================
   Hero
   ===================================================== */

.hero {
    text-align: center;
    margin-bottom: 3.5rem;
    animation: heroFadeIn 0.8s var(--ease-out) 0.15s forwards;
    opacity: 0;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.avatar-frame {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    background: linear-gradient(145deg, var(--amber-deep), var(--ember));
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 55px rgba(var(--amber-rgb), 0.35);
    transition: transform 0.35s var(--ease-snap), box-shadow 0.35s var(--ease-out);
}

.avatar-inner {
    width: 100%;
    height: 100%;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    background: var(--bg-void-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.6rem;
    overflow: hidden;
}

.avatar-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.avatar-frame:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 0 70px rgba(var(--amber-rgb), 0.5);
}

.avatar-status {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: var(--success);
    border: 3px solid var(--bg-void);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(var(--success-rgb), 0.8);
    animation: badgePulseGreen 2s ease-in-out infinite;
}

.profile-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 2.9rem;
    line-height: 1.1;
    margin-bottom: 0.9rem;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.name-primary {
    background: linear-gradient(120deg, var(--amber-bright) 0%, var(--amber) 40%, var(--ember) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.name-secondary {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    background: rgba(var(--amber-rgb), 0.06);
}

.profile-title {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.profile-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 auto 2rem;
    line-height: 1.7;
    max-width: 560px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2.5rem 0 0;
    flex-wrap: wrap;
    animation: socialLinksIn 0.8s var(--ease-out) 0.55s forwards;
    opacity: 0;
}

@keyframes socialLinksIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes socialIconPop {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

.social-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(var(--amber-rgb), 0.08);
    border: 1.5px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--amber-bright);
    cursor: pointer;
    transition: transform 0.18s var(--ease-snap), box-shadow 0.25s var(--ease-out), background 0.25s var(--ease-out), border-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
    text-decoration: none;
    animation: socialIconPop 0.5s var(--ease-out) calc(0.75s + var(--icon-delay, 0s)) forwards;
    opacity: 0;
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--amber), var(--ember));
    border-color: var(--amber);
    color: var(--text-on-accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 26px rgba(var(--amber-rgb), 0.4);
}

.social-icon:active {
    transform: translateY(-1px) scale(0.95);
}

/* =====================================================
   About
   ===================================================== */

.about-box {
    background: linear-gradient(160deg, var(--bg-surface) 0%, var(--bg-surface-2) 100%);
    border: 1px solid var(--border-subtle);
    clip-path: var(--cut-lg);
    padding: 2.5rem 2.75rem;
    margin: 1.5rem auto;
    max-width: 800px;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35);
}

.about-box h2,
.about-box h3 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    margin-bottom: 1.4rem;
    color: var(--text-primary);
    font-weight: 900;
    text-transform: uppercase;
}

.about-box p {
    color: var(--text-secondary);
    line-height: 1.85;
    font-size: 1.02rem;
    margin-bottom: 1.1rem;
}

.about-box--split {
    display: flex;
    align-items: stretch;
    padding: 0;
    max-width: 980px;
    gap: 0;
    overflow: hidden;
}

.about-text {
    flex: 1 1 54%;
    padding: 2.5rem 2.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.about-photo-frame {
    flex: 1 1 46%;
    position: relative;
    min-height: 320px;
    overflow: hidden;
    background: var(--bg-void-2);
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 58%;
    display: block;
    filter: saturate(1.08) contrast(1.03);
    transition: transform 0.6s var(--ease-out);
}

.about-photo-frame:hover .about-photo {
    transform: scale(1.05);
}

.about-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.4rem;
}

.fact-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(var(--amber-rgb), 0.08);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 0.45rem 0.9rem;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.fact-chip:hover {
    border-color: var(--border-strong);
    color: var(--amber-bright);
}

.skills-block {
    max-width: 980px;
    margin: 3rem auto 0;
}

.skills-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.75rem;
}

.skills-group-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-tag {
    background: rgba(var(--amber-rgb), 0.1);
    border: 1px solid var(--border-strong);
    color: var(--amber-bright);
    padding: 0.5rem 1.1rem;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: background 0.2s var(--ease-out), transform 0.15s var(--ease-out);
}

.skill-tag:hover {
    background: rgba(var(--amber-rgb), 0.2);
    transform: translateY(-2px);
}

.section-title {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.9rem;
    margin: 0 0 2.5rem;
    color: var(--text-primary);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

/* =====================================================
   Setup showcase
   ===================================================== */

.setup-section {
    margin: 0 0 3.5rem;
    animation: heroFadeIn 0.8s var(--ease-out) 0.3s forwards;
    opacity: 0;
}

.setup-card {
    position: relative;
    overflow: hidden;
    clip-path: var(--cut-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    background: linear-gradient(160deg, var(--bg-surface) 0%, var(--bg-surface-2) 100%);
}

.setup-image {
    width: 100%;
    height: 340px;
    object-fit: cover;
    object-position: center 58%;
    display: block;
    filter: saturate(1.08) contrast(1.03);
    transition: transform 0.6s var(--ease-out);
}

@media (max-width: 768px) {
    .setup-image {
        height: 240px;
    }
}

.setup-card:hover .setup-image {
    transform: scale(1.035);
}

.setup-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.6rem 1.9rem;
    background: linear-gradient(to top, rgba(6, 4, 2, 0.92) 0%, rgba(6, 4, 2, 0.5) 55%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.setup-caption-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    background: linear-gradient(120deg, var(--amber-bright) 0%, var(--amber) 40%, var(--ember) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.setup-caption-text {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .setup-caption {
        padding: 1.2rem 1.4rem;
    }

    .setup-caption-title {
        font-size: 1.05rem;
    }

    .setup-caption-text {
        font-size: 0.85rem;
    }
}

/* =====================================================
   Links (Liquid Glass)
   ===================================================== */

.links-hub {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

.links-hub::before,
.links-hub::after {
    content: '';
    position: absolute;
    z-index: -1;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.links-hub::before { left: 0; top: 10%; background: rgba(var(--amber-rgb), 0.3); }
.links-hub::after { right: 0; bottom: 5%; background: rgba(var(--ember-rgb), 0.25); }

.links-panel {
    border-radius: 26px;
    padding: 1.1rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04) 60%, rgba(255, 255, 255, 0.07));
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(22px) saturate(1.5);
    -webkit-backdrop-filter: blur(22px) saturate(1.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 18px 40px rgba(0, 0, 0, 0.4);
}

.links-panel-head {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.5rem 0.7rem 1rem;
}

.links-panel-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    text-transform: uppercase;
    color: var(--text-primary);
}

.links-panel-sub {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--amber);
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.link-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.75rem 0.9rem;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.link-row:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 10px 26px rgba(var(--amber-rgb), 0.18);
}

.link-row-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amber-bright);
    background: rgba(var(--amber-rgb), 0.14);
    border: 1px solid rgba(var(--amber-rgb), 0.3);
    transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.link-row:hover .link-row-icon {
    background: linear-gradient(135deg, var(--amber), var(--ember));
    color: var(--text-on-accent);
}

.link-row-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
}

.link-row-title {
    font-weight: 700;
    font-size: 0.95rem;
}

.link-row-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.link-row-arrow {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: color 0.2s var(--ease-out), transform 0.25s var(--ease-out);
}

.link-row:hover .link-row-arrow {
    color: var(--amber-bright);
    transform: translate(3px, -3px);
}

@media (max-width: 860px) {
    .links-hub { grid-template-columns: 1fr; }
}

/* =====================================================
   Contact
   ===================================================== */

.contact-layout {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    max-width: 1000px;
    margin: 1.5rem auto 0;
}

.contact-intro {
    flex: 1 1 36%;
    background: linear-gradient(160deg, var(--bg-surface) 0%, var(--bg-surface-2) 100%);
    border: 1px solid var(--border-subtle);
    clip-path: var(--cut-lg);
    padding: 2.25rem 2rem;
    position: sticky;
    top: 100px;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35);
}

.contact-intro h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contact-intro p {
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 0.96rem;
    margin-bottom: 1.75rem;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-channel {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    background: rgba(var(--amber-rgb), 0.05);
    text-decoration: none;
    color: var(--text-primary);
    transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out), transform 0.2s var(--ease-snap);
}

.contact-channel:hover {
    border-color: var(--amber);
    background: rgba(var(--amber-rgb), 0.12);
    transform: translateX(4px);
}

.contact-channel-icon {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    background: rgba(var(--amber-rgb), 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amber-bright);
    flex-shrink: 0;
}

.contact-channel-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.15rem;
    min-width: 0;
}

.contact-channel-label {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.contact-channel-value {
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-layout .contact-form {
    flex: 1 1 64%;
    margin: 0;
    min-width: 0;
}

.contact-form {
    max-width: 600px;
    margin: 1.5rem auto;
    background: linear-gradient(160deg, var(--bg-surface) 0%, var(--bg-surface-2) 100%);
    border: 1px solid var(--border-subtle);
    clip-path: var(--cut-lg);
    padding: 2.5rem 2.75rem;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35);
}

.form-group {
    margin-bottom: 1.4rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1.1rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1.5px solid var(--border-subtle);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s var(--ease-out);
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--amber);
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 0 3px rgba(var(--amber-rgb), 0.16);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(120deg, var(--amber), var(--ember));
    color: var(--text-on-accent);
    border: none;
    border-radius: 4px;
    font-family: var(--font-display);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.15s var(--ease-snap), box-shadow 0.25s var(--ease-out), filter 0.2s var(--ease-out);
    box-shadow: 0 6px 20px rgba(var(--amber-rgb), 0.3), inset 0 1px rgba(255, 255, 255, 0.25);
}

.submit-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(var(--amber-rgb), 0.45), inset 0 1px rgba(255, 255, 255, 0.25);
}

.submit-btn:active {
    transform: translateY(0) scale(0.98);
}

.message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.4rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.92rem;
}

.message.success {
    background: rgba(var(--success-rgb), 0.14);
    border: 1px solid var(--success);
    color: var(--success);
}

.message.error {
    background: rgba(var(--danger-rgb), 0.14);
    border: 1px solid var(--danger);
    color: var(--danger);
}

.message.show {
    animation: slideInMessage 0.4s var(--ease-out);
}

@keyframes slideInMessage {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.submit-btn.loading {
    background: linear-gradient(120deg, #b97a2e 0%, #8a5420 100%);
    color: rgba(26, 15, 5, 0.7);
    opacity: 0.9;
}

.submit-btn.loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid var(--text-on-accent);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.submit-btn.success {
    background: linear-gradient(120deg, var(--success) 0%, #22b866 100%);
    color: #06210f;
    transform: scale(1);
}

.submit-btn.success:hover {
    transform: scale(1);
}

.submit-btn.error {
    background: linear-gradient(120deg, var(--danger) 0%, #d62f2f 100%);
    color: #2a0505;
    transform: scale(1);
}

.submit-btn.error:hover {
    transform: scale(1);
}

.file-input-wrapper {
    position: relative;
    margin-top: 0.5rem;
}

#file {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border: 2px dashed var(--border-strong);
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
    gap: 0.5rem;
}

.file-label:hover {
    border-color: var(--amber);
    background: rgba(var(--amber-rgb), 0.08);
}

.file-label.dragover {
    border-color: var(--amber);
    background: rgba(var(--amber-rgb), 0.14);
}

.file-icon {
    font-size: 1.5rem;
}

.file-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

.file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
    margin-top: 1.4rem;
}

.file-preview-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-subtle);
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.file-preview-item:hover {
    border-color: var(--amber);
    transform: translateY(-2px);
}

.file-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview-item .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: var(--danger);
    color: #2a0505;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s var(--ease-out), transform 0.15s var(--ease-out);
    box-shadow: 0 2px 8px rgba(var(--danger-rgb), 0.4);
}

.file-preview-item:hover .remove-btn,
.file-preview-item .remove-btn:focus-visible {
    opacity: 1;
}

.file-preview-item .remove-btn:hover {
    transform: scale(1.12);
}

.file-preview-item .file-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 0.68rem;
    color: #fff;
    padding: 0.4rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    text-align: center;
    word-break: break-word;
    max-height: 40px;
    overflow: hidden;
}

/* =====================================================
   Legal pages
   ===================================================== */

.legal-page {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(160deg, var(--bg-surface) 0%, var(--bg-surface-2) 100%);
    border: 1px solid var(--border-subtle);
    clip-path: var(--cut-lg);
    padding: 3rem;
}

.legal-page h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--amber);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-page h2:first-of-type {
    margin-top: 0;
}

.legal-page p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.legal-page ul {
    list-style: none;
    margin-left: 0;
}

.legal-page ul li {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.legal-page ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--amber);
    font-weight: bold;
}

.legal-page a {
    color: var(--amber-bright);
    text-decoration: none;
    transition: color 0.2s var(--ease-out);
    position: relative;
}

.legal-page a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--amber);
    transition: width 0.3s var(--ease-out);
}

.legal-page a:hover {
    color: var(--gold);
}

.legal-page a:hover::after {
    width: 100%;
}

.legal-page strong {
    color: var(--text-primary);
}

/* =====================================================
   Footer
   ===================================================== */

footer {
    background: var(--bg-header);
    border-top: 1px solid var(--border-subtle);
    padding: 1.4rem 2rem;
    margin-top: auto;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-family: var(--font-mono);
}

.footer-links-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-links-legal a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s var(--ease-out);
    position: relative;
}

.footer-links-legal a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--amber);
    transition: width 0.3s var(--ease-out);
}

.footer-links-legal a:hover {
    color: var(--amber-bright);
}

.footer-links-legal a:hover::after {
    width: 100%;
}

.footer-social {
    display: flex;
    gap: 0.7rem;
}

.footer-social a {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(var(--amber-rgb), 0.08);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 0.88rem;
    transition: transform 0.2s var(--ease-snap), box-shadow 0.25s var(--ease-out), background 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
    position: relative;
}

.footer-social a:hover {
    background: linear-gradient(135deg, var(--amber), var(--ember));
    border-color: var(--amber);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(var(--amber-rgb), 0.35);
    color: var(--text-on-accent);
}

.footer-social a:active {
    transform: translateY(-1px) scale(0.94);
}

.footer-social a span {
    position: relative;
    z-index: 1;
}

/* =====================================================
   Projects
   ===================================================== */

.projects-section {
    margin: 0 0 4rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    margin-bottom: 2rem;
}

.projects-grid .project-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
}

.project-card--featured .project-media,
.project-card--featured .project-image,
.project-card--featured .project-placeholder {
    height: 100%;
    aspect-ratio: auto;
    min-height: 300px;
}

.project-card--featured .project-title {
    font-size: 1.6rem;
}

.project-card--featured .project-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.25rem;
}

.project-card {
    display: flex;
    flex-direction: column;
}

.project-card::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--amber), var(--ember));
    z-index: 11;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-4px);
}

.project-index {
    position: absolute;
    left: 14px;
    bottom: 8px;
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.14);
    pointer-events: none;
    z-index: 5;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.9rem;
}

.project-tag {
    padding: 0.2rem 0.55rem;
    border: 1px solid var(--border-subtle);
    border-radius: 3px;
    background: rgba(var(--amber-rgb), 0.07);
    color: var(--amber-bright);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.project-card {
    background: linear-gradient(160deg, var(--bg-surface) 0%, var(--bg-surface-2) 100%);
    border: 1px solid var(--border-subtle);
    clip-path: var(--cut-lg);
    overflow: hidden;
    opacity: 0;
    transform: scale(0.88) translateY(36px);
    will-change: transform, opacity;
    position: relative;
    transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-snap);
}

.project-card.visible {
    animation: projectPopIn 0.65s var(--ease-out) var(--delay, 0s) both;
}

@keyframes projectPopIn {
    0% { opacity: 0; transform: scale(0.88) translateY(36px); }
    60% { opacity: 1; }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.project-card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 16px 40px rgba(var(--amber-rgb), 0.2);
}

.project-card:hover .project-image {
    transform: scale(1.04);
}

.project-media {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(var(--amber-rgb), 0.14) 0%, rgba(var(--ember-rgb), 0.08) 100%);
}

.project-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.5s var(--ease-out);
}

.project-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.4rem;
    filter: drop-shadow(0 0 22px rgba(var(--amber-rgb), 0.35));
    transition: transform 0.5s var(--ease-out);
}

.project-card:hover .project-placeholder {
    transform: scale(1.08) rotate(-2deg);
}

.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.project-description {
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.project-description a {
    color: var(--amber-bright);
    text-decoration: none;
    transition: color 0.2s var(--ease-out);
    border-bottom: 1px solid transparent;
}

.project-description a:hover {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.project-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    align-self: flex-start;
    margin-top: auto;
    padding: 0.6rem 1.1rem;
    background: rgba(var(--amber-rgb), 0.1);
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    color: var(--amber-bright);
    text-decoration: none;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.15s var(--ease-snap);
}

.project-link-btn:hover {
    background: rgba(var(--amber-rgb), 0.2);
    border-color: var(--amber);
    transform: translateX(3px);
}

.project-link-btn:active {
    transform: translateX(3px) scale(0.97);
}

.project-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(11, 7, 5, 0.85);
    border: 1.5px solid;
    border-radius: 3px;
    padding: 0.35rem 0.65rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    z-index: 10;
    backdrop-filter: blur(6px);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.project-badge.active {
    border-color: var(--success);
    color: var(--success);
}

.project-badge.inactive {
    border-color: var(--danger);
    color: var(--danger);
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.project-badge.active .badge-dot {
    background: var(--success);
    animation: badgePulseGreen 2s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(var(--success-rgb), 0.9);
}

.project-badge.inactive .badge-dot {
    background: var(--danger);
    animation: badgePulseRed 2s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(var(--danger-rgb), 0.9);
}

@keyframes badgePulseGreen {
    0%, 100% { box-shadow: 0 0 6px rgba(var(--success-rgb), 0.9); }
    50% { box-shadow: 0 0 11px rgba(var(--success-rgb), 0.5); }
}

@keyframes badgePulseRed {
    0%, 100% { box-shadow: 0 0 6px rgba(var(--danger-rgb), 0.9); }
    50% { box-shadow: 0 0 11px rgba(var(--danger-rgb), 0.5); }
}

/* =====================================================
   Focus states (accessibility)
   ===================================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--amber-bright);
    outline-offset: 3px;
    border-radius: 2px;
}

/* =====================================================
   Reduced motion
   ===================================================== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .hero, .social-links, .social-icon,
    .setup-section,
    .project-card, .project-card.visible,
    .message.show {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    body::before, body::after {
        animation: none !important;
    }
}

/* =====================================================
   Responsive
   ===================================================== */

@media (max-width: 860px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid .project-card--featured {
        grid-template-columns: 1fr;
    }

    .project-card--featured .project-media,
    .project-card--featured .project-image,
    .project-card--featured .project-placeholder {
        height: auto;
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    .project-card--featured .project-content {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1.2rem;
    }

    nav {
        width: 100%;
        justify-content: center;
    }

    nav button {
        padding: 0.55rem 0.85rem;
        font-size: 0.75rem;
    }

    main {
        padding: 2rem 1rem;
    }

    .profile-name {
        font-size: 2.1rem;
    }

    .profile-title {
        font-size: 0.95rem;
    }

    .avatar-frame {
        width: 140px;
        height: 140px;
    }

    .avatar-inner {
        font-size: 3.4rem;
    }

    .about-box,
    .contact-form {
        padding: 1.75rem;
    }

    .about-box--split {
        flex-direction: column;
        padding: 0;
    }

    .about-text {
        padding: 1.75rem;
    }

    .about-photo-frame {
        min-height: 220px;
    }

    .skills-groups {
        gap: 1.4rem;
    }

    .contact-layout {
        flex-direction: column;
    }

    .contact-intro {
        position: static;
        width: 100%;
    }



    .section-title {
        font-size: 1.4rem;
    }

    .legal-page {
        padding: 2rem 1.5rem;
    }

    .legal-page h2 {
        font-size: 1.05rem;
    }

    footer {
        padding: 1rem 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-copyright {
        font-size: 0.78rem;
    }

    .footer-links-legal {
        gap: 1rem;
        font-size: 0.8rem;
    }

    .footer-social a {
        width: 32px;
        height: 32px;
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    main {
        padding: 1.5rem 1rem;
    }

    .profile-name {
        font-size: 1.65rem;
    }

    .name-secondary {
        font-size: 0.72rem;
        padding: 0.3rem 0.75rem;
    }

    .profile-title {
        font-size: 0.9rem;
    }

    .avatar-frame {
        width: 116px;
        height: 116px;
    }

    .avatar-inner {
        font-size: 2.7rem;
    }



    .contact-form {
        padding: 1.4rem;
    }






    .about-text,
    .contact-intro {
        padding: 1.4rem;
    }

    .about-photo-frame {
        min-height: 180px;
    }

    .contact-channels {
        gap: 0.6rem;
    }
}

/* Kompakte Projektkarten */
.projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.1rem;
}

.projects-grid .project-image,
.projects-grid .project-placeholder {
    aspect-ratio: 16 / 10;
    max-height: 150px;
    width: 100%;
}

.project-placeholder {
    font-size: 2.6rem;
}

.projects-grid .project-content {
    padding: 1rem 1.1rem 1.2rem;
}

.projects-grid .project-title {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.projects-grid .project-tags {
    margin-bottom: 0.6rem;
}

.projects-grid .project-description {
    font-size: 0.82rem;
    line-height: 1.55;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.projects-grid .project-link-btn {
    padding: 0.45rem 0.8rem;
    font-size: 0.74rem;
}

.projects-grid .project-card {
    clip-path: var(--cut-sm);
}

/* Liquid-Glass Projektkarten */
.projects-section {
    position: relative;
    isolation: isolate;
}

.projects-section::before,
.projects-section::after {
    content: '';
    position: absolute;
    z-index: -1;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
}

.projects-section::before {
    left: 4%;
    top: 30%;
    background: rgba(var(--amber-rgb), 0.35);
}

.projects-section::after {
    right: 6%;
    bottom: 0;
    background: rgba(var(--ember-rgb), 0.28);
}

.projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.4rem;
}

.projects-grid .project-card {
    clip-path: none;
    border-radius: 22px;
    padding: 0.7rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.04) 55%, rgba(255, 255, 255, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(22px) saturate(1.5);
    -webkit-backdrop-filter: blur(22px) saturate(1.5);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05),
        0 18px 40px rgba(0, 0, 0, 0.4);
}

.projects-grid .project-card::before {
    display: none;
}

.projects-grid .project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(120% 60% at 20% 0%, rgba(255, 255, 255, 0.16), transparent 55%);
    pointer-events: none;
}

.projects-grid .project-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        0 22px 50px rgba(var(--amber-rgb), 0.22);
}

.projects-grid .project-media {
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.projects-grid .project-image,
.projects-grid .project-placeholder {
    max-height: 160px;
}

.projects-grid .project-badge {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    border-width: 1px;
    padding: 0.3rem 0.7rem;
}

.projects-grid .project-tag {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--text-primary);
}

.projects-grid .project-link-btn {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--text-primary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.projects-grid .project-link-btn:hover {
    background: rgba(var(--amber-rgb), 0.3);
    border-color: rgba(var(--amber-rgb), 0.7);
}

/* Featured: Velora */
.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.projects-grid .project-actions .project-link-btn {
    margin-top: 0;
}

.projects-grid .project-link-btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.18);
}

.projects-grid .project-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) 1.4fr;
    gap: 0.9rem;
    padding: 0.9rem;
    border-radius: 28px;
}

.projects-grid .project-card--featured .project-media {
    height: 100%;
    min-height: 280px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 40%, rgba(var(--amber-rgb), 0.28), rgba(0, 0, 0, 0.35) 70%);
}

.projects-grid .project-card--featured .project-image {
    width: auto;
    height: auto;
    max-width: 75%;
    max-height: 260px;
    aspect-ratio: 1;
    filter: drop-shadow(0 12px 30px rgba(var(--amber-rgb), 0.35));
}

.projects-grid .project-card--featured .project-content {
    justify-content: center;
    padding: 1.4rem 1.4rem 1.4rem 0.8rem;
}

.projects-grid .project-card--featured .project-title {
    font-size: 1.8rem;
    margin-bottom: 0.7rem;
}

.projects-grid .project-card--featured .project-description {
    font-size: 0.95rem;
    line-height: 1.7;
    -webkit-line-clamp: unset;
    display: block;
}

.projects-grid .project-card--featured .project-link-btn {
    padding: 0.65rem 1.2rem;
    font-size: 0.82rem;
}

.projects-grid .project-card--featured .project-actions {
    margin-top: 0.4rem;
}

@media (max-width: 860px) {
    .projects-grid .project-card--featured {
        grid-template-columns: 1fr;
    }

    .projects-grid .project-card--featured .project-media {
        min-height: 200px;
    }

    .projects-grid .project-card--featured .project-content {
        padding: 0.8rem 0.6rem 1rem;
    }
}

.projects-grid {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 860px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.links-panel--wide {
    grid-column: 1 / -1;
}

.links-panel--wide .links-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 860px) {
    .links-panel--wide .links-list {
        grid-template-columns: 1fr;
    }
}

/* Hero-Buttons, Leistungen, CTA */
.btn-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: transform 0.2s var(--ease-out), background 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.btn-glass:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.18);
}

.btn-glass--primary {
    background: linear-gradient(120deg, var(--amber), var(--ember));
    color: var(--text-on-accent);
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(var(--amber-rgb), 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-glass--primary:hover {
    background: linear-gradient(120deg, var(--amber-bright), var(--ember));
    box-shadow: 0 12px 30px rgba(var(--amber-rgb), 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.hero-cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.services-section {
    margin: 0 0 3rem;
}

.services-section .section-title {
    margin-bottom: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.service-card,
.cta-banner {
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04) 60%, rgba(255, 255, 255, 0.07));
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(22px) saturate(1.5);
    -webkit-backdrop-filter: blur(22px) saturate(1.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 18px 40px rgba(0, 0, 0, 0.4);
}

.service-card {
    padding: 1.6rem;
    transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.3);
}

.service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    border-radius: 16px;
    background: rgba(var(--amber-rgb), 0.16);
    border: 1px solid rgba(var(--amber-rgb), 0.35);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.service-card p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.project-role {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--amber);
    margin: -0.25rem 0 0.7rem;
}

.cta-banner {
    text-align: center;
    padding: 2.5rem 1.5rem;
    margin-top: 3rem;
    background-image: radial-gradient(80% 140% at 50% 0%, rgba(var(--amber-rgb), 0.22), transparent 70%), linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
}

.cta-banner h2 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.cta-banner p {
    max-width: 520px;
    margin: 0 auto 1.6rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

@media (max-width: 860px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .cta-banner h2 {
        font-size: 1.3rem;
    }
}

.projects-grid {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
    .contact-layout {
        align-items: stretch;
        gap: 1.25rem;
    }

    .contact-layout .contact-intro,
    .contact-layout .contact-form {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .contact-layout .contact-form {
        border-radius: 22px;
        clip-path: none;
    }
}

@media (max-width: 860px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid .project-image,
    .projects-grid .project-placeholder {
        max-height: 190px;
    }
}

/* Hero: zweispaltig mit Terminal */
.hero.hero--split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
    text-align: left;
    margin-bottom: 4rem;
}

.hero--split .eyebrow {
    text-align: left;
}

.hero-id {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.4rem;
}

.hero--split .avatar-frame {
    width: 120px;
    height: 120px;
    margin: 0;
    flex-shrink: 0;
}

.hero--split .profile-name {
    align-items: flex-start;
    font-size: 2.6rem;
    margin-bottom: 0;
}

.hero--split .profile-subtitle {
    margin: 0 0 1.8rem;
    max-width: 480px;
}

.hero--split .hero-cta {
    justify-content: flex-start;
    margin: 0 0 1.6rem;
}

.hero--split .social-links {
    justify-content: flex-start;
    margin: 0;
}

.hero-terminal {
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(22px) saturate(1.5);
    -webkit-backdrop-filter: blur(22px) saturate(1.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 80px rgba(var(--amber-rgb), 0.16);
    animation: float 7s ease-in-out infinite;
    font-family: var(--font-mono);
}

.term-bar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.term-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
}

.term-dot:nth-child(1) { background: #ff5f57; }
.term-dot:nth-child(2) { background: #febc2e; }
.term-dot:nth-child(3) { background: #28c840; }

.term-title {
    margin-left: 0.6rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.term-body,
.term-projects {
    padding: 1.1rem 1.3rem 0;
}

.term-projects {
    padding-bottom: 1.3rem;
    padding-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.term-line,
.term-out,
.term-project {
    opacity: 0;
    animation: termIn 0.45s var(--ease-out) calc(0.6s + var(--i) * 0.45s) forwards;
}

@keyframes termIn {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

.term-line {
    font-size: 0.88rem;
    color: var(--text-primary);
    margin-top: 0.7rem;
}

.term-out {
    font-size: 0.84rem;
    color: var(--text-secondary);
    margin: 0.25rem 0 0 1.1rem;
}

.term-prompt {
    color: var(--amber);
    font-weight: 700;
}

.term-project {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.55rem 0.7rem;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.term-project:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(var(--amber-rgb), 0.5);
}

.term-project-logo {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    object-fit: cover;
    flex-shrink: 0;
}

.term-project-name {
    flex: 1;
    font-size: 0.86rem;
    font-weight: 700;
}

.term-live {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--success);
}

.term-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    animation: badgePulseGreen 2s ease-in-out infinite;
}

.term-cursor-line {
    margin-top: 0.4rem;
}

.term-cursor {
    display: inline-block;
    width: 8px;
    height: 1em;
    vertical-align: text-bottom;
    background: var(--amber);
    animation: termBlink 1s steps(1) infinite;
}

@keyframes termBlink {
    50% { opacity: 0; }
}

@media (max-width: 900px) {
    .hero.hero--split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-id {
        gap: 1rem;
    }

    .hero--split .avatar-frame {
        width: 88px;
        height: 88px;
    }

    .hero--split .profile-name {
        font-size: 1.5rem;
    }
}

/* Dashboard-Screenshot in der Velora-Karte */
.project-shot {
    grid-column: 1 / -1;
    margin: 0 1.5rem 1.5rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.project-shot-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.9rem;
    background: rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.project-shot-bar span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
}

.project-shot-bar em {
    margin-left: 0.6rem;
    font-style: normal;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.project-shot img {
    display: block;
    width: 100%;
    height: auto;
}

.logo { outline-offset: 4px; }
