* { margin: 0; padding: 0; box-sizing: border-box; }

        :root {
            --nav-height: 76px;
            --bg: #030507;
            --bg-rgb: 3, 5, 7;
            --surface: #070b0e;
            --surface-strong: #0b1014;
            --text: #f1f5f7;
            --text-soft: #dbe2e5;
            --muted: #8a9499;
            --dim: #525d62;
            --line: rgba(255,255,255,.08);
            --line-strong: rgba(255,255,255,.13);
            --accent: #69e6ff;
            --grid: rgba(255,255,255,.014);
            --nav-bg: rgba(3,5,7,.88);
            --shadow: rgba(0,0,0,.35);
            --max: 1120px;
        }

        html[data-theme="light"] {
            --bg: #f4f6f7;
            --bg-rgb: 244, 246, 247;
            --surface: #fff;
            --surface-strong: #edf1f3;
            --text: #111619;
            --text-soft: #242c30;
            --muted: #5f696e;
            --dim: #879196;
            --line: rgba(10,20,25,.09);
            --line-strong: rgba(10,20,25,.15);
            --accent: #007f9d;
            --grid: rgba(0,0,0,.025);
            --nav-bg: rgba(244,246,247,.9);
            --shadow: rgba(25,35,40,.12);
        }

        html {
            width: 100%;
            min-height: 100%;
            background: var(--bg);
            scroll-behavior: smooth;
            scroll-padding-top: calc(var(--nav-height) + 30px);
        }

        body {
            width: 100%;
            min-height: 100vh;
            min-height: 100dvh;
            background:
                radial-gradient(circle at 50% 10%, rgba(38,125,145,.08), transparent 32%),
                var(--bg);
            color: var(--text);
            font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            overflow-x: hidden;
            transition: background-color .3s ease, color .3s ease;
        }

        body.menu-open { overflow: hidden; }

        body::before {
            content: "";
            position: fixed;
            inset: 0;
            z-index: 0;
            background-image:
                linear-gradient(var(--grid) 1px, transparent 1px),
                linear-gradient(90deg, var(--grid) 1px, transparent 1px);
            background-size: 60px 60px;
            -webkit-mask-image: linear-gradient(to bottom, black, transparent 70%);
            mask-image: linear-gradient(to bottom, black, transparent 70%);
            pointer-events: none;
        }

        button, a { -webkit-tap-highlight-color: transparent; }
        button { font-family: inherit; }
        a { color: inherit; text-decoration: none; }
        strong { color: var(--text-soft); font-weight: 500; }
        nav, main, footer { position: relative; z-index: 1; }

        .topbar {
            position: sticky;
            top: 0;
            z-index: 1000;
            width: 100%;
            height: var(--nav-height);
            border-bottom: 1px solid var(--line);
            background: var(--nav-bg);
            -webkit-backdrop-filter: blur(18px);
            backdrop-filter: blur(18px);
        }

        .nav-inner {
            width: 100%;
            max-width: var(--max);
            height: 100%;
            margin: 0 auto;
            padding: 0 30px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 30px;
        }

        .brand {
            display: inline-flex;
            align-items: center;
            color: var(--text);
            font-size: 13px;
            font-weight: 600;
            letter-spacing: .20em;
            text-transform: uppercase;
            white-space: nowrap;
        }

        .nav-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .nav-icon, .burger {
            width: 42px;
            height: 42px;
            border: 0;
            background: transparent;
            color: var(--muted);
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: color .2s ease, background-color .2s ease;
        }

        .nav-icon:hover, .burger:hover {
            color: var(--text);
            background: var(--surface-strong);
        }

        .settings-button { font-size: 15px; }
        .settings-button.active { color: var(--accent); }

        .burger-lines {
            position: relative;
            width: 20px;
            height: 14px;
            display: block;
        }

        .burger-lines span {
            position: absolute;
            left: 0;
            width: 20px;
            height: 1.5px;
            background: var(--text);
            border-radius: 10px;
            transform-origin: center;
            transition:
                top .3s cubic-bezier(.16,1,.3,1),
                transform .3s cubic-bezier(.16,1,.3,1),
                width .3s cubic-bezier(.16,1,.3,1),
                left .3s cubic-bezier(.16,1,.3,1);
        }

        .burger-lines span:first-child { top: 3px; }
        .burger-lines span:last-child { top: 10px; width: 14px; left: 6px; }

        .burger.active .burger-lines span:first-child {
            top: 6.5px;
            transform: rotate(45deg);
        }

        .burger.active .burger-lines span:last-child {
            top: 6.5px;
            left: 0;
            width: 20px;
            transform: rotate(-45deg);
        }

        .settings-panel {
            position: fixed;
            top: calc(var(--nav-height) + 12px);
            right: max(30px, calc((100vw - var(--max)) / 2 + 30px));
            z-index: 1100;
            width: min(310px, calc(100vw - 40px));
            padding: 22px;
            background: rgba(var(--bg-rgb), .96);
            border: 1px solid var(--line-strong);
            border-radius: 12px;
            box-shadow: 0 22px 60px var(--shadow);
            -webkit-backdrop-filter: blur(24px);
            backdrop-filter: blur(24px);
            opacity: 0;
            visibility: hidden;
            transform: translateY(-8px) scale(.98);
            transform-origin: top right;
            transition: opacity .2s ease, visibility .2s ease, transform .25s cubic-bezier(.16,1,.3,1);
        }

        .settings-panel.open {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
        }

        .settings-group + .settings-group {
            margin-top: 24px;
            padding-top: 22px;
            border-top: 1px solid var(--line);
        }

        .settings-label {
            margin-bottom: 12px;
            color: var(--dim);
            font-size: 9px;
            font-weight: 600;
            letter-spacing: .18em;
            text-transform: uppercase;
        }

        .settings-options {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
        }

        .setting-option {
            min-height: 42px;
            padding: 0 13px;
            border: 1px solid var(--line);
            background: transparent;
            color: var(--muted);
            border-radius: 7px;
            font-size: 11px;
            font-weight: 500;
            cursor: pointer;
            transition: color .2s ease, border-color .2s ease, background-color .2s ease;
        }

        .setting-option:hover { color: var(--text); border-color: var(--line-strong); }

        .setting-option.active {
            color: var(--text);
            border-color: rgba(105,230,255,.35);
            background: rgba(105,230,255,.07);
        }

        html[data-theme="light"] .setting-option.active {
            border-color: rgba(0,127,157,.28);
            background: rgba(0,127,157,.06);
        }

        .menu-overlay {
            position: fixed;
            top: var(--nav-height);
            right: 0;
            bottom: 0;
            z-index: 900;
            width: 100%;
            background: var(--bg);
            transform: translateX(100%);
            visibility: hidden;
            transition:
                transform .65s cubic-bezier(.16,1,.3,1),
                visibility .65s;
        }

        .menu-overlay.open {
            transform: translateX(0);
            visibility: visible;
        }

        .menu-inner {
            width: 100%;
            max-width: var(--max);
            height: 100%;
            margin: 0 auto;
            padding: clamp(45px, 7vh, 85px) 30px 40px;
            display: flex;
            flex-direction: column;
            overflow-y: auto;

            /* Firefox */
            scrollbar-width: none;

            /* Legacy Edge / IE */
            -ms-overflow-style: none;
        }

        /* Chrome / Safari / Edge: keep scrolling, hide scrollbar */
        .menu-inner::-webkit-scrollbar {
            width: 0;
            height: 0;
            display: none;
        }

        .menu-meta {
            margin-bottom: 30px;
            color: var(--accent);
            font-size: 9px;
            font-weight: 600;
            letter-spacing: .22em;
            text-transform: uppercase;
            opacity: 0;
            transform: translateX(25px);
            transition: opacity .5s ease .2s, transform .6s cubic-bezier(.16,1,.3,1) .2s;
        }

        .menu-overlay.open .menu-meta {
            opacity: 1;
            transform: translateX(0);
        }

        .menu-links {
            display: flex;
            flex-direction: column;
            width: 100%;
        }

        .menu-link {
            width: 100%;
            display: grid;
            grid-template-columns: 48px 1fr auto;
            align-items: center;
            gap: 18px;
            padding: 15px 0;
            border-bottom: 1px solid var(--line);
            opacity: 0;
            transform: translateX(50px);
            transition:
                color .2s ease,
                opacity .45s ease,
                transform .6s cubic-bezier(.16,1,.3,1);
        }

        .menu-overlay.open .menu-link {
            opacity: 1;
            transform: translateX(0);
        }

        .menu-overlay.open .menu-link:nth-child(1) { transition-delay: .08s; }
        .menu-overlay.open .menu-link:nth-child(2) { transition-delay: .10s; }
        .menu-overlay.open .menu-link:nth-child(3) { transition-delay: .12s; }
        .menu-overlay.open .menu-link:nth-child(4) { transition-delay: .14s; }
        .menu-overlay.open .menu-link:nth-child(5) { transition-delay: .16s; }
        .menu-overlay.open .menu-link:nth-child(6) { transition-delay: .18s; }
        .menu-overlay.open .menu-link:nth-child(7) { transition-delay: .20s; }
        .menu-overlay.open .menu-link:nth-child(8) { transition-delay: .22s; }
        .menu-overlay.open .menu-link:nth-child(9) { transition-delay: .24s; }
        .menu-overlay.open .menu-link:nth-child(10) { transition-delay: .26s; }
        .menu-overlay.open .menu-link:nth-child(11) { transition-delay: .28s; }
        .menu-overlay.open .menu-link:nth-child(12) { transition-delay: .30s; }
        .menu-overlay.open .menu-link:nth-child(13) { transition-delay: .32s; }
        .menu-overlay.open .menu-link:nth-child(14) { transition-delay: .34s; }

        .menu-number {
            color: var(--dim);
            font-size: 9px;
            letter-spacing: .15em;
        }

        .menu-title {
            color: var(--muted);
            font-size: clamp(17px, 1.8vw, 25px);
            line-height: 1.2;
            letter-spacing: -.025em;
            transition: color .2s ease, transform .25s ease;
        }

        .menu-arrow {
            color: var(--dim);
            font-size: 11px;
            transition: color .2s ease, transform .25s ease;
        }

        .menu-link:hover .menu-title {
            color: var(--text);
            transform: translateX(5px);
        }

        .menu-link:hover .menu-arrow {
            color: var(--accent);
            transform: translateX(4px);
        }

        .menu-footer {
            margin-top: auto;
            padding-top: 45px;
            display: flex;
            justify-content: space-between;
            gap: 30px;
            color: var(--dim);
            font-size: 9px;
            letter-spacing: .16em;
            text-transform: uppercase;
        }

        .container {
            width: 100%;
            max-width: var(--max);
            margin: 0 auto;
            padding-left: 30px;
            padding-right: 30px;
        }

        .label {
            margin-bottom: 22px;
            color: var(--accent);
            font-size: 10px;
            font-weight: 600;
            letter-spacing: .24em;
            text-transform: uppercase;
        }

        .hero {
            min-height: calc(100vh - var(--nav-height));
            min-height: calc(100dvh - var(--nav-height));
            display: flex;
            align-items: center;
            padding: 110px 0;
        }

        .hero-content { width: 100%; max-width: 900px; }

        .hero h1 {
            color: var(--text);
            font-size: clamp(4rem,10vw,8.5rem);
            line-height: .88;
            letter-spacing: -.065em;
            font-weight: 500;
        }

        .hero h1 span { color: var(--dim); }

        .hero-description {
            max-width: 720px;
            margin-top: 25px;
            color: var(--muted);
            font-size: clamp(14px,1.4vw,16px);
            line-height: 1.85;
        }

        .hero-author {
            margin-top: 36px;
            color: var(--dim);
            font-size: 10px;
            letter-spacing: .18em;
            text-transform: uppercase;
        }

        .section {
            padding: 130px 0;
            border-top: 1px solid var(--line);
        }

        .section-grid {
            display: grid;
            grid-template-columns: minmax(220px,.75fr) minmax(0,1.5fr);
            gap: 90px;
        }

        .section-heading {
            position: sticky;
            top: calc(var(--nav-height) + 40px);
            align-self: start;
        }

        .section-heading h3 {
            max-width: 300px;
            color: var(--text-soft);
            font-size: 20px;
            line-height: 1.35;
            letter-spacing: -.02em;
            font-weight: 500;
        }

        .number {
            display: block;
            margin-bottom: 18px;
            color: var(--dim);
            font-size: 10px;
            letter-spacing: .18em;
        }

        .text { max-width: 720px; }

        .text p {
            margin-top: 25px;
            color: var(--muted);
            font-size: 15px;
            line-height: 1.9;
            letter-spacing: .01em;
        }

        .text p:first-child { margin-top: 0; }

        .theory-type {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 9px;
            margin-top: 27px;
            color: var(--text-soft);
            font-size: 11px;
            font-weight: 500;
            letter-spacing: .08em;
            text-transform: uppercase;
        }
        .theory-type span {
            color: var(--dim);
            font-size: 8px;
            font-weight: 600;
            letter-spacing: .16em;
        }
        .statement {
            position: relative;
            padding: clamp(95px, 11vw, 150px) 0;
            border-top: 1px solid var(--line);
            border-bottom: 1px solid var(--line);
            overflow: hidden;
        }
        .statement-inner {
            position: relative;
            width: 100%;
            max-width: 900px;
            margin: 0 auto;
            padding: 0 clamp(10px, 5vw, 70px);
            text-align: center;
        }
        .statement-mark {
            position: absolute;
            top: -55px;
            left: 0;
            color: var(--accent);
            font-family: Georgia, "Times New Roman", serif;
            font-size: clamp(7rem, 14vw, 12rem);
            line-height: 1;
            opacity: .10;
            pointer-events: none;
            user-select: none;
        }
        .statement p {
            position: relative;
            z-index: 1;
            max-width: 820px;
            margin: 0 auto;
            color: var(--text-soft);
            font-size: clamp(1.65rem, 3.25vw, 2.9rem);
            line-height: 1.38;
            letter-spacing: -.035em;
            font-weight: 400;
        }
        .statement p span { color: var(--dim); }
        .statement-source {
            position: relative;
            z-index: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin-top: 32px;
            color: var(--dim);
            font-size: 8px;
            font-weight: 600;
            letter-spacing: .2em;
            text-transform: uppercase;
        }
        .statement-source::before {
            content: "";
            width: 28px;
            height: 1px;
            background: var(--accent);
            opacity: .6;
        }

        .note { padding: 100px 0; }
        .note-inner { max-width: 720px; }

        .note p {
            color: var(--muted);
            font-size: 13px;
            line-height: 1.85;
        }

        footer {
            min-height: 90px;
            display: flex;
            align-items: center;
            border-top: 1px solid var(--line);
        }

        .footer-inner {
            width: 100%;
            max-width: var(--max);
            margin: 0 auto;
            padding: 0 30px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 30px;
            color: var(--dim);
            font-size: 9px;
            letter-spacing: .16em;
            text-transform: uppercase;
        }

        [data-lang] { display: none; }
        html[data-language="en"] [data-lang="en"] { display: block; }
        html[data-language="de"] [data-lang="de"] { display: block; }

        .reveal {
            opacity: 0;
            transform: translateY(34px);
            transition:
                opacity .9s cubic-bezier(.16,1,.3,1),
                transform .9s cubic-bezier(.16,1,.3,1);
            transition-delay: var(--delay,0ms);
            will-change: opacity, transform;
        }

        .reveal.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .hero .label,
        .hero h1,
        .hero-description,
        .hero-author {
            opacity: 0;
            transform: translateY(25px);
            animation: heroReveal 1s cubic-bezier(.16,1,.3,1) forwards;
        }

        .hero h1 { animation-delay: .1s; }
        .hero-description { animation-delay: .22s; }
        .hero-author { animation-delay: .34s; }

        @keyframes heroReveal {
            to { opacity: 1; transform: translateY(0); }
        }

        @media (max-width: 850px) {
            .hero { min-height: auto; padding: 110px 0; }
            .section { padding: 100px 0; }
            .section-grid { grid-template-columns: 1fr; gap: 45px; }
            .section-heading { position: static; }
            .section-heading h3 { max-width: 500px; }
            .statement { padding: 110px 0; }
        }

        @media (max-width: 560px) {
            :root { --nav-height: 68px; }

            .nav-inner, .container, .footer-inner {
                padding-left: 20px;
                padding-right: 20px;
            }

            .brand { font-size: 10px; letter-spacing: .12em; }
            .nav-actions { gap: 2px; }
            .nav-icon, .burger { width: 38px; height: 38px; }

            .settings-panel {
                top: calc(var(--nav-height) + 10px);
                right: 20px;
                width: calc(100vw - 40px);
            }

            .menu-inner { padding: 38px 20px 28px; }
            .menu-meta { margin-bottom: 22px; }

            .menu-link {
                grid-template-columns: 34px minmax(0,1fr) 16px;
                gap: 10px;
                padding: 12px 0;
            }

            .menu-title { font-size: 16px; }
            .menu-footer { padding-top: 35px; display: block; line-height: 2; }

            .hero { padding: 90px 0 100px; }

            .hero h1 {
                font-size: clamp(3.45rem,17vw,5.4rem);
                line-height: .9;
            }

            .hero-description {
                margin-top: 30px;
                font-size: 14px;
                line-height: 1.75;
            }

            .section { padding: 80px 0; }
            .section-grid { gap: 35px; }

            .text p {
                margin-top: 21px;
                font-size: 14px;
                line-height: 1.85;
            }

            .statement { padding: 90px 0; }
            .statement-inner { padding: 0 5px; }
            .statement-mark { top: -42px; left: -4px; font-size: 7rem; }
            .statement p { font-size: clamp(1.55rem, 7.5vw, 2rem); line-height: 1.42; }
            .statement-source { margin-top: 25px; font-size: 7px; letter-spacing: .17em; }
            .note { padding: 70px 0; }
            footer { min-height: 80px; }
            .footer-inner { display: block; }
            .footer-inner span:last-child { display: none; }
        }

        @media (max-width: 370px) {
            .brand {
                max-width: 190px;
                overflow: hidden;
                font-size: 9px;
                letter-spacing: .08em;
            }

            .hero h1 { font-size: 3.1rem; }
        }

        @media (prefers-reduced-motion: reduce) {
            html { scroll-behavior: auto; }

            .reveal,
            .hero .label,
            .hero h1,
            .hero-description,
            .hero-author {
                opacity: 1 !important;
                transform: none !important;
                animation: none !important;
                transition: none !important;
            }
        }

        /* =========================================================
           RECURSIVE REALITY FOOTER
           ========================================================= */

        .rr-footer {
            --footer-text: 0.68rem;
            --footer-small: 0.60rem;
            --footer-muted: 0.58rem;

            position: relative;

            margin-top: 0;

            background: transparent;
            border-top: 1px solid rgba(255, 255, 255, 0.055);
        }


        /* =========================================================
           MAIN AREA
           ========================================================= */

        .rr-footer-main {
            padding: 54px 0 48px;

            display: flex;
            align-items: center;
            justify-content: space-between;

            gap: 60px;
        }


        /* =========================================================
           IDENTITY
           ========================================================= */

        .rr-footer-identity {
            display: flex;
            align-items: flex-start;
            gap: 15px;
        }

        .rr-footer-line {
            display: block;

            width: 28px;
            height: 1px;

            margin-top: 6px;

            background: #54dff5;
            opacity: 0.8;
        }

        .rr-footer-title {
            color: #aab2b6;

            font-size: var(--footer-text);
            font-weight: 600;

            line-height: 1.4;
            letter-spacing: 0.18em;

            text-transform: uppercase;
        }

        .rr-footer-subtitle {
            margin-top: 8px;

            color: #4f585d;

            font-size: var(--footer-small);
            font-weight: 500;

            line-height: 1.5;
            letter-spacing: 0.12em;

            text-transform: uppercase;
        }


        /* =========================================================
           SOCIAL
           ========================================================= */

        .rr-footer-social {
            display: flex;
            flex-direction: column;

            align-items: flex-end;

            gap: 8px;

            text-decoration: none;
        }

        .rr-footer-social-label {
            color: #4f585d;

            font-size: var(--footer-small);
            font-weight: 600;

            line-height: 1.4;
            letter-spacing: 0.16em;

            text-transform: uppercase;
        }

        .rr-footer-social-user {
            display: flex;
            align-items: center;

            gap: 9px;

            color: #8f989d;

            font-size: var(--footer-text);
            font-weight: 400;

            line-height: 1.4;
            letter-spacing: 0.03em;

            transition: color 180ms ease;
        }

        .rr-footer-social-user .fa-instagram {
            color: #697277;

            font-size: 0.76rem;

            transition: color 180ms ease;
        }

        .rr-footer-social-user .fa-arrow-up-right-from-square {
            margin-left: 2px;

            color: #444c50;

            font-size: 0.52rem;

            transition:
                color 180ms ease,
                transform 180ms ease;
        }

        .rr-footer-social:hover .rr-footer-social-user {
            color: #54dff5;
        }

        .rr-footer-social:hover .fa-instagram {
            color: #54dff5;
        }

        .rr-footer-social:hover .fa-arrow-up-right-from-square {
            color: #54dff5;

            transform: translate(2px, -2px);
        }


        /* =========================================================
           BOTTOM BAR
           ========================================================= */

        .rr-footer-bottom {
            min-height: 62px;

            padding: 19px 0 22px;

            border-top: 1px solid rgba(255, 255, 255, 0.045);

            display: grid;

            grid-template-columns: 1fr auto 1fr;

            align-items: center;

            gap: 30px;

            color: #525b60;

            font-size: var(--footer-small);
            font-weight: 500;

            line-height: 1.4;
            letter-spacing: 0.08em;

            text-transform: uppercase;
        }

        .rr-footer-bottom > span:nth-child(2),
        .rr-footer-bottom > span:nth-child(3) {
            text-align: center;
        }


        /* =========================================================
           BACK TO TOP
           ========================================================= */

        .rr-footer-top {
            justify-self: end;

            display: inline-flex;
            align-items: center;

            gap: 9px;

            color: #525b60;

            font-size: var(--footer-small);
            font-weight: 500;

            line-height: 1.4;
            letter-spacing: 0.09em;

            text-decoration: none;
            text-transform: uppercase;

            transition: color 180ms ease;
        }

        .rr-footer-top i {
            color: #54dff5;

            font-size: 0.55rem;

            transition: transform 180ms ease;
        }

        .rr-footer-top:hover {
            color: #90999e;
        }

        .rr-footer-top:hover i {
            transform: translateY(-3px);
        }


        /* =========================================================
           GENERAL LINK BEHAVIOR
           ========================================================= */

        .rr-footer a {
            outline: none;
        }

        .rr-footer a:focus-visible {
            outline: 1px solid rgba(84, 223, 245, 0.65);
            outline-offset: 5px;
        }


        /* =========================================================
           TABLET
           ========================================================= */

        @media (max-width: 900px) {

            .rr-footer-main {
                padding: 46px 0 42px;

                gap: 40px;
            }

            .rr-footer-bottom {
                gap: 20px;

                font-size: 0.57rem;
            }

            .rr-footer-top {
                font-size: 0.57rem;
            }
        }


        /* =========================================================
           MOBILE
           ========================================================= */

        @media (max-width: 700px) {

            .rr-footer {
                --footer-text: 0.72rem;
                --footer-small: 0.62rem;
            }

            .rr-footer-main {
                padding: 40px 0 36px;

                flex-direction: column;

                align-items: flex-start;

                gap: 30px;
            }

            .rr-footer-identity {
                gap: 13px;
            }

            .rr-footer-line {
                width: 24px;

                margin-top: 6px;
            }

            .rr-footer-social {
                align-items: flex-start;

                margin-left: 37px;
            }

            .rr-footer-bottom {
                min-height: auto;

                padding: 20px 0 26px;

                display: flex;
                flex-direction: column;

                align-items: flex-start;

                gap: 10px;

                font-size: var(--footer-small);
            }

            .rr-footer-bottom > span {
                text-align: left !important;
            }

            .rr-footer-top {
                justify-self: auto;

                margin-top: 7px;

                font-size: var(--footer-small);
            }
        }


        /* =========================================================
           SMALL MOBILE
           ========================================================= */

        @media (max-width: 420px) {

            .rr-footer-main {
                padding-top: 34px;
            }

            .rr-footer-title {
                letter-spacing: 0.14em;
            }

            .rr-footer-subtitle {
                letter-spacing: 0.09em;
            }

            .rr-footer-social-label {
                letter-spacing: 0.13em;
            }

            .rr-footer-bottom {
                letter-spacing: 0.06em;
            }
        }

        /* =========================================================
           FOOTER SOCIAL — DESKTOP
           ========================================================= */

        .rr-footer-social {
            display: inline-flex;
            align-items: center;
            gap: 12px;

            padding: 8px 0;

            color: #727b80;
            text-decoration: none;

            transition: color 180ms ease;
        }


        /* Instagram label */

        .rr-social-platform {
            display: inline-flex;
            align-items: center;
            gap: 8px;

            color: #626b70;

            font-size: 0.64rem;
            font-weight: 600;

            line-height: 1;
            letter-spacing: 0.12em;

            text-transform: uppercase;

            transition: color 180ms ease;
        }

        .rr-social-platform i {
            color: #54dff5;

            font-size: 0.82rem;

            transition:
                color 180ms ease,
                transform 180ms ease;
        }


        /* Divider */

        .rr-social-divider {
            display: block;

            width: 22px;
            height: 1px;

            background: rgba(255, 255, 255, 0.11);

            transition:
                width 180ms ease,
                background 180ms ease;
        }


        /* Username */

        .rr-social-handle {
            color: #9ba4a8;

            font-size: 0.69rem;
            font-weight: 500;

            line-height: 1;

            letter-spacing: 0.02em;

            transition: color 180ms ease;
        }


        /* Arrow */

        .rr-social-arrow {
            margin-left: 2px;

            color: #515b60;

            font-size: 0.52rem;

            transform: rotate(45deg);

            transition:
                color 180ms ease,
                transform 180ms ease;
        }


        /* Hover */

        .rr-footer-social:hover .rr-social-platform {
            color: #899297;
        }

        .rr-footer-social:hover .rr-social-platform i {
            color: #7cecff;
            transform: scale(1.08);
        }

        .rr-footer-social:hover .rr-social-divider {
            width: 28px;

            background: rgba(84, 223, 245, 0.4);
        }

        .rr-footer-social:hover .rr-social-handle {
            color: #d5dadd;
        }

        .rr-footer-social:hover .rr-social-arrow {
            color: #54dff5;

            transform:
                rotate(45deg)
                translateY(-2px);
        }


        /* =========================================================
           FOOTER SOCIAL — TABLET
           ========================================================= */

        @media (max-width: 900px) {

            .rr-footer-social {
                gap: 10px;
            }

            .rr-social-divider {
                width: 18px;
            }

            .rr-social-platform {
                font-size: 0.62rem;
            }

            .rr-social-handle {
                font-size: 0.68rem;
            }
        }


        /* =========================================================
           FOOTER SOCIAL — MOBILE
           ========================================================= */

        @media (max-width: 700px) {

            .rr-footer-social {
                width: 100%;

                display: flex;
                align-items: center;

                gap: 10px;

                padding: 5px 0;

                margin: 0;
            }

            .rr-social-platform {
                gap: 7px;

                font-size: 0.62rem;

                letter-spacing: 0.1em;
            }

            .rr-social-platform i {
                font-size: 0.82rem;
            }

            .rr-social-divider {
                width: 18px;

                flex-shrink: 0;
            }

            .rr-social-handle {
                font-size: 0.69rem;
            }

            .rr-social-arrow {
                margin-left: auto;

                font-size: 0.52rem;
            }

        }


        /* =========================================================
           SMALL MOBILE
           ========================================================= */

        @media (max-width: 420px) {

            .rr-footer-social {
                gap: 8px;
            }

            .rr-social-platform {
                font-size: 0.59rem;
            }

            .rr-social-platform span {
                display: none;
            }

            .rr-social-platform i {
                font-size: 0.86rem;
            }

            .rr-social-divider {
                width: 16px;
            }

            .rr-social-handle {
                font-size: 0.68rem;
            }

        }

        /* =========================================================
           RECURSIVE REALITY FOOTER — LIGHT MODE
           ========================================================= */

        html[data-theme="light"] .rr-footer {
            background: #f5f7f8;
            border-top-color: rgba(5, 15, 20, 0.08);
        }


        /* ---------------------------------------------------------
           Identity
           --------------------------------------------------------- */

        html[data-theme="light"] .rr-footer-line {
            background: #18bcd6;
            opacity: 0.9;
        }

        html[data-theme="light"] .rr-footer-title {
            color: #263136;
        }

        html[data-theme="light"] .rr-footer-subtitle {
            color: #7b858a;
        }


        /* ---------------------------------------------------------
           Social
           --------------------------------------------------------- */

        html[data-theme="light"] .rr-footer-social {
            color: #586368;
        }

        html[data-theme="light"] .rr-social-platform {
            color: #5b666b;
        }

        html[data-theme="light"] .rr-social-platform i {
            color: #18bcd6;
        }

        html[data-theme="light"] .rr-social-divider {
            background: rgba(15, 30, 38, 0.14);
        }

        html[data-theme="light"] .rr-social-handle {
            color: #59656a;
        }

        html[data-theme="light"] .rr-social-arrow {
            color: #879197;
        }


        /* Hover */

        html[data-theme="light"] .rr-footer-social:hover .rr-social-platform {
            color: #273238;
        }

        html[data-theme="light"] .rr-footer-social:hover .rr-social-platform i {
            color: #00a9c5;
        }

        html[data-theme="light"] .rr-footer-social:hover .rr-social-divider {
            background: rgba(0, 169, 197, 0.45);
        }

        html[data-theme="light"] .rr-footer-social:hover .rr-social-handle {
            color: #192328;
        }

        html[data-theme="light"] .rr-footer-social:hover .rr-social-arrow {
            color: #00a9c5;
        }


        /* ---------------------------------------------------------
           Bottom bar
           --------------------------------------------------------- */

        html[data-theme="light"] .rr-footer-bottom {
            color: #737e83;

            border-top-color: rgba(15, 30, 38, 0.08);
        }

        html[data-theme="light"] .rr-footer-top {
            color: #737e83;
        }

        html[data-theme="light"] .rr-footer-top i {
            color: #18bcd6;
        }

        html[data-theme="light"] .rr-footer-top:hover {
            color: #263136;
        }


        /* ---------------------------------------------------------
           Focus
           --------------------------------------------------------- */

        html[data-theme="light"] .rr-footer a:focus-visible {
            outline-color: rgba(0, 169, 197, 0.55);
        }


        /* =========================================================
           MOBILE LIGHT MODE
           ========================================================= */

        @media (max-width: 700px) {

            html[data-theme="light"] .rr-footer {
                background: #f5f7f8;
            }

            html[data-theme="light"] .rr-social-platform {
                color: #596469;
            }

            html[data-theme="light"] .rr-social-handle {
                color: #4d595e;
            }

            html[data-theme="light"] .rr-social-divider {
                background: rgba(15, 30, 38, 0.16);
            }

            html[data-theme="light"] .rr-footer-bottom {
                color: #687378;
            }
        }

        /* =========================================================
           MENU LANGUAGE
           ========================================================= */

        .menu-language {
            width: 100%;
        }


        /* =========================================================
           MAIN NAVIGATION ITEMS
           ========================================================= */

        .menu-group {
            width: 100%;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
        }

        .menu-parent,
        .menu-main-link {
            width: 100%;
            min-height: 84px;

            display: grid;
            grid-template-columns: 42px minmax(0, 1fr) auto 24px;
            align-items: center;
            gap: 20px;

            padding: 0;

            color: #8f989d;

            background: transparent;
            border: 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);

            text-align: left;
            text-decoration: none;

            cursor: pointer;

            transition:
                color 180ms ease,
                background 180ms ease;
        }

        .menu-parent:hover,
        .menu-main-link:hover {
            color: #e1e5e7;
            background: rgba(255, 255, 255, 0.015);
        }


        /* number */

        .menu-parent-index {
            color: #424b50;

            font-size: 0.6rem;
            font-weight: 600;

            letter-spacing: 0.12em;
        }


        /* main title */

        .menu-parent-title {
            color: inherit;

            font-size: clamp(1.05rem, 1.5vw, 1.35rem);
            font-weight: 400;

            letter-spacing: -0.025em;
        }


        /* meta */

        .menu-parent-meta {
            color: #465055;

            font-size: 0.56rem;
            font-weight: 600;

            letter-spacing: 0.14em;
            text-transform: uppercase;

            white-space: nowrap;
        }


        /* icons */

        .menu-parent-icon,
        .menu-main-arrow {
            justify-self: end;

            color: #566065;

            font-size: 0.65rem;

            transition:
                color 180ms ease,
                transform 250ms ease;
        }

        .menu-parent:hover .menu-parent-icon,
        .menu-main-link:hover .menu-main-arrow {
            color: #54dff5;
        }


        /* Open theory */

        .menu-parent[aria-expanded="true"] {
            color: #d8dddf;
        }

        .menu-parent[aria-expanded="true"] .menu-parent-icon {
            color: #54dff5;
            transform: rotate(45deg);
        }


        /* =========================================================
           SUB NAVIGATION
           ========================================================= */

        .menu-subnav {
            max-height: 0;

            overflow: hidden;

            opacity: 0;

            transition:
                max-height 500ms cubic-bezier(.2, .8, .2, 1),
                opacity 250ms ease;
        }

        .menu-group.is-open .menu-subnav {
            max-height: 1400px;
            opacity: 1;
        }


        /* nested links */

        .menu-subnav .menu-link {
            min-height: 55px;

            padding-left: 62px;

            border-bottom: 1px solid rgba(255, 255, 255, 0.04);

            background: rgba(255, 255, 255, 0.008);
        }

        .menu-subnav .menu-link:last-child {
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        }

        .menu-subnav .menu-number {
            color: #3d474c;
        }

        .menu-subnav .menu-title {
            color: #737d82;

            font-size: 0.76rem;

            transition:
                color 180ms ease,
                transform 180ms ease;
        }

        .menu-subnav .menu-arrow {
            color: #394247;

            font-size: 0.55rem;

            opacity: 0;

            transform: translateX(-5px);

            transition:
                opacity 180ms ease,
                transform 180ms ease,
                color 180ms ease;
        }

        .menu-subnav .menu-link:hover .menu-title {
            color: #d0d6d8;
            transform: translateX(4px);
        }

        .menu-subnav .menu-link:hover .menu-arrow {
            color: #54dff5;

            opacity: 1;
            transform: translateX(0);
        }


        /* =========================================================
           LIGHT MODE
           ========================================================= */

        html[data-theme="light"] .menu-group {
            border-top-color: rgba(10, 20, 25, 0.08);
        }

        html[data-theme="light"] .menu-parent,
        html[data-theme="light"] .menu-main-link {
            color: #475156;

            border-bottom-color: rgba(10, 20, 25, 0.08);
        }

        html[data-theme="light"] .menu-parent:hover,
        html[data-theme="light"] .menu-main-link:hover {
            color: #11191d;
            background: rgba(10, 20, 25, 0.02);
        }

        html[data-theme="light"] .menu-parent-index {
            color: #9ba3a7;
        }

        html[data-theme="light"] .menu-parent-meta {
            color: #91999d;
        }

        html[data-theme="light"] .menu-parent-icon,
        html[data-theme="light"] .menu-main-arrow {
            color: #8e989c;
        }

        html[data-theme="light"] .menu-parent:hover .menu-parent-icon,
        html[data-theme="light"] .menu-main-link:hover .menu-main-arrow {
            color: #00a9c5;
        }

        html[data-theme="light"] .menu-subnav .menu-link {
            background: rgba(10, 20, 25, 0.012);

            border-bottom-color: rgba(10, 20, 25, 0.055);
        }

        html[data-theme="light"] .menu-subnav .menu-title {
            color: #697378;
        }

        html[data-theme="light"] .menu-subnav .menu-link:hover .menu-title {
            color: #182126;
        }

        html[data-theme="light"] .menu-subnav .menu-link:hover .menu-arrow {
            color: #00a9c5;
        }


        /* =========================================================
           MOBILE
           ========================================================= */

        @media (max-width: 700px) {

            .menu-parent,
            .menu-main-link {
                min-height: 72px;

                grid-template-columns: 30px minmax(0, 1fr) 20px;

                gap: 12px;
            }

            .menu-parent-meta {
                display: none;
            }

            .menu-parent-title {
                font-size: 1rem;
            }

            .menu-parent-index {
                font-size: 0.55rem;
            }

            .menu-subnav .menu-link {
                min-height: 52px;

                padding-left: 42px;
            }

            .menu-subnav .menu-title {
                font-size: 0.72rem;

                line-height: 1.4;
            }

            .menu-subnav .menu-arrow {
                display: none;
            }
        }

        /* =========================================================
           ABOUT PAGE
           ========================================================= */

        .about-contact {
            display: inline-flex;
            align-items: center;
            gap: 10px;

            margin-top: 22px;

            color: #8e989d;
            font-size: 0.7rem;
            text-decoration: none;

            transition: color 180ms ease;
        }

        .about-contact i {
            color: #54dff5;
        }

        .about-contact:hover {
            color: #d7dcde;
        }

        html[data-theme="light"] .about-contact {
            color: #596469;
        }

        html[data-theme="light"] .about-contact:hover {
            color: #182126;
        }

        /* =========================================================
           MENU SPACING
           ========================================================= */

        .menu-inner {
            width: min(100%, 1080px);
            margin: 0 auto;

            padding-left: clamp(28px, 5vw, 72px);
            padding-right: clamp(28px, 5vw, 72px);
        }


        /* Main navigation rows */

        .menu-parent,
        .menu-main-link {
            width: 100%;
            min-height: 84px;

            display: grid;
            grid-template-columns: 42px minmax(0, 1fr) auto 24px;
            align-items: center;

            gap: 20px;

            padding-left: 14px;
            padding-right: 14px;

            color: #8f989d;

            background: transparent;

            border: 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);

            text-align: left;
            text-decoration: none;

            cursor: pointer;

            transition:
                color 180ms ease,
                background 180ms ease,
                padding 180ms ease;
        }


        /* subtle movement */

        .menu-parent:hover {
            padding-left: 18px;
            padding-right: 10px;
        }


        /* =========================================================
           SUB NAVIGATION
           ========================================================= */

        .menu-subnav .menu-link {
            min-height: 55px;

            padding-left: 64px;
            padding-right: 18px;

            border-bottom: 1px solid rgba(255, 255, 255, 0.04);

            background: rgba(255, 255, 255, 0.008);
        }


        /* =========================================================
           MENU META
           ========================================================= */

        .menu-meta {
            padding-left: 14px;
            padding-right: 14px;

            margin-bottom: 22px;
        }


        /* =========================================================
           MENU FOOTER
           ========================================================= */

        .menu-footer {
            padding-left: 14px;
            padding-right: 14px;
        }


        /* =========================================================
           TABLET
           ========================================================= */

        @media (max-width: 900px) {

            .menu-inner {
                padding-left: 28px;
                padding-right: 28px;
            }

            .menu-parent {
                padding-left: 10px;
                padding-right: 10px;
            }

            .menu-subnav .menu-link {
                padding-left: 50px;
                padding-right: 12px;
            }
        }


        /* =========================================================
           MOBILE
           ========================================================= */

        @media (max-width: 700px) {

            .menu-inner {
                width: 100%;

                padding-left: 20px;
                padding-right: 20px;
            }

            .menu-parent,
            .menu-main-link {
                min-height: 70px;

                grid-template-columns: 30px minmax(0, 1fr) 20px;

                gap: 12px;

                padding-left: 6px;
                padding-right: 6px;
            }

            .menu-parent:hover {
                padding-left: 6px;
                padding-right: 6px;
            }

            .menu-parent-meta {
                display: none;
            }

            .menu-subnav .menu-link {
                min-height: 51px;

                padding-left: 38px;
                padding-right: 6px;
            }

            .menu-meta,
            .menu-footer {
                padding-left: 6px;
                padding-right: 6px;
            }
        }


        /* =========================================================
           SMALL MOBILE
           ========================================================= */

        @media (max-width: 420px) {

            .menu-inner {
                padding-left: 16px;
                padding-right: 16px;
            }

            .menu-parent {
                gap: 9px;
            }

            .menu-subnav .menu-link {
                padding-left: 32px;
            }
        }

        /* =========================================================
           MENU LAYOUT
           ========================================================= */

        .menu-inner {
            width: 100%;
            max-width: 1180px;

            margin: 0 auto;

            padding-left: clamp(24px, 5vw, 64px);
            padding-right: clamp(24px, 5vw, 64px);
        }

        .menu-language {
            width: 100%;
        }

        .menu-meta {
            margin-bottom: 28px;

            padding-left: 2px;

            color: #54dff5;

            font-size: 0.62rem;
            font-weight: 600;

            letter-spacing: 0.16em;
            text-transform: uppercase;
        }


        /* =========================================================
           MAIN ROW
           ========================================================= */

        .menu-parent-row {
            width: 100%;
            min-height: 86px;

            display: grid;

            grid-template-columns:
                42px
                minmax(0, 1fr)
                auto
                38px;

            align-items: center;

            gap: 18px;

            padding-left: 18px;
            padding-right: 18px;

            border-top: 1px solid rgba(255, 255, 255, 0.055);
            border-bottom: 1px solid rgba(255, 255, 255, 0.055);

            transition:
                background 180ms ease,
                border-color 180ms ease;
        }

        .menu-group + .menu-group .menu-parent-row {
            border-top: 0;
        }

        .menu-parent-row:hover {
            background: rgba(255, 255, 255, 0.012);
        }


        /* Number */

        .menu-parent-index {
            color: #455055;

            font-size: 0.6rem;
            font-weight: 500;

            letter-spacing: 0.1em;
        }


        /* Clickable page link */

        .menu-parent-link {
            width: fit-content;

            color: #9ca6ab;

            font-size: clamp(1rem, 1.45vw, 1.35rem);
            font-weight: 400;

            line-height: 1.2;

            letter-spacing: -0.03em;

            text-decoration: none;

            transition:
                color 180ms ease,
                transform 180ms ease;
        }

        .menu-parent-link:hover {
            color: #eef2f3;
            transform: translateX(3px);
        }


        /* Meta */

        .menu-parent-meta {
            color: #49545a;

            font-size: 0.56rem;
            font-weight: 500;

            letter-spacing: 0.14em;
            text-transform: uppercase;

            white-space: nowrap;
        }


        /* =========================================================
           PLUS BUTTON
           ========================================================= */

        .menu-parent-toggle {
            width: 36px;
            height: 36px;

            display: grid;
            place-items: center;

            padding: 0;

            border: 0;
            border-radius: 50%;

            background: transparent;

            color: #59646a;

            cursor: pointer;

            transition:
                color 180ms ease,
                background 180ms ease,
                transform 180ms ease;
        }

        .menu-parent-toggle i {
            font-size: 0.66rem;

            transition:
                color 180ms ease,
                transform 250ms ease;
        }

        .menu-parent-toggle:hover {
            color: #54dff5;
            background: rgba(84, 223, 245, 0.06);
        }

        .menu-group.is-open .menu-parent-toggle {
            color: #54dff5;
        }

        .menu-group.is-open .menu-parent-toggle i {
            transform: rotate(45deg);
        }


        /* =========================================================
           SUB NAVIGATION
           ========================================================= */

        .menu-subnav {
            max-height: 0;

            overflow: hidden;

            opacity: 0;

            transition:
                max-height 500ms cubic-bezier(.2, .8, .2, 1),
                opacity 220ms ease;
        }

        .menu-group.is-open .menu-subnav {
            max-height: 1600px;
            opacity: 1;
        }


        /* Individual links */

        .menu-subnav .menu-link {
            width: 100%;
            min-height: 54px;

            display: grid;

            grid-template-columns:
                42px
                minmax(0, 1fr)
                24px;

            align-items: center;

            gap: 18px;

            /*
             * Actual horizontal padding.
             * This was missing visually before.
             */
            padding-left: 58px;
            padding-right: 22px;

            background: rgba(255, 255, 255, 0.006);

            border-bottom: 1px solid rgba(255, 255, 255, 0.035);

            text-decoration: none;

            transition:
                background 180ms ease,
                padding-left 180ms ease;
        }

        .menu-subnav .menu-link:hover {
            padding-left: 64px;

            background: rgba(255, 255, 255, 0.014);
        }

        .menu-subnav .menu-number {
            color: #3f494e;

            font-size: 0.56rem;
        }

        .menu-subnav .menu-title {
            color: #747f84;

            font-size: 0.74rem;

            transition: color 180ms ease;
        }

        .menu-subnav .menu-arrow {
            justify-self: end;

            color: #54dff5;

            font-size: 0.5rem;

            opacity: 0;

            transform: translateX(-4px);

            transition:
                opacity 180ms ease,
                transform 180ms ease;
        }

        .menu-subnav .menu-link:hover .menu-title {
            color: #cbd2d5;
        }

        .menu-subnav .menu-link:hover .menu-arrow {
            opacity: 1;
            transform: translateX(0);
        }


        /* =========================================================
           LIGHT MODE
           ========================================================= */

        html[data-theme="light"] .menu-parent-row {
            border-color: rgba(15, 25, 30, 0.08);
        }

        html[data-theme="light"] .menu-parent-row:hover {
            background: rgba(15, 25, 30, 0.018);
        }

        html[data-theme="light"] .menu-parent-index {
            color: #8b969b;
        }

        html[data-theme="light"] .menu-parent-link {
            color: #525e63;
        }

        html[data-theme="light"] .menu-parent-link:hover {
            color: #121a1e;
        }

        html[data-theme="light"] .menu-parent-meta {
            color: #899398;
        }

        html[data-theme="light"] .menu-parent-toggle {
            color: #839095;
        }

        html[data-theme="light"] .menu-parent-toggle:hover,
        html[data-theme="light"] .menu-group.is-open .menu-parent-toggle {
            color: #00a9c5;
            background: rgba(0, 169, 197, 0.06);
        }

        html[data-theme="light"] .menu-subnav .menu-link {
            background: rgba(15, 25, 30, 0.008);
            border-bottom-color: rgba(15, 25, 30, 0.055);
        }

        html[data-theme="light"] .menu-subnav .menu-title {
            color: #667277;
        }

        html[data-theme="light"] .menu-subnav .menu-link:hover {
            background: rgba(15, 25, 30, 0.02);
        }

        html[data-theme="light"] .menu-subnav .menu-link:hover .menu-title {
            color: #151e22;
        }


        /* =========================================================
           TABLET
           ========================================================= */

        @media (max-width: 900px) {

            .menu-inner {
                padding-left: 28px;
                padding-right: 28px;
            }

            .menu-parent-row {
                padding-left: 14px;
                padding-right: 14px;
            }

            .menu-subnav .menu-link {
                padding-left: 48px;
                padding-right: 14px;
            }

            .menu-subnav .menu-link:hover {
                padding-left: 52px;
            }
        }


        /* =========================================================
           MOBILE
           ========================================================= */

        @media (max-width: 700px) {

            .menu-inner {
                padding-left: 18px;
                padding-right: 18px;
            }

            .menu-meta {
                margin-bottom: 20px;
            }

            .menu-parent-row {
                min-height: 70px;

                grid-template-columns:
                    28px
                    minmax(0, 1fr)
                    34px;

                gap: 10px;

                padding-left: 10px;
                padding-right: 8px;
            }

            .menu-parent-meta {
                display: none;
            }

            .menu-parent-link {
                font-size: 1rem;
            }

            .menu-parent-toggle {
                width: 34px;
                height: 34px;
            }

            .menu-subnav .menu-link {
                min-height: 50px;

                grid-template-columns:
                    27px
                    minmax(0, 1fr);

                gap: 10px;

                padding-left: 32px;
                padding-right: 14px;
            }

            .menu-subnav .menu-link:hover {
                padding-left: 32px;
            }

            .menu-subnav .menu-arrow {
                display: none;
            }

            .menu-subnav .menu-title {
                font-size: 0.7rem;
                line-height: 1.4;
            }
        }