/* ═══════════════════════════════════════════════
 *
 *   Du inspizierst CSS? Ernsthaft?
 *   Ok, Respekt — du bist mein Typ Mensch.
 *
 *   Handgeschrieben von Tobias Hager.
 *   Ja, jede einzelne Zeile.
 *   Nein, kein Tailwind. Fight me.
 *
 *   tobias@mi.network — falls du reden willst.
 *   Oder einfach nur sagen willst, dass mein
 *   CSS besser ist als meins zu Hause.
 *
 * ═══════════════════════════════════════════════ */

/* ─── Scene Base ─── */
.th-scene {
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.th-scene--metrics,
.th-scene--dual,
.th-scene--products,
.th-scene--transform,
.th-scene--education,
.th-scene--awards,
.th-scene--techstack,
.th-scene--thought,
.th-scene--human,
.th-scene--testimonials,
.th-scene--cta {
    padding: var(--th-space-5xl) 0;
}

/* Alternate backgrounds for depth */
.th-scene--metrics { background: var(--th-dark-bg); }
.th-scene--dual { background: var(--th-dark-bg-2); }
.th-scene--products { background: var(--th-dark-bg); }
.th-scene--transform { background: var(--th-dark-bg-2); }
.th-scene--education { background: var(--th-dark-bg); }
.th-scene--awards { background: var(--th-dark-bg-2); }
.th-scene--techstack { background: var(--th-dark-bg); }
.th-scene--thought { background: var(--th-dark-bg-2); }
.th-scene--human { background: var(--th-dark-bg); }
.th-scene--testimonials { background: var(--th-dark-bg-2); }
.th-scene--cta { background: var(--th-dark-bg); }

/* ═══ SCENE 1: ENTRANCE ═══ */
.th-scene--entrance {
    min-height: 100vh;
    flex-direction: column;
    justify-content: center;
    background: var(--th-dark-bg);
}

/* Terminal */
.th-terminal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: var(--th-dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s var(--th-ease), visibility 0.8s;
}

.th-terminal.done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.th-terminal__screen {
    font-family: var(--th-font-mono);
    font-size: clamp(0.85rem, 1.5vw, 1.1rem);
    color: var(--th-dark-text-2);
    line-height: 2;
    padding: var(--th-space-xl);
}

.th-terminal__line {
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.3s, transform 0.3s;
}

.th-terminal__line.visible {
    opacity: 1;
    transform: translateY(0);
}

.th-terminal__line--ready {
    color: var(--th-vermillion);
    font-weight: 700;
}

/* Cursor blink */
.th-terminal__line--ready.visible::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 1.1em;
    background: var(--th-vermillion);
    margin-left: 4px;
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}

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

/* Hero */
.th-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--th-space-3xl) var(--th-space-lg);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transition: opacity 1s var(--th-ease);
}

.th-hero.visible {
    opacity: 1;
}

.th-hero__content {
    display: flex;
    align-items: center;
    gap: var(--th-space-4xl);
    max-width: var(--th-max-width);
    width: 100%;
    position: relative;
}

.th-hero__portrait {
    position: absolute;
    left: -2%;
    top: 50%;
    transform: translateY(-50%);
    width: 50vw;
    height: 80vh;
    overflow: hidden;
    z-index: 0;
}

.th-hero__portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    filter: grayscale(100%) contrast(1.15) brightness(0.85);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 70%, transparent 100%);
    transition: filter 0.6s var(--th-ease);
}

.th-hero__text {
    flex: 1;
    position: relative;
    z-index: 2;
    margin-left: auto;
    max-width: 50%;
    text-align: left;
}

.th-hero__pre {
    margin-bottom: var(--th-space-md);
    font-size: 0.85rem;
}

.th-hero__name {
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: var(--th-space-lg);
}

.th-hero__tagline {
    font-size: clamp(1rem, 1.8vw, 1.35rem);
    color: var(--th-dark-text-2);
    line-height: 1.5;
    max-width: 500px;
    margin-bottom: var(--th-space-xl);
}

.th-hero__social {
    margin-top: var(--th-space-lg);
}

/* Scroll indicator */
.th-hero__scroll {
    position: absolute;
    bottom: var(--th-space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--th-space-sm);
    animation: float 2s ease-in-out infinite;
    z-index: 3;
}

.th-hero__scroll-text {
    font-family: var(--th-font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--th-dark-text-3);
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* Mobile hero */
@media (max-width: 768px) {
    .th-hero__content {
        flex-direction: column;
        text-align: center;
        gap: var(--th-space-xl);
    }

    .th-hero__portrait {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 80vw;
        height: 50vh;
        max-width: 400px;
    }

    .th-hero__portrait img {
        mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
        object-position: center 30%;
    }

    .th-hero__text {
        margin-left: 0;
        max-width: 100%;
        text-align: center;
    }

    .th-hero__tagline {
        margin-left: auto;
        margin-right: auto;
    }

    .th-hero__social .th-social {
        justify-content: center;
    }
}

/* ═══ SCENE 2: METRICS ═══ */
.th-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--th-space-2xl) var(--th-space-xl);
    margin-top: var(--th-space-3xl);
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.th-metric {
    white-space: nowrap;
}

.th-metric__number {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1;
    display: inline !important;
    vertical-align: baseline;
}

.th-metric__prefix {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 700;
    vertical-align: baseline;
    color: var(--th-vermillion);
}

.th-metric__suffix {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 700;
    vertical-align: baseline;
    color: var(--th-vermillion);
}

.th-metric br {
    display: none;
}

.th-metric__label {
    font-size: 0.9rem;
    color: var(--th-dark-text-2);
    margin-top: var(--th-space-sm);
    line-height: 1.4;
    max-width: none;
    white-space: normal;
}

.th-metric__label br {
    display: inline !important;
}

@media (max-width: 768px) {
    .th-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--th-space-xl);
    }
}

@media (max-width: 480px) {
    .th-metrics {
        gap: var(--th-space-lg);
    }
    .th-metric__number {
        font-size: 2.5rem;
    }
}

/* ═══ SCENE 3: DUAL ROLE ═══ */
.th-dual {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-top: var(--th-space-3xl);
}

.th-dual__card {
    flex: 1;
    padding: var(--th-space-2xl);
    border: 1px solid var(--th-dark-border-2);
    transition: border-color var(--th-duration);
}

.th-dual__card:hover {
    border-color: var(--th-vermillion);
}

.th-dual__card h3 {
    font-size: 1.5rem;
    margin: var(--th-space-sm) 0;
}

.th-dual__type {
    color: var(--th-dark-text-2);
    font-size: 0.95rem;
    margin-bottom: var(--th-space-md);
}

.th-dual__stats {
    display: flex;
    align-items: center;
    gap: var(--th-space-sm);
    margin-bottom: var(--th-space-sm);
    font-size: 0.9rem;
}

.th-dual__divider {
    color: var(--th-dark-text-3);
}

.th-dual__location {
    font-size: 0.85rem;
    color: var(--th-dark-text-3);
    margin-bottom: var(--th-space-lg);
}

.th-dual__desc {
    font-size: 0.95rem;
    color: var(--th-dark-text-2);
    line-height: 1.7;
}

.th-dual__pulse {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 var(--th-space-xl);
    min-width: 200px;
}

.th-dual__pulse-line {
    width: 2px;
    height: 80px;
    background: var(--th-vermillion);
    position: relative;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px var(--th-vermillion-glow); }
    50% { box-shadow: 0 0 20px var(--th-vermillion), 0 0 40px var(--th-vermillion-glow); }
}

.th-dual__pulse-text {
    text-align: center;
    font-size: 0.8rem;
    color: var(--th-dark-text-3);
    margin-top: var(--th-space-md);
    font-style: italic;
    max-width: none;
}

@media (max-width: 900px) {
    .th-dual {
        flex-direction: column;
        gap: var(--th-space-lg);
    }

    .th-dual__pulse {
        flex-direction: row;
        min-width: unset;
        padding: var(--th-space-md) 0;
        gap: var(--th-space-md);
    }

    .th-dual__pulse-line {
        width: 60px;
        height: 2px;
    }
}

/* ═══ SCENE 4: TIMELINE ═══ */
.th-scene--timeline {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--th-space-5xl) 0;
}

.th-scene--timeline h2 {
    margin-top: var(--th-space-md);
    margin-bottom: var(--th-space-2xl);
}

.th-timeline {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--th-vermillion) var(--th-dark-bg-3);
    padding: var(--th-space-lg) 0 var(--th-space-xl);
    cursor: grab;
}

.th-timeline:active {
    cursor: grabbing;
}

.th-timeline__track {
    display: flex;
    gap: var(--th-space-lg);
    padding: 0 var(--th-space-lg);
    width: max-content;
}

.th-timeline__card {
    flex: 0 0 300px;
    padding: var(--th-space-xl);
    background: var(--th-dark-bg-card);
    border: 1px solid var(--th-dark-border);
    border-radius: 2px;
    transition: all var(--th-duration) var(--th-ease);
}

.th-timeline__card:hover {
    border-color: var(--th-vermillion);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255, 63, 0, 0.08);
}

.th-timeline__date {
    font-size: 0.75rem;
    color: var(--th-vermillion);
}

.th-timeline__card h4 {
    font-size: 1.1rem;
    margin: var(--th-space-sm) 0 var(--th-space-xs);
}

.th-timeline__company {
    font-size: 0.9rem;
    color: var(--th-dark-text-2);
}

.th-timeline__location {
    font-size: 0.8rem;
    color: var(--th-dark-text-3);
    margin-bottom: var(--th-space-md);
}

.th-timeline__metric {
    font-family: var(--th-font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: var(--th-space-md);
    padding-top: var(--th-space-md);
    border-top: 1px solid var(--th-dark-border);
}

/* Timeline scrollbar */
.th-timeline::-webkit-scrollbar {
    height: 4px;
}
.th-timeline::-webkit-scrollbar-track {
    background: var(--th-dark-bg-3);
}
.th-timeline::-webkit-scrollbar-thumb {
    background: var(--th-vermillion);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .th-timeline__card {
        flex: 0 0 260px;
    }
}

/* ═══ SCENE 5: PRODUCTS ═══ */
.th-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--th-space-xl);
    margin-top: var(--th-space-3xl);
}

.th-product {
    padding: var(--th-space-2xl);
    background: var(--th-dark-bg-card);
    border: 1px solid var(--th-dark-border);
    border-radius: 2px;
    transition: all var(--th-duration) var(--th-ease);
}

.th-product:hover {
    border-color: var(--th-vermillion);
    transform: translateY(-4px);
}

.th-product__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--th-space-sm);
}

.th-product__header h3 {
    font-size: 1.5rem;
}

.th-product__badge {
    font-family: var(--th-font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 2px;
}

.th-product__badge--live {
    background: rgba(0, 255, 136, 0.1);
    color: #00FF88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.th-product__badge--dev {
    background: var(--th-vermillion-glow);
    color: var(--th-vermillion);
    border: 1px solid rgba(255, 63, 0, 0.3);
}

.th-product__tagline {
    font-size: 0.95rem;
    color: var(--th-dark-text-2);
    margin-bottom: var(--th-space-md);
}

.th-product__desc {
    font-size: 0.9rem;
    color: var(--th-dark-text-2);
    line-height: 1.7;
    margin-bottom: var(--th-space-lg);
}

.th-product__stack {
    display: flex;
    flex-wrap: wrap;
    gap: var(--th-space-xs);
}

.th-product__stack span {
    font-family: var(--th-font-mono);
    font-size: 0.7rem;
    color: var(--th-dark-text-3);
    border: 1px solid var(--th-dark-border-2);
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
}

.th-product__progress {
    height: 3px;
    background: var(--th-dark-border);
    margin-top: var(--th-space-lg);
    border-radius: 2px;
    overflow: hidden;
}

.th-product__progress-bar {
    height: 100%;
    background: var(--th-vermillion);
    border-radius: 2px;
    transition: width 1.5s var(--th-ease-out);
}

/* ═══ SCENE 6: TRANSFORMATIONS ═══ */
.th-transform {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--th-space-xl);
    margin-top: var(--th-space-3xl);
}

.th-transform__panel {
    text-align: center;
    padding: var(--th-space-2xl);
    border: 1px solid var(--th-dark-border);
    transition: border-color var(--th-duration);
}

.th-transform__panel:hover {
    border-color: var(--th-vermillion);
}

.th-transform__number {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: var(--th-space-md);
}

.th-transform__panel h3 {
    font-size: 1.15rem;
    margin-bottom: var(--th-space-md);
    color: #FFFFFF;
}

.th-transform__panel p {
    font-size: 0.9rem;
    color: var(--th-dark-text-2);
    line-height: 1.6;
    max-width: none;
}

@media (max-width: 768px) {
    .th-transform {
        grid-template-columns: 1fr;
        gap: var(--th-space-lg);
    }
}

/* ═══ SCENE 7: EDUCATION ═══ */
.th-education {
    margin-top: var(--th-space-3xl);
    position: relative;
    padding-left: var(--th-space-2xl);
}

/* Vertical line */
.th-education::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--th-vermillion), var(--th-dark-border));
}

.th-edu-node {
    display: flex;
    gap: var(--th-space-lg);
    margin-bottom: var(--th-space-2xl);
    position: relative;
}

.th-edu-node__dot {
    position: absolute;
    left: calc(-1 * var(--th-space-2xl) + 1px);
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--th-vermillion);
    box-shadow: 0 0 10px var(--th-vermillion-glow);
}

.th-edu-node__content h4 {
    font-size: 1.1rem;
    margin-bottom: var(--th-space-xs);
}

.th-edu-node__content p {
    font-size: 0.9rem;
    color: var(--th-dark-text-2);
    margin-bottom: var(--th-space-xs);
}

.th-edu-node__content .th-label {
    color: var(--th-dark-text-3);
}

/* ═══ SCENE 8: AWARDS ═══ */
.th-awards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--th-space-lg);
    margin-top: var(--th-space-3xl);
    width: 100%;
    align-self: stretch;
}

.th-award {
    padding: var(--th-space-xl);
    border: 1px solid var(--th-dark-border);
    text-align: center;
    transition: all var(--th-duration);
}

.th-award:hover {
    border-color: var(--th-vermillion);
    transform: translateY(-2px);
}

.th-award__year {
    font-size: 2rem;
    font-weight: 700;
    color: var(--th-vermillion);
    display: block;
    margin-bottom: var(--th-space-sm);
}

.th-award h4 {
    font-size: 0.95rem;
    margin-bottom: var(--th-space-xs);
}

.th-award p {
    font-size: 0.8rem;
    color: var(--th-dark-text-3);
    max-width: none;
}

/* Speaking Ticker */
.th-ticker {
    margin-top: var(--th-space-3xl);
    overflow: hidden;
    border-top: 1px solid var(--th-dark-border);
    border-bottom: 1px solid var(--th-dark-border);
    padding: var(--th-space-md) 0;
}

.th-ticker__track {
    display: flex;
    gap: var(--th-space-lg);
    animation: ticker 30s linear infinite;
    width: max-content;
    font-family: var(--th-font-mono);
    font-size: 0.85rem;
    color: var(--th-dark-text-2);
}

.th-ticker__track span {
    white-space: nowrap;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ═══ SCENE 9: TECH STACK ═══ */
.th-stack {
    display: flex;
    flex-wrap: wrap;
    gap: var(--th-space-sm);
    margin-top: var(--th-space-3xl);
    justify-content: center;
}

.th-stack__tag {
    font-family: var(--th-font-mono);
    font-size: 0.85rem;
    color: var(--th-dark-text-2);
    border: 1px solid var(--th-dark-border-2);
    padding: 0.6rem 1.2rem;
    border-radius: 2px;
    transition: all var(--th-duration);
    cursor: default;
}

.th-stack__tag:hover {
    color: var(--th-vermillion);
    border-color: var(--th-vermillion);
    background: var(--th-vermillion-glow);
}

.th-stack__quote {
    text-align: center;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--th-dark-text-2);
    margin-top: var(--th-space-3xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ═══ SCENE 10: THOUGHT LEADERSHIP ═══ */
.th-thought {
    display: flex;
    justify-content: center;
    gap: var(--th-space-4xl);
    margin-top: var(--th-space-3xl);
    text-align: center;
}

.th-thought__num {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    display: block;
    line-height: 1;
    margin-bottom: var(--th-space-sm);
}

.th-thought__stat p {
    color: var(--th-dark-text-2);
    font-size: 0.9rem;
    max-width: none;
}

@media (max-width: 768px) {
    .th-thought {
        flex-direction: column;
        gap: var(--th-space-xl);
    }
}

/* ═══ SCENE 11: HUMAN ═══ */
.th-human {
    display: flex;
    align-items: center;
    gap: var(--th-space-4xl);
}

.th-human__portrait {
    flex: 0 0 auto;
    width: clamp(250px, 30vw, 380px);
    overflow: hidden;
}

.th-human__portrait img {
    width: 100%;
    filter: grayscale(100%) contrast(1.05);
}

.th-human__bio {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--th-dark-text-2);
    margin: var(--th-space-lg) 0;
}

.th-human__interests {
    display: flex;
    flex-wrap: wrap;
    gap: var(--th-space-sm);
}

.th-human__interests span {
    font-family: var(--th-font-mono);
    font-size: 0.8rem;
    color: var(--th-dark-text-3);
    border: 1px solid var(--th-dark-border-2);
    padding: 0.4rem 0.8rem;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .th-human {
        flex-direction: column;
        text-align: center;
    }

    .th-human__portrait {
        width: 60vw;
    }

    .th-human__interests {
        justify-content: center;
    }
}

/* ═══ SCENE 12: TESTIMONIALS ═══ */
.th-testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--th-space-xl);
}

.th-testimonial {
    padding: var(--th-space-2xl);
    border: 1px solid var(--th-dark-border);
    position: relative;
}

.th-testimonial__mark {
    font-family: var(--th-font-display);
    font-size: 4rem;
    line-height: 1;
    position: absolute;
    top: var(--th-space-md);
    left: var(--th-space-xl);
    opacity: 0.3;
}

.th-testimonial p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--th-dark-text);
    margin-top: var(--th-space-xl);
    max-width: none;
}

.th-testimonial footer {
    margin-top: var(--th-space-lg);
    padding-top: var(--th-space-md);
    border-top: 1px solid var(--th-dark-border);
}

.th-testimonial footer strong {
    display: block;
    font-size: 0.95rem;
}

.th-testimonial footer span {
    font-size: 0.8rem;
    color: var(--th-dark-text-3);
}

@media (max-width: 768px) {
    .th-testimonials {
        grid-template-columns: 1fr;
    }
}

/* ═══ SCENE 13: CTA ═══ */
.th-cta {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.th-cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--th-space-md);
}

.th-cta > p {
    color: var(--th-dark-text-2);
    font-size: 1.05rem;
    margin-bottom: var(--th-space-2xl);
    max-width: none;
}

.th-cta__form {
    display: flex;
    gap: var(--th-space-sm);
    max-width: 480px;
    margin: 0 auto;
}

.th-cta__form input[type="email"] {
    flex: 1;
    padding: 0.85rem 1.2rem;
    background: var(--th-dark-bg-3);
    border: 1px solid var(--th-dark-border-2);
    border-radius: 2px;
    color: #FFFFFF;
    font-family: var(--th-font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color var(--th-duration);
}

.th-cta__form input:focus {
    border-color: var(--th-vermillion);
}

.th-cta__form input::placeholder {
    color: var(--th-dark-text-3);
}

.th-cta__note {
    font-size: 0.8rem !important;
    color: var(--th-dark-text-3) !important;
    margin-top: var(--th-space-lg) !important;
}

@media (max-width: 480px) {
    .th-cta__form {
        flex-direction: column;
    }
}

/* ═══ Centered text for sections ═══ */
.th-scene--metrics,
.th-scene--awards,
.th-scene--techstack,
.th-scene--thought,
.th-scene--cta {
    text-align: center;
}

.th-scene--metrics .th-container,
.th-scene--awards .th-container,
.th-scene--techstack .th-container,
.th-scene--thought .th-container,
.th-scene--cta .th-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}


/* ─── SVG Graphics: Hero Neural Network ─── */
.th-hero__portrait {
    position: relative;
}

.th-hero__network {
    position: absolute;
    top: -20%;
    left: -30%;
    width: 160%;
    height: 140%;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.th-hero__network svg {
    width: 100%;
    height: 100%;
}

.th-hero__portrait img {
    position: relative;
    z-index: 1;
}

/* ─── SVG Graphics: Dual Role Convergence ─── */
.th-dual__pulse-svg {
    width: 120px;
    margin: 0 auto;
    opacity: 0.8;
}

.th-dual__pulse-svg svg {
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .th-hero__network {
        opacity: 0.3;
        top: -10%;
        left: -20%;
        width: 140%;
        height: 120%;
    }
    
    .th-dual__pulse-svg {
        width: 80px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .th-nn-node,
    .th-nn-conn,
    .th-pc-node {
        animation: none !important;
    }
}

/* ═══════════════════════════════════════════════
 *   Animationen, die besser aussehen als dein
 *   letztes Tinder-Profil. Keine Sorge, meins auch.
 * ═══════════════════════════════════════════════ */

/* Terminal typewriter initial states */
.th-terminal__line {
    opacity: 0;
}

/* Hero clip-path initial state (JS sets this, but CSS fallback) */
.th-hero__portrait {
    will-change: clip-path;
}

/* Word-by-word name reveal */
.th-word {
    display: inline-block;
    will-change: transform, opacity;
}

/* Smooth transitions for interactive elements */
.th-metric,
.th-dual__card,
.th-product,
.th-transform__panel,
.th-edu-node,
.th-award,
.th-stack__tag,
.th-testimonial,
.th-timeline__card {
    will-change: transform, opacity;
}

/* 3D perspective for product cards */
.th-product {
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

/* SVG glow capability */
.th-dual__pulse-svg svg {
    filter: drop-shadow(0 0 8px rgba(255, 63, 0, 0.3));
    transition: filter 0.3s ease;
}

/* Hero network SVG enhanced visibility */
.th-hero__network svg {
    filter: drop-shadow(0 0 12px rgba(255, 63, 0, 0.25));
}

/* Cursor trail canvas (ensure it doesn't block interactions) */
canvas[style*="pointer-events:none"] {
    mix-blend-mode: screen;
}

/* Enhanced scroll indicator animation */
.th-hero__scroll {
    will-change: transform, opacity;
}

/* Counter number smooth rendering */
[data-count] {
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
}

/* Reduced motion: show everything immediately */
@media (prefers-reduced-motion: reduce) {
    .th-terminal__line,
    .th-word,
    .th-metric,
    .th-dual__card,
    .th-product,
    .th-transform__panel,
    .th-edu-node,
    .th-award,
    .th-stack__tag,
    .th-testimonial,
    .th-timeline__card,
    .th-hero__scroll,
    .th-hero__portrait {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
    }
}

/* ═══ BRIGHTNESS FIX: Make ALL dim texts readable ═══ */
.th-timeline__location,
.th-timeline__company,
.th-dual__location,
.th-role__tagline,
.th-edu-node__content p,
.th-product__tagline,
.th-ticker__item,
.th-dual__tagline,
.th-hero__overline,
.th-dual__pulse-text,
.th-dual__type,
.th-scene p:not(.th-metric__label):not(.th-product__desc),
.th-about__text,
.th-testimonial__role,
.th-edu-node__institution,
.th-stack__quote cite {
    color: rgba(255, 255, 255, 0.75) !important;
}

.th-product__desc,
.th-role__desc,
.th-dual__desc,
.th-testimonial__text,
.th-about__desc,
.th-stack__quote p,
.th-edu-node__desc {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* ═══ AWARDS: Single row, NO scrollbar ═══ */
.th-awards {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: var(--th-space-lg);
    justify-content: center;
    overflow-x: hidden !important;
    overflow: hidden !important;
}
.th-award {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}
.th-awards::-webkit-scrollbar { display: none; }
.th-awards { scrollbar-width: none; }

/* ═══ TIMELINE: Centered compact grid ═══ */
.th-timeline__track {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: var(--th-space-sm) !important;
    overflow: hidden !important;
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 var(--th-space-md) !important;
}
.th-timeline__card {
    min-width: 0 !important;
    width: auto !important;
    flex: none !important;
    overflow: hidden !important;
}
.th-timeline {
    overflow: hidden !important;
    max-width: 100% !important;
}

/* ═══ PRODUCT CARDS: Equal height ═══ */
.th-products__grid,
.th-products .th-container > div {
    display: flex !important;
    gap: var(--th-space-xl);
    align-items: stretch;
}
.th-product {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.th-product__desc { flex-grow: 1; }

/* ═══ HERO PORTRAIT: Full image, no crop ═══ */
.th-hero__portrait {
    position: relative !important;
    width: clamp(300px, 35vw, 500px) !important;
    height: auto !important;
    overflow: visible !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
}
.th-hero__portrait img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
}


/* ═══ TECH STACK TAGS: Brighter text ═══ */
.th-product__stack span {
    color: rgba(255, 255, 255, 0.75) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* ═══ HIDE PROGRESS BAR on Job-Matching card ═══ */
.th-product:last-child .th-product__progress {
    display: none !important;
}

/* ═══ SECTION HEADER SPACING: Overline above heading ═══ */
.th-scene__overline,
.th-scene .th-mono:first-child:not(.th-metric__number) {
    margin-bottom: 0.5rem !important;
    display: block !important;
    position: relative !important;
}

/* ═══ FORCE VISIBILITY: Override GSAP fade-in animations ═══ */
.th-fade-in {
    opacity: 1 !important;
    transform: none !important;
}


/* ═══ CONTACT FORM: Dark terminal-style styling ═══ */
.th-contact-form {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--th-space-xl) 0;
}
.th-contact-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: var(--th-space-lg) var(--th-space-xl);
    margin-bottom: var(--th-space-lg);
}
.th-form-field {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: var(--th-space-sm);
}
.th-form-field.th-form-field--full {
    grid-column: 1 / -1;
    align-items: flex-start;
    max-width: 800px;
}
.th-form-field .th-mono {
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.th-contact-form input,
.th-contact-form select {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    font-family: var(--th-font-mono) !important;
    font-size: 0.9rem !important;
    padding: 0.6rem 0.25rem !important;
    width: 100% !important;
    outline: none !important;
    border-radius: 0 !important;
    -webkit-appearance: none !important;
    transition: border-color 0.3s ease;
}
.th-contact-form textarea {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    font-family: var(--th-font-mono) !important;
    font-size: 0.9rem !important;
    padding: 1rem !important;
    width: 100% !important;
    min-height: 150px;
    outline: none !important;
    border-radius: 3px !important;
    -webkit-appearance: none !important;
    resize: vertical;
    transition: border-color 0.3s ease;
}
.th-contact-form input:focus,
.th-contact-form select:focus,
.th-contact-form textarea:focus {
    border-color: var(--th-vermillion) !important;
}
.th-contact-form input::placeholder,
.th-contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.25) !important;
}
.th-contact-form select option {
    background: #1a1a1a;
    color: #fff;
}
.th-contact-submit {
    margin-top: var(--th-space-lg);
}
.th-contact-note {
    margin-top: var(--th-space-md);
    color: rgba(255, 255, 255, 0.35) !important;
    font-size: 0.8rem;
}

/* ═══ SECTION HEADERS: Overline spacing ═══ */
.th-scene .th-mono:first-child:not(.th-metric__number),
.th-scene__overline {
    display: block !important;
    margin-bottom: 0.75rem !important;
}
.th-scene h2 {
    margin-top: 0 !important;
    margin-bottom: 1.25rem !important;
}

@media (max-width: 1200px) {
    .th-timeline__track {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .th-metrics {
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .th-timeline__track {
        grid-template-columns: 1fr 1fr !important;
        max-width: 100% !important;
    }
    .th-hero__portrait {
        width: clamp(200px, 60vw, 350px) !important;
    }
    .th-metrics {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--th-space-xl) var(--th-space-md) !important;
    }
    .th-metric__number {
        font-size: clamp(2.5rem, 10vw, 4rem) !important;
    }
    .th-metric__prefix,
    .th-metric__suffix {
        font-size: clamp(1rem, 4vw, 1.5rem) !important;
    }
    .th-contact-grid {
        grid-template-columns: 1fr !important;
    }
    .th-products__grid,
    .th-products .th-container > div {
        flex-direction: column !important;
    }
    .th-awards {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    .th-timeline__track {
        grid-template-columns: 1fr !important;
    }
    .th-metrics {
        grid-template-columns: 1fr !important;
    }
}