/* ═══ DESIGN LAYER - Security section (loaded with pages/security.css; see design.css for the rules of the layer) ═══
   Markup this file expects:
     .security-hero > .security-hero-inner > .shield-stage + .security-mission     the hub (src/Security/index.php)
     .shield-stage > svg.shield-svg with .lp-* parts                               partials/shield-animation.php, also inside .briefing-shield
     .security-tabs-wrap > nav.security-tabs > a.security-tab[.is-active]          partials/security-tabs.php
     .threat-hero, .threat-list > .threat-card.sev-*, .threat-legend               threats.php
     .threat-report.sev-* with .threat-facts, .threat-action-box, .ioc-table       threat-view.php
   The blog.css classes on these pages (.blog-container, .blog-card, .tag, .post-toc ...) belong to design/blog.css.
   These pages carry no ad unit. */

/* the hero, the tabs and the threat intro share one column: the width of .blog-container (blog.css) */
html[data-design] {
    --d-security-col: 1000px;
}

/* ─── Hub hero: copy left, shield right, the three pillars across the full width ─── */
html[data-design] .security-hero {
    max-width: var(--d-security-col);
    padding: 56px 24px 40px;
}
html[data-design] .security-hero::before {
    display: none;
}
html[data-design] .security-hero-inner {
    gap: 0;
    text-align: left;
}
/* the parts of the copy become grid items of the hero, so the pillars can span it */
html[data-design] .security-mission {
    display: contents;
    animation: none;
}
html[data-design] .security-posts {
    animation: none;
}
html[data-design] .security-tabs-wrap,
html[data-design] .threat-hero {
    max-width: var(--d-security-col);
}
html[data-design] .security-eyebrow {
    justify-self: start;
    letter-spacing: 0;
    text-transform: none;
}
html[data-design] .security-title {
    margin: 0 0 24px;
    line-height: 1;
}
html[data-design] .security-lede {
    max-width: 38em;
    margin: 0 0 40px;
    font-size: 17px;
    line-height: 1.55;
    color: var(--text-secondary);
}
html[data-design] .security-lede strong {
    color: var(--text-primary);
}
html[data-design] .threat-hero .security-title {
    max-width: 13em;
}
html[data-design] .threat-hero .security-lede {
    margin-bottom: 0;
}
html[data-design] .shield-stage {
    width: 132px;
    height: auto;
    margin: 0 0 24px;
}
html[data-design] .briefing-shield {
    justify-content: flex-start;
}
html[data-design] .briefing-shield .shield-stage {
    width: 160px;
    height: auto;
    margin: 0;
}
html[data-design] .pillar h3 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.2;
}
html[data-design] .pillar p {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-secondary);
}
@media (min-width: 841px) {
    html[data-design] .security-hero-inner {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        column-gap: 24px;
        align-items: start;
    }
    html[data-design] .security-hero .security-eyebrow {
        grid-column: 1 / span 8;
        grid-row: 1;
    }
    html[data-design] .security-hero .security-title {
        grid-column: 1 / span 8;
        grid-row: 2;
    }
    html[data-design] .security-hero .security-lede {
        grid-column: 1 / span 7;
        grid-row: 3;
    }
    html[data-design] .security-hero .shield-stage {
        grid-column: 9 / -1;
        grid-row: 1 / span 3;
        align-self: center;
        justify-self: end;
        width: 100%;
        max-width: 280px;
        margin: 0;
    }
    html[data-design] .security-pillars {
        grid-column: 1 / -1;
        grid-row: 4;
    }
}
@media (max-width: 640px) {
    html[data-design] .security-hero {
        padding-top: 36px;
    }
}

/* ─── The shield: flat parts, no glow. The finished drawing is the resting state; the build is in Motion. ─── */
html[data-design] .shield-svg {
    display: block;
    height: auto;
    filter: none;
}
html[data-design] .lp-shine {
    display: none;
}
html[data-design] .lp-facets path,
html[data-design] .lp-outline {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    stroke-opacity: 1;
    fill-opacity: 1;
    animation: none;
}
html[data-design] .lp-facets path,
html[data-design] .lp-outline,
html[data-design] .lp-file-body,
html[data-design] .lp-file-fold,
html[data-design] .lp-ring,
html[data-design] .lp-badge circle {
    vector-effect: non-scaling-stroke;
}
html[data-design] .lp-facets path,
html[data-design] .lp-file {
    transform-box: fill-box;
    transform-origin: center;
}
html[data-design] .lp-vertices circle,
html[data-design] .lp-file,
html[data-design] .lp-badge {
    opacity: 1;
    animation: none;
}
html[data-design] .lp-ring {
    animation: none;
}
html[data-design] .lp-badge circle {
    fill: #10b981;
    stroke: var(--d-ground);
}
html[data-design] .lp-badge path {
    stroke: #0a0f1a;
}
/* A: a line drawing on a flat body */
html[data-design="swiss"] .lp-aura,
html[data-design="swiss"] .lp-ring {
    display: none;
}
html[data-design="swiss"] .lp-facets path {
    fill: var(--d-surface);
    stroke: var(--d-line);
    stroke-width: 1px;
}
html[data-design="swiss"] .lp-outline {
    stroke: var(--d-ink);
    stroke-width: 1.5px;
}
html[data-design="swiss"] .lp-vertices circle {
    fill: var(--blue-400);
    transform: scale(0.6);
}
html[data-design="swiss"] .lp-file-body {
    fill: var(--d-ground);
    stroke: var(--d-ink);
    stroke-width: 1px;
}
html[data-design="swiss"] .lp-file-fold {
    stroke: var(--d-ink);
    stroke-width: 1px;
}
html[data-design="swiss"] .lp-file-lines {
    stroke: var(--d-line-strong);
    stroke-width: 1px;
    stroke-linecap: butt;
}
/* D: one blue block with dark joints on a hard shadow. The shadow is the old aura shape, moved;
   !important because the old reduced-motion block forces that shape's opacity and transform. */
html[data-design="brutal"] .lp-aura {
    fill: var(--d-ink);
    opacity: 1 !important;
    transform: translate(4px, 4px) !important;
    animation: none;
}
html[data-design="brutal"] .lp-facets path {
    fill: #3b82f6;
    stroke: #0a0f1a;
    stroke-width: 2px;
}
html[data-design="brutal"] .lp-outline {
    stroke: var(--d-ink);
    stroke-width: 3px;
}
html[data-design="brutal"] .lp-vertices {
    display: none;
}
html[data-design="brutal"] .lp-file-body {
    fill: var(--d-ink);
    stroke: #0a0f1a;
    stroke-width: 2px;
}
html[data-design="brutal"] .lp-file-fold {
    stroke: #0a0f1a;
    stroke-width: 2px;
}
html[data-design="brutal"] .lp-file-lines {
    stroke: #6b7280;
}
html[data-design="brutal"] .lp-ring {
    stroke: var(--d-ink);
    stroke-width: 3px;
}
html[data-design="brutal"] .lp-badge circle {
    stroke: #0a0f1a;
    stroke-width: 2px;
}

/* ─── Tabs ─── */
html[data-design] .security-tab-alert {
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

/* ─── Severity and status. One flat colour each; critical and high are filled, so they stand apart
   from medium, low and info. --sev: the mark, --sev-text: text on the dark page, --sev-fill / --sev-on: a badge. ─── */
html[data-design] .sev-critical { --sev: #ef4444; --sev-text: #fca5a5; --sev-fill: #b91c1c; --sev-on: #ffffff; }
html[data-design] .sev-high     { --sev: #f59e0b; --sev-text: #fbbf24; --sev-fill: #f59e0b; --sev-on: #0a0f1a; }
html[data-design] .sev-medium   { --sev: #fcd34d; --sev-text: #fcd34d; --sev-fill: transparent; --sev-on: #fcd34d; }
html[data-design] .sev-low      { --sev: #60a5fa; --sev-text: #93c5fd; --sev-fill: transparent; --sev-on: #93c5fd; }
html[data-design] .sev-info     { --sev: #9ca3af; --sev-text: #d1d5db; --sev-fill: transparent; --sev-on: #d1d5db; }
html[data-design="brutal"] .sev-medium { --sev-fill: #fcd34d; --sev-on: #0a0f1a; }
html[data-design="brutal"] .sev-low    { --sev-fill: #3b82f6; --sev-on: #0a0f1a; }
html[data-design="brutal"] .sev-info   { --sev-fill: #1f2937; --sev-on: #f3f4f6; }
html[data-design] .sev-badge,
html[data-design] .status-badge {
    font-size: 13px;
    border-radius: var(--d-r-sm);
}
html[data-design] .sev-badge {
    color: var(--sev-on);
    background: var(--sev-fill);
    border: 1px solid var(--sev);
    font-weight: var(--d-strong-weight);
}
html[data-design] .status-badge::before {
    width: 8px;
    height: 8px;
}
html[data-design] .status-active::before {
    animation: none;
}

/* ─── Threat list ─── */
html[data-design] .threat-card.is-warning {
    background: none;
}
html[data-design] .threat-card-meta time,
html[data-design] .threat-facts dd {
    font-variant-numeric: tabular-nums;
}
html[data-design] .threat-card-title {
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}
html[data-design] .threat-card-desc,
html[data-design] .threat-card-action {
    max-width: 68ch;
    font-size: 15px;
    color: var(--text-secondary);
}
html[data-design] .threat-card-action {
    background: var(--d-ground);
    border: var(--d-inset-border);
    border-radius: var(--d-r-md);
}
html[data-design] .threat-legend {
    margin-top: 48px;
}
html[data-design] .threat-legend h2 {
    margin: 0 0 16px;
    font-size: 20px;
    letter-spacing: -0.02em;
}
html[data-design] .threat-legend dd,
html[data-design] .threat-legend p {
    font-size: 15px;
    color: var(--text-secondary);
}
html[data-design] .threat-legend dd strong {
    color: var(--text-primary);
}
html[data-design] .threat-legend a,
html[data-design] .no-results a,
html[data-design] .threat-facts a {
    color: var(--blue-400);
    text-decoration: underline;
    text-underline-offset: 3px;
}
html[data-design] .threat-legend a:hover,
html[data-design] .no-results a:hover,
html[data-design] .threat-facts a:hover {
    color: var(--text-primary);
}

/* ─── A threat report ─── */
html[data-design] .threat-resolved-note {
    background: var(--d-surface);
    border: var(--d-inset-border);
    border-color: #10b981;
    border-radius: var(--d-r-md);
    color: #6ee7b7;
    font-size: 15px;
}
html[data-design] .threat-facts dt {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}
html[data-design] .threat-facts dd {
    font-size: 15px;
}
html[data-design] .threat-action-box {
    background: var(--d-surface);
    border: var(--d-inset-border);
    border-left: 3px solid var(--sev);
    border-radius: var(--d-r-md);
}
html[data-design] .threat-action-box strong {
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--sev-text);
}
html[data-design] .threat-action-box p {
    font-size: 17px;
    line-height: 1.55;
}
/* an indicator stays plain text, whatever the layer does with <code> elsewhere */
html[data-design] .threat-content .ioc-table code {
    background: none;
    border: 0;
    color: var(--text-primary);
}
html[data-design] .ioc-type {
    background: transparent;
    border: 1px solid var(--blue-400);
    border-radius: var(--d-r-sm);
    color: #93c5fd;
    font-size: 13px;
    font-weight: var(--d-strong-weight);
    letter-spacing: 0;
    text-transform: none;
}
/* pages/security.css paints these two with !important; flat values need it too. The hover colour is
   the one a blog card has at rest in design/blog.css (a hairline in A, the light border in D). */
html[data-design] .security-card::before {
    background: var(--d-line) !important;
}
html[data-design="swiss"] .security-card:hover {
    border-color: var(--d-line) !important;
}
html[data-design="brutal"] .security-card:hover {
    border-color: var(--d-ink) !important;
}

/* ═══════════════════════ A · Swiss grid ═══════════════════════ */
html[data-design="swiss"] .security-eyebrow {
    display: block;
    margin: 0 0 20px;
    padding: 0;
    background: none;
    border: 0;
    font-size: 15px;
    font-weight: 400;
    color: var(--text-muted);
}
html[data-design="swiss"] .security-title {
    font-size: clamp(40px, 6vw, 72px);
    letter-spacing: -0.04em;
}
html[data-design="swiss"] .security-pillars {
    gap: 32px 24px;
}
html[data-design="swiss"] .pillar,
html[data-design="swiss"] .pillar:hover {
    position: relative;
    padding: 16px 0 0;
    background: none;
    border: 0;
    transform: none;
}
/* the rule above each pillar is a line of its own, so it can be drawn */
html[data-design="swiss"] .pillar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--d-ink);
    transform-origin: left center;
}
html[data-design="swiss"] .pillar-icon {
    display: none;
}
/* tabs: two text links on a hairline, the current one underlined */
html[data-design="swiss"] .security-tabs {
    display: flex;
    gap: 32px;
    padding: 0;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--d-line);
}
html[data-design="swiss"] .security-tab,
html[data-design="swiss"] .security-tab:hover,
html[data-design="swiss"] .security-tab.is-active {
    position: relative;
    padding: 14px 0;
    background: none;
    font-size: 16px;
    font-weight: 400;
}
html[data-design="swiss"] .security-tab:hover,
html[data-design="swiss"] .security-tab.is-active {
    color: var(--text-primary);
}
html[data-design="swiss"] .security-tab svg {
    display: none;
}
html[data-design="swiss"] .security-tab::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--d-ink);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s var(--d-ease);
}
html[data-design="swiss"] .security-tab:hover::after,
html[data-design="swiss"] .security-tab.is-active::after {
    transform: scaleX(1);
}
html[data-design="swiss"] .security-tab-alert,
html[data-design="swiss"] .security-tab.is-active .security-tab-alert {
    background: none;
    border: 1px solid #ef4444;
    color: #fca5a5;
    font-weight: 500;
}
html[data-design="swiss"] .status-badge {
    padding: 3px 0;
    background: none;
    border: 0;
    font-weight: 400;
}
/* threat list: ruled rows, the labels in a column of their own on wide screens */
html[data-design="swiss"] .threat-list {
    gap: 0;
    border-bottom: 1px solid var(--d-line);
}
html[data-design="swiss"] .threat-card {
    padding: 24px 0 24px 20px;
    background: none;
    border: 0;
    border-top: 1px solid var(--d-line);
}
html[data-design="swiss"] .threat-card::before {
    top: 24px;
    bottom: 24px;
    width: 3px;
}
html[data-design="swiss"] .threat-card:hover {
    background: none;
    border-color: var(--d-ink);
}
html[data-design="swiss"] .threat-card.is-warning {
    border-color: var(--sev);
}
html[data-design="swiss"] .threat-card:hover .threat-card-title a {
    color: var(--blue-400);
}
html[data-design="swiss"] .threat-card-title {
    font-weight: 500;
}
@media (min-width: 761px) {
    html[data-design="swiss"] .threat-card {
        display: grid;
        grid-template-columns: 180px minmax(0, 1fr);
        column-gap: 24px;
    }
    html[data-design="swiss"] .threat-card .threat-card-meta {
        grid-column: 1;
        grid-row: 1 / span 4;
        flex-direction: column;
        align-items: flex-start;
        align-self: start;
        margin: 0;
    }
    html[data-design="swiss"] .threat-card .threat-card-meta time {
        margin-left: 0;
    }
    html[data-design="swiss"] .threat-card > :not(.threat-card-meta) {
        grid-column: 2;
    }
}
html[data-design="swiss"] .threat-legend {
    padding: 20px 0 0;
    background: none;
    border: 0;
    border-top: 1px solid var(--d-ink);
}
html[data-design="swiss"] .threat-facts {
    padding: 16px 0;
    background: none;
    border: 0;
    border-top: 1px solid var(--d-ink);
    border-bottom: 1px solid var(--d-line);
}

/* ═══════════════════════ D · Neo-brutalist ═══════════════════════ */
html[data-design="brutal"] .security-eyebrow {
    margin: 0 0 18px;
    padding: 2px 10px;
    background: var(--blue-500);
    color: #0a0f1a;
    border: 2px solid var(--d-ink);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
    transform: rotate(-2deg);
}
html[data-design="brutal"] .security-title {
    font-size: clamp(38px, 5.5vw, 68px);
}
html[data-design="brutal"] .security-lede {
    font-size: 18px;
}
html[data-design="brutal"] .security-pillars {
    gap: 24px;
}
html[data-design="brutal"] .pillar,
html[data-design="brutal"] .pillar:hover {
    padding: 22px;
    background: var(--d-surface);
    border: var(--d-panel-border);
    border-radius: var(--d-r-lg);
    box-shadow: 6px 6px 0 #3b82f6 !important;
    transform: none;
}
html[data-design="brutal"] .pillar-icon {
    background: var(--blue-500);
    border: 2px solid var(--d-ink);
    border-radius: 8px;
    color: #0a0f1a;
}
html[data-design="brutal"] .pillar-icon svg,
html[data-design="brutal"] .security-tab svg {
    stroke-width: 2.5;
}
/* tabs: two chunky buttons, the current one a blue block */
html[data-design="brutal"] .security-tabs {
    gap: 12px;
    padding: 0 6px 6px 0;
    background: none;
    border: 0;
}
html[data-design="brutal"] .security-tab {
    padding: 10px 16px;
    background: var(--d-surface);
    color: var(--text-primary);
    border: 2px solid var(--d-ink);
    border-radius: var(--d-r-md);
    box-shadow: 4px 4px 0 #3b82f6 !important;
    font-size: 15px;
    font-weight: 800;
    transition: background 0.15s ease, transform 0.15s var(--d-pop), box-shadow 0.15s var(--d-ease);
}
html[data-design="brutal"] .security-tab:hover {
    background: var(--d-raised);
}
html[data-design="brutal"] .security-tab.is-active {
    background: var(--blue-500);
    color: #0a0f1a;
    box-shadow: 4px 4px 0 var(--d-ink) !important;
}
html[data-design="brutal"] .security-tab-alert,
html[data-design="brutal"] .security-tab.is-active .security-tab-alert {
    background: #ef4444;
    border: 2px solid var(--d-ink);
    border-radius: 6px;
    color: #0a0f1a;
    font-weight: 800;
}
html[data-design="brutal"] .sev-badge,
html[data-design="brutal"] .status-badge {
    border: 2px solid var(--d-ink);
    font-weight: 800;
}
html[data-design="brutal"] .status-badge {
    background: var(--d-ground);
    color: var(--text-primary);
}
html[data-design="brutal"] .ioc-type {
    border-width: 2px;
}
/* threat list: boxes on a hard shadow, the severity as a solid band on the left */
html[data-design="brutal"] .threat-list {
    gap: 20px;
    padding-right: 6px;
}
html[data-design="brutal"] .threat-card,
html[data-design="brutal"] .threat-card:hover {
    padding: 20px 24px 20px 38px;
    background: var(--d-surface);
    border: var(--d-panel-border);
    border-radius: var(--d-r-lg);
    box-shadow: 6px 6px 0 #3b82f6 !important;
    transition: transform 0.2s var(--d-pop), box-shadow 0.2s var(--d-ease);
}
html[data-design="brutal"] .threat-card::before {
    width: 14px;
    border-right: 3px solid var(--d-ink);
}
html[data-design="brutal"] .threat-card.is-warning {
    background: var(--d-surface);
    box-shadow: 6px 6px 0 var(--sev) !important;
}
html[data-design="brutal"] .threat-card.is-resolved {
    box-shadow: 6px 6px 0 var(--d-line) !important;
}
html[data-design="brutal"] .threat-legend,
html[data-design="brutal"] .threat-facts {
    background: var(--d-surface);
    border: var(--d-panel-border);
    border-radius: var(--d-r-lg);
    box-shadow: var(--d-item-shadow) !important;
}
html[data-design="brutal"] .threat-facts dt {
    font-weight: 700;
    color: var(--text-secondary);
}
html[data-design="brutal"] .threat-action-box {
    border: var(--d-panel-border);
    border-radius: var(--d-r-lg);
    box-shadow: 6px 6px 0 var(--sev) !important;
}
html[data-design="brutal"] .threat-action-box strong {
    display: inline-block;
    margin-bottom: 10px;
    padding: 1px 10px;
    background: var(--sev-fill);
    color: var(--sev-on);
    border: 2px solid var(--d-ink);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
    transform: rotate(-1.5deg);
}
html[data-design="brutal"] .threat-legend a,
html[data-design="brutal"] .no-results a,
html[data-design="brutal"] .threat-facts a {
    text-decoration-thickness: 2px;
}
@media (min-width: 641px) {
    html[data-design="brutal"] .threat-legend dl > div {
        grid-template-columns: 116px 1fr;
    }
}
@media (max-width: 640px) {
    html[data-design="brutal"] .threat-card,
    html[data-design="brutal"] .threat-card:hover {
        padding: 16px 16px 16px 30px;
    }
}
@media (max-width: 560px) {
    html[data-design="swiss"] .security-tabs {
        gap: 20px;
    }
    html[data-design="swiss"] .security-tab {
        justify-content: flex-start;
        font-size: 15px;
        text-align: left;
    }
    html[data-design="brutal"] .security-tab {
        padding: 10px;
        font-size: 14px;
    }
}

/* ═══════════════════════ Motion ═══════════════════════
   The shield still builds itself around the file (points, mesh from the bottom up, outline, check),
   in about 1.3s and with opacity and transform only. The glow, the light sweep and the old 1.8s wait
   before the copy are gone. A hovered card keeps its lift: its entrance does not fill forwards. */
@media (prefers-reduced-motion: no-preference) {
    html[data-design] .status-active::before {
        animation: d-security-live 2.4s ease-in-out infinite;
    }

    /* A: the copy rises, the rules are drawn, the drawing fades in part by part */
    html[data-design="swiss"] .security-eyebrow {
        animation: d-fade 0.6s ease both;
    }
    html[data-design="swiss"] .security-title {
        animation: d-rise 0.7s var(--d-ease) 0.05s both;
    }
    html[data-design="swiss"] .security-lede {
        animation: d-rise 0.7s var(--d-ease) 0.13s both;
    }
    html[data-design="swiss"] .pillar {
        animation: d-rise 0.6s var(--d-ease) 0.2s both;
    }
    html[data-design="swiss"] .pillar::before {
        animation: d-draw-x 0.6s var(--d-ease) 0.2s both;
    }
    html[data-design="swiss"] .pillar:nth-child(2),
    html[data-design="swiss"] .pillar:nth-child(2)::before { animation-delay: 0.27s; }
    html[data-design="swiss"] .pillar:nth-child(3),
    html[data-design="swiss"] .pillar:nth-child(3)::before { animation-delay: 0.34s; }
    html[data-design="swiss"] .security-posts {
        animation: d-rise 0.6s var(--d-ease) 0.3s both;
    }
    html[data-design="swiss"] .threat-card {
        animation: d-rise 0.6s var(--d-ease) both;
    }
    html[data-design="swiss"] .threat-card:nth-child(2) { animation-delay: 0.07s; }
    html[data-design="swiss"] .threat-card:nth-child(3) { animation-delay: 0.14s; }
    html[data-design="swiss"] .threat-card:nth-child(n+4) { animation-delay: 0.21s; }
    html[data-design="swiss"] .lp-file {
        animation: d-fade 0.5s ease both;
    }
    html[data-design="swiss"] .lp-vertices circle {
        animation: d-fade 0.3s ease calc(var(--i) * 0.015s) both;
    }
    html[data-design="swiss"] .lp-facets path {
        animation: d-fade 0.3s ease calc(0.2s + var(--i) * 0.02s) both;
    }
    html[data-design="swiss"] .lp-outline {
        animation: d-fade 0.3s ease 0.7s both;
    }
    html[data-design="swiss"] .lp-badge {
        animation: d-fade 0.3s ease 0.95s both;
    }

    /* D: the sticker lands and wobbles, boxes pop in, the shield is tiled and then bobs */
    html[data-design="brutal"] .status-active::before {
        animation-duration: 1.4s;
    }
    html[data-design="brutal"] .security-eyebrow {
        animation: d-security-sticker 0.5s var(--d-pop) 0.25s both, d-wobble 5s ease-in-out 1.2s infinite;
    }
    html[data-design="brutal"] .security-title {
        animation: d-pop-in 0.55s var(--d-pop) both;
    }
    html[data-design="brutal"] .security-lede {
        animation: d-rise 0.5s var(--d-ease) 0.2s both;
    }
    html[data-design="brutal"] .pillar {
        animation: d-pop-in 0.45s var(--d-pop) 0.28s both;
    }
    html[data-design="brutal"] .pillar:nth-child(2) { animation-delay: 0.36s; }
    html[data-design="brutal"] .pillar:nth-child(3) { animation-delay: 0.44s; }
    html[data-design="brutal"] .security-posts {
        animation: d-rise 0.5s var(--d-ease) 0.35s both;
    }
    html[data-design="brutal"] .threat-card {
        animation: d-pop-in 0.45s var(--d-pop) backwards;
    }
    html[data-design="brutal"] .threat-card:nth-child(2) { animation-delay: 0.08s; }
    html[data-design="brutal"] .threat-card:nth-child(3) { animation-delay: 0.16s; }
    html[data-design="brutal"] .threat-card:nth-child(n+4) { animation-delay: 0.24s; }
    html[data-design="brutal"] .security-tab:not(.is-active):hover {
        transform: translate(-2px, -2px);
        box-shadow: 6px 6px 0 #3b82f6 !important;
    }
    html[data-design="brutal"] .threat-card:hover {
        transform: translate(-3px, -3px);
        box-shadow: 9px 9px 0 #3b82f6 !important;
    }
    html[data-design="brutal"] .threat-card.is-warning:hover {
        box-shadow: 9px 9px 0 var(--sev) !important;
    }
    html[data-design="brutal"] .threat-card.is-resolved:hover {
        box-shadow: 9px 9px 0 var(--d-line) !important;
    }
    html[data-design="brutal"] .security-tab:not(.is-active):active,
    html[data-design="brutal"] .threat-card:active,
    html[data-design="brutal"] .threat-card.is-warning:active,
    html[data-design="brutal"] .threat-card.is-resolved:active {
        transform: translate(3px, 3px);
        box-shadow: 0 0 0 var(--d-ink) !important;
    }
    html[data-design="brutal"] .lp-file {
        animation: d-security-pop 0.4s var(--d-pop) both;
    }
    html[data-design="brutal"] .lp-facets path {
        animation: d-security-pop 0.35s var(--d-pop) calc(0.1s + var(--i) * 0.02s) both;
    }
    html[data-design="brutal"] .lp-outline {
        animation: d-fade 0.2s ease 0.75s both;
    }
    html[data-design="brutal"] .lp-ring {
        animation: d-security-ring 0.5s ease-out 0.9s;
    }
    html[data-design="brutal"] .lp-badge {
        animation: d-security-pop 0.4s var(--d-pop) 0.95s both;
    }
    html[data-design="brutal"] .security-hero .shield-stage {
        animation: d-bob 3.6s ease-in-out 1.6s infinite;
    }
}
/* a part of the shield arrives; it ends in its own resting state */
@keyframes d-security-pop {
    from { opacity: 0; transform: scale(0.4); }
}
/* the build is complete: one hard ring */
@keyframes d-security-ring {
    from { opacity: 1; transform: scale(0.7); }
    to   { opacity: 0; transform: scale(1); }
}
@keyframes d-security-sticker {
    0%   { opacity: 0; transform: rotate(-14deg) scale(1.5); }
    100% { opacity: 1; transform: rotate(-2deg) scale(1); }
}
/* "active": the dot of a threat that is still happening */
@keyframes d-security-live {
    50% { opacity: 0.3; transform: scale(0.6); }
}
