.dp-demo-body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1f242b;
    background: #ffffff;
    line-height: 1.6;
}

.dp-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

.dp-header {
    background: #17202a;
    color: #ffffff;
    padding: 18px 0;
}

.dp-header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.dp-brand {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.dp-brand-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.dp-brand-sub {
    font-size: 0.875rem;
    color: #cbd5e1;
}

.dp-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.dp-nav a {
    color: #f8fafc;
    text-decoration: none;
    font-weight: 600;
}

.dp-nav a:hover {
    text-decoration: underline;
}

.dp-hero {
    padding: 64px 0;
    background: #f4f6f9;
    border-bottom: 1px solid #e2e8f0;
}

.dp-eyebrow {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8b2635;
    margin: 0 0 10px;
}

.dp-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    margin: 0 0 16px;
    max-width: 820px;
}

.dp-lead {
    font-size: 1.1rem;
    max-width: 760px;
    color: #334155;
    margin: 0 0 24px;
}

.dp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.dp-btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.dp-btn-primary {
    background: #8b2635;
    color: #ffffff;
}

.dp-btn-secondary {
    background: #ffffff;
    color: #1f242b;
    border: 1px solid #cbd5e1;
}

.dp-btn-sm {
    padding: 8px 14px;
    font-size: 0.9rem;
}

.dp-section {
    padding: 56px 0;
}

.dp-section-alt {
    background: #f8fafc;
}

.dp-section h2 {
    margin: 0 0 12px;
    font-size: 1.75rem;
}

.dp-subcopy {
    margin: 0 0 24px;
    color: #475569;
    max-width: 760px;
}

.dp-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.dp-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.dp-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
}

.dp-card h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.dp-card p {
    margin: 0;
    color: #475569;
}

.dp-ba-box {
    position: relative;
    height: 340px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    user-select: none;
}

.dp-ba-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.dp-ba-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    padding: 16px;
    text-align: center;
}

.dp-ba-after-bg {
    background: #e2e8f0;
    color: #0f172a;
}

.dp-ba-before-bg {
    background: #cbd5e1;
    color: #334155;
    filter: sepia(35%) contrast(90%);
}

.dp-ba-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #8b2635;
    transform: translateX(-50%);
    pointer-events: none;
}

.dp-ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #8b2635;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.dp-ba-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    margin: 0;
}

.dp-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.dp-swirl-band {
    padding: 44px 0 52px;
    background: radial-gradient(circle at 50% 18%, rgba(245, 198, 120, 0.24), rgba(23, 32, 42, 0.03) 65%), #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    overflow: hidden;
}

.dp-swirl-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 18px;
}

.dp-swirl-header h2 {
    margin: 0;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.dp-swirl-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dp-swirl-stage {
    position: relative;
    height: 225px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dp-swirl-glow {
    position: absolute;
    width: 340px;
    height: 150px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.34) 0%, rgba(139, 38, 53, 0.12) 55%, transparent 75%);
    filter: blur(18px);
    pointer-events: none;
}

.dp-swirl-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dp-swirl-card {
    position: absolute;
    width: 118px;
    height: 148px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #ffffff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18), 0 0 18px rgba(245, 198, 120, 0.25);
    background: #ffffff;
    transition: box-shadow 0.2s ease;
}

.dp-swirl-card:hover,
.dp-swirl-card:focus-visible {
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.28), 0 0 24px rgba(245, 198, 120, 0.55);
    outline: 2px solid #8b2635;
}

.dp-swirl-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.dp-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.dp-person-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.dp-person-card:hover,
.dp-person-card:focus-within {
    transform: translateY(-3px);
    border-color: #d4af37;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.dp-person-card h2 {
    font-size: 1.15rem;
    margin: 14px 0 4px;
}

.dp-person-role {
    font-size: 0.9rem;
    font-weight: 600;
    color: #8b2635;
    margin: 0 0 10px;
}

.dp-person-photo-wrap {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 6px;
    overflow: hidden;
    background: #e2e8f0;
}

.dp-person-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.dp-edge-particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

/* Quill positioned so nib tip tracks around the outer edge */
.dp-quill-runner {
    position: absolute;
    top: 0;
    left: 0;
    width: 58px;
    height: 58px;
    pointer-events: none;
    opacity: 0;
    z-index: 5;
    transform-origin: 18% 88%;
    transition: opacity 0.18s ease;
    will-change: transform, opacity;
}

.dp-quill-runner img,
.dp-pen-canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.dp-quill-runner img {
    mix-blend-mode: multiply;
}

.dp-pen-canvas {
    filter: drop-shadow(0 3px 6px rgba(15, 23, 42, 0.35));
}

.dp-person-card:hover .dp-quill-runner,
.dp-person-card:focus-within .dp-quill-runner {
    opacity: 1;
    animation:
        dpQuillEdgeLoop 1.45s linear infinite,
        dpQuillNibWiggle 0.12s ease-in-out infinite alternate;
}

@keyframes dpQuillEdgeLoop {
    0% {
        left: 2%;
        top: 2%;
    }
    25% {
        left: calc(100% - 58px);
        top: 2%;
    }
    50% {
        left: calc(100% - 58px);
        top: calc(100% - 58px);
    }
    75% {
        left: 2%;
        top: calc(100% - 58px);
    }
    100% {
        left: 2%;
        top: 2%;
    }
}

@keyframes dpQuillNibWiggle {
    0% {
        transform: translate3d(-2px, -2px, 0) rotate(-14deg) scale(1);
    }
    50% {
        transform: translate3d(2px, -3px, 0) rotate(-24deg) scale(1.04);
    }
    100% {
        transform: translate3d(3px, 2px, 0) rotate(-8deg) scale(0.98);
    }
}

/* Lightbox modal when clicking an author/illustrator portrait */
body.dp-lb-open {
    overflow: hidden;
}

.dp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.dp-lightbox.is-open {
    display: flex;
}

.dp-lightbox-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 24, 0.85);
    backdrop-filter: blur(2px);
}

.dp-lightbox-panel {
    position: relative;
    z-index: 2;
    max-width: min(90vw, 560px);
    max-height: 90vh;
    background: #17202a;
    color: #ffffff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dp-lightbox-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.dp-lightbox-close:hover,
.dp-lightbox-close:focus-visible {
    background: rgba(255, 255, 255, 0.3);
}

.dp-lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

.dp-lightbox-caption {
    width: 100%;
    margin-top: 12px;
    text-align: left;
}

.dp-lightbox-name {
    font-size: 1.15rem;
    font-weight: 700;
}

.dp-lightbox-role {
    font-size: 0.92rem;
    color: #fbbf24;
    margin-top: 2px;
}

.dp-footer {
    background: #17202a;
    color: #cbd5e1;
    padding: 24px 0;
    font-size: 0.925rem;
}

.dp-footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}

.dp-footer p {
    margin: 0;
}

@media (prefers-reduced-motion: reduce) {
    .dp-swirl-stage {
        height: auto;
    }

    .dp-swirl-track {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
        gap: 12px;
    }

    .dp-swirl-card {
        position: static;
        width: 100%;
        height: 120px;
        transform: none !important;
        opacity: 1 !important;
    }

    .dp-person-card,
    .dp-person-photo,
    .dp-quill-runner {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }

    .dp-quill-runner,
    .dp-edge-particles-canvas {
        display: none;
    }
}