/* ============================================================
   HEXENÄSTHETIKEN – Stylesheet v3
   Forschungsplattform
   ============================================================ */

:root {
    --bg-deep:        #0a0f0d;
    --bg-elevated:    #111a16;
    --bg-card:        #141e19;
    --bg-card-hover:  #1a2822;
    --text-primary:   #e8e4df;
    --text-secondary: #a09b94;
    --text-muted:     #6b6760;
    --accent:         #b8860b;
    --accent-light:   #d4a031;
    --accent-dim:     rgba(184, 134, 11, 0.15);
    --accent-glow:    rgba(184, 134, 11, 0.06);
    --border:         rgba(232, 228, 223, 0.08);
    --border-accent:  rgba(184, 134, 11, 0.3);

    --font-display:  'Cormorant Garamond', 'Playfair Display', 'Georgia', serif;
    --font-body:     'Source Sans 3', 'Source Sans Pro', sans-serif;

    /* Dark Academia palette */
    --burgundy:       #5c1a2a;
    --burgundy-dim:   rgba(92, 26, 42, 0.2);
    --parchment:      #d4cdc0;
    --parchment-dim:  rgba(212, 205, 192, 0.06);

    /* Light sections — parchment tones */
    --bg-light:       #f0ebe4;
    --bg-light-warm:  #e8e0d4;
    --text-dark:      #1a1612;
    --text-dark-secondary: #4a4540;
    --text-dark-muted: #7a756e;
    --border-light:   rgba(26, 22, 18, 0.1);
    --accent-on-light: #8a6508;

    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  1.5rem;
    --space-lg:  3rem;
    --space-xl:  5rem;
    --space-xxl: 8rem;

    --content-width:  680px;
    --wide-width:     960px;
    --max-width:      1200px;

    --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);

    /* Motion timing — unified vocabulary */
    --dur-micro:    300ms;  /* hover, click feedback */
    --dur-standard: 600ms;  /* color, opacity changes */
    --dur-reveal:   900ms;  /* scroll reveals */
    --dur-hero:     1400ms; /* once-per-session hero entrances */
}

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

html {
    font-size: 18px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-deep);
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection {
    background: var(--accent-dim);
    color: var(--text-primary);
}


/* ============================================================
   NAVIGATION
   ============================================================ */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    transition: background 0.5s var(--ease-smooth), padding 0.4s var(--ease-smooth);
}

.site-nav.is-scrolled {
    background: rgba(10, 15, 13, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding-top: var(--space-sm);
    padding-bottom: var(--space-sm);
}

.site-nav--essay {
    background: rgba(10, 15, 13, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.nav-logo:hover { color: var(--text-primary); }

.nav-links {
    display: flex;
    gap: var(--space-md);
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

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


/* ============================================================
   SHARED: Section Kickers (für alle Sektionen)
   ============================================================ */

.section-kicker {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-md);
}


/* ============================================================
   HERO
   ============================================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: -10% 0;
    z-index: 0;
    will-change: transform;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    filter: brightness(0.35) saturate(0.6);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(
            ellipse 80% 60% at 50% 45%,
            transparent 0%,
            rgba(10, 15, 13, 0.4) 50%,
            rgba(10, 15, 13, 0.85) 100%
        ),
        linear-gradient(
            to bottom,
            rgba(10, 15, 13, 0.2) 0%,
            transparent 30%,
            transparent 60%,
            var(--bg-deep) 100%
        );
}

.hero-grain {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: var(--wide-width);
    padding: 0 var(--space-lg);
}

.hero-overline {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) 0.3s forwards;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 7.5rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeUp 1.4s var(--ease-out) 0.5s forwards;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(0.95rem, 1.8vw, 1.25rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeUp 1.4s var(--ease-out) 0.75s forwards;
}

.hero-line {
    width: 48px;
    height: 1px;
    background: var(--accent);
    margin: 0 auto;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) 1s forwards;
}

.hero-scroll-hint {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) 1.5s forwards;
}

.hero-scroll-hint span {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero-scroll-line {
    width: 1px;
    height: 32px;
    background: var(--text-muted);
    animation: scrollPulse 2.5s var(--ease-smooth) infinite 2s;
    transform-origin: top center;
}

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


/* ============================================================
   HERO SPLIT TEXT — per-character entrance
   JS wraps each character in .hero-char spans.
   ============================================================ */

@keyframes charReveal {
    from {
        opacity: 0;
        transform: translateY(60px);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.hero-title .hero-char {
    display: inline-block;
    opacity: 0;
    animation: charReveal 0.9s var(--ease-out) forwards;
    will-change: transform, opacity, filter;
}

/* Whitespace characters should not be inline-block (they collapse) */
.hero-title .hero-char--space {
    width: 0.3em;
}

/* When split text is active, remove the block-level animation */
.hero-title.is-split {
    opacity: 1;
    animation: none;
}


/* ============================================================
   SCROLL MARQUEE — horizontal scroll-driven text
   ============================================================ */

.scroll-marquee {
    overflow: hidden;
    padding: var(--space-lg) 0;
    position: relative;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.scroll-marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    opacity: 0.05;
    will-change: transform;
    transition: none;
}

.scroll-marquee-track span {
    flex-shrink: 0;
}

.marquee-dot {
    padding: 0 0.3em;
    opacity: 0.5;
    font-size: 0.6em;
}


/* ============================================================
   STICKY SECTION HEADERS — cinematic overlap
   Section titles pin, content scrolls over them.
   ============================================================ */

.essays-section,
.exkurse-section,
.archiv-section {
    position: relative;
}

.essays-section > .section-header,
.exkurse-section > .section-header,
.archiv-section > .section-header {
    position: sticky;
    top: 12vh;
    z-index: 1;
    padding-bottom: var(--space-xxl);
}

.essays-section > .section-header .section-title,
.exkurse-section > .section-header .section-title,
.archiv-section > .section-header .section-title {
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1.0;
    letter-spacing: -0.03em;
}

.essays-list,
.exkurse-list,
.archiv-preview {
    position: relative;
    z-index: 2;
}


/* ============================================================
   OVERSIZED SECTION NUMBERS — decorative parallax
   Generated via data-section-number attribute.
   ============================================================ */

[data-section-number] {
    position: relative;
}

.section-number-deco {
    position: absolute;
    top: 0;
    right: var(--space-lg);
    font-family: var(--font-display);
    font-size: clamp(8rem, 22vw, 18rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1;
    color: var(--text-primary);
    opacity: 0.03;
    pointer-events: none;
    user-select: none;
    will-change: transform;
    z-index: 0;
}


/* ============================================================
   SCALE-ON-SCROLL — Perspectives grid zoom
   ============================================================ */

.perspectives-list {
    transform: scale(0.88);
    transition: transform 1.2s var(--ease-out);
    will-change: transform;
}

.perspectives-list.is-scaled {
    transform: scale(1);
}


/* ============================================================
   ESSAY CARDS — staggered overlap + rotation
   ============================================================ */

.essay-card:nth-child(2) {
    margin-top: calc(var(--space-lg) * -0.5);
    transform: rotate(0.8deg) translateY(20px);
    transition: transform 0.8s var(--ease-out), background-color 0.5s ease;
}

.essay-card:nth-child(3) {
    margin-top: calc(var(--space-lg) * -0.5);
    transform: rotate(-0.6deg) translateY(30px);
    transition: transform 0.8s var(--ease-out), background-color 0.5s ease;
}

.essay-card:nth-child(2).is-aligned,
.essay-card:nth-child(3).is-aligned {
    transform: rotate(0deg) translateY(0);
}


/* ============================================================
   FOCUS SECTION — giant background text "HEXE"
   ============================================================ */

.focus-section .focus-inner::before {
    content: 'HEXE';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + var(--backdrop-y, 0px)));
    font-family: var(--font-display);
    font-size: clamp(10rem, 28vw, 22rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--text-dark);
    opacity: 0.04;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    will-change: transform;
    z-index: 0;
}

.focus-inner {
    position: relative;
}

.focus-inner > * {
    position: relative;
    z-index: 1;
}


/* ============================================================
   MOBILE — disable heavy effects
   ============================================================ */

@media (max-width: 640px) {
    .scroll-marquee-track {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .section-number-deco {
        font-size: clamp(5rem, 18vw, 8rem);
        right: var(--space-md);
    }

    .essays-section > .section-header,
    .exkurse-section > .section-header,
    .archiv-section > .section-header {
        position: relative;
        top: auto;
    }

    .essay-card:nth-child(2),
    .essay-card:nth-child(3) {
        margin-top: 0;
        transform: none;
    }

    .focus-section .focus-inner::before {
        font-size: clamp(5rem, 20vw, 10rem);
    }
}


/* ============================================================
   INTRO
   ============================================================ */

.intro-section {
    padding: var(--space-xxl) var(--space-lg) var(--space-xl);
    display: flex;
    justify-content: center;
    background: var(--bg-light);
}

.intro-inner {
    max-width: 680px;
    text-align: center;
}

.intro-overline {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-on-light);
    margin-bottom: var(--space-md);
}

.intro-text {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.65;
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

.intro-text-secondary {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-dark-secondary);
}


/* ============================================================
   PERSPEKTIVEN – Neue Sektion
   Signalisiert interdisziplinäre Breite ohne Rubriken-Overkill
   ============================================================ */

.perspectives-section {
    padding: var(--space-xl) var(--space-lg);
    max-width: var(--wide-width);
    margin: 0 auto;
    border-top: 1px solid var(--border);
}

.perspectives-inner {
    display: block;
}

.perspectives-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    max-width: 520px;
}

.perspectives-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    margin-bottom: var(--space-lg);
    border: 1px solid var(--border);
}

.perspectives-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--bg-deep);
    transition: background 0.4s ease;
}

.perspectives-list li:hover {
    background: var(--bg-elevated);
}

.perspective-number {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-style: italic;
    color: var(--accent);
    letter-spacing: 0.05em;
}

.perspective-name {
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.perspectives-note {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.92rem;
    color: var(--text-muted);
    max-width: 520px;
}


/* ============================================================
   ESSAYS SECTION
   ============================================================ */

.essays-section {
    padding: var(--space-xl) var(--space-lg) var(--space-xl);
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border);
    max-width: 640px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.section-claim {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--accent-light);
    margin-bottom: var(--space-md);
    letter-spacing: 0.01em;
}

.section-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 560px;
}


/* --- Essay Card --- */
.essays-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.essay-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--space-lg);
    padding: var(--space-md);
    border-radius: 4px;
    transition: background-color 0.5s ease;
}

.essay-card:hover {
    background-color: var(--bg-card-hover);
}

.essay-card-image {
    aspect-ratio: 3 / 2;
    border-radius: 3px;
    overflow: hidden;
}

.essay-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.75) saturate(0.7);
    transition: filter 0.6s var(--ease-smooth), transform 0.8s var(--ease-out);
}

.essay-card:hover .essay-card-img {
    filter: brightness(0.85) saturate(0.85);
    transform: scale(1.03);
}

.essay-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-xs) 0;
}

/* Tag System – Multiple Tags pro Essay */
.essay-card-tags {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    flex-wrap: wrap;
}

.essay-card-tag {
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 0.25rem 0.7rem;
    border: 1px solid var(--border-accent);
    border-radius: 2px;
}

.essay-card-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    transition: color 0.3s ease;
}

.essay-card:hover .essay-card-title {
    color: var(--accent-light);
}

.essay-card-excerpt {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.essay-card-date {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
}


/* ============================================================
   EXKURSE SECTION – Neue Ebene
   Kürzere Texte, kompaktere Darstellung
   ============================================================ */

.exkurse-section {
    padding: var(--space-xl) var(--space-lg);
    max-width: none;
    background: var(--bg-light);
}

.exkurse-section > .section-header,
.exkurse-section > .exkurse-list {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.exkurse-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border-light);
    border: 1px solid var(--border-light);
}

.exkurse-item {
    padding: var(--space-lg);
    background: var(--bg-light);
    transition: background 0.5s ease;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.exkurse-item:hover {
    background: var(--bg-light-warm);
}

.exkurse-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xs);
}

.exkurse-tag {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-on-light);
}

.exkurse-date {
    font-size: 0.7rem;
    color: var(--text-dark-muted);
    letter-spacing: 0.06em;
    font-style: italic;
}

.exkurse-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.exkurse-item:hover .exkurse-title {
    color: var(--accent-on-light);
}

.exkurse-title em {
    font-style: italic;
}

.exkurse-excerpt {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text-dark-secondary);
}


/* ============================================================
   ARCHIV SECTION – Neue Ebene
   Zurzeit: Placeholder-Sektion (Archiv wächst langsam)
   ============================================================ */

.archiv-section {
    padding: var(--space-xl) var(--space-lg) var(--space-xxl);
    max-width: var(--max-width);
    margin: 0 auto;
}

.archiv-preview {
    padding: var(--space-xxl) var(--space-lg);
    border: 1px solid var(--border);
    text-align: center;
    background:
        radial-gradient(
            ellipse at center,
            var(--accent-glow) 0%,
            transparent 70%
        );
}

.archiv-placeholder {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}


/* ============================================================
   FOCUS SECTION – Dissertationskern
   Zweistufige Positionierung: erst breit, dann fokussiert
   ============================================================ */

.focus-section {
    padding: var(--space-xxl) var(--space-lg);
    background: var(--bg-light-warm);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.focus-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 60% 80% at 50% 50%,
        rgba(184, 134, 11, 0.04) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.focus-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.focus-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: var(--space-md);
    letter-spacing: -0.01em;
}

.focus-text {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

.focus-text-secondary {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-dark-secondary);
    margin-bottom: var(--space-lg);
}

.focus-link {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: var(--accent-on-light);
    border-bottom: 1px solid rgba(138, 101, 8, 0.3);
    padding-bottom: 2px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.focus-link:hover {
    color: var(--text-dark);
    border-bottom-color: var(--text-dark);
}


/* ============================================================
   ESSAY HERO
   ============================================================ */

.essay-hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.essay-hero-image {
    position: absolute;
    inset: -8% 0;
    z-index: 0;
    will-change: transform;
}

.essay-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    filter: brightness(0.35) saturate(0.55);
}

.essay-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            to bottom,
            rgba(10, 15, 13, 0.15) 0%,
            rgba(10, 15, 13, 0.3) 40%,
            rgba(10, 15, 13, 0.7) 70%,
            var(--bg-deep) 100%
        );
}

.essay-hero-content {
    position: relative;
    z-index: 2;
    padding: var(--space-xxl) var(--space-lg) var(--space-xl);
    max-width: var(--wide-width);
    margin: 0 auto;
    width: 100%;
    opacity: 0;
    animation: fadeUp 1.2s var(--ease-out) 0.3s forwards;
}

.essay-hero-tags {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.essay-hero-tag {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--border-accent);
    border-radius: 2px;
}

.essay-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}

.essay-hero-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}


/* ============================================================
   ESSAY BODY
   ============================================================ */

.essay-body {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg) var(--space-lg);
}

.essay-body + .essay-body {
    padding-top: var(--space-lg);
}

.essay-body p {
    margin-bottom: var(--space-md);
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-primary);
}

.essay-body em { font-style: italic; }

.essay-lead {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.75;
    color: var(--text-primary);
    margin-bottom: var(--space-lg) !important;
}

.essay-separator {
    width: 32px;
    height: 1px;
    background: var(--border-accent);
    margin: var(--space-xl) 0;
}

.essay-heading {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-primary);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    letter-spacing: -0.01em;
}

.essay-pullquote {
    margin: var(--space-xl) 0;
    padding: var(--space-lg) 0 var(--space-lg) var(--space-lg);
    border-left: 2px solid var(--accent);
    position: relative;
}

.essay-pullquote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 200px;
    background: linear-gradient(to right, var(--accent-glow), transparent);
    pointer-events: none;
    opacity: 0.6;
}

.essay-pullquote p {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 0 !important;
    position: relative;
}

.essay-fullbleed {
    margin: var(--space-xxl) 0;
    position: relative;
    overflow: hidden;
}

.essay-fullbleed-img {
    width: 100%;
    height: 55vh;
    min-height: 360px;
    max-height: 600px;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.5) saturate(0.6);
}

.essay-fullbleed::before,
.essay-fullbleed::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 120px;
    z-index: 1;
    pointer-events: none;
}

.essay-fullbleed::before {
    top: 0;
    background: linear-gradient(to bottom, var(--bg-deep), transparent);
}

.essay-fullbleed::after {
    bottom: 0;
    background: linear-gradient(to top, var(--bg-deep), transparent);
}

.essay-fullbleed-caption {
    position: relative;
    z-index: 2;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg) 0;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--text-muted);
}

.essay-closing {
    margin-top: var(--space-xl);
    font-family: var(--font-display);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}


/* ============================================================
   ESSAY FOOTER
   ============================================================ */

.essay-footer {
    border-top: 1px solid var(--border);
    padding: var(--space-xl) var(--space-lg);
}

.essay-footer-inner {
    max-width: var(--content-width);
    margin: 0 auto;
}

.essay-back-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
    display: inline-block;
    margin-bottom: var(--space-xl);
}

.essay-back-link:hover { color: var(--accent); }

.references-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.references-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.references-list li {
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text-muted);
    padding-left: var(--space-md);
    border-left: 1px solid var(--border);
}


/* ============================================================
   PROJEKT PAGE
   ============================================================ */

.projekt-hero {
    padding: calc(var(--space-xxl) + var(--space-xl)) var(--space-lg) var(--space-xl);
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.projekt-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 50% 70% at 50% 30%,
        var(--accent-glow) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.projekt-hero-inner {
    max-width: var(--content-width);
    text-align: center;
    position: relative;
    z-index: 1;
}

.projekt-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    opacity: 0;
    animation: fadeUp 1.2s var(--ease-out) 0.2s forwards;
}

.projekt-body {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg) var(--space-xxl);
}

.projekt-section {
    margin-bottom: var(--space-xxl);
}

.projekt-section:last-child {
    margin-bottom: 0;
}

.projekt-heading {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border);
    letter-spacing: -0.01em;
}

.projekt-section p {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.projekt-section p em { font-style: italic; }
.projekt-section p strong { font-weight: 500; color: var(--text-primary); }

.projekt-list {
    list-style: none;
    margin: var(--space-md) 0;
    padding: var(--space-md) 0 var(--space-md) var(--space-lg);
    border-left: 1px solid var(--border-accent);
}

.projekt-list li {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.projekt-list li:last-child { margin-bottom: 0; }


/* ============================================================
   LEGAL PAGES (Impressum, Datenschutz)
   Reuse .projekt-body / .projekt-section for content.
   Own hero style: minimal, no radial glow.
   ============================================================ */

.legal-hero {
    padding: calc(var(--space-xxl) + var(--space-xl)) var(--space-lg) var(--space-xl);
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--border);
}

.legal-hero-inner {
    max-width: var(--content-width);
    text-align: center;
}

.legal-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    opacity: 0;
    animation: fadeUp 1.2s var(--ease-out) 0.2s forwards;
}

.legal-link {
    color: var(--accent);
    border-bottom: 1px solid var(--accent-dim);
    padding-bottom: 1px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.legal-link:hover {
    color: var(--accent-light);
    border-bottom-color: var(--accent-light);
}

@media (max-width: 640px) {
    .legal-hero {
        padding: calc(var(--space-xl) + var(--space-lg)) var(--space-md) var(--space-lg);
    }
}


/* ============================================================
   SITE FOOTER
   ============================================================ */

.site-footer {
    border-top: 1px solid var(--border);
    padding: var(--space-xl) var(--space-lg) var(--space-lg);
    margin-top: var(--space-xl);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-lg);
}

.footer-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.footer-description {
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 400px;
}

.footer-contact {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: var(--space-lg) auto 0;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.footer-bottom p {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.footer-legal-links {
    display: flex;
    gap: var(--space-md);
}

.footer-legal-links a {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--accent);
}


/* ============================================================
   DARK ACADEMIA — Renaissance-inflected details
   ============================================================ */

/* --- Drop Cap on essay lead paragraphs --- */
.essay-lead::first-letter {
    font-family: var(--font-display);
    font-size: 4.2em;
    float: left;
    line-height: 0.78;
    margin-right: 0.08em;
    margin-top: 0.05em;
    color: var(--accent-light);
    font-weight: 300;
}

/* --- Ornamental separators (replacing plain lines) --- */
.essay-separator {
    width: auto;
    height: auto;
    background: none;
    text-align: center;
    margin: var(--space-xl) 0;
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--accent);
    letter-spacing: 0.4em;
    opacity: 0.5;
}

.essay-separator::before {
    content: '— ✦ —';
}

/* --- Section header ornamental flourish --- */
.section-header::after {
    content: '⸻';
    display: block;
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--accent);
    opacity: 0.3;
    margin-top: var(--space-md);
    letter-spacing: 0.5em;
}

/* --- Pullquote — Renaissance feel --- */
.essay-pullquote {
    border-left: 2px solid var(--burgundy);
}

.essay-pullquote::before {
    background: linear-gradient(to right, var(--burgundy-dim), transparent);
}

.essay-pullquote p {
    font-weight: 300;
    letter-spacing: 0.01em;
}

/* --- Hero title — lighter weight for Cormorant elegance --- */
.hero-title {
    font-weight: 300;
    letter-spacing: -0.01em;
}

/* --- Nav logo — Renaissance small caps feel --- */
.nav-logo {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* --- Intro text — Cormorant body text --- */
.intro-text {
    font-weight: 300;
    font-size: 1.4rem;
    line-height: 1.7;
}

/* --- Section titles — thinner, taller --- */
.section-title {
    font-weight: 300;
    letter-spacing: -0.02em;
}

/* --- Essay card titles --- */
.essay-card-title {
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* --- Focus section title --- */
.focus-title {
    font-weight: 300;
}

/* --- Projekt headings — Cormorant style --- */
.projekt-heading {
    font-weight: 400;
    letter-spacing: 0.02em;
}

.projekt-title {
    font-weight: 300;
}

/* --- Essay headings — refined --- */
.essay-heading {
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* --- Hero essay title --- */
.essay-hero-title {
    font-weight: 300;
}

/* --- Tags — slightly more refined --- */
.essay-card-tag,
.essay-hero-tag,
.exkurse-tag {
    font-family: var(--font-display);
    font-weight: 500;
    font-style: italic;
    text-transform: none;
    letter-spacing: 0.04em;
    font-size: 0.72rem;
}

/* --- Footer title --- */
.footer-title {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* --- Kicker overlines — more calligraphic --- */
.section-kicker,
.hero-overline,
.intro-overline {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
}

/* --- Archiv placeholder — parchment glow --- */
.archiv-preview {
    background:
        radial-gradient(
            ellipse at center,
            var(--parchment-dim) 0%,
            transparent 70%
        );
}

/* --- Light section overrides for headers and content --- */
.exkurse-section .section-header {
    border-bottom-color: var(--border-light);
}

.exkurse-section .section-kicker {
    color: var(--accent-on-light);
}

.exkurse-section .section-title {
    color: var(--text-dark);
}

.exkurse-section .section-claim {
    color: var(--accent-on-light);
}

.exkurse-section .section-description {
    color: var(--text-dark-secondary);
}

/* Sticky header on light background */
.exkurse-section > .section-header {
    background: var(--bg-light);
}

/* Section number on light bg */
.exkurse-section .section-number-deco {
    color: var(--text-dark);
    opacity: 0.04;
}

/* Section header ornament on light bg */
.exkurse-section .section-header::after {
    color: var(--accent-on-light);
}


/* ============================================================
   ANIMATIONS
   ============================================================ */

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

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity var(--dur-reveal) var(--ease-out),
        transform var(--dur-reveal) var(--ease-out);
    will-change: opacity, transform;
}

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

/* Dynamic staggering is now handled by JS via transition-delay,
   which observes sibling order and applies capped delays.
   This allows sections to stagger without hard-coded CSS rules. */


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
    html { font-size: 17px; }

    .perspectives-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .exkurse-list {
        grid-template-columns: 1fr;
    }

    .essay-card {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .essay-card-image { aspect-ratio: 16 / 9; }

    .essay-fullbleed-img {
        height: 45vh;
        min-height: 280px;
    }
}

@media (max-width: 640px) {
    html { font-size: 16px; }

    .site-nav { padding: var(--space-sm) var(--space-md); }
    .site-nav.is-scrolled { padding-top: 0.6rem; padding-bottom: 0.6rem; }

    .nav-links { gap: var(--space-sm); }
    .nav-links a { font-size: 0.7rem; letter-spacing: 0.05em; }

    .hero { min-height: 92vh; }
    .hero-inner { padding: 0 var(--space-md); }
    .hero-title { font-size: clamp(2.5rem, 13vw, 5rem); }

    .intro-section,
    .perspectives-section,
    .essays-section,
    .exkurse-section,
    .archiv-section,
    .focus-section {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    .perspectives-list {
        grid-template-columns: 1fr;
    }

    .essay-hero-content { padding: var(--space-xl) var(--space-md) var(--space-lg); }
    .essay-hero { min-height: 55vh; }
    .essay-hero-title { font-size: clamp(1.75rem, 7vw, 2.5rem); }

    .essay-body {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    .essay-pullquote { padding-left: var(--space-md); }

    .essay-fullbleed-img { height: 35vh; min-height: 220px; }
    .essay-fullbleed-caption {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    .projekt-hero {
        padding: calc(var(--space-xl) + var(--space-lg)) var(--space-md) var(--space-lg);
    }
    .projekt-body {
        padding: var(--space-lg) var(--space-md) var(--space-xl);
    }

    .footer-inner { flex-direction: column; }
}

@media (max-width: 400px) {
    .hero-scroll-hint { display: none; }
}


/* ============================================================
   SKIP LINK – Accessibility
   ============================================================ */

.skip-link {
    position: fixed;
    top: -100%;
    left: var(--space-md);
    z-index: 200;
    padding: var(--space-xs) var(--space-md);
    background: var(--accent);
    color: var(--bg-deep);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 0 0 4px 4px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}


/* ============================================================
   FOCUS STYLES – Accessibility
   ============================================================ */

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* Remove default outline for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}


/* ============================================================
   MOBILE NAVIGATION – Hamburger Toggle
   ============================================================ */

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-secondary);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger → X transformation */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 640px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: min(280px, 80vw);
        height: 100vh;
        background: rgba(10, 15, 13, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: calc(var(--space-xxl) + var(--space-lg)) var(--space-lg) var(--space-lg);
        gap: var(--space-md);
        transform: translateX(100%);
        transition: transform 0.4s var(--ease-out);
        z-index: 100;
    }

    .nav-links.is-open {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 0.85rem;
        letter-spacing: 0.1em;
        color: var(--text-secondary);
        padding: var(--space-xs) 0;
        border-bottom: 1px solid var(--border);
    }
}


/* ============================================================
   ESSAY CARD – Upcoming (no link) variant
   ============================================================ */

.essay-card--upcoming {
    cursor: default;
    opacity: 0.7;
}

.essay-card--upcoming:hover {
    background-color: transparent;
}

.essay-card--upcoming:hover .essay-card-img {
    filter: brightness(0.75) saturate(0.7);
    transform: none;
}

.essay-card--upcoming:hover .essay-card-title {
    color: var(--text-primary);
}


/* ============================================================
   MOTIFS SECTION – Index page (hidden until enough content)
   ============================================================ */

.motifs-section {
    padding: var(--space-xl) var(--space-lg);
    max-width: var(--wide-width);
    margin: 0 auto;
    border-top: 1px solid var(--border);
}

.motifs-inner {
    display: block;
}

.motifs-heading {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.motifs-intro {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 560px;
    margin-bottom: var(--space-lg);
}

.motifs-cloud {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.motifs-cloud li a {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-primary);
    padding: var(--space-xs) var(--space-md);
    border: 1px solid var(--border);
    border-radius: 2px;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.motifs-cloud li a:hover {
    border-color: var(--accent);
    color: var(--accent-light);
}

.motif-count {
    font-style: normal;
    font-size: 0.75rem;
    color: var(--text-muted);
}


/* ============================================================
   ESSAY MOTIFS – Footer section (hidden until activated)
   ============================================================ */

.essay-motifs {
    display: none;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
}

.essay-motifs.is-active {
    display: block;
}

.essay-motifs .motifs-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.essay-motifs .motifs-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.essay-motifs .motif-link {
    display: inline-block;
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 0.25rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.essay-motifs .motif-link:hover {
    border-color: var(--accent);
    color: var(--accent-light);
}


/* ============================================================
   MOTION REFINEMENTS (v2)
   Cursor-follow light, image-loading fade, reduced-motion
   ============================================================ */

/* Cursor-follow light — desktop hero only, injected via JS.
   Sits between grain (z:2) and hero content (z:3). */
.hero-cursor-light {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 800ms var(--ease-out);
    mix-blend-mode: screen;
}

/* Progressive image loading — fade in when decoded */
.hero-bg-img,
.essay-hero-img,
.essay-fullbleed-img {
    opacity: 0;
    transition: opacity 1200ms var(--ease-out);
}

.hero-bg-img.is-loaded,
.essay-hero-img.is-loaded,
.essay-fullbleed-img.is-loaded {
    opacity: 1;
}

/* Full-bleed images get JS-controlled transform for breathing.
   Override the static scale to let JS manage it. */
.essay-fullbleed-img {
    will-change: transform;
}

/* Nav transition refinement — smoother background shift */
.site-nav {
    transition:
        background-color var(--dur-standard) var(--ease-smooth),
        padding-top var(--dur-standard) var(--ease-smooth),
        padding-bottom var(--dur-standard) var(--ease-smooth),
        backdrop-filter var(--dur-standard) var(--ease-smooth);
}

/* Hero inner — JS controls opacity/transform directly,
   but ensure smooth transition when entering */
.hero-inner {
    will-change: opacity, transform;
}

/* Hero overlay — JS adjusts opacity, transition for smoothness */
.hero-overlay {
    transition: opacity var(--dur-standard) var(--ease-out);
}


/* ============================================================
   REDUCED MOTION — Respect user preference
   All motion becomes instant or minimal.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    /* Keep elements visible even without animation */
    .reveal {
        opacity: 1;
        transform: none;
    }

    .hero-overline,
    .hero-title,
    .hero-subtitle,
    .hero-line,
    .hero-scroll-hint,
    .essay-hero-content,
    .projekt-title {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    /* Kill infinite animations */
    .hero-scroll-line {
        animation: none !important;
        opacity: 0.5 !important;
    }
}
