
/* =========================================================
   INCIDENT RESPONSE PAGE
   Cybersecurity Life
   ========================================================= */

.incident-response-page {
    --ir-bg: #030914;
    --ir-panel: rgba(7, 20, 37, 0.9);
    --ir-panel-soft: rgba(10, 29, 51, 0.75);
    --ir-blue: #00bfff;
    --ir-cyan: #58e7ff;
    --ir-green: #45ffb0;
    --ir-purple: #8d7dff;
    --ir-yellow: #ffc857;
    --ir-orange: #ff9f43;
    --ir-red: #ff647c;
    --ir-text: #f5fbff;
    --ir-muted: #a9bfd0;
    --ir-border: rgba(74, 219, 255, 0.22);
    --ir-shadow: 0 0 30px rgba(0, 191, 255, 0.13);
    position: relative;
    overflow: hidden;
    color: var(--ir-text);
    background:
        radial-gradient(circle at 10% 8%, rgba(0,191,255,.12), transparent 28%),
        radial-gradient(circle at 90% 18%, rgba(69,255,176,.08), transparent 26%),
        radial-gradient(circle at 50% 72%, rgba(141,125,255,.07), transparent 30%),
        linear-gradient(180deg, #020711 0%, #06101d 52%, #020811 100%);
    isolation: isolate;
}

.incident-response-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(0,191,255,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,191,255,.055) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.96), transparent 98%);
    animation: irGridMove 18s linear infinite;
}

.incident-response-page::after {
    content: "";
    position: fixed;
    inset: -45%;
    z-index: -3;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            122deg,
            transparent 0,
            transparent 86px,
            rgba(0,191,255,.025) 87px,
            transparent 88px
        );
    animation: irBackgroundSweep 26s linear infinite;
}

.incident-response-page *,
.incident-response-page *::before,
.incident-response-page *::after {
    box-sizing: border-box;
}

.incident-response-page a {
    text-decoration: none;
}

.page-section,
.incident-hero,
.incident-next-topic {
    position: relative;
    z-index: 1;
}

.page-section {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 96px 0;
}

.page-section + .page-section {
    border-top: 1px solid rgba(74,219,255,.08);
}

/* ---------- SHARED HEADINGS ---------- */

.section-heading {
    max-width: 820px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-label,
.incident-eyebrow {
    display: inline-block;
    margin: 0 0 11px;
    color: var(--ir-green);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.section-heading h2,
.evidence-content h2,
.preparation-content h2,
.incident-next-content h2 {
    margin: 0 0 18px;
    font-size: clamp(2.1rem, 4.5vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -.04em;
    background: linear-gradient(90deg, #ffffff, #7fe8ff 56%, #64ffc1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-heading > p:last-child,
.evidence-content > p,
.preparation-content > p,
.incident-next-content > p {
    color: var(--ir-muted);
    font-size: 1.03rem;
    line-height: 1.8;
}

/* ---------- HERO ---------- */

.incident-hero {
    min-height: 790px;
    padding: 112px max(28px, calc((100vw - 1180px) / 2)) 86px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
    align-items: center;
    gap: 64px;
    overflow: hidden;
}

.incident-hero::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ir-blue), var(--ir-green), transparent);
    box-shadow: 0 0 26px rgba(0,191,255,.72);
}

.incident-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(69,255,176,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,191,255,.07) 1px, transparent 1px);
    background-size: 54px 54px;
    transform: perspective(680px) rotateX(65deg) scale(1.55) translateY(27%);
    transform-origin: bottom;
    opacity: .72;
    animation: irHeroGrid 12s linear infinite;
}

.incident-hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    animation: irFadeUp .9s ease both;
}

.incident-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding: 10px 16px;
    border: 1px solid rgba(255,100,124,.34);
    border-radius: 999px;
    color: #ffd7dd;
    background: rgba(45,8,18,.7);
    box-shadow:
        inset 0 0 18px rgba(255,100,124,.05),
        0 0 20px rgba(255,100,124,.12);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.status-pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ir-red);
    box-shadow: 0 0 0 0 rgba(255,100,124,.75);
    animation: irStatusPulse 1.7s ease-out infinite;
}

.incident-hero h1 {
    margin: 0;
    font-size: clamp(3.4rem, 7.6vw, 6.8rem);
    line-height: .94;
    letter-spacing: -.065em;
    text-transform: uppercase;
}

.incident-hero h1 span {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1px rgba(104,229,255,.88);
    text-shadow:
        0 0 14px rgba(0,191,255,.26),
        0 0 44px rgba(0,191,255,.16);
}

.incident-hero-description {
    max-width: 700px;
    margin: 28px 0 0;
    color: #b5c9d7;
    font-size: clamp(1rem, 1.8vw, 1.17rem);
    line-height: 1.82;
}

.incident-hero-buttons,
.next-topic-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 34px;
}

.incident-primary-btn,
.incident-secondary-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 14px 22px;
    border-radius: 8px;
    font-weight: 800;
    letter-spacing: .025em;
    overflow: hidden;
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease,
        color .25s ease;
}

.incident-primary-btn {
    color: #00131b;
    background: linear-gradient(135deg, var(--ir-cyan), var(--ir-green));
    box-shadow: 0 0 24px rgba(0,191,255,.25);
}

.incident-primary-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-120%);
    background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.55), transparent 70%);
    transition: transform .55s ease;
}

.incident-primary-btn:hover::before {
    transform: translateX(120%);
}

.incident-secondary-btn {
    color: #d2f7ff;
    border: 1px solid rgba(73,218,255,.45);
    background: rgba(2,14,27,.68);
}

.incident-primary-btn:hover,
.incident-secondary-btn:hover {
    transform: translateY(-3px);
}

.incident-primary-btn:hover {
    box-shadow: 0 0 34px rgba(0,191,255,.38);
}

.incident-secondary-btn:hover {
    color: #fff;
    border-color: var(--ir-green);
    box-shadow: 0 0 24px rgba(69,255,176,.14);
}

.incident-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 34px;
}

.incident-stat-card {
    padding: 17px;
    border: 1px solid rgba(74,219,255,.15);
    border-radius: 10px;
    background: rgba(4,15,28,.58);
}

.stat-number {
    color: var(--ir-green);
    font-size: .7rem;
    font-weight: 900;
}

.incident-stat-card h3 {
    margin: 7px 0 5px;
    font-size: 1rem;
}

.incident-stat-card p {
    margin: 0;
    color: var(--ir-muted);
    font-size: .8rem;
    line-height: 1.5;
}

/* ---------- RADAR VISUAL ---------- */

.incident-visual {
    position: relative;
    z-index: 2;
    min-height: 520px;
    display: grid;
    place-items: center;
    animation: irFadeIn 1.15s ease both .15s;
}

.response-radar {
    position: relative;
    width: min(470px, 92vw);
    aspect-ratio: 1;
    border: 1px solid rgba(74,219,255,.25);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(0,191,255,.08), rgba(2,11,21,.92) 68%),
        linear-gradient(rgba(0,191,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,191,255,.045) 1px, transparent 1px);
    background-size: auto, 34px 34px, 34px 34px;
    box-shadow:
        0 0 42px rgba(0,191,255,.16),
        inset 0 0 42px rgba(69,255,176,.05);
    overflow: hidden;
    animation: irRadarFloat 4.6s ease-in-out infinite;
}

.response-radar::before,
.response-radar::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
    background: rgba(74,219,255,.12);
}

.response-radar::after {
    transform: rotate(90deg);
}

.radar-ring {
    position: absolute;
    border: 1px solid rgba(69,255,176,.2);
    border-radius: 50%;
}

.radar-ring-one {
    inset: 9%;
    border-style: dashed;
    animation: irSpin 20s linear infinite;
}

.radar-ring-two {
    inset: 25%;
    animation: irSpinReverse 14s linear infinite;
}

.radar-ring-three {
    inset: 40%;
    border-style: dotted;
    animation: irSpin 9s linear infinite;
}

.radar-scan {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        conic-gradient(
            from 0deg,
            transparent 0deg,
            transparent 310deg,
            rgba(69,255,176,.02) 325deg,
            rgba(69,255,176,.26) 350deg,
            transparent 360deg
        );
    filter: drop-shadow(0 0 12px rgba(69,255,176,.18));
    animation: irRadarSweep 4.2s linear infinite;
}

.radar-center {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 5;
    width: 105px;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    border: 1px solid rgba(69,255,176,.45);
    border-radius: 50%;
    color: var(--ir-green);
    background: #06111f;
    box-shadow:
        0 0 28px rgba(69,255,176,.18),
        inset 0 0 26px rgba(0,191,255,.06);
    font-size: 2.5rem;
    animation: irCorePulse 3s ease-in-out infinite;
}

.radar-node {
    position: absolute;
    z-index: 6;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--ir-red);
    box-shadow: 0 0 0 0 rgba(255,100,124,.7);
    animation: irNodePulse 1.8s ease-out infinite;
}

.node-one { left: 24%; top: 23%; }
.node-two { right: 18%; top: 35%; animation-delay: -.45s; }
.node-three { left: 33%; bottom: 16%; animation-delay: -.9s; }
.node-four { right: 29%; bottom: 28%; animation-delay: -1.35s; }

/* ---------- SHARED PANELS/CARDS ---------- */

.incident-intro-content,
.incident-command-panel,
.incident-type-card,
.timeline-content,
.team-role-card,
.evidence-terminal,
.communication-card,
.readiness-meter,
.best-practice-card,
.scenario-console,
.takeaway-card {
    border: 1px solid var(--ir-border);
    background:
        linear-gradient(145deg, rgba(11,31,53,.84), rgba(4,14,27,.92));
    box-shadow: var(--ir-shadow);
    backdrop-filter: blur(10px);
}

.incident-type-card,
.team-role-card,
.communication-card,
.best-practice-card,
.takeaway-card {
    transition:
        transform .28s ease,
        border-color .28s ease,
        box-shadow .28s ease,
        background .28s ease;
}

.incident-type-card:hover,
.team-role-card:hover,
.communication-card:hover,
.best-practice-card:hover,
.takeaway-card:hover {
    transform: translateY(-7px);
    border-color: rgba(69,255,176,.48);
    background:
        linear-gradient(145deg, rgba(12,41,64,.94), rgba(4,17,32,.96));
    box-shadow:
        0 0 34px rgba(0,191,255,.15),
        0 14px 38px rgba(0,0,0,.28);
}

/* ---------- INTRODUCTION ---------- */

.incident-intro-grid {
    display: grid;
    grid-template-columns: 1fr .92fr;
    gap: 46px;
    align-items: stretch;
}

.incident-intro-content {
    padding: 34px;
    border-radius: 16px;
}

.incident-intro-content h3 {
    margin-top: 0;
    font-size: 1.55rem;
}

.incident-intro-content > p {
    color: var(--ir-muted);
    line-height: 1.8;
}

.incident-highlight {
    display: flex;
    gap: 16px;
    margin-top: 28px;
    padding: 20px;
    border-left: 3px solid var(--ir-yellow);
    border-radius: 0 12px 12px 0;
    background: rgba(255,200,87,.06);
}

.incident-highlight > i {
    color: var(--ir-yellow);
    font-size: 1.4rem;
}

.incident-highlight h4 {
    margin: 0 0 7px;
}

.incident-highlight p {
    margin: 0;
    color: #d8cfaa;
    line-height: 1.7;
}

.incident-command-panel {
    border-radius: 16px;
    overflow: hidden;
}

.command-panel-header,
.terminal-top,
.scenario-header {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(74,219,255,.12);
    background: rgba(0,0,0,.22);
}

.command-panel-header > span,
.terminal-controls span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.command-panel-header > span:nth-child(1),
.terminal-controls span:nth-child(1) { background: var(--ir-red); }

.command-panel-header > span:nth-child(2),
.terminal-controls span:nth-child(2) { background: var(--ir-yellow); }

.command-panel-header > span:nth-child(3),
.terminal-controls span:nth-child(3) { background: var(--ir-green); }

.command-panel-header p,
.terminal-top p {
    margin: 0 0 0 8px;
    color: #9eb6c7;
    font-size: .78rem;
}

.command-panel-body {
    min-height: 420px;
    padding: 28px;
    background:
        linear-gradient(rgba(0,191,255,.025) 1px, transparent 1px),
        #030a12;
    background-size: 100% 29px;
}

.command-line {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(74,219,255,.08);
}

.command-label {
    color: var(--ir-muted);
    font-size: .75rem;
}

.command-value {
    color: var(--ir-cyan);
    font-size: .76rem;
    font-weight: 900;
}

.active-value { color: var(--ir-red); }
.warning-value { color: var(--ir-yellow); }

.command-progress {
    margin-top: 28px;
}

.progress-label,
.progress-percentage {
    color: #cfe9f3;
    font-size: .76rem;
}

.progress-track {
    height: 10px;
    margin: 10px 0;
    border: 1px solid rgba(74,219,255,.18);
    border-radius: 999px;
    background: rgba(0,0,0,.35);
    overflow: hidden;
}

.progress-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--ir-red), var(--ir-yellow), var(--ir-green));
    box-shadow: 0 0 14px rgba(69,255,176,.4);
    animation: irContainmentProgress 3.2s ease-in-out forwards .6s;
}

.command-log {
    margin-top: 26px;
    display: grid;
    gap: 13px;
    font-family: Consolas, Monaco, monospace;
}

.command-log p,
.terminal-screen p {
    margin: 0;
    color: #c5dce7;
    opacity: 0;
    transform: translateX(-10px);
    animation: irLineReveal .55s ease forwards;
}

.command-log p:nth-child(1) { animation-delay: .3s; }
.command-log p:nth-child(2) { animation-delay: .9s; }
.command-log p:nth-child(3) { animation-delay: 1.5s; }
.command-log p:nth-child(4) { animation-delay: 2.1s; }

.command-log span,
.terminal-screen p > span:first-child {
    color: var(--ir-green);
}

/* ---------- INCIDENT TYPES ---------- */

.incident-types {
    width: 100%;
    max-width: none;
    padding-left: max(20px, calc((100vw - 1180px) / 2));
    padding-right: max(20px, calc((100vw - 1180px) / 2));
    background: linear-gradient(180deg, rgba(255,100,124,.022), transparent 42%);
}

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

.incident-type-card {
    position: relative;
    min-height: 360px;
    padding: 29px;
    border-radius: 16px;
    overflow: hidden;
}

.incident-card-icon {
    width: 58px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid rgba(74,219,255,.3);
    border-radius: 15px;
    color: var(--ir-cyan);
    background: rgba(0,191,255,.055);
    font-size: 1.6rem;
    filter: drop-shadow(0 0 10px rgba(0,191,255,.3));
}

.incident-severity {
    position: absolute;
    right: 18px;
    top: 18px;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 900;
    text-transform: uppercase;
}

.incident-severity.critical {
    color: #ffd7dd;
    border: 1px solid rgba(255,100,124,.36);
    background: rgba(255,100,124,.07);
}

.incident-severity.high {
    color: #ffe0bd;
    border: 1px solid rgba(255,159,67,.36);
    background: rgba(255,159,67,.07);
}

.incident-severity.medium {
    color: #fff0bc;
    border: 1px solid rgba(255,200,87,.36);
    background: rgba(255,200,87,.07);
}

.incident-type-card h3,
.team-role-card h3,
.communication-card h3,
.best-practice-card h3,
.takeaway-card h3 {
    margin: 20px 0 10px;
    font-size: 1.18rem;
}

.incident-type-card p,
.team-role-card p,
.communication-card p,
.best-practice-card p,
.takeaway-card p {
    margin: 0;
    color: var(--ir-muted);
    line-height: 1.72;
}

.incident-type-card ul {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 9px;
}

.incident-type-card li {
    position: relative;
    padding-left: 22px;
    color: var(--ir-muted);
    font-size: .85rem;
}

.incident-type-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--ir-green);
    font-weight: 900;
}

/* ---------- RESPONSE TIMELINE ---------- */

.response-lifecycle {
    width: 100%;
    max-width: none;
    padding-left: max(20px, calc((100vw - 1080px) / 2));
    padding-right: max(20px, calc((100vw - 1080px) / 2));
    background:
        radial-gradient(circle at 50% 50%, rgba(0,191,255,.05), transparent 42%);
}

.response-timeline {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    gap: 24px;
}

.response-timeline::before {
    content: "";
    position: absolute;
    left: 56px;
    top: 42px;
    bottom: 42px;
    width: 2px;
    background: linear-gradient(var(--ir-blue), var(--ir-green), var(--ir-purple));
    box-shadow: 0 0 14px rgba(0,191,255,.45);
    animation: irTimelineGlow 3s ease-in-out infinite;
}

.timeline-step {
    display: grid;
    grid-template-columns: 86px 70px 1fr;
    gap: 20px;
    align-items: center;
}

.timeline-step:nth-child(even) {
    transform: translateX(34px);
}

.timeline-number {
    position: relative;
    z-index: 2;
    width: 54px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid rgba(69,255,176,.44);
    border-radius: 50%;
    color: var(--ir-green);
    background: #06111f;
    box-shadow: 0 0 20px rgba(69,255,176,.12);
    font-size: .75rem;
    font-weight: 900;
}

.timeline-icon {
    width: 55px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid rgba(74,219,255,.26);
    border-radius: 14px;
    color: var(--ir-cyan);
    background: rgba(0,191,255,.05);
    font-size: 1.35rem;
}

.timeline-content {
    padding: 24px;
    border-radius: 14px;
}

.timeline-content > span {
    color: var(--ir-green);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.timeline-content h3 {
    margin: 7px 0 9px;
}

.timeline-content p {
    margin: 0;
    color: var(--ir-muted);
    line-height: 1.72;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.timeline-tags span {
    padding: 7px 10px;
    border: 1px solid rgba(74,219,255,.14);
    border-radius: 999px;
    color: #ccefff;
    background: rgba(0,0,0,.14);
    font-size: .68rem;
}

/* ---------- TEAM ---------- */

.response-team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.team-role-card {
    min-height: 250px;
    padding: 27px;
    border-radius: 15px;
}

.team-role-card > i,
.communication-card > i,
.takeaway-icon {
    color: var(--ir-cyan);
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(0,191,255,.35));
}

/* ---------- EVIDENCE ---------- */

.incident-evidence {
    width: 100%;
    max-width: none;
    padding-left: max(20px, calc((100vw - 1180px) / 2));
    padding-right: max(20px, calc((100vw - 1180px) / 2));
    background:
        radial-gradient(circle at 78% 50%, rgba(69,255,176,.06), transparent 30%);
}

.incident-evidence-grid {
    display: grid;
    grid-template-columns: 1fr .95fr;
    gap: 50px;
    align-items: center;
}

.evidence-checklist {
    display: grid;
    gap: 15px;
    margin-top: 28px;
}

.evidence-item {
    display: flex;
    gap: 15px;
    padding: 17px;
    border: 1px solid rgba(74,219,255,.12);
    border-radius: 10px;
    background: rgba(0,0,0,.12);
}

.evidence-item > i {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #00170f;
    background: var(--ir-green);
    box-shadow: 0 0 16px rgba(69,255,176,.22);
}

.evidence-item h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.evidence-item p {
    margin: 0;
    color: var(--ir-muted);
    line-height: 1.6;
}

.evidence-terminal {
    border-radius: 16px;
    overflow: hidden;
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.terminal-screen {
    min-height: 420px;
    padding: 26px;
    display: grid;
    align-content: start;
    gap: 18px;
    font-family: Consolas, Monaco, monospace;
    background:
        linear-gradient(rgba(0,191,255,.025) 1px, transparent 1px),
        #030a12;
    background-size: 100% 29px;
}

.terminal-screen p:nth-child(1) { animation-delay: .2s; }
.terminal-screen p:nth-child(2) { animation-delay: .55s; }
.terminal-screen p:nth-child(3) { animation-delay: .9s; }
.terminal-screen p:nth-child(4) { animation-delay: 1.25s; }
.terminal-screen p:nth-child(5) { animation-delay: 1.6s; }
.terminal-screen p:nth-child(6) { animation-delay: 1.95s; }
.terminal-screen p:nth-child(7) { animation-delay: 2.3s; }
.terminal-screen p:nth-child(8) { animation-delay: 2.65s; }

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    margin-left: 5px;
    background: var(--ir-green);
    animation: irCursorBlink .9s steps(1) infinite;
}

/* ---------- COMMUNICATION ---------- */

.communication-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.communication-card {
    position: relative;
    min-height: 260px;
    padding: 27px;
    border-radius: 15px;
}

.communication-number {
    position: absolute;
    right: 17px;
    top: 13px;
    color: rgba(92,222,255,.22);
    font-size: 2.3rem;
    font-weight: 900;
}

/* ---------- PREPARATION ---------- */

.incident-preparation {
    width: 100%;
    max-width: none;
    padding-left: max(20px, calc((100vw - 1180px) / 2));
    padding-right: max(20px, calc((100vw - 1180px) / 2));
    background:
        radial-gradient(circle at 78% 50%, rgba(141,125,255,.08), transparent 30%);
}

.preparation-container {
    display: grid;
    grid-template-columns: 1fr .85fr;
    gap: 55px;
    align-items: center;
}

.preparation-list {
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 13px;
}

.preparation-list li {
    display: flex;
    gap: 11px;
    align-items: center;
    color: var(--ir-muted);
}

.preparation-list i {
    color: var(--ir-green);
}

.readiness-meter {
    padding: 34px;
    border-radius: 18px;
}

.readiness-ring {
    width: 240px;
    aspect-ratio: 1;
    margin: 0 auto 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        conic-gradient(var(--ir-green) 0 331deg, rgba(74,219,255,.1) 331deg 360deg);
    box-shadow: 0 0 30px rgba(69,255,176,.18);
    animation: irReadinessRotate 8s linear infinite;
}

.readiness-ring-inner {
    width: 190px;
    aspect-ratio: 1;
    display: grid;
    place-content: center;
    text-align: center;
    border-radius: 50%;
    background: #06111f;
    box-shadow: inset 0 0 28px rgba(0,191,255,.06);
    animation: irReadinessCounterRotate 8s linear infinite;
}

.readiness-ring-inner span {
    color: var(--ir-green);
    font-size: 2.5rem;
    font-weight: 900;
}

.readiness-ring-inner p {
    margin: 5px 0 0;
    color: var(--ir-muted);
}

.readiness-status {
    display: grid;
    gap: 11px;
}

.readiness-status > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px;
    border: 1px solid rgba(74,219,255,.1);
    border-radius: 8px;
    background: rgba(0,0,0,.12);
}

.readiness-status span {
    color: var(--ir-muted);
}

.readiness-status strong {
    color: var(--ir-green);
}

/* ---------- BEST PRACTICES ---------- */

.best-practice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.best-practice-card {
    min-height: 235px;
    padding: 27px;
    border-radius: 15px;
}

.best-practice-card > span {
    color: var(--ir-green);
    font-size: .75rem;
    font-weight: 900;
}

/* ---------- SCENARIO ---------- */

.incident-scenario {
    width: 100%;
    max-width: none;
    padding-left: max(20px, calc((100vw - 1050px) / 2));
    padding-right: max(20px, calc((100vw - 1050px) / 2));
    background:
        radial-gradient(circle at 50% 50%, rgba(0,191,255,.06), transparent 36%);
}

.scenario-console {
    border-radius: 17px;
    overflow: hidden;
}

.scenario-header {
    justify-content: space-between;
}

.scenario-header > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.scenario-header p {
    margin: 0;
    color: #cce9f5;
}

.scenario-alert-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ir-red);
    animation: irStatusPulse 1.7s ease-out infinite;
}

.scenario-status {
    padding: 7px 10px;
    border: 1px solid rgba(69,255,176,.34);
    border-radius: 999px;
    color: var(--ir-green);
    background: rgba(69,255,176,.05);
    font-size: .66rem;
    font-weight: 900;
}

.scenario-body {
    position: relative;
    padding: 30px;
    background: #030a12;
}

.scenario-body::before {
    content: "";
    position: absolute;
    left: 108px;
    top: 48px;
    bottom: 48px;
    width: 2px;
    background: linear-gradient(var(--ir-red), var(--ir-yellow), var(--ir-green));
    box-shadow: 0 0 14px rgba(0,191,255,.3);
}

.scenario-event {
    position: relative;
    display: grid;
    grid-template-columns: 70px 58px 1fr;
    gap: 20px;
    align-items: start;
    padding: 18px 0;
    opacity: 0;
    transform: translateY(16px);
    animation: irScenarioReveal .6s ease forwards;
}

.scenario-event:nth-child(1) { animation-delay: .2s; }
.scenario-event:nth-child(2) { animation-delay: .65s; }
.scenario-event:nth-child(3) { animation-delay: 1.1s; }
.scenario-event:nth-child(4) { animation-delay: 1.55s; }
.scenario-event:nth-child(5) { animation-delay: 2s; }

.event-time {
    color: var(--ir-green);
    font-family: Consolas, Monaco, monospace;
    font-size: .8rem;
}

.event-marker {
    position: relative;
    z-index: 2;
    width: 46px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid rgba(74,219,255,.3);
    border-radius: 50%;
    color: var(--ir-cyan);
    background: #06111f;
}

.event-content h3 {
    margin: 0 0 7px;
}

.event-content p {
    margin: 0;
    color: var(--ir-muted);
    line-height: 1.65;
}

/* ---------- TAKEAWAYS ---------- */

.takeaway-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.takeaway-card {
    min-height: 245px;
    padding: 27px;
    border-radius: 15px;
}

.takeaway-icon {
    width: 56px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid rgba(74,219,255,.28);
    border-radius: 14px;
    background: rgba(0,191,255,.05);
}

/* ---------- NEXT TOPIC ---------- */

.incident-next-topic {
    min-height: 520px;
    padding: 110px max(24px, calc((100vw - 950px) / 2));
    display: grid;
    place-items: center;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 50%, rgba(0,191,255,.12), transparent 38%),
        linear-gradient(180deg, rgba(4,13,25,.8), #02070f);
}

.incident-next-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(69,255,176,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,191,255,.055) 1px, transparent 1px);
    background-size: 38px 38px;
    transform: perspective(700px) rotateX(67deg) scale(1.6) translateY(31%);
    transform-origin: bottom;
    animation: irHeroGrid 12s linear infinite;
}

.incident-next-topic::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 460px;
    height: 460px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(66,220,255,.13);
    border-radius: 50%;
    box-shadow:
        0 0 60px rgba(0,191,255,.08),
        inset 0 0 60px rgba(69,255,176,.03);
    animation: irCalloutRing 7s ease-in-out infinite;
}

.incident-next-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.next-topic-icon {
    width: 90px;
    aspect-ratio: 1;
    margin: 0 auto 22px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(69,255,176,.4);
    border-radius: 50%;
    color: var(--ir-green);
    background: rgba(69,255,176,.06);
    box-shadow: 0 0 24px rgba(69,255,176,.12);
    font-size: 2rem;
    animation: irCorePulse 3s ease-in-out infinite;
}

.incident-next-content > span {
    color: var(--ir-green);
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.next-topic-buttons {
    justify-content: center;
}

/* ---------- ANIMATIONS ---------- */

@keyframes irGridMove {
    from { background-position: 0 0, 0 0; }
    to { background-position: 44px 44px, 44px 44px; }
}

@keyframes irBackgroundSweep {
    from { transform: translate3d(-7%, -7%, 0) rotate(0deg); }
    to { transform: translate3d(7%, 7%, 0) rotate(3deg); }
}

@keyframes irHeroGrid {
    from { background-position: 0 0, 0 0; }
    to { background-position: 0 54px, 54px 0; }
}

@keyframes irStatusPulse {
    0% { box-shadow: 0 0 0 0 rgba(255,100,124,.75); }
    70% { box-shadow: 0 0 0 10px rgba(255,100,124,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,100,124,0); }
}

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

@keyframes irFadeIn {
    from { opacity: 0; transform: scale(.94); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes irSpin {
    to { transform: rotate(360deg); }
}

@keyframes irSpinReverse {
    to { transform: rotate(-360deg); }
}

@keyframes irRadarSweep {
    to { transform: rotate(360deg); }
}

@keyframes irRadarFloat {
    0%,100% { transform: translateY(0) rotate(-.4deg); }
    50% { transform: translateY(-16px) rotate(.4deg); }
}

@keyframes irCorePulse {
    0%,100% {
        transform: scale(.98);
        box-shadow:
            0 0 22px rgba(69,255,176,.1),
            inset 0 0 28px rgba(0,191,255,.05);
    }
    50% {
        transform: scale(1.05);
        box-shadow:
            0 0 36px rgba(69,255,176,.22),
            inset 0 0 35px rgba(0,191,255,.1);
    }
}

@keyframes irNodePulse {
    0% { box-shadow: 0 0 0 0 rgba(255,100,124,.7); }
    70% { box-shadow: 0 0 0 12px rgba(255,100,124,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,100,124,0); }
}

@keyframes irContainmentProgress {
    from { width: 0; }
    to { width: 72%; }
}

@keyframes irLineReveal {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes irTimelineGlow {
    0%,100% { opacity: .65; }
    50% { opacity: 1; }
}

@keyframes irCursorBlink {
    0%,49% { opacity: 1; }
    50%,100% { opacity: 0; }
}

@keyframes irReadinessRotate {
    to { transform: rotate(360deg); }
}

@keyframes irReadinessCounterRotate {
    to { transform: rotate(-360deg); }
}

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

@keyframes irCalloutRing {
    0%,100% {
        transform: translate(-50%, -50%) scale(.94);
        opacity: .45;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.08);
        opacity: .9;
    }
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1100px) {
    .incident-hero {
        grid-template-columns: 1fr;
        padding-top: 92px;
        text-align: center;
    }

    .incident-hero-content {
        margin: 0 auto;
    }

    .incident-hero-buttons {
        justify-content: center;
    }

    .incident-hero-stats {
        max-width: 650px;
        margin-left: auto;
        margin-right: auto;
    }

    .incident-intro-grid,
    .incident-evidence-grid,
    .preparation-container {
        grid-template-columns: 1fr;
    }

    .incident-type-grid,
    .response-team-grid,
    .best-practice-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .communication-grid,
    .takeaway-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 780px) {
    .page-section {
        width: min(100% - 28px, 1180px);
        padding: 76px 0;
    }

    .incident-hero {
        min-height: auto;
        padding: 78px 18px 65px;
        gap: 34px;
    }

    .incident-hero h1 {
        font-size: clamp(3rem, 16vw, 5rem);
    }

    .incident-hero-buttons,
    .next-topic-buttons {
        flex-direction: column;
    }

    .incident-primary-btn,
    .incident-secondary-btn {
        width: 100%;
    }

    .incident-hero-stats {
        grid-template-columns: 1fr;
    }

    .incident-visual {
        min-height: 420px;
    }

    .response-radar {
        width: min(390px, 92vw);
    }

    .incident-type-grid,
    .response-team-grid,
    .communication-grid,
    .best-practice-grid,
    .takeaway-grid {
        grid-template-columns: 1fr;
    }

    .timeline-step,
    .timeline-step:nth-child(even) {
        grid-template-columns: 56px 1fr;
        transform: none;
    }

    .timeline-icon {
        display: none;
    }

    .response-timeline::before {
        left: 27px;
    }

    .scenario-body::before {
        left: 89px;
    }

    .scenario-event {
        grid-template-columns: 55px 46px 1fr;
        gap: 13px;
    }
}

@media (max-width: 520px) {
    .incident-visual {
        min-height: 340px;
    }

    .response-radar {
        width: 310px;
    }

    .radar-center {
        width: 82px;
        font-size: 2rem;
    }

    .incident-command-panel,
    .incident-intro-content,
    .incident-type-card,
    .team-role-card,
    .communication-card,
    .best-practice-card,
    .takeaway-card {
        padding: 23px;
    }

    .readiness-ring {
        width: 210px;
    }

    .readiness-ring-inner {
        width: 165px;
    }

    .scenario-body {
        padding: 22px 14px;
    }

    .scenario-body::before {
        display: none;
    }

    .scenario-event {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 22px 0;
        border-bottom: 1px solid rgba(74,219,255,.08);
    }

    .event-marker {
        width: 42px;
    }

    .incident-next-topic {
        padding-left: 18px;
        padding-right: 18px;
    }
}

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