/* ================================================================
   THE BRAINS CORTEX — Design System
   Stack : CSS Vanilla Cutting-Edge 2026
   Palette : Dark + Or (#c9a962) + couleurs satellites
   Typo : Cormorant Garamond + Inter
   ================================================================ */

/* --------------------------------
   @layer — Controle de cascade
   -------------------------------- */
@layer reset, base, components, utilities, animations;

/* ================================
   LAYER : RESET
   ================================ */
@layer reset {
    *, *::before, *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
        scroll-behavior: smooth;
    }

    body {
        min-height: 100dvh;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }

    img, svg {
        display: block;
        max-width: 100%;
    }

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

    button {
        font: inherit;
        cursor: pointer;
        border: none;
        background: none;
    }
}

/* ================================
   LAYER : BASE
   ================================ */
@layer base {
    :root {
        /* Couleurs principales */
        --bg-deep: #030508;
        --bg-surface: #0a0e18;
        --bg-card: #0f1420;
        --bg-card-hover: #151c2a;

        --gold: #c9a962;
        --gold-light: #e0c882;
        --gold-dim: rgba(201, 169, 98, 0.15);
        --gold-glow: rgba(201, 169, 98, 0.25);

        --text-primary: #f0ede6;
        --text-secondary: #8b8ba0;
        --text-muted: #5a5a6e;

        --border-subtle: rgba(201, 169, 98, 0.08);
        --border-hover: rgba(201, 169, 98, 0.20);

        /* Typo */
        --font-display: 'Cormorant Garamond', Georgia, serif;
        --font-body: 'Inter', system-ui, sans-serif;

        /* Spacing (Fibonacci) */
        --sp-xs: 8px;
        --sp-sm: 13px;
        --sp-md: 21px;
        --sp-lg: 34px;
        --sp-xl: 55px;
        --sp-2xl: 89px;

        /* Radius */
        --radius-sm: 8px;
        --radius-md: 16px;
        --radius-lg: 24px;
        --radius-full: 50%;

        /* Transitions */
        --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
        --duration-fast: 200ms;
        --duration-base: 400ms;
        --duration-slow: 800ms;
    }

    body {
        font-family: var(--font-body);
        font-weight: 400;
        font-size: clamp(0.9375rem, 0.875rem + 0.25vw, 1.0625rem);
        line-height: 1.6;
        color: var(--text-primary);
        background-color: var(--bg-deep);
        overflow-x: hidden;
    }

    ::selection {
        background: var(--gold);
        color: var(--bg-deep);
    }

    /* Scrollbar */
    ::-webkit-scrollbar {
        width: 6px;
    }
    ::-webkit-scrollbar-track {
        background: var(--bg-deep);
    }
    ::-webkit-scrollbar-thumb {
        background: var(--gold-dim);
        border-radius: 3px;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: var(--gold);
    }
}

/* ================================
   LAYER : COMPONENTS
   ================================ */
@layer components {

    /* --------------------------------
       Scroll Progress Bar
       -------------------------------- */
    .scroll-progress {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, var(--gold), var(--gold-light));
        transform-origin: left;
        transform: scaleX(0);
        z-index: 1000;
        animation: scroll-progress linear;
        animation-timeline: scroll(root block);
    }

    @keyframes scroll-progress {
        to { transform: scaleX(1); }
    }

    /* Lang switch */
    .lang-switch {
        position: fixed;
        top: var(--sp-md);
        right: var(--sp-md);
        z-index: 100;
        font-family: var(--font-body);
        font-size: 0.75rem;
        font-weight: 500;
        color: var(--gold);
        letter-spacing: 0.1em;
        padding: 6px 12px;
        border: 1px solid rgba(201, 169, 98, 0.2);
        border-radius: var(--radius-sm);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        transition:
            border-color var(--duration-fast),
            background var(--duration-fast);

        &:hover {
            border-color: var(--gold);
            background: var(--gold-dim);
        }
    }

    /* --------------------------------
       HERO
       -------------------------------- */
    .hero {
        position: relative;
        height: 100dvh;
        min-height: 600px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    #neuralCanvas {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        opacity: 0.6;
    }

    .hero__content {
        position: relative;
        z-index: 2;
        text-align: center;
        padding: var(--sp-lg);
    }

    .hero__title {
        font-family: var(--font-display);
        font-weight: 300;
        line-height: 1;
        letter-spacing: -0.02em;
        margin-bottom: var(--sp-md);
    }

    .hero__the {
        display: block;
        font-size: clamp(1.2rem, 1rem + 1.5vw, 2rem);
        color: var(--text-secondary);
        letter-spacing: 0.3em;
        text-transform: uppercase;
        margin-bottom: var(--sp-xs);
    }

    .hero__brains {
        display: block;
        font-size: clamp(3.5rem, 2.5rem + 5vw, 8rem);
        background: linear-gradient(135deg, var(--gold-light), var(--gold), #b8923a);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .hero__cortex {
        display: block;
        font-size: clamp(1.5rem, 1rem + 2.5vw, 3.5rem);
        color: var(--text-primary);
        letter-spacing: 0.15em;
        text-transform: uppercase;
        font-weight: 400;
    }

    .hero__slogan {
        font-family: var(--font-body);
        font-size: clamp(0.875rem, 0.75rem + 0.5vw, 1.125rem);
        color: var(--text-secondary);
        letter-spacing: 0.1em;
        margin-top: var(--sp-md);
    }

    .hero__scroll-hint {
        position: absolute;
        bottom: var(--sp-xl);
        left: 50%;
        transform: translateX(-50%);
    }

    .hero__scroll-line {
        display: block;
        width: 1px;
        height: 60px;
        background: linear-gradient(to bottom, var(--gold), transparent);
        animation: scroll-hint 2s ease-in-out infinite;
    }

    @keyframes scroll-hint {
        0%, 100% { opacity: 0; transform: translateY(-10px); }
        50% { opacity: 1; transform: translateY(10px); }
    }

    /* --------------------------------
       CONSTELLATION
       -------------------------------- */
    .constellation {
        position: relative;
        padding: var(--sp-xl) var(--sp-lg) var(--sp-2xl);
        max-width: 1400px;
        margin: 0 auto;
        overflow: visible;
    }

    /* Mots & équations flottants */
    .floating-word {
        position: absolute;
        font-family: var(--font-display);
        font-weight: 300;
        font-style: italic;
        color: var(--gold);
        pointer-events: none;
        white-space: nowrap;
        z-index: 0;
        animation: float-word linear forwards;
    }

    @keyframes float-word {
        0% {
            opacity: 0;
            transform: translateY(15px);
        }
        20% {
            opacity: 0.45;
        }
        50% {
            opacity: 0.45;
            transform: translateY(-5px);
        }
        80% {
            opacity: 0.45;
        }
        100% {
            opacity: 0;
            transform: translateY(-25px);
        }
    }

    /* --------------------------------
       ECOSYSTEM — Grille 3×3 φ
       -------------------------------- */
    .ecosystem {
        padding: var(--sp-2xl) var(--sp-lg);
        max-width: 1100px;
        margin: 0 auto;
        text-align: center;
    }

    .ecosystem__brain {
        width: clamp(100px, 15vw, 160px);
        height: clamp(100px, 15vw, 160px);
        margin: 0 auto var(--sp-lg);
        border-radius: var(--radius-full);
        overflow: hidden;
        border: 1px solid rgba(201, 169, 98, 0.15);
        -webkit-mask-image: radial-gradient(circle, black 35%, transparent 68%);
        mask-image: radial-gradient(circle, black 35%, transparent 68%);
        animation: core-pulse 4s ease-in-out infinite;
    }

    .ecosystem__brain-inner {
        width: 100%;
        height: 100%;
    }

    .ecosystem__brain-inner video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.8;
        mix-blend-mode: lighten;
    }

    .ecosystem__title {
        font-family: var(--font-display);
        font-size: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
        font-weight: 300;
        color: var(--text-primary);
        margin-bottom: var(--sp-xs);
        letter-spacing: -0.01em;
    }

    .ecosystem__sub {
        font-size: 0.9rem;
        color: var(--text-secondary);
        margin-bottom: var(--sp-xl);
        letter-spacing: 0.05em;
    }

    .ecosystem__grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--sp-md);
    }

    /* --------------------------------
       ECO-CARD — carte d'expertise
       -------------------------------- */
    .eco-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: var(--sp-lg) var(--sp-md);
        background: var(--bg-card);
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-md);
        text-decoration: none;
        transition:
            border-color var(--duration-base) var(--ease-out-expo),
            box-shadow var(--duration-base) var(--ease-out-expo),
            transform var(--duration-base) var(--ease-out-expo);
        min-height: 160px;
    }

    .eco-card:hover {
        border-color: var(--gold);
        box-shadow:
            0 0 30px var(--gold-dim),
            0 8px 40px rgba(0, 0, 0, 0.3);
        transform: translateY(-4px);
    }

    .eco-card__name {
        display: block;
        font-family: var(--font-display);
        font-size: clamp(1rem, 0.9rem + 0.5vw, 1.3rem);
        font-weight: 500;
        color: var(--gold);
        margin-bottom: var(--sp-xs);
        letter-spacing: 0.02em;
    }

    .eco-card__tag {
        display: block;
        font-size: 0.8rem;
        color: var(--text-secondary);
        line-height: 1.4;
        margin-bottom: var(--sp-sm);
    }

    .eco-card__cta {
        display: block;
        font-size: 0.72rem;
        color: var(--text-muted);
        letter-spacing: 0.08em;
        font-weight: 500;
        opacity: 0;
        transform: translateY(4px);
        transition:
            opacity var(--duration-fast),
            transform var(--duration-fast),
            color var(--duration-fast);
    }

    .eco-card:hover .eco-card__cta {
        opacity: 1;
        transform: translateY(0);
        color: var(--gold);
    }

    #orbitCanvas {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 1;
    }

    /* Cerveau central */
    .orbit__core {
        position: absolute;
        top: 47%;
        left: 50%;
        z-index: 3;
        width: clamp(130px, 18vw, 180px);
        height: clamp(130px, 18vw, 180px);
        transform: translate(-50%, -50%);
    }

    .orbit__core-inner {
        width: 100%;
        height: 100%;
        border-radius: var(--radius-full);
        border: 1px solid rgba(201, 169, 98, 0.15);
        overflow: hidden;
        position: relative;
        animation: core-pulse 4s ease-in-out infinite;
        /* Mask radial : fondu vers les bords */
        -webkit-mask-image: radial-gradient(circle, black 35%, transparent 68%);
        mask-image: radial-gradient(circle, black 35%, transparent 68%);
    }

    /* Anneau doré subtil */
    .orbit__core-inner::after {
        content: '';
        position: absolute;
        inset: 4px;
        border-radius: var(--radius-full);
        border: 1px solid rgba(201, 169, 98, 0.1);
        pointer-events: none;
    }

    /* Glow doré derrière la vidéo */
    .orbit__core-inner::before {
        content: '';
        position: absolute;
        inset: -30%;
        border-radius: var(--radius-full);
        background: radial-gradient(circle,
            rgba(201, 169, 98, 0.10) 0%,
            rgba(201, 169, 98, 0.03) 40%,
            transparent 65%
        );
        z-index: -1;
        animation: core-glow 4s ease-in-out infinite;
    }

    @keyframes core-pulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.03); }
    }

    @keyframes core-glow {
        0%, 100% { opacity: 0.6; }
        50% { opacity: 1; }
    }

    .orbit__video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        opacity: 0.8;
        mix-blend-mode: lighten;
    }

    .orbit__core-label {
        position: absolute;
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%);
        font-family: var(--font-display);
        font-size: clamp(0.9rem, 0.7rem + 0.8vw, 1.2rem);
        color: var(--gold);
        letter-spacing: 0.2em;
        text-transform: uppercase;
        font-weight: 500;
        white-space: nowrap;
        opacity: 0.8;
    }

    /* Noeuds orbitaux */
    .orbit__node {
        position: absolute;
        width: clamp(80px, 12vw, 115px);
        height: clamp(80px, 12vw, 115px);
        border-radius: var(--radius-full);
        background: var(--bg-surface);
        border: 1px solid rgba(201, 169, 98, 0.25);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 4;
        cursor: pointer;
        overflow: hidden;
        transition:
            transform var(--duration-base) var(--ease-out-expo),
            border-color var(--duration-base) var(--ease-out-expo),
            box-shadow var(--duration-base) var(--ease-out-expo),
            background var(--duration-base) var(--ease-out-expo);
        top: 50%;
        left: 50%;

        &:hover {
            transform: translate(-50%, -50%) scale(1.2);
            border-color: var(--gold);
            box-shadow:
                0 0 30px var(--gold-dim),
                0 0 60px rgba(201, 169, 98, 0.08);
            z-index: 10;
        }
    }

    .orbit__node--coming {
        cursor: default;
        opacity: 0.5;

        &:hover {
            transform: translate(-50%, -50%) scale(1.05);
            box-shadow: none;
        }
    }

    .orbit__node-text {
        font-family: var(--font-display);
        font-size: clamp(0.85rem, 0.7rem + 0.8vw, 1.15rem);
        font-weight: 500;
        color: var(--gold);
        letter-spacing: 0.04em;
        text-align: center;
        line-height: 1.2;
        pointer-events: none;
        padding: 8px;
    }

    /* Tooltip flottant */
    .orbit__tooltip {
        position: absolute;
        z-index: 20;
        background: var(--bg-card);
        border: 1px solid rgba(201, 169, 98, 0.20);
        border-radius: var(--radius-sm);
        padding: var(--sp-sm) var(--sp-md);
        pointer-events: none;
        opacity: 0;
        transform: translateY(8px);
        transition:
            opacity var(--duration-fast) var(--ease-out-expo),
            transform var(--duration-fast) var(--ease-out-expo);
        max-width: 280px;
        text-align: center;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

        &.visible {
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }
    }

    .orbit__tooltip-name {
        display: block;
        font-family: var(--font-display);
        font-size: 1.1rem;
        font-weight: 500;
        color: var(--text-primary);
        margin-bottom: 4px;
    }

    .orbit__tooltip-tagline {
        display: block;
        font-size: 0.8rem;
        color: var(--text-secondary);
        line-height: 1.4;
        margin-bottom: var(--sp-xs);
    }

    .orbit__tooltip-cta {
        display: block;
        font-size: 0.75rem;
        color: var(--gold);
        font-weight: 500;
        letter-spacing: 0.05em;
    }

    /* --------------------------------
       LES CERVEAUX
       -------------------------------- */
    .cerveaux {
        padding: var(--sp-2xl) var(--sp-lg);
        max-width: 900px;
        margin: 0 auto;
        text-align: center;
    }

    .cerveaux__title {
        font-family: var(--font-display);
        font-size: clamp(2rem, 1.5rem + 2.5vw, 4rem);
        font-weight: 300;
        color: var(--text-primary);
        margin-bottom: var(--sp-xs);
    }

    .cerveaux__subtitle {
        font-size: 1rem;
        color: var(--text-secondary);
        margin-bottom: var(--sp-xl);
    }

    .cerveaux__grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--sp-lg);
        margin-bottom: var(--sp-xl);
    }

    /* --------------------------------
       CERVEAU (profil fondateur)
       -------------------------------- */
    .cerveau {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: var(--sp-lg);
        background: var(--bg-card);
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-md);
        transition:
            border-color var(--duration-base) var(--ease-out-expo),
            box-shadow var(--duration-base) var(--ease-out-expo);

        &:hover {
            border-color: var(--border-hover);
            box-shadow: 0 4px 30px var(--gold-dim);
        }
    }

    .cerveau__avatar {
        width: 90px;
        height: 90px;
        border-radius: var(--radius-full);
        background: linear-gradient(135deg, var(--gold-dim), var(--bg-surface));
        border: 2px solid var(--gold);
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: var(--sp-md);
        transition: box-shadow var(--duration-base) var(--ease-out-expo);

        .cerveau:hover & {
            box-shadow: 0 0 25px var(--gold-dim);
        }
    }

    .cerveau__initials {
        font-family: var(--font-display);
        font-size: 1.5rem;
        font-weight: 400;
        color: var(--gold);
        letter-spacing: 0.05em;
    }

    .cerveau__name {
        font-family: var(--font-display);
        font-size: 1.3rem;
        font-weight: 500;
        color: var(--text-primary);
        margin-bottom: 4px;
    }

    .cerveau__role {
        font-size: 0.85rem;
        color: var(--gold);
        font-weight: 500;
        margin-bottom: var(--sp-sm);
    }

    .cerveau__bio {
        font-size: 0.85rem;
        color: var(--text-secondary);
        line-height: 1.5;
        margin-bottom: var(--sp-md);
    }

    .cerveau__linkedin {
        display: inline-flex;
        align-items: center;
        gap: var(--sp-xs);
        font-size: 0.85rem;
        color: var(--text-secondary);
        padding: var(--sp-xs) var(--sp-sm);
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-sm);
        transition:
            color var(--duration-fast),
            border-color var(--duration-fast),
            background var(--duration-fast);

        &:hover {
            color: var(--gold);
            border-color: var(--gold);
            background: var(--gold-dim);
        }
    }

    /* CTA Calendly */
    .cerveaux__cta {
        text-align: center;
        margin-top: var(--sp-xl);
    }

    .cta-btn {
        display: inline-block;
        font-family: var(--font-display);
        font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
        font-weight: 500;
        color: var(--bg-deep);
        background: linear-gradient(135deg, var(--gold-light), var(--gold), #b8923a);
        padding: var(--sp-sm) var(--sp-lg);
        border-radius: var(--radius-sm);
        letter-spacing: 0.04em;
        transition:
            transform var(--duration-base) var(--ease-out-expo),
            box-shadow var(--duration-base) var(--ease-out-expo);

        &:hover {
            transform: translateY(-2px);
            box-shadow:
                0 4px 20px var(--gold-dim),
                0 8px 40px rgba(201, 169, 98, 0.10);
        }
    }

    /* --------------------------------
       FOOTER
       -------------------------------- */
    .footer {
        padding: var(--sp-xl) var(--sp-lg);
        text-align: center;
        border-top: 1px solid var(--border-subtle);
    }

    .footer__copy {
        font-size: 0.8rem;
        color: var(--text-muted);
    }

    .footer__tagline {
        font-size: 0.75rem;
        color: var(--text-muted);
        margin-top: 4px;
        letter-spacing: 0.1em;
    }

    /* --------------------------------
       DNA Brains Cortex (ecosystem badge)
       -------------------------------- */
    .footer__dna {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: var(--sp-xs);
        margin-top: var(--sp-md);
        padding-top: var(--sp-md);
        border-top: 1px solid var(--border-subtle);
    }

    .footer__dna-dot {
        width: 6px;
        height: 6px;
        border-radius: var(--radius-full);
        background: var(--gold);
        animation: dna-pulse 3s ease-in-out infinite;
    }

    @keyframes dna-pulse {
        0%, 100% { opacity: 0.4; }
        50% { opacity: 1; }
    }

    .footer__dna-label {
        font-size: 0.7rem;
        color: var(--text-muted);
        letter-spacing: 0.15em;
        text-transform: uppercase;
        font-weight: 500;
    }
}

/* ================================
   LAYER : ANIMATIONS
   ================================ */
@layer animations {

    /* Scroll-driven reveal */
    .ecosystem__title,
    .ecosystem__sub,
    .ecosystem__brain,
    .cerveaux__title,
    .cerveaux__subtitle {
        animation: fade-up linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 40%;
    }

    .eco-card,
    .cerveau {
        animation: fade-up linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 30%;
    }

    .eco-card:nth-child(2) { animation-range: entry 2% entry 32%; }
    .eco-card:nth-child(3) { animation-range: entry 4% entry 34%; }
    .eco-card:nth-child(4) { animation-range: entry 6% entry 36%; }
    .eco-card:nth-child(5) { animation-range: entry 8% entry 38%; }
    .eco-card:nth-child(6) { animation-range: entry 10% entry 40%; }
    .eco-card:nth-child(7) { animation-range: entry 12% entry 42%; }
    .eco-card:nth-child(8) { animation-range: entry 14% entry 44%; }
    .eco-card:nth-child(9) { animation-range: entry 16% entry 46%; }

    @keyframes fade-up {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

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

/* ================================
   LAYER : UTILITIES (Responsive)
   ================================ */
@layer utilities {

    /* Tablet */
    @media (max-width: 768px) {
        .ecosystem__grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    /* Mobile */
    @media (max-width: 640px) {
        .ecosystem__grid {
            grid-template-columns: 1fr;
            gap: var(--sp-sm);
        }

        .eco-card {
            min-height: auto;
            padding: var(--sp-md);
            flex-direction: row;
            justify-content: flex-start;
            text-align: left;
            gap: var(--sp-sm);
        }

        .eco-card__name { font-size: 1rem; margin-bottom: 0; }
        .eco-card__tag { font-size: 0.75rem; margin-bottom: 0; }
        .eco-card__cta { opacity: 1; transform: none; font-size: 0.7rem; }

        .cerveaux__grid {
            grid-template-columns: 1fr;
        }

        .hero__scroll-hint {
            bottom: var(--sp-lg);
        }

        .ecosystem,
        .cerveaux {
            padding: var(--sp-xl) var(--sp-xs);
            bottom: -22px;
        }
    }
}

/* ================================
   View Transitions
   ================================ */
@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: 300ms ease-out fade-out;
}

::view-transition-new(root) {
    animation: 300ms ease-in fade-in;
}

@keyframes fade-out {
    to { opacity: 0; }
}

@keyframes fade-in {
    from { opacity: 0; }
}
