:root {
            color-scheme: dark;
            --bg: #05070c;
            --panel: rgba(11, 15, 28, 0.68);
            --panel-strong: rgba(12, 18, 33, 0.9);
            --line: rgba(244, 247, 255, 0.14);
            --line-hot: rgba(20, 241, 217, 0.46);
            --text: #f4f7ff;
            --muted: #9aa8bd;
            --cyan: #14f1d9;
            --pink: #ff2f92;
            --green: #b9ff4c;
            --amber: #ffc857;
            --violet: #8a5cff;
            --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
            --radius: 8px;
            --cursor-x: 50vw;
            --cursor-y: 32vh;
        }

        * {
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
            background: var(--bg);
        }

        body {
            min-height: 100vh;
            margin: 0;
            overflow-x: hidden;
            background: var(--bg);
            color: var(--text);
            font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
            text-rendering: optimizeLegibility;
        }

        body::before {
            position: fixed;
            inset: 0;
            z-index: -4;
            content: "";
            background:
                radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgba(20, 241, 217, 0.2), transparent 26vw),
                radial-gradient(circle at calc(var(--cursor-x) + 12vw) calc(var(--cursor-y) + 8vh), rgba(255, 47, 146, 0.14), transparent 30vw),
                linear-gradient(120deg, rgba(20, 241, 217, 0.1), transparent 32%),
                linear-gradient(235deg, rgba(255, 47, 146, 0.12), transparent 38%),
                linear-gradient(330deg, rgba(185, 255, 76, 0.06), transparent 44%),
                #05070c;
            background-repeat: no-repeat;
            background-size: 140% 140%, 140% 140%, 180% 180%, 180% 180%, 180% 180%;
            animation: backgroundShift 18s ease-in-out infinite alternate;
        }

        body::after {
            position: fixed;
            inset: 0;
            z-index: -2;
            pointer-events: none;
            content: "";
            background-image:
                linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
                linear-gradient(rgba(20, 241, 217, 0.05), transparent 28%, rgba(255, 47, 146, 0.05));
            background-size: 52px 52px, 52px 52px, 100% 420px;
            mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.28));
            animation: gridDrift 24s linear infinite;
        }

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

        button,
        input {
            font: inherit;
        }

        button {
            cursor: pointer;
        }

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

        .skip-link {
            position: fixed;
            top: 12px;
            left: 12px;
            z-index: 100;
            transform: translateY(-140%);
            border: 1px solid var(--line-hot);
            border-radius: var(--radius);
            padding: 10px 12px;
            background: #07111b;
            color: var(--text);
            transition: transform 180ms ease;
        }

        .skip-link:focus {
            transform: translateY(0);
        }

        #particle-field {
            position: fixed;
            inset: 0;
            z-index: -3;
            width: 100%;
            height: 100%;
            opacity: 0.86;
        }

        .ambient-layer {
            position: fixed;
            inset: -16vh -14vw;
            z-index: -1;
            overflow: hidden;
            pointer-events: none;
            opacity: 0.86;
        }

        .ambient-layer::before,
        .ambient-layer::after {
            position: absolute;
            content: "";
            filter: blur(28px);
            mix-blend-mode: screen;
            transform: translate3d(0, 0, 0);
        }

        .ambient-layer::before {
            top: 12%;
            left: -12%;
            width: 72vw;
            height: 34vh;
            background: linear-gradient(92deg, transparent, rgba(20, 241, 217, 0.14), rgba(255, 47, 146, 0.09), transparent);
            animation: fogDrift 16s ease-in-out infinite alternate;
        }

        .ambient-layer::after {
            right: -16%;
            bottom: 4%;
            width: 64vw;
            height: 40vh;
            background: linear-gradient(110deg, transparent, rgba(138, 92, 255, 0.13), rgba(185, 255, 76, 0.08), transparent);
            animation: fogDrift 20s ease-in-out infinite alternate-reverse;
        }

        .site-header {
            position: sticky;
            top: 0;
            z-index: 50;
            border-bottom: 1px solid transparent;
            background: rgba(5, 7, 12, 0.28);
            backdrop-filter: blur(16px);
            transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
        }

        .site-header.is-scrolled {
            border-color: rgba(20, 241, 217, 0.18);
            background: rgba(5, 7, 12, 0.72);
            box-shadow: 0 10px 36px rgba(0, 0, 0, 0.25);
        }

        .header-inner,
        .section-shell,
        .hero-inner {
            width: min(1180px, calc(100% - 32px));
            margin: 0 auto;
        }

        .header-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 18px;
            min-height: 76px;
            padding: 12px 0;
        }

        .brand {
            display: inline-flex;
            align-items: center;
            min-width: max-content;
            gap: 10px;
            font-weight: 800;
        }

        .brand-mark {
            position: relative;
            width: 34px;
            height: 34px;
            border: 1px solid rgba(20, 241, 217, 0.72);
            border-radius: var(--radius);
            background:
                linear-gradient(135deg, rgba(20, 241, 217, 0.18), rgba(255, 47, 146, 0.14)),
                rgba(255, 255, 255, 0.04);
            box-shadow: 0 0 22px rgba(20, 241, 217, 0.22), inset 0 0 18px rgba(255, 47, 146, 0.1);
        }

        .brand-mark::before,
        .brand-mark::after {
            position: absolute;
            content: "";
            background: var(--cyan);
            box-shadow: 0 0 12px rgba(20, 241, 217, 0.9);
        }

        .brand-mark::before {
            top: 8px;
            left: 8px;
            width: 18px;
            height: 2px;
        }

        .brand-mark::after {
            right: 8px;
            bottom: 8px;
            width: 2px;
            height: 18px;
        }

        .brand-text {
            display: grid;
            gap: 1px;
            line-height: 1.08;
        }

        .brand-title {
            font-size: 17px;
            color: var(--text);
        }

        .brand-kicker {
            font-size: 11px;
            color: var(--muted);
            text-transform: uppercase;
        }

        .search-shell {
            position: relative;
            width: min(420px, 44vw);
        }

        .search-shell::before {
            position: absolute;
            top: 53%;
            left: 16px;
            width: 12px;
            height: 12px;
            content: "";
            border: 2px solid rgba(244, 247, 255, 0.58);
            border-radius: 50%;
            transform: translateY(-58%);
        }

        .search-shell::after {
            position: absolute;
            top: 55%;
            left: 30px;
            width: 8px;
            height: 2px;
            content: "";
            border-radius: 99px;
            background: rgba(244, 247, 255, 0.58);
            transform: rotate(45deg);
        }

        .search-shell input {
            width: 100%;
            min-height: 46px;
            border: 1px solid rgba(244, 247, 255, 0.12);
            border-radius: var(--radius);
            outline: 0;
            padding: 0 16px 0 44px;
            background: rgba(255, 255, 255, 0.06);
            color: var(--text);
            box-shadow: inset 0 0 0 1px rgba(20, 241, 217, 0.03);
            transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
        }

        .search-shell input::placeholder {
            color: rgba(154, 168, 189, 0.88);
			position: absolute;
        }

        .search-shell input:focus {
            border-color: rgba(20, 241, 217, 0.62);
            background: rgba(255, 255, 255, 0.09);
            box-shadow: 0 0 0 4px rgba(20, 241, 217, 0.08), 0 0 24px rgba(20, 241, 217, 0.12);
        }

        .hero {
            display: grid;
            align-items: center;
            min-height: 66vh;
            padding: 100px 0 44px;
        }

        .hero-inner {
            display: grid;
            gap: 28px;
        }

        .hero-copy {
            width: min(760px, 100%);
        }

        .signal-line {
            display: inline-flex;
            align-items: center;
            gap: 9px;
            margin-bottom: 16px;
            color: var(--green);
            font-size: 13px;
            font-weight: 700;
            text-transform: uppercase;
        }

        .signal-line::before {
            width: 40px;
            height: 2px;
            content: "";
            background: linear-gradient(90deg, var(--cyan), var(--green));
            box-shadow: 0 0 12px rgba(185, 255, 76, 0.38);
        }

        h1 {
            max-width: 780px;
            margin: 0;
            font-size: 58px;
            line-height: 0.97;
            letter-spacing: 0;
        }

        .hero p {
            max-width: 610px;
            margin: 18px 0 0;
            color: rgba(244, 247, 255, 0.78);
            font-size: 20px;
            line-height: 1.55;
        }

        .hero-actions {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 13px;
        }

        .primary-btn,
        .ghost-btn,
		.button-secondary,
		.open-close-style,
        .text-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 44px;
            border: 1px solid transparent;
            border-radius: var(--radius);
            padding: 0 16px;
            color: var(--text);
            font-weight: 800;
            transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
        }

        .primary-btn {
            background: linear-gradient(90deg, rgba(20, 241, 217, 0.95), rgba(255, 47, 146, 0.95));
            box-shadow: 0 0 30px rgba(20, 241, 217, 0.2), 0 0 42px rgba(255, 47, 146, 0.16);
            color: #03050a;
        }

        .primary-btn:hover,
        .ghost-btn:hover,
		.button-secondary:hover,
		.open-close-style:hover,
        .text-btn:hover {
            transform: translateY(-2px);
        }

        .primary-btn:focus-visible,
        .ghost-btn:focus-visible,
		.button-secondary:focus-visible,
		.open-close-style:focus-visible,
        .text-btn:focus-visible,
        .collapse-btn:focus-visible,
        .carousel-arrow:focus-visible,
        .related-card:focus-visible,
        .chip:focus-visible,
        .category-pill:focus-visible,
        .search-shell input:focus-visible {
            outline: 2px solid rgba(185, 255, 76, 0.86);
            outline-offset: 3px;
        }

        .ghost-btn, .button-secondary, .open-close-style {
            border-color: rgba(244, 247, 255, 0.16);
            background: rgba(255, 255, 255, 0.06);
        }

        .text-btn {
            min-height: 38px;
            border-color: rgba(244, 247, 255, 0.12);
            background: rgba(255, 255, 255, 0.04);
            color: rgba(244, 247, 255, 0.84);
            font-size: 13px;
        }

		.hero-actions .is-active {
    		background: var(--accent);
    		color: #ffd95a;
		}
        .category-zone {
            padding: 4px 0 26px;
        }

        .category-frame {
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(244, 247, 255, 0.11);
            border-radius: var(--radius);
            background:
                linear-gradient(135deg, rgba(20, 241, 217, 0.08), rgba(255, 47, 146, 0.055)),
                rgba(255, 255, 255, 0.04);
            box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22), inset 0 0 28px rgba(20, 241, 217, 0.035);
            backdrop-filter: blur(18px);
        }

        .category-frame::before,
        .category-frame::after {
            position: absolute;
            top: 0;
            bottom: 0;
            z-index: 2;
            width: 88px;
            pointer-events: none;
            content: "";
            opacity: 0;
            transition: opacity 180ms ease;
        }

        .category-frame::before {
            left: 0;
            background: linear-gradient(90deg, rgba(5, 7, 12, 0.96), rgba(5, 7, 12, 0));
        }

        .category-frame::after {
            right: 0;
            background: linear-gradient(270deg, rgba(5, 7, 12, 0.96), rgba(5, 7, 12, 0));
        }

        .category-frame.has-left::before,
        .category-frame.has-right::after {
            opacity: 1;
        }

        .category-viewport {
            overflow-x: auto;
            overflow-y: hidden;
            scroll-behavior: smooth;
            scroll-padding-inline: 56px;
            scroll-snap-type: x proximity;
            scrollbar-width: none;
            -webkit-overflow-scrolling: touch;
        }

        .category-viewport::-webkit-scrollbar {
            display: none;
        }

        .category-row {
            display: flex;
            width: max-content;
            gap: 10px;
            min-width: 100%;
            padding: 12px 56px;
        }

        .carousel-arrow {
            position: absolute;
            top: 50%;
            z-index: 4;
            display: grid;
            place-items: center;
            width: 38px;
            height: 38px;
            border: 1px solid rgba(20, 241, 217, 0.28);
            border-radius: var(--radius);
            background: rgba(7, 12, 22, 0.72);
            color: var(--text);
            box-shadow: 0 0 24px rgba(20, 241, 217, 0.14), inset 0 0 18px rgba(20, 241, 217, 0.06);
            transform: translateY(-50%);
            transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
        }

        .carousel-arrow:hover {
            border-color: rgba(185, 255, 76, 0.62);
            box-shadow: 0 0 28px rgba(185, 255, 76, 0.18), inset 0 0 20px rgba(185, 255, 76, 0.08);
        }

        .carousel-arrow.is-hidden {
            opacity: 0;
            pointer-events: none;
        }

        .carousel-prev {
            left: 10px;
        }

        .carousel-next {
            right: 10px;
        }

        .category-pill,
        .chip {
            min-height: 38px;
            border: 1px solid rgba(244, 247, 255, 0.13);
            border-radius: 999px;
            padding: 0 14px;
            background: rgba(255, 255, 255, 0.055);
            color: rgba(244, 247, 255, 0.84);
            white-space: nowrap;
            scroll-snap-align: center;
            transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, background 180ms ease;
        }

        .category-pill:hover,
        .chip:hover {
            transform: translateY(-1px);
            border-color: rgba(20, 241, 217, 0.48);
            color: var(--text);
            box-shadow: 0 0 22px rgba(20, 241, 217, 0.11);
        }

        .category-pill:active,
        .chip:active,
        .text-btn:active,
        .collapse-btn:active,
        .related-card:active {
            transform: translateY(0) scale(0.98);
        }

        .category-pill.is-active,
        .chip.is-active {
            border-color: rgba(185, 255, 76, 0.66);
            background: rgba(185, 255, 76, 0.13);
            color: var(--text);
            box-shadow: 0 0 32px rgba(185, 255, 76, 0.22), 0 0 18px rgba(20, 241, 217, 0.1), inset 0 0 18px rgba(185, 255, 76, 0.07);
            animation: softPulse 2.8s ease-in-out infinite;
        }

        .world-note {
            width: min(1180px, calc(100% - 32px));
            margin: 0 auto 8px;
            color: rgba(244, 247, 255, 0.58);
            font-size: 12px;
        }

        .filter-empty {
            display: inline-flex;
            align-items: center;
            min-height: 34px;
            color: rgba(244, 247, 255, 0.46);
            font-size: 12px;
        }

        .resource-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 18px;
        }

        .resource-description {
            margin: 0;
            color: rgba(244, 247, 255, 0.78);
            line-height: 1.65;
        }

        .metadata-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
            margin-top: 18px;
        }

        .metadata-item {
            display: grid;
            gap: 5px;
            min-width: 0;
            padding: 11px 12px;
            border: 1px solid rgba(244, 247, 255, 0.09);
            border-radius: var(--radius);
            background: rgba(255, 255, 255, 0.035);
        }

        .metadata-item span {
            color: rgba(244, 247, 255, 0.48);
            font-size: 11px;
            font-weight: 800;
            text-transform: uppercase;
        }

        .metadata-item strong {
            color: rgba(244, 247, 255, 0.9);
            font-size: 13px;
            line-height: 1.35;
        }

        .related-card {
            display: grid;
            gap: 5px;
            width: 100%;
            min-height: 78px;
            border: 1px solid rgba(244, 247, 255, 0.1);
            border-radius: var(--radius);
            padding: 12px;
            background: rgba(255, 255, 255, 0.035);
            color: var(--text);
            text-align: left;
            transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
        }

        .related-card:hover {
            transform: translateY(-2px);
            border-color: rgba(20, 241, 217, 0.36);
            background: rgba(20, 241, 217, 0.055);
        }

        .related-card strong {
            font-size: 13px;
        }

        .related-card span {
            color: rgba(244, 247, 255, 0.56);
            font-size: 12px;
            line-height: 1.4;
        }

        .filter-panel {
            grid-template-columns: repeat(4, minmax(0, 1fr));
        }
        .filters {
            padding: 22px 0 6px;
        }

        .filter-panel {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 20px;
            align-items: start;
            border: 1px solid rgba(244, 247, 255, 0.12);
            border-radius: var(--radius);
            padding: 18px;
            background: var(--panel);
            box-shadow: var(--shadow);
            backdrop-filter: blur(20px);
        }

        .testing {
            grid-column: 1 / -1;
            align-self: end;
            justify-self: end;
        }

        .filter-group {
            min-width: 0;
        }

        .filter-label {
            margin: 0 0 10px;
            color: rgba(244, 247, 255, 0.72);
            font-size: 13px;
            font-weight: 800;
            text-transform: uppercase;
        }

.filter-expand{
    display:none;
}

        .chip-row {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .chip {
            min-height: 34px;
            padding: 0 12px;
            font-size: 13px;
        }

        .results-zone {
            padding: 28px 0 66px;
        }

        .results-head {
            display: flex;
            align-items: end;
            justify-content: space-between;
            gap: 16px;
            margin-bottom: 18px;
        }

        .results-head h2 {
            margin: 0;
            font-size: 24px;
            line-height: 1.15;
            letter-spacing: 0;
        }

        .results-count {
            color: rgba(244, 247, 255, 0.68);
            font-size: 14px;
            text-align: right;
        }

        .card-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 18px;
            align-items: start;
        }

        .discovery-card {
            --accent: var(--cyan);
            --card-glow-x: 50%;
            --card-glow-y: 50%;
            --hover-offset: 0px;
            --reveal-offset: 0px;
            --tilt-x: 0deg;
            --tilt-y: 0deg;
            position: relative;
            overflow: hidden;
            min-width: 0;
            border: 1px solid rgba(244, 247, 255, 0.12);
            border-radius: var(--radius);
            background:
                linear-gradient(150deg, rgba(255, 255, 255, 0.092), rgba(255, 255, 255, 0.028)),
                rgba(9, 13, 25, 0.72);
            box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
            backdrop-filter: blur(18px);
            transform: translateY(calc(var(--reveal-offset) + var(--hover-offset))) perspective(950px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
            transform-style: preserve-3d;
            transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
        }

        .discovery-card::before {
            position: absolute;
            inset: 0;
            pointer-events: none;
            content: "";
            border-radius: inherit;
            background:
                radial-gradient(circle at var(--card-glow-x) var(--card-glow-y), color-mix(in srgb, var(--accent) 28%, transparent), transparent 34%),
                linear-gradient(130deg, color-mix(in srgb, var(--accent) 34%, transparent), transparent 28%, rgba(255, 255, 255, 0.04));
            opacity: 0;
            transition: opacity 220ms ease;
        }

        .discovery-card::after {
            position: absolute;
            inset: 0;
            pointer-events: none;
            content: "";
            border-radius: inherit;
            background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 38%, transparent), transparent);
            opacity: 0;
            transform: translateX(-110%);
        }

        .discovery-card:hover,
        .discovery-card.is-expanded {
            --hover-offset: -4px;
            border-color: color-mix(in srgb, var(--accent) 48%, rgba(244, 247, 255, 0.12));
            box-shadow: 0 22px 62px rgba(0, 0, 0, 0.42), 0 0 20px color-mix(in srgb, var(--accent) 10%, transparent);
        }

        .discovery-card.is-expanded {
            transform: translateY(-2px) !important;
        }

        .discovery-card.is-expanded::before,
        .discovery-card.is-expanded::after {
            opacity: 0.16;
            animation: none;
        }

        .discovery-card:active {
            --hover-offset: -1px;
        }

        .discovery-card:hover::before,
        .discovery-card.is-expanded::before {
            opacity: 1;
        }

        .discovery-card.is-expanded::after {
            opacity: 0.34;
            animation: borderScan 1.7s ease both;
        }

        .discovery-card.is-expanded {
            --hover-offset: -2px;
            grid-column: span 2;
        }

        body.has-expanded::before {
            animation-duration: 42s;
            filter: brightness(0.82);
        }

        body.has-expanded .ambient-layer,
        body.has-expanded #particle-field {
            opacity: 0.28;
            transition: opacity 320ms ease;
        }

        .card-media {
            position: relative;
            overflow: hidden;
            aspect-ratio: 16 / 9;
            background: rgba(255, 255, 255, 0.05);
        }

        .card-media img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: saturate(1.1) contrast(1.05);
            transition: transform 360ms ease, filter 360ms ease;
        }

        .discovery-card:hover .card-media img,
        .discovery-card.is-expanded .card-media img {
            transform: scale(1.045);
            filter: saturate(1.24) contrast(1.08);
        }

        .card-media::after {
            position: absolute;
            inset: auto 0 0;
            height: 45%;
            content: "";
            background: linear-gradient(to top, rgba(5, 7, 12, 0.76), transparent);
        }

        .card-body {
            position: relative;
            display: grid;
            gap: 13px;
            padding: 16px;
            transform: translateZ(18px);
        }

        .card-title-row {
            display: flex;
            align-items: start;
            justify-content: space-between;
            gap: 12px;
        }

        .card-title-row h3 {
            margin: 0;
            font-size: 19px;
            line-height: 1.18;
            letter-spacing: 0;
        }

        .type-badge {
            flex: 0 0 auto;
            border: 1px solid rgba(244, 247, 255, 0.12);
            border-radius: 999px;
            padding: 5px 8px;
            color: rgba(244, 247, 255, 0.7);
            font-size: 11px;
            font-weight: 800;
            text-transform: uppercase;
        }

        .teaser {
            margin: 0;
            color: rgba(244, 247, 255, 0.72);
            line-height: 1.48;
        }

        .tag-row {
            display: flex;
            flex-wrap: wrap;
            gap: 7px;
        }

        .tag {
            border: 1px solid rgba(244, 247, 255, 0.1);
            border-radius: 999px;
            padding: 5px 8px;
            background: rgba(255, 255, 255, 0.045);
            color: rgba(244, 247, 255, 0.72);
            font-size: 12px;
        }

        .card-actions {
            display: flex;
            justify-content: space-between;
            gap: 10px;
            align-items: center;
        }

        .signal-meta {
            color: rgba(244, 247, 255, 0.58);
            font-size: 12px;
        }

        
        .expanded-content {
            position: relative;
            overflow: hidden;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            margin-top: 10px;
            padding-top: 22px;
            animation: expandContainer 380ms ease both;
        }

        .expanded-layout {
            max-width: 760px;
            margin: 0 auto;
        }

        .expanded-copy {
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 18px;
            background: rgba(18, 24, 39, 0.94);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
            padding: 28px;
        }

        .expanded-copy::before {
            position: absolute;
            inset: 0;
            pointer-events: none;
            content: "";
            background: linear-gradient(180deg, rgba(20, 241, 217, 0.04), transparent 22%);
        }

        .expanded-copy p {
            margin: 0;
            color: rgba(244, 247, 255, 0.88);
            font-size: 16px;
            line-height: 1.82;
            letter-spacing: 0.01em;
        }

        .mini-title {
            margin: 0 0 15px; /*18px*/
            color: rgba(185, 255, 76, 0.9);
            font-size: 15px;
            font-weight: 800;
            letter-spacing: 0.05em;/*0.18em;*/
            text-transform: uppercase;
        }

        .reading-shell {
            position: relative;
        }

        .reading-shell::after {
            position: absolute;
            right: 0;
            left: 0;
            bottom: 0;
            height: 82px;
            content: "";
            pointer-events: none;
            background: linear-gradient(to bottom, rgba(18, 24, 39, 0), rgba(18, 24, 39, 1));
            opacity: 1;
            transition: opacity 240ms ease;
        }

        .reading-shell.is-expanded::after {
            opacity: 0;
        }

        .reading-content {
            overflow: hidden;
            max-height: 180px;
            transition: max-height 420ms ease;
        }

        .reading-shell.is-expanded .reading-content {
            overflow-y: auto;
            max-height: 420px;
            padding-right: 6px;
            scrollbar-width: thin;
            scrollbar-color: rgba(20, 241, 217, 0.42) transparent;
        }

        .reading-content::-webkit-scrollbar {
            width: 6px;
        }

        .reading-content::-webkit-scrollbar-thumb {
            background: rgba(20, 241, 217, 0.34);
            border-radius: 999px;
        }

        .show-more-btn {
            margin-top: 18px;
            min-height: 38px;
            border: 1px solid rgba(20, 241, 217, 0.22);
            border-radius: 999px;
            padding: 0 14px;
            background: rgba(20, 241, 217, 0.08);
            color: rgba(244, 247, 255, 0.92);
            transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
        }

        .show-more-btn:hover {
            border-color: rgba(20, 241, 217, 0.6);
            background: rgba(20, 241, 217, 0.14);
            transform: translateY(-1px);
        }

        .related-section {
            margin-top: 26px;
            padding-top: 18px;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
        }

        .related-grid {
            display: grid;
            gap: 10px;
        }

        .related-card {
            padding: 14px 16px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.03);
            color: rgba(244, 247, 255, 0.82);
            text-align: left;
            transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
        }

        .related-card:hover {
            border-color: rgba(20, 241, 217, 0.4);
            background: rgba(20, 241, 217, 0.05);
            box-shadow: 0 0 20px rgba(20, 241, 217, 0.08);
        }

.collapse-btn {
            justify-self: start;
            min-height: 36px;
            border: 1px solid rgba(244, 247, 255, 0.12);
            border-radius: var(--radius);
            padding: 0 12px;
			margin-top: 3px;
            background: rgba(255, 255, 255, 0.045);
            color: rgba(244, 247, 255, 0.84);
            transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
        }

        .collapse-btn:hover {
            transform: translateY(-1px);
            border-color: rgba(20, 241, 217, 0.58);
            background: rgba(20, 241, 217, 0.12);
        }

        .empty-state {
            grid-column: 1 / -1;
            border: 1px dashed rgba(244, 247, 255, 0.18);
            border-radius: var(--radius);
            padding: 32px;
            background: rgba(255, 255, 255, 0.04);
            color: rgba(244, 247, 255, 0.72);
            text-align: center;
        }

        .reveal {
            --reveal-offset: 18px;
            opacity: 0;
        }

        .reveal.is-visible {
            --reveal-offset: 0px;
            opacity: 1;
            transition: opacity 520ms ease, transform 520ms ease;
        }

        .page-footer {
            border-top: 1px solid rgba(244, 247, 255, 0.1);
            padding: 24px 0 34px;
            background: rgba(255, 255, 255, 0.025);
        }

        .footer-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            width: min(1180px, calc(100% - 32px));
            margin: 0 auto;
            color: rgba(244, 247, 255, 0.58);
            font-size: 13px;
        }

        .footer-signal {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: rgba(244, 247, 255, 0.75);
        }

        .footer-signal::before {
            width: 8px;
            height: 8px;
            content: "";
            border-radius: 50%;
            background: var(--green);
            box-shadow: 0 0 16px rgba(185, 255, 76, 0.72);
        }

        @keyframes backgroundShift {
            from {
                background-position: 0% 25%;
            }
            to {
                background-position: 100% 72%;
            }
        }

        @keyframes gridDrift {
            from {
                background-position: 0 0, 0 0, 0 0;
            }
            to {
                background-position: 52px 52px, -52px 52px, 0 420px;
            }
        }

        @keyframes fogDrift {
            from {
                transform: translate3d(-4vw, -1vh, 0) rotate(-2deg);
            }
            to {
                transform: translate3d(8vw, 5vh, 0) rotate(3deg);
            }
        }

        @keyframes softPulse {
            0%, 100% {
                box-shadow: 0 0 28px rgba(185, 255, 76, 0.18), 0 0 16px rgba(20, 241, 217, 0.08), inset 0 0 18px rgba(185, 255, 76, 0.07);
            }
            50% {
                box-shadow: 0 0 42px rgba(185, 255, 76, 0.28), 0 0 24px rgba(20, 241, 217, 0.14), inset 0 0 24px rgba(185, 255, 76, 0.1);
            }
        }

        @keyframes borderScan {
            from {
                transform: translateX(-110%);
            }
            to {
                transform: translateX(110%);
            }
        }

        @keyframes expandContainer {
            from {
                max-height: 0;
                opacity: 0;
                transform: translateY(-8px) scaleY(0.98);
            }
            to {
                max-height: 1500px;
                opacity: 1;
                transform: translateY(0) scaleY(1);
            }
        }

        @media (max-width: 980px) {
            .filter-panel {
                grid-template-columns: 1fr 1fr;
            }

            .card-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

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

        @media (max-width: 760px) {
            .header-inner {
                
				
                gap: 12px;
            }

            .brand {
                justify-content: space-between;
            }

            .search-shell {
                width: min(420px, 44vw);
            }
			
			.search-shell::before {
				width: 9px;
				height: 9px;
			}
			
			.search-shell::after {
				top: 55%;
				left: 27px;
				width: 7px;
				height: 2px;
			}
			
			.search-shell input::placeholder {
            color: rgba(154, 168, 189, 0.88);
			font-size: 14px;
			position: absolute;
			}

            .hero {
                min-height: 58vh;
                padding: 70px 0 34px;
            }

            h1 {
                font-size: 39px;
                line-height: 1.03;
            }

            .hero p {
                font-size: 17px;
            }

            .carousel-arrow {
                display: none;
            }

            .category-viewport {
                scroll-snap-type: x mandatory;
            }

            .category-row {
                padding-inline: 14px;
            }

            .filter-panel {
                grid-template-columns: 1fr;
                gap: 16px;
            }
			
			.testing{
    			justify-self: left;
			}

			.filter-panel{
    position:relative;
    overflow:hidden;
    max-height:110px;
    transition:max-height .35s ease;
}

.filter-panel::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:60px;
    background:linear-gradient(
        to bottom,
        rgba(17,17,17,0),
        rgba(17,17,17,1)
    );
    pointer-events:none;
}

.filter-panel.expanded{
    max-height:2000px;
}

.filter-panel.expanded::after{
    display:none;
}

			.filter-expand{
    display:block;
    width:100%;
    margin-top:7px;
    padding:12px;

    /*border:none;
    border-radius:12px;

    background:var(--surface);
    color:var(--accent);*/

    cursor:pointer;
    font-weight:600;
}
			
            .results-head {
                display: grid;
                align-items: start;
            }

            .results-count {
                text-align: left;
            }

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

            .discovery-card.is-expanded {
                grid-column: auto;
            }

            .expanded-layout {
                grid-template-columns: 1fr;
            }

            .expanded-copy {
                padding: 22px;
            }

            .reading-shell.is-expanded .reading-content {
                max-height: 360px;
            }

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

            .footer-inner {
                display: grid;
            }
        }

        @media (max-width: 420px) {
            .header-inner,
            .section-shell,
            .hero-inner,
            .footer-inner {
                width: min(100% - 24px, 1180px);
            }

            .brand-title {
                font-size: 15px;
            }

            h1 {
                font-size: 34px;
            }

            .hero-actions,
            .card-actions {
                display: grid;
                grid-template-columns: 1fr;
            }

            .primary-btn,
            .ghost-btn,
            .text-btn {
                width: 100%;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                scroll-behavior: auto !important;
                animation-duration: 1ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 1ms !important;
            }

            .reveal {
                opacity: 1;
                --reveal-offset: 0px;
            }
        }


/* Added CSS*/
.card-media{
    position:relative;
}

.featured-badge{
    position:absolute;
    top:12px;
    left:12px;

    z-index:5;

    padding:.4rem .75rem;

    border-radius:999px;

    font-size:.72rem;
    font-weight:700;
    letter-spacing:.06em;

    background:rgba(0,0,0,.72);
    backdrop-filter:blur(8px);

    color:#ffd95a;

    border:1px solid rgba(255,217,90,.35);

    pointer-events:none;
}

.discovery-card[data-featured="true"]{
    border-color: rgba(255,217,90,.35);
    box-shadow:
        0 18px 46px rgba(0,0,0,.28),
        0 0 18px rgba(255,217,90,.12);
}

.content-slot {
    margin-top: 16px;
}
.content-slot h3,
.content-slot h4 {
    margin-top: 1.25rem;
}
.content-slot a {
    color: var(--accent, #14f1d9);
}
.content-status {
    font-size: .72rem;
    opacity: .65;
    letter-spacing: .03em;
}
.resource-action {
    margin-top: 1.25rem;
    padding: 12px 14px;
    border: 1px solid color-mix(in srgb, var(--accent) 35%, rgba(255,255,255,.12));
    border-radius: 10px;
}
.resource-action a {
    color: var(--accent, #14f1d9);
    font-weight: 700;
}
.content-error {
    padding: 12px;
    border: 1px dashed rgba(255,255,255,.18);
    border-radius: 10px;
    opacity: .75;
}


/* Resource expansion fixes */
.discovery-card.is-expanded {
    overflow: visible;
}

.expanded-content {
    overflow: visible;
}

.expanded-copy {
    overflow: visible;
    min-width: 0;
}

.resource-content,
.resource-article {
    min-width: 0;
    width: 100%;
    overflow: visible;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.resource-article img,
.resource-article iframe,
.resource-article video {
    max-width: 100%;
    height: auto;
}

.resource-article h3,
.resource-article h4,
.resource-article p,
.resource-article ul,
.resource-article ol {
    max-width: 100%;
}

.collapse-btn {
    position: relative;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
}

.related-grid {
    width: 100%;
    min-width: 0;
}

.related-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    gap: 6px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.related-card strong,
.related-card span {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 760px) {
    .expanded-content,
    .expanded-copy,
    .resource-content,
    .resource-article,
    .related-section,
    .related-grid {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .expanded-copy {
        padding: 18px;
    }

    .collapse-btn {
        margin-top: 14px;
        min-height: 42px;
        padding-inline: 16px;
    }

    .related-card {
        min-height: 0;
        padding: 13px 14px;
    }
}


/* Final mobile expanded-card correction.
   This intentionally overrides only the expansion geometry on small screens. */
@media (max-width: 760px) {
    .card-grid,
    .discovery-card.is-expanded,
    .discovery-card.is-expanded .card-body,
    .discovery-card.is-expanded .expanded-content,
    .discovery-card.is-expanded .expanded-layout,
    .discovery-card.is-expanded .expanded-copy {
        overflow: visible !important;
    }

    .card-grid {
        min-width: 0;
    }

    .discovery-card.is-expanded {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        max-height: none !important;
        transform: none !important;
        transform-style: flat !important;
        contain: none !important;
        isolation: auto;
    }

    .discovery-card.is-expanded .card-body {
        width: 100%;
        min-width: 0;
        height: auto !important;
        max-height: none !important;
        transform: none !important;
        transform-style: flat !important;
        box-sizing: border-box;
    }

    .discovery-card.is-expanded .expanded-content {
        position: relative;
        display: block !important;
        width: 100%;
        height: auto !important;
        max-height: none !important;
        min-height: 0;
        box-sizing: border-box;
        transform: none !important;
        animation: none !important;
        padding-bottom: 0;
    }

    .discovery-card.is-expanded .expanded-copy {
        display: block !important;
        width: 100%;
        height: auto !important;
        max-height: none !important;
        min-height: 0;
        box-sizing: border-box;
        transform: none !important;
    }

    .discovery-card.is-expanded .resource-content,
    .discovery-card.is-expanded .metadata-grid,
    .discovery-card.is-expanded .related-section,
    .discovery-card.is-expanded .related-grid {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: auto !important;
        max-height: none !important;
        box-sizing: border-box;
    }

    .discovery-card.is-expanded .resource-content {
        overflow: visible !important;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .discovery-card.is-expanded .related-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    .discovery-card.is-expanded .related-card {
        display: flex !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0;
        box-sizing: border-box;
        white-space: normal;
        overflow: visible;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .discovery-card.is-expanded .collapse-btn {
        position: relative !important;
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 100 !important;
        width: auto !important;
        max-width: 100%;
        height: auto !important;
        min-height: 42px;
        margin-top: 14px;
        clear: both;
        transform: none !important;
    }

    .discovery-card.is-expanded .resource-content *,
    .discovery-card.is-expanded .related-section * {
        max-width: 100%;
    }
}


/* Mobile viewport overflow guard */
@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    * {
        max-width: 100%;
    }

    img,
    video,
    iframe,
    svg,
    canvas {
        max-width: 100%;
    }
}
