:root {
            --void: #06080f;
            --void-2: #0b0f28;
            --panel: rgba(24, 28, 60, 0.52);
            --panel-solid: #141a3a;
            --ink: #F3EEF8;
            --muted: #AEACD2;
            --muted-2: #7d7ba8;
            --gold: #E7D3A0;
            --gold-soft: #F3E7C4;
            --lilac: #C9B2EE;
            --blue: #8FA8EE;
            --pink: #EDA9D0;
            --orange: #F4C58E;
            --green: #9BE0C4;
            --line: rgba(201, 178, 238, 0.16);
            --line-strong: rgba(231, 211, 160, 0.40);
            --maxw: 1120px;
            --r: 18px;
            --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.85);
            --ease: cubic-bezier(.22, .61, .36, 1);
        }

        :root[data-theme="light"] {
            --void: #f5efff;
            --void-2: #ebe0fb;
            --panel: rgba(255, 252, 255, 0.68);
            --panel-solid: #fbf7ff;
            --ink: #241a34;
            --muted: #665875;
            --muted-2: #8b7c9b;
            --gold: #8f62b5;
            --gold-soft: #6f468e;
            --lilac: #8a63c7;
            --blue: #6b83c8;
            --pink: #bb6ea7;
            --orange: #b985c8;
            --green: #5d988e;
            --line: rgba(105, 73, 145, 0.18);
            --line-strong: rgba(143, 98, 181, 0.34);
            --shadow: 0 24px 60px -32px rgba(91, 58, 126, 0.34);
        }

        * {
            box-sizing: border-box;
        }
        html {
            scroll-behavior: smooth;
        }
        body {
            margin: 0;
            background: var(--void);
            color: var(--ink);
            font-family: "Inter", system-ui, -apple-system, sans-serif;
            font-size: 16px;
            line-height: 1.65;
            letter-spacing: .01em;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
            text-rendering: optimizeLegibility;
        }

        a {
            color: inherit;
            text-decoration: none;
        }
        img {
            max-width: 100%;
            display: block;
        }
        ::selection {
            background: rgba(235, 207, 147, 0.30);
            color: #fff;
        }

        :root[data-theme="light"] ::selection {
            background: rgba(169, 128, 215, 0.28);
            color: var(--ink);
        }

        /* ---------- Cosmic background ---------- */
        #bg-canvas {
            position: fixed;
            inset: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            display: block;
        }
        .nebula {
            position: fixed;
            inset: 0;
            z-index: -1;
            pointer-events: none;
            background:
                radial-gradient(56% 50% at 50% 96%, rgba(74, 40, 130, 0.22), transparent 74%),
                radial-gradient(46% 42% at 16% 88%, rgba(55, 32, 110, 0.15), transparent 72%),
                radial-gradient(50% 44% at 86% 90%, rgba(48, 30, 120, 0.15), transparent 74%),
                radial-gradient(48% 46% at 84% 16%, rgba(90, 45, 150, 0.16), transparent 74%),
                radial-gradient(56% 60% at 68% 42%, rgba(78, 40, 140, 0.20), transparent 76%),
                radial-gradient(42% 46% at 12% 12%, rgba(45, 35, 110, 0.14), transparent 72%),
                radial-gradient(36% 42% at 48% 28%, rgba(95, 50, 155, 0.11), transparent 72%),
                radial-gradient(32% 36% at 58% 66%, rgba(35, 30, 95, 0.10), transparent 70%),
                linear-gradient(180deg, #020208 0%, #050614 24%, #0a0a20 44%, #13102c 64%, #1c1136 84%, #241340 100%);
            background-blend-mode: screen, screen, screen, screen, screen, screen, screen, screen, normal;
        }
        :root[data-theme="light"] .nebula {
            background:
                radial-gradient(58% 48% at 50% 94%, rgba(192, 158, 232, 0.28), transparent 74%),
                radial-gradient(48% 42% at 16% 84%, rgba(169, 128, 215, 0.22), transparent 72%),
                radial-gradient(48% 42% at 88% 86%, rgba(222, 176, 224, 0.20), transparent 74%),
                radial-gradient(46% 44% at 84% 14%, rgba(198, 182, 238, 0.22), transparent 74%),
                radial-gradient(54% 58% at 62% 42%, rgba(177, 145, 224, 0.20), transparent 76%),
                radial-gradient(34% 36% at 28% 26%, rgba(239, 220, 252, 0.56), transparent 70%),
                linear-gradient(180deg, #fbf8ff 0%, #f6efff 34%, #eee3fb 66%, #e9dcf7 100%);
            background-blend-mode: multiply, multiply, multiply, multiply, multiply, screen, normal;
        }
        /* Scroll-journey tint layers: her bölümün kendi renk atmosferi, kaydırdıkça yumuşakça geçer */
        .nebula-tint {
            position: fixed;
            inset: 0;
            z-index: -1;
            pointer-events: none;
            opacity: 0;
            will-change: opacity;
        }
        #tint-lilac {
            background:
                radial-gradient(62% 58% at 24% 62%, rgba(126, 88, 216, 0.20), transparent 72%),
                radial-gradient(44% 46% at 76% 30%, rgba(150, 110, 230, 0.12), transparent 70%);
        }
        #tint-pink {
            background:
                radial-gradient(62% 58% at 76% 56%, rgba(200, 90, 160, 0.17), transparent 72%),
                radial-gradient(44% 46% at 24% 28%, rgba(220, 120, 180, 0.10), transparent 70%);
        }
        #tint-gold {
            background:
                radial-gradient(62% 58% at 50% 68%, rgba(190, 150, 80, 0.13), transparent 74%),
                radial-gradient(40% 42% at 78% 24%, rgba(210, 175, 100, 0.08), transparent 70%);
        }
        :root[data-theme="light"] #tint-lilac {
            background:
                radial-gradient(62% 58% at 24% 62%, rgba(151, 106, 218, 0.15), transparent 72%),
                radial-gradient(44% 46% at 76% 30%, rgba(203, 178, 239, 0.14), transparent 70%);
        }
        :root[data-theme="light"] #tint-pink {
            background:
                radial-gradient(62% 58% at 76% 56%, rgba(208, 151, 212, 0.16), transparent 72%),
                radial-gradient(44% 46% at 24% 28%, rgba(177, 145, 224, 0.12), transparent 70%);
        }
        :root[data-theme="light"] #tint-gold {
            background:
                radial-gradient(62% 58% at 50% 68%, rgba(190, 158, 232, 0.14), transparent 74%),
                radial-gradient(40% 42% at 78% 24%, rgba(235, 205, 246, 0.15), transparent 70%);
        }
        /* Kayan yıldız (meteor) */
        .meteor {
            position: fixed;
            z-index: 2;
            pointer-events: none;
            width: 2.5px;
            height: 2.5px;
            border-radius: 50%;
            background: #fff;
            box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.65);
        }
        .meteor::after {
            content: "";
            position: absolute;
            left: 1px;
            top: 50%;
            width: 110px;
            height: 1px;
            transform: translateY(-50%);
            background: linear-gradient(90deg, rgba(255, 255, 255, 0.7), rgba(201, 178, 238, 0.25), transparent);
        }
        .vignette {
            position: fixed;
            inset: 0;
            z-index: 1;
            pointer-events: none;
            background: radial-gradient(125% 95% at 50% 35%, transparent 62%, rgba(5, 4, 12, 0.42) 100%);
        }
        :root[data-theme="light"] .vignette {
            background: radial-gradient(125% 95% at 50% 35%, transparent 64%, rgba(111, 70, 142, 0.14) 100%);
        }

        #app {
            position: relative;
            z-index: 5;
            opacity: 0;
            transition: opacity 1s var(--ease);
        }
        #app.ready {
            opacity: 1;
        }

        header.nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 40;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 18px clamp(18px, 5vw, 40px);
            transition: background .4s var(--ease), backdrop-filter .4s, border-color .4s, padding .4s;
            border-bottom: 1px solid transparent;
        }
        header.nav.solid {
            background: rgba(8, 7, 20, 0.72);
            backdrop-filter: blur(14px) saturate(1.1);
            border-bottom: 1px solid var(--line);
            padding-top: 13px;
            padding-bottom: 13px;
        }
        :root[data-theme="light"] header.nav.solid {
            background: rgba(251, 247, 255, 0.78);
        }
        .wordmark {
            display: flex;
            align-items: center;
            gap: 11px;
            font-family: "Fraunces", serif;
            font-size: 1.12rem;
            letter-spacing: .01em;
        }
        .brand-icon {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            object-fit: cover;
            border: 1px solid var(--line-strong);
            box-shadow: 0 0 18px rgba(201, 178, 238, 0.30);
            flex: none;
        }
        :root[data-theme="light"] .brand-icon {
            box-shadow: 0 0 16px rgba(137, 92, 185, 0.24);
        }
        .wordmark b {
            font-weight: 600;
        }
        .wordmark span {
            color: var(--muted);
            font-weight: 400;
        }

        nav.links {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        nav.links a {
            font-size: .9rem;
            color: var(--muted);
            padding: 8px 13px;
            border-radius: 99px;
            position: relative;
            transition: color .25s var(--ease);
        }
        nav.links a:hover {
            color: var(--ink);
        }
        nav.links a.active {
            color: var(--gold);
        }
        nav.links a.active::after {
            content: "";
            position: absolute;
            left: 13px;
            right: 13px;
            bottom: 2px;
            height: 1.5px;
            background: linear-gradient(90deg, transparent, var(--gold), transparent);
        }
        .nav-controls {
            display: flex;
            align-items: center;
            margin-left: 8px;
            padding-left: 10px;
            border-left: 1px solid var(--line);
        }
        .control-btn {
            width: 38px;
            height: 34px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 1px solid var(--line);
            border-radius: 10px;
            background: rgba(201, 178, 238, 0.08);
            color: var(--muted);
            font-family: "JetBrains Mono", monospace;
            font-size: .76rem;
            cursor: pointer;
            transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
        }
        .theme-btn {
            font-size: .95rem;
        }
        .control-btn:hover {
            color: var(--ink);
            border-color: var(--line-strong);
            background: rgba(201, 178, 238, 0.14);
        }
        .nav-toggle {
            display: none;
            background: transparent;
            border: 1px solid var(--line);
            border-radius: 10px;
            padding: 8px 10px;
            cursor: pointer;
        }
        .nav-toggle span {
            display: block;
            width: 18px;
            height: 2px;
            background: var(--ink);
            margin: 3px 0;
            border-radius: 2px;
        }

        /* ---------- Layout ---------- */
        main {
            min-height: 100vh;
        }
        .view {
            display: none;
        }
        .view.active {
            display: block;
            animation: viewIn .8s var(--ease);
        }
        @keyframes viewIn {
            from {
                opacity: 0;
                transform: translateY(14px)
            }
            to {
                opacity: 1;
                transform: none
            }
        }

        .wrap {
            max-width: var(--maxw);
            margin: 0 auto;
            padding: 0 clamp(18px, 5vw, 40px);
        }
        section.block {
            padding: 84px 0;
        }
        .eyebrow {
            font-family: "JetBrains Mono", monospace;
            font-size: .74rem;
            letter-spacing: .26em;
            text-transform: uppercase;
            color: var(--gold);
            margin: 0 0 16px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .eyebrow::before {
            content: "";
            width: 26px;
            height: 1px;
            background: var(--gold);
            opacity: .6;
        }
        h1,
        h2,
        h3 {
            font-family: "Fraunces", serif;
            font-weight: 500;
            line-height: 1.08;
            letter-spacing: -.01em;
            margin: 0;
        }
        h2.title {
            font-size: clamp(2rem, 5vw, 2.9rem);
            margin: 0 0 18px;
        }
        .lead {
            font-size: clamp(1.02rem, 2vw, 1.18rem);
            color: var(--muted);
            max-width: 62ch;
            line-height: 1.7;
        }
        p {
            margin: 0 0 1.05em;
        }
        .muted {
            color: var(--muted);
        }

        /* ---------- Buttons ---------- */
        .btn {
            display: inline-flex;
            align-items: center;
            gap: 9px;
            font-family: "Inter", sans-serif;
            font-size: .92rem;
            font-weight: 500;
            padding: 12px 22px;
            border-radius: 99px;
            border: 1px solid var(--line-strong);
            color: var(--ink);
            background: rgba(235, 207, 147, 0.05);
            transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s, background .3s;
            cursor: pointer;
            position: relative;
        }
        .btn:hover {
            transform: translateY(-2px);
            border-color: var(--gold);
            box-shadow: 0 10px 34px -10px rgba(244, 166, 200, 0.45), 0 0 0 1px rgba(244, 166, 200, 0.18);
            background: rgba(244, 166, 200, 0.1);
        }
        .btn.primary {
            background: linear-gradient(110deg, #C9B2EE 0%, #EDA9D0 55%, #E7D3A0 100%);
            color: #1a1530;
            font-weight: 600;
            border-color: transparent;
        }
        .btn.primary:hover {
            box-shadow: 0 14px 42px -10px rgba(244, 166, 200, 0.6);
        }
        .btn.ghost {
            background: transparent;
            border-color: var(--line);
            color: var(--muted);
        }
        .btn.ghost:hover {
            color: var(--ink);
        }
        .btn.tiny {
            padding: 7px 14px;
            font-size: .8rem;
        }

        /* ---------- Cards ---------- */
        .card {
            background: var(--panel);
            border: 1px solid var(--line);
            border-radius: var(--r);
            padding: 26px;
            backdrop-filter: blur(10px);
            transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
            position: relative;
            overflow: hidden;
        }
        .card::before {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: var(--r);
            pointer-events: none;
            background: radial-gradient(140px 140px at var(--mx, 50%) var(--my, 0%), rgba(235, 207, 147, 0.10), transparent 60%);
            opacity: 0;
            transition: opacity .35s var(--ease);
        }
        .card:hover {
            transform: translateY(-3px);
            border-color: var(--line-strong);
            box-shadow: var(--shadow), 0 0 0 1px rgba(235, 207, 147, 0.12);
        }
        .card:hover::before {
            opacity: 1;
        }

        .tags {
            display: flex;
            flex-wrap: wrap;
            gap: 7px;
            margin: 14px 0 18px;
        }
        .tag {
            font-family: "JetBrains Mono", monospace;
            font-size: .7rem;
            letter-spacing: .06em;
            color: var(--lilac);
            border: 1px solid var(--line);
            padding: 4px 10px;
            border-radius: 99px;
            background: rgba(195, 168, 233, 0.05);
        }

        .grid {
            display: grid;
            gap: 22px;
        }
        .grid.two {
            grid-template-columns: repeat(2, 1fr);
        }
        .grid.three {
            grid-template-columns: repeat(3, 1fr);
        }

        /* ---------- HOME hero ---------- */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            padding-top: 72px;
        }
        .hero::before {
            content: "";
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            width: min(66vw, 820px);
            height: 66%;
            background: radial-gradient(60% 70% at 50% 50%, rgba(4, 3, 12, 0.5), transparent 75%);
            pointer-events: none;
            z-index: 0;
        }
        .hero .wrap {
            width: 100%;
            display: flex;
            justify-content: center;
        }
        .hero .hero-copy {
            max-width: 680px;
            margin: 0 auto;
            text-align: center;
            position: relative;
            z-index: 1;
        }
        .hero-sub {
            margin: 22px auto 0;
            max-width: 56ch;
            color: var(--muted);
            font-size: clamp(.96rem, 1.8vw, 1.08rem);
            line-height: 1.75;
            opacity: 0;
            animation: heroFadeUp 1.1s var(--ease) 3.2s forwards;
        }
        @keyframes heroFadeUp {
            from { opacity: 0; transform: translateY(14px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @media (prefers-reduced-motion: reduce) {
            .hero-sub { animation: none; opacity: 1; }
        }
        .hero-line {
            font-family: "Fraunces", serif;
            font-weight: 400;
            font-size: clamp(2.6rem, 7vw, 5rem);
            line-height: 1.12;
            letter-spacing: -0.01em;
            color: var(--ink);
            white-space: pre-line;
            margin: 0;
            text-shadow: 0 2px 4px rgba(2, 2, 8, 0.7), 0 8px 34px rgba(2, 2, 8, 0.55), 0 0 40px rgba(201, 178, 238, 0.25), 0 0 80px rgba(237, 150, 202, 0.12);
        }
        :root[data-theme="light"] .hero::before {
            background: radial-gradient(60% 70% at 50% 50%, rgba(251, 247, 255, 0.68), transparent 75%);
        }
        :root[data-theme="light"] .hero-line {
            text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7), 0 12px 36px rgba(96, 72, 116, 0.16);
        }
        .caret {
            display: inline-block;
            width: 3px;
            height: 0.92em;
            background: var(--gold);
            margin-left: 5px;
            vertical-align: -0.06em;
            border-radius: 2px;
            box-shadow: 0 0 10px rgba(231, 211, 160, 0.7);
            animation: blink 1.05s steps(1) infinite;
        }
        @keyframes blink {
            50% {
                opacity: 0
            }
        }
        .scroll-hint {
            position: absolute;
            bottom: 26px;
            left: 50%;
            transform: translateX(-50%);
            font-family: "JetBrains Mono", monospace;
            font-size: .68rem;
            letter-spacing: .2em;
            color: var(--muted-2);
            text-transform: uppercase;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
        }
        .scroll-hint .line {
            width: 1px;
            height: 34px;
            background: linear-gradient(var(--gold), transparent);
            animation: drop 2s var(--ease) infinite;
        }
        @keyframes drop {
            0% {
                transform: scaleY(.3);
                opacity: 0;
                transform-origin: top
            }
            40% {
                opacity: 1
            }
            100% {
                transform: scaleY(1);
                opacity: 0;
                transform-origin: top
            }
        }

        /* ---------- About page ---------- */
        #view-about { position: relative; }
        .about-sky {
            position: fixed;
            inset: 0;
            z-index: 0;
            pointer-events: none;
            overflow: hidden;
        }
        .about-sky svg {
            width: 100%;
            height: 100%;
            display: block;
        }
        .hero-sky {
            position: absolute;
            inset: 0;
            z-index: 0;
            pointer-events: none;
            overflow: hidden;
        }
        .hero-sky svg {
            width: 100%;
            height: 100%;
            display: block;
        }
        .aline {
            stroke: rgba(201, 178, 238, 0.20);
            stroke-width: 1;
        }
        :root[data-theme="light"] .aline {
            stroke: rgba(117, 83, 170, 0.25);
        }
        .astar {
            fill: rgba(235, 225, 250, 0.75);
            filter: drop-shadow(0 0 4px rgba(201, 178, 238, 0.6));
        }
        :root[data-theme="light"] .astar {
            fill: rgba(72, 53, 104, 0.66);
            filter: drop-shadow(0 0 5px rgba(117, 83, 170, 0.24));
        }
        .about-single {
            position: relative;
            z-index: 1;
            min-height: calc(100vh - 90px);
            display: flex;
            align-items: center;
        }
        .about-grid {
            display: grid;
            grid-template-columns: 1.15fr .85fr;
            gap: clamp(34px, 6vw, 80px);
            align-items: center;
            width: 100%;
        }
        .about-title {
            font-size: clamp(2.3rem, 5.2vw, 3.5rem);
            margin: 6px 0 16px;
        }
        .about-lead {
            font-size: clamp(1.04rem, 2vw, 1.2rem);
            color: var(--ink);
            opacity: .92;
            margin-bottom: 26px;
        }
        .about-lead em { color: var(--gold-soft); font-style: italic; }
        .about-body p {
            color: var(--muted);
            font-size: .99rem;
            line-height: 1.8;
            max-width: 58ch;
            margin: 0 0 1.15em;
        }
        .about-closing { color: var(--ink) !important; }
        .about-enjoy {
            color: var(--gold);
            font-family: "Fraunces", serif;
            font-style: italic;
            font-size: 1.08em;
        }
        .about-portrait {
            margin: 0;
            position: relative;
            justify-self: center;
            width: min(332px, 68vw);
            height: min(332px, 68vw);
            flex: none;
            padding: 6px;
            box-sizing: border-box;
            border-radius: 50%;
            overflow: hidden;
            background: conic-gradient(from 210deg, var(--gold), var(--lilac), var(--pink), var(--gold));
            box-shadow:
                0 0 50px rgba(140, 100, 220, 0.35),
                0 20px 60px rgba(0, 0, 0, 0.45);
        }
        .about-portrait img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
            border: 5px solid var(--void);
            box-sizing: border-box;
        }
        :root[data-theme="light"] .about-portrait {
            box-shadow:
                0 0 42px rgba(117, 83, 170, 0.18),
                0 18px 54px rgba(88, 66, 56, 0.18);
        }
        @media (max-width: 860px) {
            .about-grid { grid-template-columns: 1fr; }
            .about-portrait { order: -1; width: min(240px, 62vw); height: min(240px, 62vw); }
            .about-single { min-height: 0; padding-top: 40px; }
        }

        /* ---------- Constellation sections ---------- */
        .constellation-wrap {
            position: relative;
            margin-top: 24px;
            width: 100%;
        }
        .constellation-wrap::before {
            content: "";
            position: absolute;
            inset: -8% -4%;
            background: radial-gradient(55% 60% at 50% 50%, rgba(120, 90, 200, 0.09), transparent 74%);
            pointer-events: none;
            z-index: 0;
        }
        .constellation-wrap svg {
            width: 100%;
            height: auto;
            display: block;
            overflow: visible;
            background: transparent;
        }

        /* Constellation star styles */
        .cstar,
        .pstar,
        .nstar,
        .estar {
            cursor: pointer;
            outline: none;
        }

        .cstar-hit,
        .pstar-hit,
        .nstar-hit,
        .estar-hit {
            fill: transparent;
            pointer-events: all;
        }
        .cstar-core,
        .pstar-core,
        .nstar-core,
        .estar-core {
            transition: r .25s var(--ease), fill .25s;
        }
        .cstar-glow,
        .pstar-glow,
        .nstar-glow,
        .estar-glow {
            transition: opacity .25s var(--ease), r .25s;
        }
        .cstar-label,
        .pstar-label,
        .nstar-label,
        .estar-label {
            font-family: "JetBrains Mono", monospace;
            font-size: 14px;
            fill: var(--muted);
            letter-spacing: 0.3px;
            transition: fill .25s;
            pointer-events: none;
            text-anchor: middle;
            dominant-baseline: hanging;
        }
        .cstar:hover .cstar-label,
        .cstar.sel .cstar-label,
        .pstar:hover .pstar-label,
        .pstar.sel .pstar-label,
        .nstar:hover .nstar-label,
        .nstar.sel .nstar-label,
        .estar:hover .estar-label,
        .estar.sel .estar-label {
            fill: var(--gold);
        }
        .cstar:hover .cstar-core,
        .cstar.sel .cstar-core,
        .pstar:hover .pstar-core,
        .pstar.sel .pstar-core,
        .nstar:hover .nstar-core,
        .nstar.sel .nstar-core,
        .estar:hover .estar-core,
        .estar.sel .estar-core {
            fill: var(--gold-soft);
        }
        .cstar:hover .cstar-glow,
        .cstar.sel .cstar-glow,
        .pstar:hover .pstar-glow,
        .pstar.sel .pstar-glow,
        .nstar:hover .nstar-glow,
        .nstar.sel .nstar-glow,
        .estar:hover .estar-glow,
        .estar.sel .estar-glow {
            opacity: 0.85;
        }

        .cline {
            stroke: rgba(237, 169, 208, 0.26);
            stroke-width: 1;
            transition: stroke .3s;
        }
        .cline.lit {
            stroke: rgba(235, 207, 147, 0.55);
            stroke-width: 1.4;
        }
        .pline {
            stroke: rgba(201, 178, 238, 0.30);
            stroke-width: 1;
        }
        .nline {
            stroke: rgba(231, 211, 160, 0.26);
            stroke-width: 1;
        }
        .eline {
            stroke: rgba(201, 178, 238, 0.25);
            stroke-width: 1;
        }
        .star-deco {
            fill: rgba(243, 231, 196, 0.5);
            filter: drop-shadow(0 0 4px rgba(231, 211, 160, 0.5));
        }
        .star-empty {
            fill: rgba(220, 220, 245, 0.55);
            filter: drop-shadow(0 0 5px rgba(201, 178, 238, 0.45));
        }
        :root[data-theme="light"] .constellation-wrap::before {
            background: radial-gradient(55% 60% at 50% 50%, rgba(119, 77, 168, 0.14), transparent 74%);
        }
        :root[data-theme="light"] .cline {
            stroke: rgba(142, 77, 154, 0.52);
            stroke-width: 1.35;
        }
        :root[data-theme="light"] .cline.lit {
            stroke: rgba(112, 64, 145, 0.72);
            stroke-width: 1.65;
        }
        :root[data-theme="light"] .pline,
        :root[data-theme="light"] .eline {
            stroke: rgba(104, 73, 153, 0.58);
            stroke-width: 1.35;
        }
        :root[data-theme="light"] .nline {
            stroke: rgba(133, 78, 164, 0.58);
            stroke-width: 1.35;
        }
        :root[data-theme="light"] .cstar-label,
        :root[data-theme="light"] .pstar-label,
        :root[data-theme="light"] .nstar-label,
        :root[data-theme="light"] .estar-label {
            fill: rgba(62, 42, 86, 0.86);
        }
        :root[data-theme="light"] .cstar-core,
        :root[data-theme="light"] .pstar-core,
        :root[data-theme="light"] .nstar-core,
        :root[data-theme="light"] .estar-core {
            fill: #7650a7;
        }
        :root[data-theme="light"] .cstar-glow,
        :root[data-theme="light"] .pstar-glow,
        :root[data-theme="light"] .nstar-glow,
        :root[data-theme="light"] .estar-glow {
            opacity: 0.72;
        }
        :root[data-theme="light"] .star-empty {
            fill: rgba(101, 72, 142, 0.60);
            filter: drop-shadow(0 0 5px rgba(127, 86, 178, 0.34));
        }

        /* Constellation popup cards */
        .const-popup {
            position: absolute;
            background: var(--panel-solid);
            border: 1px solid var(--line-strong);
            border-radius: 14px;
            padding: 18px 20px 16px;
            box-shadow: var(--shadow);
            backdrop-filter: blur(8px);
            z-index: 6;
            max-width: 310px;
            min-width: 220px;
            pointer-events: none;
            opacity: 0;
            transition: opacity .25s var(--ease), transform .25s var(--ease);
            transform: translateY(4px);
        }
        .const-popup.visible {
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }
        .const-popup .pc-title {
            font-family: "Fraunces", serif;
            font-size: 1.15rem;
            margin-bottom: 4px;
            color: var(--ink);
        }
        .const-popup .pc-desc {
            color: var(--muted);
            font-size: .85rem;
            line-height: 1.5;
            margin: 0 0 12px;
        }
        .const-popup .pc-org {
            color: var(--lilac);
            font-size: .82rem;
            font-weight: 500;
            margin-bottom: 4px;
        }
        .const-popup .pc-date {
            color: var(--muted-2);
            font-family: "JetBrains Mono", monospace;
            font-size: .7rem;
            letter-spacing: .06em;
            margin-bottom: 8px;
        }
        .const-popup .btn.tiny {
            pointer-events: auto;
            cursor: pointer;
        }
        @media (hover:none) {
            .const-popup .btn.tiny {
                cursor: pointer;
            }
        }

        .constellation-hint {
            font-family: "JetBrains Mono", monospace;
            font-size: .68rem;
            letter-spacing: .1em;
            color: var(--muted-2);
            text-align: center;
            margin-top: 12px;
            text-transform: uppercase;
            opacity: .7;
        }

        /* ---------- Flow link between home constellations ---------- */
        .flow-link {
            position: relative;
            height: 96px;
            margin: -6px 0;
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: none;
        }
        .flow-link::before {
            content: "";
            width: 1px;
            height: 100%;
            background: linear-gradient(180deg, transparent, rgba(201, 178, 238, 0.45), rgba(237, 169, 208, 0.4), rgba(231, 211, 160, 0.35), transparent);
        }
        .flow-link span {
            position: absolute;
            top: 6px;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--gold-soft);
            box-shadow: 0 0 12px 3px rgba(243, 231, 196, 0.7);
            animation: flowSpark 3.4s ease-in-out infinite;
        }
        @keyframes flowSpark {
            0% { top: 6px; opacity: 0; transform: scale(.6); }
            18% { opacity: 1; transform: scale(1); }
            82% { opacity: 1; transform: scale(1); }
            100% { top: calc(100% - 6px); opacity: 0; transform: scale(.6); }
        }
        @media (prefers-reduced-motion: reduce) {
            .flow-link span { animation: none; opacity: .6; top: 50%; }
        }

        /* ---------- Experiences — linear orbital timeline ---------- */
        .exp-timeline {
            position: relative;
            margin-top: 36px;
            padding: 6px 0 4px;
        }
        .exp-rail {
            position: absolute;
            left: 7%;
            right: 7%;
            top: 46px;
            height: 2px;
            z-index: 0;
            border-radius: 2px;
            background: linear-gradient(90deg, transparent, rgba(201, 178, 238, 0.45), rgba(231, 211, 160, 0.7), rgba(237, 169, 208, 0.45), rgba(155, 224, 196, 0.4), transparent);
        }
        .exp-comet {
            position: absolute;
            top: 50%;
            left: 0;
            width: 7px;
            height: 7px;
            border-radius: 50%;
            transform: translateY(-50%);
            background: var(--gold-soft);
            box-shadow: 0 0 12px 3px rgba(243, 231, 196, 0.85);
            animation: expComet 7s linear infinite;
        }
        .exp-comet::after {
            content: "";
            position: absolute;
            right: 5px;
            top: 50%;
            transform: translateY(-50%);
            width: 64px;
            height: 2px;
            background: linear-gradient(90deg, transparent, rgba(243, 231, 196, 0.75));
        }
        @keyframes expComet {
            0% { left: 0; opacity: 0; }
            8% { opacity: 1; }
            92% { opacity: 1; }
            100% { left: 100%; opacity: 0; }
        }
        .exp-stops {
            position: relative;
            z-index: 1;
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 18px;
        }
        .exp-stop {
            display: grid;
            grid-template-rows: 30px 22px auto;
            justify-items: center;
            text-align: center;
            outline: none;
        }
        .exp-year {
            font-family: "JetBrains Mono", monospace;
            font-size: .72rem;
            letter-spacing: .07em;
            color: var(--gold);
            text-transform: uppercase;
            align-self: center;
        }
        .exp-orb {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            align-self: center;
            position: relative;
            background: radial-gradient(circle at 35% 30%, #fff, var(--gold) 48%, #8a6a2e 92%);
            box-shadow: 0 0 0 5px rgba(231, 211, 160, 0.10), 0 0 16px rgba(231, 211, 160, 0.7);
            transition: transform .25s var(--ease), box-shadow .25s;
        }
        .exp-orb::before {
            content: "";
            position: absolute;
            inset: -6px;
            border-radius: 50%;
            border: 1px solid rgba(201, 178, 238, 0.5);
            opacity: .6;
            animation: expPulse 2.8s var(--ease) infinite;
        }
        @keyframes expPulse {
            0%, 100% { transform: scale(1); opacity: .6; }
            50% { transform: scale(1.5); opacity: 0; }
        }
        .exp-body {
            margin-top: 16px;
            max-width: 25ch;
        }
        .exp-role {
            font-family: "Fraunces", serif;
            font-size: 1.06rem;
            color: var(--ink);
            line-height: 1.25;
        }
        .exp-org {
            color: var(--lilac);
            font-size: .85rem;
            margin-top: 2px;
        }
        .exp-desc {
            color: var(--muted);
            font-size: .82rem;
            line-height: 1.5;
            margin: 9px 0 0;
        }
        .exp-stop:hover .exp-orb,
        .exp-stop:focus .exp-orb,
        .exp-concurrent-item:hover .exp-orb,
        .exp-concurrent-item:focus .exp-orb {
            transform: scale(1.28);
            box-shadow: 0 0 0 6px rgba(231, 211, 160, 0.16), 0 0 22px rgba(231, 211, 160, 0.95);
        }
        .exp-stop.is-present .exp-orb,
        .exp-concurrent-item.is-present .exp-orb {
            width: 20px;
            height: 20px;
            background: radial-gradient(circle at 35% 30%, #fff, var(--gold-soft) 40%, var(--gold) 70%, #b58a3a 95%);
            box-shadow: 0 0 0 7px rgba(231, 211, 160, 0.18), 0 0 26px 4px rgba(231, 211, 160, 1);
        }
        .exp-stop.is-present .exp-year,
        .exp-concurrent-item.is-present .exp-year { color: var(--gold-soft); }
        .exp-stop.is-community .exp-orb,
        .exp-concurrent-item.is-community .exp-orb {
            width: 22px;
            height: 22px;
            border-radius: 0;
            background: radial-gradient(circle at 35% 30%, #fff, var(--pink) 45%, var(--lilac) 85%);
            clip-path: polygon(50% 0%, 63% 35%, 100% 35%, 70% 57%, 82% 95%, 50% 72%, 18% 95%, 30% 57%, 0% 35%, 37% 35%);
            box-shadow: 0 0 0 6px rgba(237, 169, 208, 0.14), 0 0 20px rgba(237, 169, 208, 0.9);
            animation: communitySpin 9s linear infinite;
        }
        .exp-stop.is-community .exp-orb::before,
        .exp-concurrent-item.is-community .exp-orb::before {
            border-color: rgba(237, 169, 208, 0.55);
        }
        .exp-stop.is-community .exp-year,
        .exp-stop.is-community .exp-org,
        .exp-concurrent-item.is-community .exp-year,
        .exp-concurrent-item.is-community .exp-org { color: var(--pink); }
        @keyframes communitySpin {
            0%, 92% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        @media (prefers-reduced-motion: reduce) {
            .exp-stop.is-community .exp-orb,
            .exp-concurrent-item.is-community .exp-orb { animation: none; }
        }
        /* Concurrent group: two roles held at the same time, stacked and visually tied together */
        .exp-stop.is-concurrent {
            display: block;
            outline: none;
        }
        .exp-concurrent {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
        }
        .exp-concurrent-item {
            display: grid;
            grid-template-rows: 22px 22px auto;
            justify-items: center;
            text-align: center;
            outline: none;
            width: 100%;
        }
        .exp-concurrent-tie {
            position: relative;
            width: 1px;
            height: 20px;
            background: linear-gradient(var(--gold-soft), var(--pink));
            opacity: .55;
        }
        .exp-concurrent-tie em {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            white-space: nowrap;
            font-style: normal;
            font-family: "JetBrains Mono", monospace;
            font-size: .56rem;
            letter-spacing: .08em;
            text-transform: uppercase;
            color: var(--muted-2);
            opacity: .85;
            background: var(--void);
            padding: 2px 6px;
            border-radius: 99px;
            border: 1px solid var(--line);
        }
        .exp-concurrent .exp-body { margin-top: 12px; }
        @media (max-width:760px) {
            .exp-rail {
                left: 13px;
                right: auto;
                top: 6px;
                bottom: 6px;
                width: 2px;
                height: auto;
                background: linear-gradient(180deg, transparent, rgba(201, 178, 238, 0.45), rgba(231, 211, 160, 0.7), rgba(237, 169, 208, 0.45), transparent);
            }
            .exp-comet { display: none; }
            .exp-stops { grid-template-columns: 1fr; gap: 28px; }
            .exp-stop {
                grid-template-columns: 28px 1fr;
                grid-template-rows: auto auto;
                justify-items: start;
                text-align: left;
                column-gap: 14px;
            }
            .exp-orb { grid-column: 1; grid-row: 1; margin-top: 3px; }
            .exp-year { grid-column: 2; grid-row: 1; align-self: center; }
            .exp-body { grid-column: 2; grid-row: 2; margin-top: 6px; max-width: none; }
            .exp-concurrent { align-items: stretch; gap: 10px; }
            .exp-concurrent-item {
                grid-template-columns: 28px 1fr;
                grid-template-rows: auto auto;
                justify-items: start;
                text-align: left;
                column-gap: 14px;
            }
            .exp-concurrent-item .exp-orb { grid-column: 1; grid-row: 1; margin-top: 3px; }
            .exp-concurrent-item .exp-year { grid-column: 2; grid-row: 1; align-self: center; }
            .exp-concurrent-item .exp-body { grid-column: 2; grid-row: 2; margin-top: 6px; max-width: none; }
            .exp-concurrent-tie { margin-left: 13px; }
        }
        @media (prefers-reduced-motion: reduce) {
            .exp-comet { animation: none; }
            .exp-orb::before { animation: none; }
        }

        /* ---------- Talk detail panel ---------- */
        .talk-detail {
            margin-top: 22px;
            background: var(--panel);
            border: 1px solid var(--line-strong);
            border-radius: var(--r);
            padding: 30px;
            backdrop-filter: blur(10px);
            min-height: 120px;
            box-shadow: var(--shadow);
        }
        .talk-detail .d-event {
            font-family: "JetBrains Mono", monospace;
            font-size: .74rem;
            letter-spacing: .14em;
            text-transform: uppercase;
            color: var(--lilac);
        }
        .talk-detail .d-title {
            font-family: "Fraunces", serif;
            font-size: clamp(1.3rem, 3vw, 1.85rem);
            margin: 12px 0 12px;
            line-height: 1.22;
        }
        .talk-detail .d-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            align-items: center;
            margin-bottom: 14px;
        }
        .talk-detail .talk-abstract {
            color: var(--muted);
            font-size: .96rem;
            margin-bottom: 16px;
        }
        .d-sep {
            border: none;
            border-top: 1px solid var(--line);
            margin: 24px 0;
        }

        /* ---------- Footer ---------- */
        footer {
            border-top: 1px solid var(--line);
            padding: 40px 0 56px;
            margin-top: 40px;
        }
        .foot-grid {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
            flex-wrap: wrap;
        }
        .foot-grid p {
            margin: 0;
            color: var(--muted-2);
            font-size: .84rem;
        }
        .foot-links {
            display: flex;
            gap: 18px;
        }
        .foot-links a {
            color: var(--muted);
            font-size: .84rem;
            font-family: "JetBrains Mono", monospace;
            letter-spacing: .05em;
            transition: color .25s;
        }
        .foot-links a:hover {
            color: var(--gold);
        }

        .reveal {
            opacity: 0;
            transform: translateY(28px);
            transition: opacity 1s var(--ease), transform 1s var(--ease);
        }
        .reveal.in {
            opacity: 1;
            transform: none;
        }
        .type-title {
            min-height: 1.15em;
        }
        .type-title::after {
            content: "▌";
            color: var(--gold);
            margin-left: 3px;
            font-weight: 300;
            opacity: .85;
            animation: caretBlink 1.05s steps(1) infinite;
        }
        .type-title.done::after {
            display: none;
        }
        @keyframes caretBlink {
            50% { opacity: 0; }
        }

        /* ---------- Blog post reader ---------- */
        .note-post-wrap {
            padding-top: 118px;
            padding-bottom: 30px;
        }
        .back-link {
            font-family: "JetBrains Mono", monospace;
            font-size: .8rem;
            color: var(--muted);
            letter-spacing: .05em;
            transition: color .25s;
        }
        .back-link:hover {
            color: var(--gold);
        }
        .post-title {
            font-family: "Fraunces", serif;
            font-weight: 500;
            font-size: clamp(2rem, 5vw, 2.9rem);
            line-height: 1.1;
            margin: 8px 0 12px;
        }
        .post-meta {
            font-family: "JetBrains Mono", monospace;
            font-size: .76rem;
            color: var(--muted-2);
            letter-spacing: .06em;
            margin-bottom: 34px;
        }
        .post-body {
            max-width: 68ch;
            color: var(--ink);
            font-size: 1.07rem;
            line-height: 1.82;
        }
        .post-body h2 {
            font-family: "Fraunces", serif;
            font-weight: 500;
            font-size: 1.55rem;
            line-height: 1.2;
            margin: 1.9em 0 .5em;
            color: var(--ink);
        }
        .post-body p {
            margin: 0 0 1.25em;
            color: var(--muted);
        }
        .post-body em {
            color: var(--lilac);
            font-style: italic;
        }
        .post-body strong {
            color: var(--ink);
            font-weight: 600;
        }
        .post-body a {
            color: var(--gold);
            text-decoration: underline;
            text-underline-offset: 3px;
        }
        .post-body code {
            font-family: "JetBrains Mono", monospace;
            font-size: .86em;
            background: rgba(195, 168, 233, 0.10);
            border: 1px solid var(--line);
            padding: 1px 6px;
            border-radius: 6px;
            color: var(--lilac);
        }
        .post-body pre {
            background: rgba(8, 7, 20, 0.7);
            border: 1px solid var(--line);
            border-radius: 12px;
            padding: 18px 20px;
            overflow: auto;
            margin: 0 0 1.5em;
        }
        .post-body pre code {
            background: none;
            border: none;
            padding: 0;
            color: var(--gold-soft);
            line-height: 1.65;
            display: block;
            font-size: .84rem;
        }
        .post-body blockquote {
            border-left: 2px solid var(--gold);
            margin: 0 0 1.4em;
            padding: 6px 0 6px 20px;
            color: var(--ink);
            font-style: italic;
            font-family: "Fraunces", serif;
            font-size: 1.18rem;
            line-height: 1.5;
        }

        /* ---------- Notes: Milky Way ---------- */
        .milkyway-wrap {
            position: relative;
            margin-top: 20px;
        }
        .milkyway-wrap svg {
            width: 100%;
            height: auto;
            display: block;
        }
        .mw-status {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-family: "JetBrains Mono", monospace;
            font-size: .82rem;
            letter-spacing: .08em;
            color: var(--muted-2);
            text-align: center;
            width: 80%;
            pointer-events: none;
        }
        .mw-back {
            position: absolute;
            top: 0;
            left: 0;
            z-index: 2;
            font-family: "JetBrains Mono", monospace;
            font-size: .74rem;
            letter-spacing: .1em;
            color: var(--muted);
            background: transparent;
            border: 1px solid var(--line);
            padding: 8px 16px;
            border-radius: 99px;
            cursor: pointer;
            transition: .25s var(--ease);
        }
        .mw-back:hover {
            color: var(--ink);
            border-color: var(--line-strong);
        }
        .mwcat-label, .mwpost-label {
            font-family: "Fraunces", serif !important;
            font-style: italic;
            font-size: 15px !important;
            font-weight: 500;
            letter-spacing: .01em;
            fill: var(--ink);
            text-shadow: 0 0 5px rgba(3, 3, 10, 0.95), 0 0 12px rgba(3, 3, 10, 0.75), 0 1px 3px rgba(3, 3, 10, 0.9);
        }
        :root[data-theme="light"] .mwcat-label,
        :root[data-theme="light"] .mwpost-label {
            fill: #2d2041;
            text-shadow: 0 1px 0 rgba(255, 255, 255, 0.95), 0 0 8px rgba(248, 241, 255, 0.92), 0 0 18px rgba(132, 91, 174, 0.32);
        }

        .note-filters {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            margin-top: 24px;
        }
        .filter-btn {
            font-family: "JetBrains Mono", monospace;
            font-size: .76rem;
            letter-spacing: .06em;
            color: var(--muted);
            background: rgba(200, 170, 235, 0.05);
            border: 1px solid var(--line);
            padding: 8px 16px;
            border-radius: 99px;
            cursor: pointer;
            transition: .25s var(--ease);
        }
        @media (hover:none) {
            .filter-btn {
                cursor: pointer;
            }
        }
        .filter-btn:hover {
            color: var(--ink);
            border-color: var(--line-strong);
        }
        .filter-btn.active {
            color: var(--void);
            background: var(--gold);
            border-color: transparent;
            font-weight: 500;
        }

        /* ---------- Responsive ---------- */
        @media (max-width: 900px) {
            .grid.two,
            .grid.three {
                grid-template-columns: 1fr;
            }
            nav.links {
                position: fixed;
                top: 64px;
                right: clamp(18px, 5vw, 40px);
                flex-direction: column;
                align-items: stretch;
                background: var(--panel-solid);
                border: 1px solid var(--line);
                border-radius: 14px;
                padding: 8px;
                gap: 2px;
                box-shadow: var(--shadow);
                transform-origin: top right;
                transform: scale(.9);
                opacity: 0;
                pointer-events: none;
                transition: .25s var(--ease);
            }
            .nav-controls {
                margin-left: 0;
                padding: 8px 10px 4px;
                border-left: 0;
                border-top: 1px solid var(--line);
                justify-content: space-between;
            }
            nav.links.open {
                transform: scale(1);
                opacity: 1;
                pointer-events: auto;
            }
            nav.links a {
                padding: 11px 18px;
            }
            .nav-toggle {
                display: block;
            }
            .const-popup {
                max-width: 220px;
                min-width: 160px;
                padding: 14px 16px;
            }
            .const-popup .pc-title {
                font-size: 1rem;
            }
            .const-popup .pc-desc {
                font-size: .78rem;
            }
            .cstar-label,
            .pstar-label,
            .nstar-label,
            .estar-label {
                font-size: 13px;
                letter-spacing: 0.3px;
            }
        }
        @media (max-width: 600px) {
            .cstar-label,
            .pstar-label,
            .nstar-label,
            .estar-label {
                font-size: 12px;
            }
            .const-popup {
                max-width: 180px;
                min-width: 140px;
                padding: 12px 14px;
            }
            section.block {
                padding: 50px 0;
            }
            .card {
                padding: 20px;
            }
            .constellation-wrap {
                margin-top: 14px;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            * {
                animation-duration: .001ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: .001ms !important;
                scroll-behavior: auto !important;
            }
            .reveal {
                opacity: 1;
                transform: none;
            }
        }
