:root {
    /* Purple palette */
    --bg:             #0c1410;
    --bg-elevated:    #101b15;
    --bg-card:        #16241c;
    --bg-glass:       rgba(26, 22, 40, 0.7);

    /* Purple gradient stops */
    --purple-deep:    #0d2618;
    --purple-mid:     #2f6b46;
    --purple-bright:  #4f9d6e;
    --purple-glow:    #6ec08f;
    --purple-light:   #a8d9bc;

    /* Accent: keep the gold but shift it warmer against purple */
    --accent:         #c17a4a;
    --accent-dim:     rgba(193,122,74,0.15);
    --accent-glow:    rgba(193,122,74,0.07);

    /* Black card surfaces — the "popping" elements */
    --card-black:     #080f0b;
    --card-border:    rgba(79,157,110,0.25);
    --card-border-hover: rgba(193,122,74,0.5);

    --text-primary:   #eaf2ec;
    --text-secondary: #b8ccbf;
    --text-muted:     #778f80;
    --border:         #24352b;
    --border-subtle:  #1a271f;

    --font-display:   'Cormorant Garamond', Georgia, serif;
    --font-ui:        'Syne', sans-serif;
    --font-mono:      'JetBrains Mono', monospace;
    --ease:           0.35s cubic-bezier(0.4,0,0.2,1);

    /* Gradient helpers */
    --grad-sunrise:   linear-gradient(135deg, #e0925c 0%, #c9855a 40%, #c17a4a 80%, #8a4f2e 100%);
    --grad-green-gold: linear-gradient(135deg, #4f9d6e 0%, #7fb98a 40%, #c9a15a 80%, #c17a4a 100%);
    --grad-timeline:  linear-gradient(135deg, #a8d9bc 0%, #c17a4a 100%);
    --grad-name:      linear-gradient(135deg, var(--purple-light) 0%, var(--accent) 100%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text-primary);
    font-family: var(--font-ui);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Grain overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 999;
}

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

.label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: var(--grad-sunrise);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 300;
}

/* ===========================
   NAV
=========================== */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.75rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background var(--ease), padding var(--ease);
    border-bottom: 1px solid transparent;
}

nav.scrolled {
    background: rgba(13,11,20,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.1rem 4rem;
    border-color: var(--border);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    background: var(--grad-sunrise);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.8rem;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: color var(--ease);
}

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

.nav-cta {
    padding: 0.5rem 1.4rem !important;
    border: 1px solid var(--purple-bright);
    color: var(--purple-light) !important;
}

.nav-cta:hover {
    background: var(--purple-bright) !important;
    color: #fff !important;
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--text-secondary);
    transition: all var(--ease);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(13,11,20,0.97);
    z-index: 99;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-secondary);
    transition: color var(--ease);
}
.nav-mobile a:hover { color: var(--purple-light); }
.nav-mobile a.nav-cta {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1px solid var(--purple-bright);
    color: var(--purple-light);
    padding: 0.7rem 2rem;
}

/* ===========================
   HERO
=========================== */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 9rem 4rem 5rem;
    overflow: hidden;
}

/* Purple radial background — the Brave-like glow */
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 70% at 65% 50%, rgba(79,157,110,0.45) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 70% 40%, rgba(47,107,70,0.6) 0%, transparent 60%),
        radial-gradient(ellipse 30% 40% at 80% 60%, rgba(110,192,143,0.2) 0%, transparent 50%),
        linear-gradient(135deg, #0c1410 0%, #0d2618 40%, #0c1410 100%);
    z-index: 0;
}

/* Animated orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: orbFloat 8s ease-in-out infinite;
    pointer-events: none;
}
.hero-orb-1 {
    width: 500px; height: 500px;
    background: rgba(79,157,110,0.25);
    top: 10%; right: 15%;
    animation-delay: 0s;
}
.hero-orb-2 {
    width: 300px; height: 300px;
    background: rgba(193,122,74,0.08);
    top: 50%; right: 35%;
    animation-delay: -3s;
}
.hero-orb-3 {
    width: 400px; height: 400px;
    background: rgba(110,192,143,0.15);
    bottom: 0; right: 5%;
    animation-delay: -6s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0,0) scale(1); }
    33%       { transform: translate(20px,-30px) scale(1.05); }
    66%       { transform: translate(-15px,15px) scale(0.97); }
}

/* Bottom fade */
#hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 35%;
    background: linear-gradient(to bottom, transparent, var(--bg));
    pointer-events: none;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1100px;
    width: 100%;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2.2rem;
    opacity: 0;
    transform: translateY(18px);
    animation: fadeUp 0.7s ease forwards 0.3s;
}

.hero-eyebrow::after {
    content: '';
    display: block;
    width: 2.5rem;
    height: 1px;
    background: var(--accent);
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(4.5rem, 11vw, 9.5rem);
    font-weight: 300;
    line-height: 0.88;
    letter-spacing: -0.025em;
    opacity: 0;
    transform: translateY(28px);
    animation: fadeUp 0.85s ease forwards 0.5s;
    color: var(--text-primary);
}

.hero-name em {
    font-style: italic;
    /* Purple-to-gold gradient on name */
    background: linear-gradient(135deg, var(--purple-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-rule {
    width: clamp(300px, 55vw, 680px);
    height: 1px;
    background: linear-gradient(90deg, var(--purple-bright), var(--accent), transparent);
    margin: 1.8rem 0;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.85s;
}

.hero-role {
    font-family: var(--font-mono);
    font-size: clamp(0.72rem, 1.2vw, 0.88rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 2.2rem;
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.7s ease forwards 0.95s;
}

.hero-desc {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1.8vw, 1.45rem);
    font-weight: 300;
    color: #ffffff;
    max-width: 560px;
    line-height: 1.55;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.7s ease forwards 1.1s;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.7s ease forwards 1.25s;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2.2rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: all var(--ease);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple-mid), var(--purple-bright));
    color: #fff;
    box-shadow: 0 0 30px rgba(79,157,110,0.4);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--purple-bright), var(--purple-glow));
    box-shadow: 0 0 40px rgba(79,157,110,0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--card-black);
    color: var(--text-secondary);
    border: 1px solid var(--card-border);
}
.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.hero-scroll {
    position: absolute;
    bottom: 3.5rem;
    left: 4rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    opacity: 0;
    animation: fadeIn 1.2s ease forwards 1.8s;
    z-index: 3;
}

.scroll-bar {
    width: 2rem;
    height: 1px;
    background: var(--text-muted);
    overflow: hidden;
    position: relative;
}

.scroll-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--purple-glow);
    transform: translateX(-100%);
    animation: scanLine 2.5s ease-in-out infinite 2.2s;
}

/* ===========================
   SECTIONS
=========================== */
.section-wrap {
    padding: 8rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.full-bleed {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}

/* Subtle purple glow on full-bleed sections */
.full-bleed::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse 60% 50% at 80% 50%, rgba(79,157,110,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.full-bleed .section-wrap {
    padding: 8rem 4rem;
    position: relative;
    z-index: 1;
}

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

.section-num {
    font-family: var(--font-mono);
    font-size: 0.63rem;
    letter-spacing: 0.18em;
    background: var(--grad-sunrise);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.4rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 300;
    line-height: 0.95;
    letter-spacing: -0.01em;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===========================
   ABOUT
=========================== */
.about-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 7rem;
    align-items: start;
}

.about-aside {
    position: sticky;
    top: 8rem;
}

.big-num {
    font-family: var(--font-display);
    font-size: clamp(6rem, 12vw, 10rem);
    font-weight: 300;
    line-height: 0.85;
    letter-spacing: -0.04em;
    background: linear-gradient(160deg, var(--purple-mid) 0%, var(--purple-light) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.big-num-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: 1rem;
}

.about-body h2 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.5vw, 2.9rem);
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.about-body p {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.4rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
}

/* Black cards with purple border glow */
.tag {
    padding: 0.28rem 0.75rem;
    border: 1px solid var(--card-border);
    background: var(--card-black);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: all var(--ease);
}

.tag:hover {
    border-color: var(--purple-glow);
    color: var(--purple-light);
    box-shadow: 0 0 12px rgba(79,157,110,0.2);
}

/* ===========================
   EXPERTISE GRID
=========================== */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-subtle);
}

.exp-card {
    background: var(--card-black);
    padding: 2.8rem;
    position: relative;
    overflow: hidden;
    transition: background var(--ease);
}

/* Purple top bar on hover */
.exp-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--purple-bright), var(--accent));
    transition: width 0.45s ease;
}

.exp-card:hover::before { width: 100%; }
.exp-card:hover {
    background: var(--bg-card);
    box-shadow: inset 0 0 40px rgba(79,157,110,0.05);
}

.exp-icon {
    display: none;
}

/* SVG gradient def injected inline — icons use url(#iconGrad) */
.exp-icon-grad {
    width: 2.2rem;
    height: 2.2rem;
    margin-bottom: 1.5rem;
}

.exp-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: 0.7rem;
    background: var(--grad-timeline);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.exp-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 1.2rem;
}

.exp-tag {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    padding: 0.18rem 0.5rem;
    background: rgba(79,157,110,0.08);
    color: var(--text-muted);
    border: 1px solid var(--card-border);
}

/* ===========================
   PROJEKTE
=========================== */
.leistungen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-subtle);
}

.l-card {
    padding: 2.8rem;
    background: var(--card-black);
    border: none;
    border-bottom: 1px solid transparent;
    transition: background var(--ease), border-color var(--ease);
    position: relative;
    overflow: hidden;
}

/* Gold bottom line sweeps in on hover */
.l-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: linear-gradient(90deg, var(--accent), rgba(193,122,74,0.2));
    box-shadow: 0 0 8px rgba(193,122,74,0.4);
    transition: width 0.5s ease;
}

.l-card:hover::after { width: 100%; }
.l-card:hover { background: var(--bg-card); }

/* Gold repo label  "// reponame" */
.l-repo {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.l-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.8rem;
    background: var(--grad-timeline);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.l-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.l-list {
    list-style: none;
    margin-top: 1.6rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.l-list li {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}

.l-list li::before { content: '//'; color: rgba(193,122,74,0.35); font-size: 0.58rem; }

.l-link {
    display: inline-block;
    margin-top: 1.8rem;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding-bottom: 0.2rem;
    transition: all var(--ease);
}

.l-link:hover {
    color: var(--accent);
    border-color: rgba(193,122,74,0.4);
}

/* ===========================
   TIMELINE
=========================== */
.timeline {
    position: relative;
    padding-left: 3.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    bottom: 1rem;
    width: 1px;
    background: linear-gradient(180deg, var(--purple-bright) 0%, var(--border) 50%, transparent 100%);
}

.t-item {
    position: relative;
    padding-bottom: 3.8rem;
}
.t-item:last-child { padding-bottom: 0; }

.t-dot {
    position: absolute;
    left: -3.5rem;
    top: 0.45rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 2px solid var(--text-muted);
    transform: translateX(-4.5px);
}

.t-item:first-child .t-dot {
    border-color: var(--purple-glow);
    background: var(--purple-bright);
    box-shadow: 0 0 0 5px rgba(79,157,110,0.15);
}

.t-period {
    font-family: var(--font-mono);
    font-size: 0.67rem;
    letter-spacing: 0.14em;
    color: var(--purple-glow);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.t-item h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
    background: var(--grad-timeline);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.t-company {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.t-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===========================
   KONTAKT
=========================== */
#kontakt {
    position: relative;
    overflow: hidden;
}

/* Purple glow behind Kontakt */
#kontakt::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(79,157,110,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.kontakt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.kontakt-left h2 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.05;
    margin-bottom: 0;
}

.kontakt-left h2 em {
    font-style: italic;
    background: linear-gradient(135deg, var(--purple-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.k-item {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: 1.4rem 1.8rem;
    background: var(--card-black);
    border: 1px solid var(--card-border);
    transition: border-color var(--ease), box-shadow var(--ease);
    margin-bottom: 0.8rem;
}

.k-item:hover {
    border-color: var(--purple-glow);
    box-shadow: 0 0 20px rgba(79,157,110,0.1);
}

.k-icon {
    width: 1.4rem; height: 1.4rem;
    color: var(--purple-glow);
    flex-shrink: 0;
}

.k-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.k-value {
    font-size: 0.92rem;
    color: var(--text-primary);
}

.k-value a { transition: color var(--ease); }
.k-value a:hover { color: var(--purple-light); }

/* ===========================
   FOOTER
=========================== */
footer {
    padding: 2.5rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-subtle);
    background: var(--card-black);
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.67rem;
    letter-spacing: 0.09em;
    background: var(--grad-sunrise);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-links {
    display: flex;
    gap: 2.2rem;
}

.footer-links a {
    font-family: var(--font-mono);
    font-size: 0.67rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color var(--ease);
}

.footer-links a:hover { color: var(--purple-light); }

/* Typing cursor */
.typing-cursor {
    display: inline-block;
    color: var(--purple-glow);
    font-weight: 300;
    animation: cursorBlink 0.8s ease-in-out infinite;
    margin-left: 1px;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* Pulsing active dot on timeline */
.t-dot-active {
    position: absolute;
    left: -3.5rem;
    top: 0.45rem;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--purple-bright);
    border: 2px solid var(--purple-glow);
    transform: translateX(-4.5px);
}

.t-dot-active::before,
.t-dot-active::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--purple-glow);
    animation: dotPulse 2s ease-out infinite;
}

.t-dot-active::after {
    inset: -8px;
    animation-delay: 0.6s;
}

@keyframes dotPulse {
    0%   { opacity: 0.7; transform: scale(1); }
    100% { opacity: 0;   transform: scale(2); }
}

/* ===========================
   ANIMATIONS
=========================== */
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    to { opacity: 1; }
}
@keyframes scanLine {
    0%   { transform: translateX(-100%); }
    50%  { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 960px) {
    nav, nav.scrolled { padding: 1.4rem 1.8rem; }
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
    #hero { padding: 8rem 1.8rem 5rem; }
    .section-wrap, .full-bleed .section-wrap { padding: 5rem 1.8rem; }
    .about-grid, .kontakt-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-aside { position: static; }
    .expertise-grid, .leistungen-grid { grid-template-columns: 1fr; }
    footer { padding: 2rem 1.8rem; flex-direction: column; gap: 1rem; text-align: center; }
    .hero-scroll { left: 1.8rem; }
}

@media (max-width: 640px) {
    .expertise-grid { grid-template-columns: 1fr; }
}


/* Accessibility and CSP-safe presentation helpers */
.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1000;
    padding: 0.7rem 1rem;
    background: var(--text-primary);
    color: var(--bg);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    transform: translateY(-160%);
    transition: transform var(--ease);
}
.skip-link:focus { transform: translateY(0); }
:where(a, button):focus-visible { outline: 2px solid var(--purple-light); outline-offset: 4px; }
body.menu-open { overflow: hidden; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.l-card-more { display: flex; flex-direction: column; justify-content: center; background: var(--bg); border: 1px dashed rgba(193,122,74,0.15); }
.l-repo-muted { color: rgba(193,122,74,0.4); }
.l-card-muted-title { color: var(--text-secondary); }
.l-card-more-copy { margin-top: 0.5rem; }
.kontakt-intro { margin-top: 1.5rem; font-family: var(--font-display); font-size: 1.1rem; color: var(--text-secondary); line-height: 1.7; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .hero-canvas, .hero-orb, .hero-scanline { display: none !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
    .typing-cursor { display: none !important; }
}
