/* ==========================================================================
   EMPACT — website draft
   Design system built on the EMPACT branding guide (Europol, June 2018)
   Brand blue  #0D4F9D      Brand yellow  #FFD200
   Wordmark typeface: Source Sans Pro → web equivalent Source Sans 3
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --blue:        #0D4F9D;   /* EMPACT blue — matches the logo artwork */
  --blue-deep:   #06305F;   /* darker shade for depth and the header */
  --blue-dark:   #093C77;
  --blue-light:  #1A66C4;   /* lighter shade for hover and rules */
  --yellow:      #FFD200;   /* EMPACT yellow — accents and figures only */
  --yellow-soft: #FFE87A;

  /* Neutrals */
  --white:  #FFFFFF;
  --paper:  #F3F7FC;        /* light band background */
  --ink:    #071B33;        /* text on light bands */
  --ink-mid:#2B4260;

  /* Text on blue */
  --on-blue:      rgba(255,255,255,0.96);
  --on-blue-soft: rgba(255,255,255,0.72);
  --on-blue-faint:rgba(255,255,255,0.16);

  /* Type scale — fluid */
  --step--1: clamp(0.86rem, 0.83rem + 0.14vw, 0.94rem);
  --step-0:  clamp(1.05rem, 1.00rem + 0.22vw, 1.19rem);
  --step-1:  clamp(1.28rem, 1.18rem + 0.45vw, 1.6rem);
  --step-2:  clamp(1.6rem,  1.40rem + 0.95vw, 2.25rem);
  --step-3:  clamp(2.05rem, 1.70rem + 1.70vw, 3.15rem);
  --step-4:  clamp(2.6rem,  1.95rem + 3.10vw, 4.6rem);
  --step-5:  clamp(3.1rem,  2.10rem + 4.80vw, 6.2rem);

  /* Layout */
  --wrap:    1180px;
  --measure: 42rem;
  --gutter:  clamp(1.25rem, 4vw, 3rem);
  --section: clamp(3.5rem, 7vw, 6.5rem);

  --radius: 3px;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 400;
  color: var(--on-blue);
  background: var(--blue);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); font-weight: 900; letter-spacing: -0.03em; }
h2 { font-size: var(--step-3); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: var(--step-1); font-weight: 700; }
h4 { font-size: var(--step-0); font-weight: 700; }

p { text-wrap: pretty; }
p + p { margin-top: 1.1em; }

strong, b { font-weight: 700; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-color: var(--yellow); }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.eyebrow {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1.1rem;
}

.standfirst {
  font-size: var(--step-1);
  line-height: 1.45;
  font-weight: 300;
  color: var(--on-blue);
  max-width: 34rem;
}

.lede { font-size: var(--step-1); font-weight: 300; line-height: 1.5; }

.measure { max-width: var(--measure); }

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding-block: var(--section); }
.band--deep  { background: var(--blue-deep); }
.band--dark  { background: var(--blue-dark); }
.band--light { background: var(--paper); color: var(--ink); }
.band--light .eyebrow { color: var(--blue); }
.band--light a { color: var(--blue); }
.band--tight { padding-block: clamp(2.25rem, 4vw, 3.5rem); }

.rule {
  border: 0;
  border-top: 2px solid var(--yellow);
  width: 56px;
  margin: 0 0 2rem;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem; top: 1rem;
  z-index: 200;
  background: var(--yellow);
  color: var(--ink);
  padding: .7rem 1.1rem;
  font-weight: 700;
  border-radius: var(--radius);
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
/* Header uses the EMPACT blue itself. This also makes the logo sit flush: the
   supplied "white on blue" SVG carries its own #0D4F9D rectangle, which showed
   as a visible box against the darker shade. A hairline plus a soft shadow keeps
   the bar readable when it floats over content of the same colour. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blue);
  border-bottom: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 2px 16px rgba(3,26,52,.28);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}

.brand { display: block; line-height: 0; flex: 0 0 auto; }
.brand img { height: 40px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.9rem); }

.nav a {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  color: var(--on-blue-soft);
  padding: .4rem 0;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color .15s ease, border-color .15s ease;
}
.nav a:hover { color: var(--white); border-bottom-color: var(--yellow-soft); }
.nav a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--yellow);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--on-blue-faint);
  border-radius: var(--radius);
  color: var(--white);
  padding: .5rem .8rem;
  font-weight: 700;
  font-size: var(--step--1);
  cursor: pointer;
}

/* Seven nav items plus the logo need more room than six did — the burger has to
   take over earlier or the last item wraps. */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--blue);
    border-bottom: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 12px 24px rgba(3,26,52,.3);
    padding: .5rem var(--gutter) 1.5rem;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a {
    padding: .85rem 0;
    border-bottom: 1px solid var(--on-blue-faint);
    font-size: var(--step-0);
  }
  .nav a[aria-current="page"] { border-bottom-color: var(--yellow); }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
/* Photographic hero.
   The image sits behind a semi-transparent EMPACT-blue scrim: opaque enough on
   the left, where the headline sits, to keep white text at AA/AAA contrast, and
   progressively lighter to the right so the photograph reads. Order of layers,
   top to bottom: directional scrim → blue wash → photograph. */
.hero {
  position: relative;
  isolation: isolate;
  background-color: var(--blue);          /* fallback before the image loads */
  padding-block: clamp(4rem, 10vw, 9rem) clamp(3.5rem, 8vw, 7rem);
  border-bottom: 1px solid var(--on-blue-faint);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(96deg,
      rgba(6,48,95,.95)   0%,
      rgba(9,60,119,.92)  50%,
      rgba(13,79,157,.82) 74%,
      rgba(13,79,157,.60) 100%),
    linear-gradient(to bottom,
      rgba(6,48,95,.45) 0%,
      rgba(6,48,95,0)   30%,
      rgba(6,48,95,.55) 100%),
    url("hero.jpg");
  background-image:
    linear-gradient(96deg,
      rgba(6,48,95,.95)   0%,
      rgba(9,60,119,.92)  50%,
      rgba(13,79,157,.82) 74%,
      rgba(13,79,157,.60) 100%),
    linear-gradient(to bottom,
      rgba(6,48,95,.45) 0%,
      rgba(6,48,95,0)   30%,
      rgba(6,48,95,.55) 100%),
    image-set(url("hero.avif") type("image/avif"),
              url("hero.jpg")  type("image/jpeg"));
  background-size: cover, cover, cover;
  background-position: center, center, 50% 42%;
  background-repeat: no-repeat;
}

.hero .wrap { position: relative; }
.hero h1 { max-width: 15ch; text-shadow: 0 1px 24px rgba(3,26,52,.35); }
.hero .standfirst { margin-top: 1.6rem; max-width: 40rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.4rem; }

/* On narrow screens the photograph is mostly hidden behind the text column,
   so darken it further rather than let it fight the headline. */
@media (max-width: 700px) {
  .hero::before {
    background-image:
      linear-gradient(180deg,
        rgba(6,48,95,.93) 0%,
        rgba(9,60,119,.90) 55%,
        rgba(13,79,157,.80) 100%),
      image-set(url("hero.avif") type("image/avif"),
                url("hero.jpg")  type("image/jpeg"));
    background-size: cover, cover;
    background-position: center, 50% 40%;
  }
}

/* Page header (inner pages) */
.page-head {
  background: var(--blue-deep);
  padding-block: clamp(2.75rem, 6vw, 5rem);
  border-bottom: 1px solid var(--on-blue-faint);
}
.page-head h1 { max-width: 18ch; }
.page-head .standfirst { margin-top: 1.4rem; max-width: 42rem; }

/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: .02em;
  text-decoration: none;
  padding: .85rem 1.6rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn--primary:hover { background: var(--yellow-soft); border-color: var(--yellow-soft); }
.btn--ghost { color: var(--white); border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.band--light .btn--ghost { color: var(--blue); border-color: rgba(13,79,157,.4); }
.band--light .btn--ghost:hover { border-color: var(--blue); }

/* Forward link that closes each page */
.forward {
  display: inline-flex;
  align-items: baseline;
  gap: .6rem;
  font-size: var(--step-1);
  font-weight: 700;
  text-decoration: none;
  color: var(--yellow);
  border-bottom: 2px solid transparent;
  padding-bottom: .2rem;
}
.forward:hover { border-bottom-color: var(--yellow); }
.forward .arw { transition: transform .18s ease; }
.forward:hover .arw { transform: translateX(5px); }
.band--light .forward { color: var(--blue); }
.band--light .forward:hover { border-bottom-color: var(--blue); }

.cta-line { margin-top: 2.5rem; }

/* --------------------------------------------------------------------------
   8. Editorial text sections
   -------------------------------------------------------------------------- */
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 0; }
.prose h3 { margin-top: 2.4rem; margin-bottom: .5rem; }
.prose p { margin-top: 1.1rem; }
.prose > *:first-child { margin-top: 0; }

.prose ul { margin: 1.2rem 0 0; padding-left: 1.1rem; }
.prose li { margin-top: .6rem; }
.prose li::marker { color: var(--yellow); }
.band--light .prose li::marker { color: var(--blue); }

.section-title { margin-bottom: 1.5rem; }

/* Jargon buster */
.jargon {
  margin-top: 2.2rem;
  padding: 1.4rem 1.6rem;
  border-left: 4px solid var(--yellow);
  background: rgba(255,255,255,.07);
  font-size: var(--step-0);
  max-width: var(--measure);
}
.band--light .jargon { background: rgba(13,79,157,.06); border-left-color: var(--blue); }
.jargon .label {
  display: block;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: .45rem;
}
.band--light .jargon .label { color: var(--blue); }

/* Pull quote */
.pullquote {
  font-size: var(--step-2);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.pullquote em { font-style: normal; color: var(--yellow); }

/* --------------------------------------------------------------------------
   9. Grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

/* Three-block explainer.
   Each block is headed by an icon rendered as a CSS mask, so the artwork picks
   up the brand colour from CSS rather than being baked into the SVG file.
   Swapping an icon = replacing the file in assets/icons/. */
.explain h3 {
  font-size: var(--step-1);
  margin-bottom: .7rem;
}

.explain-icon {
  display: block;
  width: 46px;
  height: 46px;
  margin-bottom: 1.1rem;
  background-color: var(--yellow);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: left center;
          mask-position: left center;
  -webkit-mask-size: contain;
          mask-size: contain;
}
.band--light .explain-icon { background-color: var(--blue); }

.explain-icon[data-icon="problem"] {
  -webkit-mask-image: url("icons/problem.svg");
          mask-image: url("icons/problem.svg");
}
.explain-icon[data-icon="answer"] {
  -webkit-mask-image: url("icons/answer.svg");
          mask-image: url("icons/answer.svg");
}
.explain-icon[data-icon="proof"] {
  -webkit-mask-image: url("icons/proof.svg");
          mask-image: url("icons/proof.svg");
}

/* Fallback: browsers without mask support would show a yellow square, which is
   worse than no icon at all. Hide the icon unless masking is available. */
@supports not ((-webkit-mask-image: url("x.svg")) or (mask-image: url("x.svg"))) {
  .explain-icon { display: none; }
}

/* Numbered steps */
.steps { counter-reset: step; display: grid; gap: 1.6rem; margin-top: 2.5rem; }
.step { display: grid; grid-template-columns: 3.4rem 1fr; gap: 1.2rem; align-items: start; }
.step .num {
  font-size: var(--step-2);
  font-weight: 900;
  line-height: 1;
  color: var(--yellow);
  letter-spacing: -0.04em;
}
.step h3 { font-size: var(--step-1); margin-bottom: .3rem; }
.step p { color: var(--on-blue-soft); }
.band--light .step p { color: var(--ink-mid); }
.band--light .step .num { color: var(--blue); }

/* Cards */
.card {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--on-blue-faint);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}
.card h3 { font-size: var(--step-1); margin-bottom: .55rem; }
.card p { color: var(--on-blue-soft); font-size: var(--step--1); line-height: 1.6; }
.band--light .card { background: var(--white); border-color: rgba(7,27,51,.12); }
.band--light .card p { color: var(--ink-mid); }

/* --------------------------------------------------------------------------
   Priority cards (homepage)

   Seven items is an awkward number for a grid. Rather than leave a gap, the
   first card — the overarching "most dangerous criminal networks" priority,
   which genuinely cuts across all the others — spans two columns. That gives
   4 + 4 across two rows and makes the hierarchy match the policy.
   -------------------------------------------------------------------------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(.75rem, 1.5vw, 1.15rem);
  margin-top: 2.75rem;
}
.tile--wide { grid-column: span 2; }

@media (max-width: 1000px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr; }
  .tile--wide { grid-column: span 1; }
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: 1.5rem 1.4rem 1.35rem;
  background: rgba(255,255,255,.055);
  border: 1px solid var(--on-blue-faint);
  border-radius: var(--radius);
  text-decoration: none;
  overflow: hidden;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

/* Accent bar along the top edge — a hairline at rest, full yellow on hover. */
.tile::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.tile:hover, .tile:focus-visible {
  background: rgba(255,255,255,.11);
  border-color: rgba(255,255,255,.3);
  transform: translateY(-3px);
}
.tile:hover::before, .tile:focus-visible::before { transform: scaleX(1); }

.tile-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  background-color: var(--yellow);
  -webkit-mask-repeat: no-repeat;  mask-repeat: no-repeat;
  -webkit-mask-position: left center;  mask-position: left center;
  -webkit-mask-size: contain;  mask-size: contain;
  transition: transform .2s ease;
}
.tile:hover .tile-icon { transform: scale(1.06); }
.tile--wide .tile-icon { width: 48px; height: 48px; }

.tile-title {
  font-weight: 700;
  font-size: var(--step-0);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--white);
}
.tile--wide .tile-title { font-size: var(--step-1); }

.tile-desc {
  font-size: var(--step--1);
  line-height: 1.45;
  color: var(--on-blue-soft);
  margin-top: -.35rem;
}

.tile-more {
  margin-top: auto;
  padding-top: .5rem;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--yellow);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .2s ease, transform .2s ease;
}
.tile:hover .tile-more, .tile:focus-visible .tile-more { opacity: 1; transform: none; }

/* Touch devices never hover, so show the affordance permanently. */
@media (hover: none) {
  .tile-more { opacity: 1; transform: none; }
  .tile::before { transform: scaleX(1); }
}

.tile-icon[data-icon="networks"]    { -webkit-mask-image: url("icons/networks.svg");    mask-image: url("icons/networks.svg"); }
.tile-icon[data-icon="online"]      { -webkit-mask-image: url("icons/online.svg");      mask-image: url("icons/online.svg"); }
.tile-icon[data-icon="drugs"]       { -webkit-mask-image: url("icons/drugs.svg");       mask-image: url("icons/drugs.svg"); }
.tile-icon[data-icon="trafficking"] { -webkit-mask-image: url("icons/trafficking.svg"); mask-image: url("icons/trafficking.svg"); }
.tile-icon[data-icon="firearms"]    { -webkit-mask-image: url("icons/firearms.svg");    mask-image: url("icons/firearms.svg"); }
.tile-icon[data-icon="environment"] { -webkit-mask-image: url("icons/environment.svg"); mask-image: url("icons/environment.svg"); }
.tile-icon[data-icon="economic"]    { -webkit-mask-image: url("icons/economic.svg");    mask-image: url("icons/economic.svg"); }

@supports not ((-webkit-mask-image: url("x.svg")) or (mask-image: url("x.svg"))) {
  .tile-icon { display: none; }
}

/* --------------------------------------------------------------------------
   10. Statistics
   -------------------------------------------------------------------------- */
.stats { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: 2.5rem; }
.stats--4 { grid-template-columns: repeat(4, 1fr); }
.stats--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .stats--4, .stats--5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .stats--4, .stats--5 { grid-template-columns: 1fr; } }

.stat { border-top: 3px solid var(--yellow); padding-top: 1rem; }
.stat .fig {
  display: block;
  font-size: var(--step-3);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.stat .lbl {
  display: block;
  margin-top: .6rem;
  font-size: var(--step--1);
  line-height: 1.4;
  color: var(--on-blue-soft);
}
.band--light .stat { border-top-color: var(--blue); }
.band--light .stat .fig { color: var(--blue); }
.band--light .stat .lbl { color: var(--ink-mid); }

.stat--hero .fig { font-size: var(--step-4); }

/* Secondary stat list */
.stat-list { margin-top: 2rem; display: grid; gap: 0; max-width: 46rem; }
.stat-row {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr;
  gap: 1.5rem;
  padding: .95rem 0;
  border-bottom: 1px solid var(--on-blue-faint);
  align-items: baseline;
}
.stat-row:first-child { border-top: 1px solid var(--on-blue-faint); }
.stat-row .fig {
  font-size: var(--step-1);
  font-weight: 800;
  color: var(--yellow);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-row .lbl { color: var(--on-blue-soft); font-size: var(--step-0); }
.band--light .stat-row { border-color: rgba(7,27,51,.14); }
.band--light .stat-row .fig { color: var(--blue); }
.band--light .stat-row .lbl { color: var(--ink-mid); }
@media (max-width: 560px) {
  .stat-row { grid-template-columns: 1fr; gap: .1rem; }
}

/* --------------------------------------------------------------------------
   11. Priority cards
   -------------------------------------------------------------------------- */
.priority {
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--on-blue-faint);
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  scroll-margin-top: 96px;
}
.priority:last-of-type { border-bottom: 1px solid var(--on-blue-faint); }
.priority .marker { display: flex; flex-direction: column; gap: .9rem; align-items: flex-start; }
.priority .idx {
  font-size: var(--step-3);
  font-weight: 900;
  line-height: .9;
  color: var(--yellow);
  letter-spacing: -0.05em;
}
.priority .p-icon {
  width: 52px;
  height: 52px;
  background-color: var(--yellow);
  opacity: .9;
  -webkit-mask-repeat: no-repeat;  mask-repeat: no-repeat;
  -webkit-mask-position: left center;  mask-position: left center;
  -webkit-mask-size: contain;  mask-size: contain;
}
.p-icon[data-icon="networks"]    { -webkit-mask-image: url("icons/networks.svg");    mask-image: url("icons/networks.svg"); }
.p-icon[data-icon="online"]      { -webkit-mask-image: url("icons/online.svg");      mask-image: url("icons/online.svg"); }
.p-icon[data-icon="drugs"]       { -webkit-mask-image: url("icons/drugs.svg");       mask-image: url("icons/drugs.svg"); }
.p-icon[data-icon="trafficking"] { -webkit-mask-image: url("icons/trafficking.svg"); mask-image: url("icons/trafficking.svg"); }
.p-icon[data-icon="firearms"]    { -webkit-mask-image: url("icons/firearms.svg");    mask-image: url("icons/firearms.svg"); }
.p-icon[data-icon="environment"] { -webkit-mask-image: url("icons/environment.svg"); mask-image: url("icons/environment.svg"); }
.p-icon[data-icon="economic"]    { -webkit-mask-image: url("icons/economic.svg");    mask-image: url("icons/economic.svg"); }
@supports not ((-webkit-mask-image: url("x.svg")) or (mask-image: url("x.svg"))) {
  .priority .p-icon { display: none; }
}
@media (max-width: 620px) {
  .priority .marker { flex-direction: row; align-items: center; gap: 1rem; }
}
.priority h2 { font-size: var(--step-2); margin-bottom: 1.2rem; }
.priority .sub {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: .4rem;
}
.priority .body { max-width: 46rem; }
.priority .body p + .sub { margin-top: 1.6rem; }
@media (max-width: 620px) {
  .priority { grid-template-columns: 1fr; gap: .8rem; }
}

/* --------------------------------------------------------------------------
   12. Case study
   -------------------------------------------------------------------------- */
.case {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--on-blue-faint);
  border-top: 4px solid var(--yellow);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.5rem);
}
.case h3 { font-size: var(--step-2); margin-bottom: 1rem; }
.case ul { margin-top: 1.2rem; padding-left: 1.1rem; }
.case li { margin-top: .5rem; }
.case li::marker { color: var(--yellow); }

/* --------------------------------------------------------------------------
   13. Video
   -------------------------------------------------------------------------- */
/* Poster frame. Served from our own domain rather than i.ytimg.com — hotlinking
   YouTube's thumbnail would contact Google before the visitor clicks play, which
   is exactly what the click-to-load facade exists to avoid. */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: var(--blue-deep);
  background-image: image-set(url("poster.webp") type("image/webp"),
                              url("poster.jpg")  type("image/jpeg"));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--on-blue-faint);
  border-radius: var(--radius);
  overflow: hidden;
}
/* Older browsers that don't understand image-set() still get the JPEG. */
@supports not (background-image: image-set(url("x.webp") type("image/webp"))) {
  .video-frame { background-image: url("poster.jpg"); }
}

/* The scrim lives on the button, not the frame, so it disappears by itself the
   moment the button is replaced by the iframe. */

/* Click-to-load facade button */
.video-launch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  border: 0;
  color: inherit;
  text-align: center;
  cursor: pointer;
  /* The poster has large white areas, so the scrim has to stay heavy enough for
     white text to hold AA anywhere over it — measured against a pure-white
     pixel, the worst case in this image. */
  background: radial-gradient(72% 72% at 50% 48%,
                rgba(6,48,95,.84) 0%,
                rgba(6,48,95,.72) 55%,
                rgba(6,48,95,.80) 100%);
  transition: background .25s ease;
}
.video-launch:hover,
.video-launch:focus-visible {
  background: radial-gradient(72% 72% at 50% 48%,
                rgba(6,48,95,.78) 0%,
                rgba(6,48,95,.66) 55%,
                rgba(6,48,95,.74) 100%);
}
.video-frame .play {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--yellow);
  display: grid; place-items: center;
  /* Keeps the yellow disc readable if it lands over a pale part of the poster. */
  box-shadow: 0 6px 28px rgba(3,26,52,.55);
  transition: transform .18s ease, box-shadow .18s ease;
}
.video-frame .play::after {
  content: "";
  border-left: 24px solid var(--ink);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 7px;
}
.video-launch:hover .play,
.video-launch:focus-visible .play {
  transform: scale(1.08);
  box-shadow: 0 0 0 12px rgba(255,210,0,.18);
}
.video-frame .video-label {
  font-size: var(--step-2);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.video-frame .note {
  color: var(--on-blue-soft);
  font-size: var(--step--1);
  max-width: 34rem;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-fallback {
  margin-top: .9rem;
  font-size: var(--step--1);
  color: var(--on-blue-soft);
}
.video-fallback a { color: var(--yellow); }

details.transcript {
  margin-top: 1.2rem;
  border-top: 1px solid var(--on-blue-faint);
  padding-top: 1.1rem;
}
details.transcript summary {
  cursor: pointer;
  font-weight: 700;
  font-size: var(--step-0);
  list-style: none;
  display: flex; align-items: center; gap: .6rem;
}
details.transcript summary::-webkit-details-marker { display: none; }
details.transcript summary::before { content: "+"; color: var(--yellow); font-weight: 900; font-size: 1.3em; line-height: 1; }
details.transcript[open] summary::before { content: "–"; }
details.transcript .body { margin-top: 1.2rem; max-width: var(--measure); color: var(--on-blue-soft); }
details.transcript .body p { margin-top: .9rem; }

/* --------------------------------------------------------------------------
   14. News webpart
   -------------------------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 700px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .5rem; }
}
.filter {
  background: transparent;
  border: 1px solid rgba(255,255,255,.35);
  color: var(--on-blue-soft);
  border-radius: 999px;
  padding: .45rem 1rem;
  font-size: var(--step--1);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all .15s ease;
}
.filter:hover { border-color: var(--white); color: var(--white); }
.filter[aria-pressed="true"] {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
  font-weight: 700;
}

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .news-grid { grid-template-columns: 1fr; } }

.news-card {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--on-blue-faint);
  border-radius: var(--radius);
  overflow: hidden;
  transition: background .15s ease, transform .15s ease;
}
.news-card:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.news-card .thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--blue-light), var(--blue-deep));
  display: grid; place-items: center;
  overflow: hidden;
}
.news-card .thumb span {
  font-size: var(--step--1); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.5);
}

/* Photograph variant. A slight desaturation and a blue multiply keep press
   photos from clashing with the brand palette; hovering restores full colour. */
.news-card .thumb--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.85) contrast(1.02);
  transition: transform .45s cubic-bezier(.2,0,.2,1), filter .3s ease;
}
.news-card .thumb--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,48,95,.10) 0%, rgba(6,48,95,.45) 100%);
  pointer-events: none;
  transition: opacity .3s ease;
}
.news-card:hover .thumb--photo img { transform: scale(1.04); filter: none; }
.news-card:hover .thumb--photo::after { opacity: .55; }
@media (prefers-reduced-motion: reduce) {
  .news-card:hover .thumb--photo img { transform: none; }
}
.news-card .content { padding: 1.25rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.news-card .meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem;
  font-size: var(--step--1); color: var(--on-blue-soft); margin-bottom: .7rem;
}
.news-card .tag {
  background: var(--yellow); color: var(--ink);
  font-weight: 700; font-size: .74rem; letter-spacing: .04em;
  padding: .13rem .5rem; border-radius: 2px; text-transform: uppercase;
}
.news-card h3 { font-size: var(--step-0); font-weight: 700; line-height: 1.3; margin-bottom: .55rem; }
.news-card h3 a { text-decoration: none; }
.news-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--yellow); }
.news-card p { font-size: var(--step--1); color: var(--on-blue-soft); line-height: 1.55; }
.news-card .source {
  margin-top: auto; padding-top: 1rem;
  font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
}

/* States */
.skeleton .thumb, .skeleton .bar {
  background: rgba(255,255,255,.09);
  animation: pulse 1.4s ease-in-out infinite;
}
.skeleton .bar { height: .8rem; border-radius: 2px; margin-bottom: .6rem; }
.skeleton .bar.short { width: 55%; }
@keyframes pulse { 0%,100% { opacity: .5 } 50% { opacity: 1 } }

.state {
  border: 1px dashed rgba(255,255,255,.35);
  border-radius: var(--radius);
  padding: 2.5rem 1.75rem;
  text-align: center;
}
.state p { color: var(--on-blue-soft); max-width: 34rem; margin-inline: auto; }
.state .btn { margin-top: 1.4rem; }
[hidden] { display: none !important; }

.feed-note {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--on-blue-faint);
  font-size: var(--step--1);
  color: var(--on-blue-soft);
  max-width: var(--measure);
}
.feed-note strong { color: var(--white); }

/* --------------------------------------------------------------------------
   15. Cycle diagram

   A circle, because the whole point is that EMPACT loops — four boxes in a row
   said the opposite. The SVG is decorative; the <ol> beside it is the content.
   -------------------------------------------------------------------------- */
.cycle {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  margin-top: 2.5rem;
}
@media (max-width: 860px) {
  .cycle { grid-template-columns: 1fr; gap: 2.5rem; justify-items: center; }
  .cycle-visual { max-width: 300px; }
}

.cycle-visual { width: 100%; }
.cycle-svg { width: 100%; height: auto; overflow: visible; }

.cycle-track {
  fill: none;
  stroke: rgba(255,255,255,.18);
  stroke-width: 2;
}

/* Drawn with stroke-dashoffset. Rotated so it starts at 12 o'clock. */
.cycle-arc {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 4;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 160px 160px;
  stroke-dasharray: 804.25;      /* 2πr, r = 128 */
  stroke-dashoffset: 804.25;     /* fully hidden until animated */
}
/* Without JS (or with reduced motion) the ring is simply complete. */
.no-cycle-anim .cycle-arc { stroke-dashoffset: 0; }

.cycle-node circle {
  fill: var(--blue-deep);
  stroke: rgba(255,255,255,.3);
  stroke-width: 2;
  transition: fill .35s ease, stroke .35s ease;
}
.band--deep .cycle-node circle { fill: var(--blue); }
.cycle-node text {
  fill: var(--on-blue-soft);
  font-size: 24px;
  font-weight: 800;
  text-anchor: middle;
  dominant-baseline: central;
  transition: fill .35s ease;
}
.cycle-node.is-on circle { fill: var(--yellow); stroke: var(--yellow); }
.cycle-node.is-on text   { fill: var(--ink); }

.cycle-centre {
  fill: var(--white);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-anchor: middle;
}
.cycle-centre--sub {
  fill: var(--on-blue-soft);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .04em;
}

.cycle-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .25rem;
  width: 100%;
}
.cycle-step {
  padding: 1rem 0 1rem 1.25rem;
  border-left: 3px solid rgba(255,255,255,.18);
  transition: border-color .35s ease, opacity .35s ease;
  opacity: .55;
}
.cycle-step.is-on { border-left-color: var(--yellow); opacity: 1; }
/* Everything readable when the animation can't run. */
.no-cycle-anim .cycle-step { opacity: 1; border-left-color: var(--yellow); }

.cycle-step .n {
  font-size: var(--step--1); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--yellow); display: block; margin-bottom: .35rem;
}
.cycle-step h3 { font-size: var(--step-1); margin-bottom: .3rem; }
.cycle-step p { font-size: var(--step--1); color: var(--on-blue-soft); line-height: 1.55; }

/* Rhythm table */
.rhythm { width: 100%; border-collapse: collapse; margin-top: 2.5rem; text-align: left; }
.rhythm th, .rhythm td {
  padding: 1rem 1.1rem 1rem 0;
  border-bottom: 1px solid var(--on-blue-faint);
  vertical-align: top;
  font-size: var(--step--1);
}
.rhythm th {
  font-weight: 700; color: var(--yellow); text-transform: uppercase;
  letter-spacing: .1em; white-space: nowrap;
}
.rhythm td { color: var(--on-blue-soft); }
@media (max-width: 700px) {
  .rhythm, .rhythm tbody, .rhythm tr, .rhythm th, .rhythm td { display: block; width: 100%; }
  .rhythm th { border: 0; padding-bottom: .2rem; }
  .rhythm tr { padding-bottom: .6rem; }
}

/* Hierarchy diagram */
.hierarchy { margin-top: 2.5rem; max-width: 46rem; display: grid; gap: 0; }
.hierarchy li {
  list-style: none;
  padding: 1.1rem 0 1.1rem 1.6rem;
  border-left: 3px solid var(--yellow);
  position: relative;
}
.hierarchy li + li { border-top: 1px solid var(--on-blue-faint); }
.hierarchy strong { display: block; font-size: var(--step-1); }
.hierarchy span { color: var(--on-blue-soft); }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--blue-deep);
  border-top: 1px solid var(--on-blue-faint);
  padding-block: clamp(3rem, 5vw, 4.5rem) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(1.75rem, 3vw, 3rem);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h2 {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--yellow);
  margin-bottom: 1rem;
}
.site-footer p, .site-footer li { font-size: var(--step--1); color: var(--on-blue-soft); line-height: 1.6; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--yellow); }
.footer-logo img { height: 44px; width: auto; margin-bottom: 1.2rem; }


/* --------------------------------------------------------------------------
   17. Scroll reveals

   Blocks fade up 10px as they enter the viewport; items inside a grid follow
   each other at 60ms intervals.

   The hiding rule is scoped to .reveal-on, a class the script adds to <html>
   before first paint. If the script never runs — or the visitor prefers reduced
   motion — the class is absent and nothing is ever hidden.
   -------------------------------------------------------------------------- */
.reveal-on [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
}
.reveal-on [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity .55s ease, transform .55s cubic-bezier(.2,0,.2,1);
  transition-delay: calc(var(--reveal-i, 0) * 60ms);
}

/* --------------------------------------------------------------------------
   18. Utilities
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.center { text-align: center; }
