:root {
  --ink: #101820;
  --muted: #65717d;
  --paper: #f5f7f8;
  --surface: #ffffff;
  --line: #d9e0e4;
  --navy: #0e2433;
  --blue: #1d5c7a;
  --teal: #19776b;
  --amber: #b8842f;
  --danger: #a33a36;
  --shadow: 0 24px 70px rgba(16, 24, 32, 0.15);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 50;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  border-radius: 999px;
}
.skip-link:focus { top: 16px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(20px, calc((100vw - var(--max)) / 2));
  background: rgba(245, 247, 248, 0.92);
  border-bottom: 1px solid rgba(217, 224, 228, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 850;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  border-radius: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.nav-links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 750;
  font-size: 0.94rem;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  background: var(--surface);
}

.hero {
  min-height: calc(100svh - 72px);
  display: grid;
  align-items: end;
  padding: 88px max(20px, calc((100vw - var(--max)) / 2)) 64px;
  color: white;
  background:
    linear-gradient(90deg, rgba(14, 36, 51, 0.94), rgba(14, 36, 51, 0.62) 54%, rgba(14, 36, 51, 0.22)),
    url("server-room.jpg") center / cover;
}
.hero.small {
  min-height: 440px;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(14, 36, 51, 0.94), rgba(14, 36, 51, 0.58)),
    url("workstation-security.jpg") center / cover;
}
.incident-hero {
  background:
    linear-gradient(90deg, rgba(14, 36, 51, 0.94), rgba(14, 36, 51, 0.58)),
    url("phishing.jpg") center / cover;
}
.references-hero {
  background:
    linear-gradient(90deg, rgba(14, 36, 51, 0.94), rgba(14, 36, 51, 0.58)),
    url("security-dashboard.jpg") center / cover;
}
.hero-copy { max-width: 760px; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1, h2, h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: break-word;
}
h1 {
  max-width: 860px;
  font-size: clamp(3rem, 7vw, 6.2rem);
  font-weight: 850;
  overflow-wrap: break-word;
}
.small h1 { font-size: clamp(2.5rem, 5vw, 4.7rem); }
.lead {
  max-width: 700px;
  margin: 22px 0 0;
  color: rgba(255,255,255,0.88);
  font-size: clamp(1.05rem, 2vw, 1.26rem);
}
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,0.38);
  border-radius: 8px;
  color: white;
  text-decoration: none;
  font-weight: 850;
  transition: transform 180ms ease, background 180ms ease;
}
.button:hover { transform: translateY(-2px); background: rgba(255,255,255,0.13); }
.button.primary { color: var(--ink); background: white; border-color: white; }
.button.dark { color: white; background: var(--navy); border-color: var(--navy); }

.section {
  width: min(var(--max), calc(100vw - 32px));
  margin: 0 auto;
  padding: 76px 0;
}
.section.full { width: 100%; padding-inline: max(20px, calc((100vw - var(--max)) / 2)); }
.muted {
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100vw - var(--max)) / 2));
  background: #eaf0f2;
  border-block: 1px solid var(--line);
}
.section-heading { max-width: 760px; margin-bottom: 30px; }
.section-heading h2,
.text-block h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.section-heading p:not(.eyebrow),
.text-block p,
.card p,
.source-list p,
.timeline p,
figcaption {
  color: var(--muted);
  overflow-wrap: break-word;
}

.evidence-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.evidence-strip article { padding: 24px; border-left: 1px solid var(--line); }
.evidence-strip article:first-child { border-left: 0; }
.evidence-strip span,
.card-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.evidence-strip strong { display: block; font-size: 1.08rem; line-height: 1.25; }
.evidence-strip p { margin-bottom: 0; }

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
}
.split.reverse .media-block { order: 2; }
.media-block {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.media-block img { width: 100%; min-height: 420px; object-fit: cover; }
.text-block { max-width: 620px; }
.clean-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.clean-list li {
  position: relative;
  padding-left: 26px;
  color: #2d3943;
}
.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
}

.card-grid {
  display: grid;
  gap: 16px;
}
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  min-height: 100%;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.card h3 { font-size: 1.22rem; }
.card ul { margin-top: 18px; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.photo-grid figure {
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.photo-grid img {
  width: 100%;
  height: 270px;
  object-fit: cover;
}
.photo-grid figcaption { padding: 16px; font-size: 0.93rem; }
.photo-grid strong { color: var(--ink); }

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}
.timeline div { padding: 22px; border-left: 1px solid var(--line); }
.timeline div:first-child { border-left: 0; }
.timeline span {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-weight: 900;
}

.checklist {
  display: grid;
  gap: 12px;
}
.check-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.tick {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--teal);
  font-size: 0.84rem;
  font-weight: 900;
}
.severity {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 4px 9px;
  color: white;
  background: var(--danger);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.source-list {
  display: grid;
  gap: 14px;
}
.source-list a {
  display: block;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}
.source-list strong { display: block; color: var(--blue); }
.source-list p { margin: 6px 0 0; }
.source-list a:hover { border-color: rgba(25, 119, 107, 0.5); }

.cta-band,
.source-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.cta-band h2,
.source-note h2 { font-size: clamp(1.8rem, 3vw, 3rem); }
.cta-band p:not(.eyebrow),
.source-note p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
}
.cta-band .button { flex: 0 0 auto; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 38px max(20px, calc((100vw - var(--max)) / 2));
  color: rgba(255,255,255,0.74);
  background: var(--ink);
}
.footer strong { color: white; }
.footer p { margin: 6px 0 0; max-width: 680px; }
.footer-note {
  margin: 0;
  color: white;
  font-weight: 850;
  white-space: nowrap;
}

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

@media (max-width: 900px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .nav-links { width: 100%; justify-content: flex-start; overflow-x: visible; flex-wrap: wrap; padding-bottom: 2px; }
  .nav-links a { white-space: nowrap; }
  .hero { min-height: 640px; }
  .split,
  .evidence-strip,
  .card-grid.four,
  .card-grid.two,
  .photo-grid,
  .timeline {
    grid-template-columns: 1fr;
  }
  .evidence-strip article,
  .timeline div { border-left: 0; border-top: 1px solid var(--line); }
  .evidence-strip article:first-child,
  .timeline div:first-child { border-top: 0; }
  .split.reverse .media-block { order: 0; }
  .media-block img { min-height: 300px; }
  .footer { flex-direction: column; }
  .cta-band,
  .source-note {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  main,
  .section,
  .muted,
  .section-heading,
  .text-block,
  .evidence-strip,
  .card-grid,
  .photo-grid,
  .timeline,
  .split {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .section {
    width: 100vw;
    max-width: 100vw;
    padding: 56px 16px;
  }
  .muted {
    width: 100vw;
    max-width: 100vw;
    padding: 56px 16px;
  }
  .evidence-strip article,
  .card,
  .check-item,
  .timeline div {
    min-width: 0;
  }
  .topbar { gap: 12px; }
  .nav-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .nav-links a {
    justify-content: center;
    width: 100%;
    min-width: 0;
    padding-inline: 8px;
    font-size: 0.88rem;
  }
  .hero-copy {
    width: calc(100vw - 40px);
    max-width: 320px;
  }
  .actions { flex-direction: column; }
  .button { width: 100%; }
  h1 { font-size: 2.08rem; }
  .section-heading h2,
  .text-block h2 {
    font-size: 1.8rem;
    line-height: 1.12;
  }
  .section-heading,
  .text-block {
    width: 300px !important;
    max-width: calc(100vw - 32px) !important;
  }
  .evidence-strip,
  .card-grid,
  .photo-grid,
  .timeline {
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
  }
  .evidence-strip strong,
  .evidence-strip p,
  .card p,
  .check-item p,
  figcaption {
    overflow-wrap: anywhere;
  }
  .lead { font-size: 0.98rem; line-height: 1.65; }
}
