@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --color-primary: #005377;
    --color-secondary: #A0C1B9;
    --color-sand: #f4f1eb;
    --color-deep: #0f1f2a;
    --color-muted: #5b6b76;
    --surface-elevated: #ffffff;
    --surface-tint: rgba(0, 83, 119, 0.06);
    --surface: #ffffff;
    --surface-strong: #f8fbfb;
    --border-subtle: rgba(0, 0, 0, 0.08);
    --radius-lg: 1.5rem;
    --radius-md: 1rem;
    --shadow-soft: 0 24px 60px rgba(15, 31, 42, 0.12);
    --shadow-card: 0 18px 40px rgba(15, 31, 42, 0.1);
    --bg-gradient: linear-gradient(135deg, #f4f1eb 0%, #f8fbfb 45%, #e3edf0 100%);
    --glow-primary: radial-gradient(circle, rgba(0, 83, 119, 0.3), rgba(0, 83, 119, 0));
    --glow-secondary: radial-gradient(circle, rgba(160, 193, 185, 0.45), rgba(160, 193, 185, 0));
}

:root[data-theme="dark"] {
    --color-primary: #63c7ff;
    --color-secondary: #76c3b5;
    --color-sand: #0f1824;
    --color-deep: #e6edf5;
    --color-muted: #9fb2c3;
    --surface-elevated: #152a3b;
    --surface-tint: rgba(99, 199, 255, 0.08);
    --surface: #0f1f2a;
    --surface-strong: #13283a;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.45);
    --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.35);
    --bg-gradient: linear-gradient(145deg, #0b1620 0%, #0f1f2a 40%, #0b1b2b 100%);
    --glow-primary: radial-gradient(circle, rgba(99, 199, 255, 0.22), rgba(99, 199, 255, 0));
    --glow-secondary: radial-gradient(circle, rgba(118, 195, 181, 0.28), rgba(118, 195, 181, 0));
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    color: var(--color-deep);
    background: var(--bg-gradient);
    min-height: 100vh;
    position: relative;
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    opacity: 0.8;
}

body::before {
    width: 420px;
    height: 420px;
    right: -140px;
    top: -180px;
    background: var(--glow-primary);
}

body::after {
    width: 520px;
    height: 520px;
    left: -180px;
    bottom: -200px;
    background: var(--glow-secondary);
}

h1, h2, h3, h4 {
    font-family: "Fraunces", "Times New Roman", serif;
}

a {
    color: inherit;
    text-decoration-color: transparent;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    transition: color 0.2s ease-out, text-decoration-color 0.2s ease-out;
}

a:hover {
    color: var(--color-primary);
    text-decoration-color: currentColor;
}

.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline-primary:hover {
    background-color: var(--color-primary);
    color: #fff;
}

.page-content {
    position: relative;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-primary);
}

.hero-title {
    font-size: clamp(2.6rem, 4vw, 4.4rem);
    margin-bottom: 0.3rem;
}

.hero-role {
    color: var(--color-primary);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.hero-summary {
    color: var(--color-muted);
}

.hero-meta {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.hero-portrait {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    transform: rotate(-1deg);
    position: relative;
}

.hero-portrait-stack {
    position: relative;
}

.hero-portrait-image {
    width: 100%;
    border-radius: var(--radius-md);
    display: block;
    object-fit: cover;
}

.hero-portrait-full {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.hero-portrait-full.is-visible {
    opacity: 1;
}

.section-header {
    margin-bottom: 2rem;
    max-width: 680px;
}

.section-title {
    font-size: clamp(2rem, 3vw, 2.6rem);
}

.section-subtitle {
    color: var(--color-muted);
    font-size: 1.05rem;
}

.featured-section,
.stats-section,
.projects-list{
    padding: 3.5rem 0;
}

.featured-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(150deg, var(--surface), var(--surface-elevated));
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.22s ease-out, box-shadow 0.22s ease-out, border-color 0.22s ease-out;
}

.featured-card::before {
    content: "";
    position: absolute;
    inset: -14% 8% auto -18%;
    height: 52%;
    background: linear-gradient(120deg, var(--surface-tint), transparent 65%);
    opacity: 0.8;
    transform: translateY(-10px);
    transition: opacity 0.24s ease, transform 0.24s ease;
    pointer-events: none;
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(0, 83, 119, 0.16);
}

.featured-card:hover::before {
    opacity: 1;
    transform: translateY(0);
}

.featured-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease-out;
}

.featured-thumb {
    overflow: hidden;
}

.featured-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.featured-body h3 {
    font-size: 1.35rem;
    margin-bottom: 0.6rem;
}

.featured-body p {
    margin-bottom: 0;
    flex: 1;
}

.featured-card:hover .featured-thumb img {
    transform: scale(1.05);
}

.stat-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(155deg, var(--surface), var(--surface-elevated));
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    height: 100%;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;
}

.stat-card::before {
    content: "";
    position: absolute;
    inset: -18% -12% auto -12%;
    height: 44%;
    background: linear-gradient(105deg, var(--surface-tint), transparent 60%);
    opacity: 0.75;
    transform: translateY(-10px);
    transition: opacity 0.24s ease, transform 0.24s ease;
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(0, 83, 119, 0.16);
}

.stat-card:hover::before {
    opacity: 1;
    transform: translateY(0);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    font-weight: 600;
}

.stat-detail {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.page-hero p {
    color: var(--color-muted);
    max-width: 720px;
}

.project-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--surface), var(--surface-elevated));
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease-out, box-shadow 0.22s ease-out, border-color 0.22s ease-out;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: -18% -10% auto -10%;
    height: 42%;
    background: linear-gradient(90deg, transparent, var(--surface-tint), transparent);
    opacity: 0.7;
    transform: translateY(-12px);
    transition: opacity 0.25s ease-out, transform 0.25s ease-out;
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(0, 83, 119, 0.16);
}

.project-card:hover::before {
    opacity: 1;
    transform: translateY(0);
}

.project-card-clickable {
    cursor: pointer;
}

.project-card-clickable:focus {
    outline: 2px solid rgba(0, 83, 119, 0.4);
    outline-offset: 4px;
}

.project-media img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
}

.project-media.is-clickable {
    cursor: pointer;
}

.project-title {
    font-size: 1.4rem;
}

.project-description {
    color: var(--color-muted);
}

.link-button {
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.link-button:hover {
    color: var(--color-primary);
}

.project-section {
    margin-top: 1.2rem;
}

.project-section-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-list {
    padding-left: 1.1rem;
    margin-bottom: 0;
    color: var(--color-muted);
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(160, 193, 185, 0.35);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-deep);
    transition:
        transform 0.18s ease-out,
        box-shadow 0.22s ease,
        background-color 0.28s ease,
        color 0.28s ease;
}

.chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(15, 31, 42, 0.12);
    background: var(--color-primary);
    color: #fff;
}

.btn {
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(15, 31, 42, 0.12);
}

.btn:active {
    transform: translateY(0);
}

.resume-summary,
.resume-block {
    position: relative;
    overflow: hidden;
    background: linear-gradient(155deg, var(--surface), var(--surface-elevated));
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-subtle);
    margin-bottom: 1.5rem;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;
}

.resume-summary::before,
.resume-block::before {
    content: "";
    position: absolute;
    inset: -20% -12% auto -16%;
    height: 48%;
    background: linear-gradient(110deg, var(--surface-tint), transparent 62%);
    opacity: 0.75;
    transform: translateY(-10px);
    transition: opacity 0.24s ease, transform 0.24s ease;
    pointer-events: none;
}

.resume-summary:hover,
.resume-block:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(0, 83, 119, 0.16);
}

.resume-summary:hover::before,
.resume-block:hover::before {
    opacity: 1;
    transform: translateY(0);
}

.resume-summary p {
    color: var(--color-muted);
}

.resume-entry {
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 1.2rem;
    margin-bottom: 1.2rem;
}

.resume-entry:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.resume-entry-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.resume-entry-title {
    font-weight: 600;
}

.resume-entry-org {
    color: var(--color-muted);
}

.resume-entry-period {
    font-weight: 600;
    color: var(--color-primary);
}

.resume-entry-summary {
    color: var(--color-muted);
    margin-top: 0.5rem;
}

.modal-overlay,
.lightbox-layer {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-backdrop,
.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 31, 42, 0.7);
}

.modal-card {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    max-width: 960px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 1.8rem;
    z-index: 1051;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.modal-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.7rem;
    color: var(--color-primary);
    font-weight: 600;
}

.modal-body p {
    color: var(--color-muted);
}

.modal-section {
    margin-top: 1.5rem;
}

.image-carousel {
    margin-bottom: 1.2rem;
}

.carousel-frame {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: zoom-in;
    box-shadow: var(--shadow-card);
}

.carousel-image-strip {
    display: flex;
    transition: transform 0.35s ease-out;
    width: 100%;
}

.carousel-image {
    flex: 0 0 100%;
}

.carousel-frame img,
.carousel-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.carousel-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.7rem 1rem;
    background: linear-gradient(0deg, rgba(15, 31, 42, 0.78), transparent);
    color: #fff;
    font-size: 0.9rem;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(255, 255, 255, 0.9);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    font-size: 1.6rem;
    color: var(--color-deep);
    box-shadow: var(--shadow-card);
    z-index: 2;
}

.carousel-nav.prev {
    left: 1rem;
}

.carousel-nav.next {
    right: 1rem;
}

.carousel-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: none;
    background: rgba(15, 31, 42, 0.2);
    cursor: pointer;
}

.carousel-dot.active {
    background: var(--color-primary);
}

.lightbox-card {
    position: relative;
    background: #0f1f2a;
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem 1.5rem;
    max-width: 960px;
    width: 100%;
    z-index: 1;
}

.lightbox-card .btn-close {
    filter: invert(1);
}

.lightbox-card img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    background: #0b151d;
}

.lightbox-caption {
    margin-top: 0.8rem;
    color: rgba(244, 241, 235, 0.85);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 1rem;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    font-size: 1.6rem;
    color: var(--color-deep);
    box-shadow: var(--shadow-card);
}

.lightbox-nav.next {
    left: auto;
    right: 1rem;
}

.animate-modal {
    animation: modalFade 0.25s ease-out;
}

@keyframes modalFade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.resume-list {
    padding-left: 1.1rem;
    margin-bottom: 0;
    color: var(--color-muted);
}

.site-footer {
    background: rgba(15, 31, 42, 0.95);
    color: #f4f1eb;
}

.footer-title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-link {
    color: #f4f1eb;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-link {
    transition: color 0.2s ease-out;
}

.footer-link:hover {
    color: var(--color-secondary);
}

.footer-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-icon svg {
    width: 100%;
    height: 100%;
}

.footer-icon-img {
    display: block;
    width: 18px;
    height: 18px;
    background: currentColor;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    mask-size: contain;
    -webkit-mask-size: contain;
}

.footer-label {
    display: inline;
}

.site-footer .text-muted {
    color: rgba(244, 241, 235, 0.7) !important;
}

:root[data-theme="dark"] body {
    color-scheme: dark;
}

:root[data-theme="dark"] .stat-card,
:root[data-theme="dark"] .hero-portrait,
:root[data-theme="dark"] .project-card,
:root[data-theme="dark"] .resume-summary,
:root[data-theme="dark"] .resume-block,
:root[data-theme="dark"] .modal-card {
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

:root[data-theme="dark"] .project-card {
    background: linear-gradient(160deg, var(--surface), var(--surface-elevated));
    border-color: var(--border-subtle);
}

:root[data-theme="dark"] .resume-summary,
:root[data-theme="dark"] .resume-block {
    background: linear-gradient(155deg, var(--surface), var(--surface-elevated));
    border-color: var(--border-subtle);
}

:root[data-theme="dark"] .featured-card {
    background: linear-gradient(150deg, var(--surface), var(--surface-elevated));
    border-color: var(--border-subtle);
}

:root[data-theme="dark"] .stat-card {
    background: linear-gradient(155deg, var(--surface), var(--surface-elevated));
    border-color: var(--border-subtle);
}

:root[data-theme="dark"] .resume-summary:hover,
:root[data-theme="dark"] .resume-block:hover {
    border-color: rgba(99, 199, 255, 0.2);
}

:root[data-theme="dark"] .project-card:hover {
    border-color: rgba(99, 199, 255, 0.2);
}

:root[data-theme="dark"] .stat-card:hover {
    border-color: rgba(99, 199, 255, 0.2);
}

:root[data-theme="dark"] .featured-card:hover {
    border-color: rgba(99, 199, 255, 0.2);
}

:root[data-theme="dark"] .project-card::before {
    display: none;
}

:root[data-theme="dark"] .stat-card::before {
    background: linear-gradient(105deg, var(--surface-tint), transparent 60%);
}

:root[data-theme="dark"] .resume-summary::before,
:root[data-theme="dark"] .resume-block::before {
    background: linear-gradient(110deg, var(--surface-tint), transparent 62%);
}

:root[data-theme="dark"] .featured-card::before {
    background: linear-gradient(120deg, var(--surface-tint), transparent 65%);
}

:root[data-theme="dark"] .resume-entry {
    border-color: var(--border-subtle);
}

:root[data-theme="dark"] .project-card-clickable:focus {
    outline: 2px solid rgba(99, 199, 255, 0.4);
}

:root[data-theme="dark"] .chip {
    background: rgba(118, 195, 181, 0.2);
    color: var(--color-deep);
}

:root[data-theme="dark"] .chip:hover {
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

:root[data-theme="dark"] .carousel-nav {
    background: rgba(15, 31, 42, 0.8);
    color: var(--color-deep);
    box-shadow: var(--shadow-card);
}

:root[data-theme="dark"] .carousel-dot {
    background: rgba(230, 237, 245, 0.4);
}

:root[data-theme="dark"] .carousel-dot.active {
    background: var(--color-primary);
}

:root[data-theme="dark"] .site-footer {
    background: #0b141d;
    color: var(--color-deep);
}

:root[data-theme="dark"] .site-footer .text-muted {
    color: rgba(230, 237, 245, 0.7) !important;
}

@media (max-width: 575.98px) {
    .footer-label {
        display: none;
    }

    .footer-link {
        justify-content: center;
        gap: 0.35rem;
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(18px);
    animation: fadeUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

.animate-on-scroll {
    opacity: 1;
    transform: none;
}

.js .animate-on-scroll {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.35s ease-out, transform 0.35s ease-out;
    transition-delay: var(--delay, 0s);
}

.js .animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fade-up {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .js .animate-on-scroll {
        transition: none;
        opacity: 1;
        transform: none;
    }

    .featured-card,
    .project-card,
    .btn,
    .chip {
        transition: none;
    }

    .animate-modal {
        animation: none;
    }
}

@media (max-width: 991.98px) {
    .hero-portrait {
        transform: none;
    }
}

@media (max-width: 767.98px) {
    .carousel-frame img {
        height: 220px;
    }

    .modal-card {
        padding: 1.4rem;
    }

    .lightbox-nav {
        display: none;
    }
}

#blazor-error-ui {
    color-scheme: light only;
    background: #fff2c2;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.loading-progress {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 0;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--color-primary);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: fixed;
    text-align: center;
    font-weight: bold;
    top: calc(50% + 4.5rem);
    left: 50%;
    transform: translateX(-50%);
    inset: auto;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Laden");
}

.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-primary);
}

/* HTML: <div class="loader"></div> */
.loader {
    width: 60px;
    aspect-ratio: 1;
}
.loader::before,
.loader::after {
    content: "";
    position: absolute;
    inset:0;
    background:
            linear-gradient(currentColor 0 0) 0 calc(var(--s,0)*-100%)/100% calc(100%/3),
            repeating-linear-gradient(90deg,currentColor 0 25%,#0000 0 50%) calc(var(--s,0)*100%) 50%/calc(4*100%/3) calc(100%/3);
    background-repeat: no-repeat;
    animation: l26 2s infinite;
}
.loader::after {
    --s:-1;
}
@keyframes l26 {
    0%,
    10%  {transform:translateY(calc(var(--s,1)*0));   background-position: 0 calc(var(--s,0)*-100%),calc(var(--s,0)*100%) 50%}
    33%  {transform:translateY(calc(var(--s,1)*-20%));background-position: 0 calc(var(--s,0)*-100%),calc(var(--s,0)*100%) 50%}
    66%  {transform:translateY(calc(var(--s,1)*-20%));background-position: 0 calc(var(--s,0)*-100%),calc(var(--s,0)*100% + 100%) 50%}
    90%,
    100%  {transform:translateY(calc(var(--s,1)*0));  background-position: 0 calc(var(--s,0)*-100%),calc(var(--s,0)*100% + 100%) 50%}
}
