@font-face {
  font-family: Barlow;
  src: url(/assets/police-doctrine/display.ttf);
  font-display: swap;
}
@font-face {
  font-family: Source;
  src: url(/assets/police-doctrine/body.ttf);
  font-display: swap;
}
:root {
  color-scheme: dark;
  --accent: #58cef8;
  --ink: #080d11;
  --panel: #131d23;
  --line: #313f48;
  --white: #e2ebf0;
  --muted: #a7b7c0;
  --mono: 'Courier New', monospace;
  --display: Barlow, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', 'Noto Sans SC', 'Arial Narrow', sans-serif;
  --body: Source, system-ui, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', 'Noto Sans SC', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { overflow-x: clip; }
body {
  margin: 0;
  color: var(--white);
  background: #0c1419;
  font: 17px/1.5 var(--body);
  overflow-x: clip;
}
a, button { color: inherit; }
a { text-decoration: none; }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible {
  outline: 3px solid #77d9ff;
  outline-offset: 4px;
}
.skip {
  position: absolute;
  left: 1em;
  top: -5em;
  z-index: 10;
  background: #111;
  padding: 1em;
}
.skip:focus { top: 1em; }

header, footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  gap: 18px;
}
header {
  min-height: 74px;
  padding-block: 10px;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}
.header-left {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.studio-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 700 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
  white-space: nowrap;
  transition: border-color .2s, color .2s;
}
.studio-back:hover {
  border-color: var(--accent);
  color: var(--white);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 700 23px var(--display);
  letter-spacing: .015em;
  white-space: nowrap;
}
.mark {
  width: 37px;
  height: 37px;
  object-fit: contain;
  border-radius: 5px;
  flex-shrink: 0;
}
nav {
  display: flex;
  gap: 28px;
}
nav a, .navbutton, .actions > *, .steam-btn {
  text-transform: uppercase;
  letter-spacing: .09em;
  font: 700 13px var(--mono);
}
nav a {
  padding: 10px 0;
  color: var(--muted);
  white-space: nowrap;
}
nav a[aria-current] { color: var(--accent); }
.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: #0d151b;
  border-radius: 4px;
  overflow: hidden;
}
.lang-switch a {
  padding: 7px 9px;
  font: 700 11px var(--mono);
  letter-spacing: .06em;
  color: var(--muted);
  border-right: 1px solid #243038;
  white-space: nowrap;
}
.lang-switch a:last-child { border-right: 0; }
.lang-switch a:hover { color: var(--white); background: #16222a; }
.lang-switch a[aria-current="page"] {
  background: var(--accent);
  color: #011219;
}

.navbutton, .secondary, .primary, .steam-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.navbutton {
  border: 1px solid #6f7166;
  background: none;
  padding: 10px 15px;
  white-space: nowrap;
}
.play {
  height: 0;
  width: 0;
  border-left: 8px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.steam-mark {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.steam-wordmark {
  height: 36px;
  width: auto;
  display: block;
}

.hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  background: var(--ink);
  container-type: inline-size;
  min-height: clamp(545px, 72vh, 790px);
  display: flex;
  align-items: center;
}
.stage {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  container-type: size;
}
.art {
  position: absolute;
  left: 0;
  top: 50%;
  translate: 0 -50%;
  width: max(100%, 179.1045cqh);
  aspect-ratio: 1920/1072;
  background: var(--ink);
}
.van-scene {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 36%, #060d1266 55%, #060c12dc 76%),
    linear-gradient(0deg, #080d11cf, transparent 19%);
}
.beacon {
  position: absolute;
  pointer-events: none;
  width: 18%;
  aspect-ratio: 1;
  translate: -50% -50%;
  mix-blend-mode: screen;
  animation: patrol .625s linear infinite;
}
.red {
  left: 24.5%;
  top: 35.5%;
  background: radial-gradient(ellipse, #fff1ce 0%, #ff4c29 3%, #fc281a88 10%, #ed352c2e 32%, transparent 68%);
}
.blue {
  left: 31.5%;
  top: 35.2%;
  animation-delay: -.3125s;
  background: radial-gradient(ellipse, #eefaff 0%, #66b9ff 3%, #2674ff99 10%, #276bea35 32%, transparent 68%);
}
@keyframes patrol {
  0%, 46%, 100% { opacity: .13; }
  58%, 86% { opacity: .95; }
}
html[data-steady] .beacon {
  animation: none;
  opacity: .32;
}

.hero-inner {
  margin-left: 53%;
  width: 44%;
  max-width: 630px;
  padding: 50px 3vw 74px 0;
}
.eyebrow, .herofoot, .card span, .stats span {
  font: 700 12px var(--mono);
  text-transform: uppercase;
  letter-spacing: .14em;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
}
.eyebrow i {
  display: inline-block;
  width: 27px;
  height: 2px;
  background: currentColor;
  flex-shrink: 0;
}
h1, h2, .card strong, .stats strong {
  font-family: var(--display);
  font-weight: 700;
}
h1 {
  margin: 22px 0 18px;
  line-height: 1;
}
h1 img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 540px;
}
.hero p {
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.45;
  color: var(--white);
  margin: 0;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.actions > * {
  padding: 15px 22px;
}
.primary, .steam-btn {
  background: #41c8f6;
  border: 1px solid #41c8f6;
  color: #011219;
  transition: background .2s, border-color .2s, transform .15s;
}
.secondary {
  background: #0d151bd9;
  border: 1px solid #a09f93;
  color: var(--white);
}
.primary:hover, .steam-btn:hover {
  background: #77d9ff;
  border-color: #77d9ff;
  transform: translateY(-1px);
}
.navbutton:hover, .secondary:hover {
  border-color: var(--accent);
}

.herofoot {
  position: absolute;
  bottom: 20px;
  left: 6vw;
  right: 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #d2dfe6;
}
.herofoot b {
  color: var(--accent);
  margin: 0 6px;
}
#lights {
  font: inherit;
  text-transform: uppercase;
  letter-spacing: inherit;
  display: flex;
  gap: 9px;
  align-items: center;
  border: 1px solid #526270;
  background: #080e14bf;
  padding: 8px 12px;
  color: #d2dfe6;
}
#lights::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}
#lights[aria-pressed=false]::before { background: #89959d; }

.section { padding: 60px 6vw 68px; }
h2 {
  font-size: clamp(40px, 5vw, 86px);
  line-height: .98;
  letter-spacing: -.03em;
  margin: 14px 0;
}
h2 span { color: var(--accent); }
.intro, .campaign p {
  color: var(--muted);
  margin: 12px 0 27px;
  max-width: 65ch;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.card {
  position: relative;
  overflow: hidden;
  text-align: left;
  padding: 0 0 18px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3/1;
  object-fit: cover;
  transition: filter .35s;
}
.card:hover img { filter: brightness(1.22); }
.card:hover { border-color: var(--accent); }
.card span, .card strong {
  display: block;
  margin-left: 18px;
  margin-right: 42px;
}
.card span {
  color: var(--accent);
  margin-top: 17px;
}
.card strong {
  font-size: clamp(22px, 2.2vw, 38px);
  text-transform: uppercase;
  line-height: 1.08;
}
.card b {
  position: absolute;
  right: 17px;
  bottom: 19px;
  font: 24px var(--mono);
  color: var(--accent);
}

.campaign {
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(6, 13, 18, .95), rgba(6, 13, 18, .76) 52%, rgba(6, 13, 18, .58)),
              url(/assets/police-doctrine/hero.webp) center 44%/cover;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 6vw;
}
.campaign p, .campaign .stats span { color: #dee7eb; }
.campaign p { max-width: 54ch; margin-bottom: 0; }
.stats {
  display: flex;
  justify-content: space-around;
  border-block: 1px solid #56574d;
  padding: 23px 0;
  gap: 16px;
}
.stats strong, .stats span { display: block; }
.stats strong {
  color: var(--accent);
  font-size: clamp(54px, 6.6vw, 100px);
  line-height: 1.1;
}

.steam-callout {
  background: linear-gradient(135deg, #0b141c 0%, #152432 55%, #0d1720 100%);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.35fr auto;
  align-items: center;
  gap: 4vw;
}
.steam-callout h2 {
  font-size: clamp(34px, 4.1vw, 66px);
  margin: 14px 0 12px;
}
.steam-callout p {
  color: #cddbe2;
  margin: 0;
  max-width: 60ch;
}
.steam-callout-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.steam-badge-box {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  background: #171a21;
  border: 1px solid #3d4f5d;
  border-radius: 4px;
}
.steam-btn {
  padding: 17px 26px;
  font-size: 14px;
  white-space: nowrap;
}
.steam-meta {
  font: 700 12px var(--mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
}

footer {
  padding-block: 27px;
  gap: 16px;
  color: #b8b9ad;
  font-size: 14px;
  background: var(--ink);
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.footer-links a:hover { color: var(--accent); }

dialog {
  width: min(900px, 94vw);
  max-height: 92dvh;
  background: #19242c;
  border: 1px solid #686b5f;
  color: var(--white);
  padding: 0;
}
dialog::backdrop {
  background: #080a08da;
  backdrop-filter: blur(7px);
}
.modalhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 12px;
}
.modalhead h2 {
  font-size: 27px;
  text-transform: uppercase;
  margin: 0;
}
.close {
  font-size: 28px;
  color: #fff;
  border: 0;
  background: none;
  min-width: 40px;
  min-height: 40px;
}
.viewer-image, video {
  display: block;
  width: 100%;
  max-height: 60dvh;
  object-fit: contain;
  background: #101110;
}
.note {
  padding: 16px 21px;
  margin: 0;
  color: #d3d2ca;
}
.filecontrols {
  display: flex;
  justify-content: space-between;
  padding: 0 20px 19px;
  gap: 12px;
}
.filecontrols button {
  background: transparent;
  border: 1px solid #596052;
  padding: 8px 14px;
}
.lenis.lenis-smooth { scroll-behavior: auto!important; }
.lenis.lenis-stopped { overflow: hidden; }

@media (max-width: 1020px) {
  .hero-inner {
    margin-left: 46%;
    width: 51%;
  }
  .steam-callout {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 760px) {
  header {
    height: auto;
    min-height: 85px;
    padding-block: 12px 10px;
    row-gap: 10px;
  }
  .brand { font-size: 19px; }
  .navbutton { font-size: 11px; padding: 8px 10px; }
  nav {
    order: 3;
    width: 100%;
    gap: 18px;
    flex-wrap: wrap;
  }
  nav a { font-size: 12px; padding: 5px 0; }
  .header-actions {
    order: 4;
    width: 100%;
    justify-content: space-between;
  }
  .lang-switch { flex-wrap: wrap; }
  .hero {
    min-height: 0;
    display: block;
    padding-top: clamp(180px, 51vw, 350px);
  }
  .stage {
    height: clamp(240px, 66vw, 435px);
    bottom: auto;
  }
  .stage::after {
    background: linear-gradient(0deg, var(--ink), transparent 35%);
  }
  .hero-inner {
    width: auto;
    margin: 0;
    padding: 18px 6vw 76px;
  }
  h1 img { max-width: min(410px, 77vw); }
  .hero h1 { margin: 13px 0 17px; }
  .herofoot { bottom: 16px; font-size: 10px; flex-wrap: wrap; }
  .section { padding-block: 43px; }
  .cards, .campaign { grid-template-columns: 1fr; }
  .card img { aspect-ratio: 3/1; }
  .card strong { font-size: 26px; }
  .actions > * { font-size: 12px; padding: 14px 16px; }
  .campaign { gap: 28px; background-position: 65% center; }
  .steam-btn { width: 100%; white-space: normal; text-align: center; }
  footer { flex-wrap: wrap; }
  footer .brand { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none!important;
    scroll-behavior: auto!important;
  }
  .beacon { animation: none; opacity: .32; }
}
