@import url("https://fonts.googleapis.com/css2?family=Coda:wght@400;800&family=Saira+Condensed:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&display=swap");

:root {
  --night: #020605;
  --night-soft: #07110d;
  --green: #91b69b;
  --green-bright: #b8d0bc;
  --green-dark: #315b42;
  --paper: #d8d0ba;
  --paper-light: #e4decf;
  --ink: #141714;
  --red: #b33d2d;
  --red-light: #e26a56;
  --white: #edf0e9;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --condensed: "Saira Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--night);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--white);
  background: var(--night);
  font-family: var(--serif);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    linear-gradient(rgba(1, 7, 5, 0.08), rgba(1, 7, 5, 0.44)),
    url("../assets/delta-green-map-background-web.webp") center / cover no-repeat;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  opacity: 0.16;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 5px,
      rgba(204, 226, 207, 0.04) 6px
    ),
    radial-gradient(circle at 50% 43%, transparent 0 24%, rgba(0, 3, 2, 0.58) 100%);
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

p,
blockquote,
dd {
  text-wrap: pretty;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--paper-light);
  font: 700 0.75rem/1 var(--mono);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.case-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 58px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(145, 182, 155, 0.4);
  background: rgba(1, 6, 4, 0.9);
  box-shadow: 0 7px 22px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  font: 700 0.62rem/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-header p {
  justify-self: end;
  margin: 0;
  color: rgba(237, 240, 233, 0.52);
}

.atlas-link {
  width: max-content;
  color: rgba(237, 240, 233, 0.75);
  text-decoration: none;
}

.atlas-link:hover,
.atlas-link:focus-visible {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.case-identity {
  display: flex;
  gap: 9px;
  align-items: center;
}

.case-mark {
  color: var(--red-light);
  font-size: 0.92rem;
}

.case-identity h1 {
  margin: 0;
  color: var(--green-bright);
  font: 800 0.72rem/1 var(--mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.operation-map {
  position: relative;
  z-index: 1;
  width: min(1400px, calc(100% - 44px));
  min-height: 2790px;
  margin: 0 auto;
  isolation: isolate;
}

.operation-map::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(
      112deg,
      transparent 0 13%,
      rgba(113, 157, 124, 0.07) 13.1% 13.25%,
      transparent 13.4% 100%
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 178px,
      rgba(145, 182, 155, 0.045) 179px
    );
}

.route-trace {
  position: absolute;
  top: 360px;
  left: 15%;
  z-index: -1;
  width: 70%;
  height: 2180px;
  overflow: visible;
}

.route-shadow,
.route-line {
  fill: none;
}

.route-shadow {
  stroke: rgba(0, 0, 0, 0.72);
  stroke-width: 11;
}

.route-line {
  stroke: rgba(209, 225, 209, 0.53);
  stroke-width: 2;
  stroke-dasharray: 8 10;
}

.route-points rect,
.route-points circle {
  fill: var(--night-soft);
  stroke: rgba(229, 237, 228, 0.82);
  stroke-width: 3;
}

.route-points circle {
  stroke: var(--red-light);
}

.background-artifacts {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: visible;
  pointer-events: none;
}

.artifact {
  position: absolute;
  display: block;
  height: auto;
  opacity: 0.72;
  filter:
    saturate(0.72)
    sepia(0.14)
    contrast(1.08)
    drop-shadow(12px 18px 20px rgba(0, 0, 0, 0.7));
}

.artifact-dossier {
  top: 390px;
  right: auto;
  left: 620px;
  width: 300px;
  transform: rotate(3deg);
}

.artifact-surveillance {
  top: 700px;
  left: 580px;
  width: 330px;
  opacity: 0.72;
  transform: rotate(-3deg);
}

.artifact-memo {
  top: 930px;
  right: auto;
  left: 620px;
  width: 150px;
  transform: rotate(5deg);
}

.artifact-map {
  top: 1450px;
  left: 635px;
  width: 290px;
  opacity: 0.72;
  transform: rotate(-4deg);
}

.artifact-envelope {
  top: 2050px;
  right: auto;
  left: 460px;
  width: 310px;
  transform: rotate(5deg);
}

.opening {
  position: absolute;
  top: 68px;
  left: 46px;
  z-index: 3;
  width: min(720px, 60vw);
  padding: 30px 32px;
  border-left: 4px solid var(--red);
  background: linear-gradient(
    90deg,
    rgba(1, 7, 5, 0.95),
    rgba(1, 7, 5, 0.68) 74%,
    transparent
  );
}

.operation-profile-card {
  --paper-texture-position: 72% 36%;
  position: absolute;
  top: 60px;
  right: 46px;
  z-index: 4;
  width: 390px;
  padding: 24px 26px 27px;
  color: var(--ink);
  background-color: #d3cab2;
  background-image:
    linear-gradient(rgba(225, 217, 198, 0.23), rgba(195, 181, 151, 0.1)),
    radial-gradient(
      circle at 86% 18%,
      rgba(92, 64, 34, 0.18) 0 2%,
      rgba(92, 64, 34, 0.06) 8%,
      transparent 20%
    ),
    url("../assets/delta-green-card-paper-texture.webp");
  background-position:
    center,
    center,
    var(--paper-texture-position);
  background-size:
    100% 100%,
    100% 100%,
    cover;
  background-repeat: no-repeat;
  box-shadow: 16px 20px 36px rgba(0, 0, 0, 0.52);
  clip-path: polygon(
    0.5% 1%,
    24% 0,
    57% 0.8%,
    99.5% 0,
    100% 37%,
    99.2% 79%,
    100% 99%,
    64% 99.3%,
    29% 100%,
    0 98.5%,
    0.6% 56%
  );
  transform: rotate(0.6deg);
}

.operation-profile-card::before {
  position: absolute;
  top: 19px;
  right: 22px;
  width: 39px;
  height: 9px;
  content: "";
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.18;
  transform: rotate(4deg);
}

.operation-profile-card h2 {
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 6px solid var(--ink);
  font: 800 1.55rem/1 var(--condensed);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.operation-profile-card .file-code {
  margin-bottom: 10px;
}

.operation-readout {
  display: grid;
  gap: 7px;
  margin: 0;
}

.operation-readout div {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
}

.operation-readout dt {
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  padding: 11px 3px 7px;
  border-bottom: 2px solid rgba(20, 23, 20, 0.58);
  color: var(--ink);
  font: 800 0.61rem/1.2 var(--mono);
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.operation-readout dd {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  border: 2px solid rgba(20, 23, 20, 0.72);
  background: rgba(235, 229, 212, 0.26);
  font: 800 1.28rem/1 var(--condensed);
}

.overline {
  margin: 0 0 20px;
  color: var(--green-bright);
  font: 800 0.65rem/1.5 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.opening h2 {
  max-width: 670px;
  margin: 0;
  color: var(--white);
  font: 700 clamp(3.5rem, 5.6vw, 5.1rem)/0.98 var(--serif);
  letter-spacing: -0.047em;
}

.hook {
  max-width: 680px;
  margin: 24px 0 15px;
  color: #f0eee7;
  font: 600 1.12rem/1.55 var(--serif);
}

.tags {
  margin: 0;
  color: rgba(184, 208, 188, 0.72);
  font: 700 0.62rem/1.65 var(--mono);
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.map-file {
  position: absolute;
  z-index: 3;
  width: 510px;
  padding: 29px 31px 32px;
  box-shadow: 16px 20px 36px rgba(0, 0, 0, 0.46);
}

.map-file::before {
  position: absolute;
  top: 20px;
  right: 23px;
  width: 37px;
  height: 9px;
  content: "";
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.18;
  transform: rotate(3deg);
}

.paper-file {
  --paper-texture-position: 18% 42%;
  --paper-stain-position: 84% 14%;
  color: var(--ink);
  background-color: #d3cab2;
  background-image:
    linear-gradient(rgba(222, 214, 195, 0.27), rgba(205, 194, 168, 0.13)),
    radial-gradient(
      circle at var(--paper-stain-position),
      rgba(92, 64, 34, 0.2) 0 2%,
      rgba(92, 64, 34, 0.08) 7%,
      transparent 19%
    ),
    linear-gradient(90deg, rgba(68, 56, 36, 0.14), transparent 18%),
    repeating-linear-gradient(
      0deg,
      rgba(51, 46, 35, 0.04) 0 1px,
      transparent 1px 5px
    ),
    url("../assets/delta-green-card-paper-texture.webp");
  background-position:
    center,
    center,
    center,
    center,
    var(--paper-texture-position);
  background-size:
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    cover;
  background-repeat: no-repeat;
  clip-path: polygon(
    0.7% 0.5%,
    31% 0,
    65% 1%,
    99.4% 0,
    100% 39%,
    99.3% 75%,
    100% 99%,
    63% 99.6%,
    31% 100%,
    0 98.8%,
    0.6% 61%
  );
}

.acetate-file {
  color: #e0ebe1;
  border: 1px solid rgba(145, 182, 155, 0.64);
  background:
    linear-gradient(rgba(8, 25, 18, 0.94), rgba(4, 16, 11, 0.96)),
    rgba(8, 27, 18, 0.94);
  box-shadow:
    inset 0 0 32px rgba(103, 148, 113, 0.08),
    16px 20px 36px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(10px);
}

.transcript-file {
  --paper-texture-position: 78% 64%;
  --paper-stain-position: 14% 77%;
  color: var(--ink);
  background-color: #d8d0bb;
  background-image:
    linear-gradient(rgba(225, 218, 201, 0.25), rgba(205, 195, 173, 0.1)),
    radial-gradient(
      ellipse at var(--paper-stain-position),
      rgba(88, 61, 31, 0.19) 0 2%,
      rgba(88, 61, 31, 0.07) 8%,
      transparent 22%
    ),
    linear-gradient(90deg, transparent 55%, rgba(52, 44, 31, 0.11)),
    repeating-linear-gradient(
      0deg,
      transparent 0 25px,
      rgba(58, 55, 45, 0.13) 26px
    ),
    url("../assets/delta-green-card-paper-texture.webp");
  background-position:
    center,
    center,
    center,
    center,
    var(--paper-texture-position);
  background-size:
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    cover;
  background-repeat: no-repeat;
  transform: rotate(-0.45deg);
}

.warning-file {
  color: #e8e5dc;
  border: 1px solid rgba(203, 72, 54, 0.75);
  background:
    linear-gradient(135deg, rgba(155, 47, 36, 0.22), transparent 40%),
    rgba(13, 19, 16, 0.97);
}

.file-code {
  display: block;
  margin-bottom: 16px;
  color: var(--green-dark);
  font: 800 0.58rem/1.4 var(--mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.acetate-file .file-code {
  color: var(--green);
}

.warning-file .file-code {
  color: var(--red-light);
}

.map-file h2,
.map-file h3 {
  font-family: var(--condensed);
  text-transform: uppercase;
}

.map-file h2 {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 7px solid currentColor;
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: -0.025em;
}

.map-file h3 {
  margin: 0 0 11px;
  color: var(--green-dark);
  font-size: 1rem;
}

.acetate-file h3 {
  color: var(--green);
}

.warning-file h2 {
  border-color: var(--red);
}

.warning-file h3 {
  color: var(--red-light);
}

.map-file p,
.map-file dd {
  margin: 0;
  font: 400 0.94rem/1.66 var(--serif);
}

.subfile {
  margin-top: 23px;
  padding-top: 19px;
  border-top: 1px dashed rgba(20, 23, 20, 0.38);
}

.acetate-file .subfile {
  border-color: rgba(145, 182, 155, 0.34);
}

.file-world {
  --paper-texture-position: 18% 42%;
  --paper-stain-position: 82% 15%;
  top: 530px;
  left: 48px;
  transform: rotate(-0.55deg);
}

.file-agents {
  top: 910px;
  right: 54px;
  transform: rotate(0.35deg);
}

.file-method {
  --paper-texture-position: 78% 64%;
  --paper-stain-position: 15% 78%;
  top: 1360px;
  left: 68px;
  width: 540px;
}

.file-profile {
  --paper-texture-position: 45% 20%;
  --paper-stain-position: 91% 62%;
  top: 1870px;
  right: 68px;
  width: 520px;
  transform: rotate(0.35deg);
}

.file-warning {
  top: 2350px;
  left: 420px;
  width: 570px;
}

.file-profile dl {
  margin: 0;
}

.file-profile dl div {
  padding: 13px 0;
  border-bottom: 1px dashed rgba(20, 23, 20, 0.31);
}

.file-profile dl div:last-child {
  border-bottom: 0;
}

.file-profile dt {
  color: var(--green-dark);
  font: 800 0.68rem/1.25 var(--mono);
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.file-profile dd {
  margin: 6px 0 0;
}

.evidence {
  position: absolute;
  z-index: 2;
  display: block;
  margin: 0;
  padding: 10px 10px 30px;
  border: 0;
  color: var(--ink);
  background-color: #c9c1ae;
  background-image:
    linear-gradient(rgba(214, 206, 185, 0.16), rgba(151, 138, 109, 0.11)),
    url("../assets/delta-green-card-paper-texture.webp");
  background-position:
    center,
    70% 56%;
  background-size:
    100% 100%,
    cover;
  background-repeat: no-repeat;
  box-shadow: 13px 18px 34px rgba(0, 0, 0, 0.55);
  cursor: zoom-in;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.evidence:hover,
.evidence:focus-visible {
  z-index: 7;
  box-shadow: 18px 25px 44px rgba(0, 0, 0, 0.72);
  transform: translateY(-5px) rotate(0);
  outline: 2px solid var(--green-bright);
  outline-offset: 4px;
}

.evidence img {
  display: block;
  width: 100%;
  height: 235px;
  object-fit: cover;
  filter: saturate(0.63) contrast(1.07);
}

.evidence span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  overflow: hidden;
  font: 800 0.54rem/1 var(--mono);
  letter-spacing: 0.07em;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.evidence-incursion {
  top: 455px;
  right: 45px;
  width: 400px;
  transform: rotate(1.1deg);
}

.evidence-aftermath {
  top: 1450px;
  right: 84px;
  width: 365px;
  transform: rotate(1.45deg);
}

.evidence-cover {
  top: 1840px;
  left: 95px;
  width: 240px;
  padding-bottom: 31px;
  transform: rotate(-1.4deg);
}

.evidence-cover img {
  height: 320px;
  object-fit: contain;
  background: #111;
}

.evidence-shadow {
  top: 2200px;
  left: 92px;
  width: 330px;
  transform: rotate(-1.3deg);
}

.operation-quote {
  position: absolute;
  top: 1035px;
  left: 80px;
  z-index: 3;
  width: 490px;
  margin: 0;
  padding: 23px 28px;
  border-left: 8px solid var(--red);
  color: #eee9de;
  background: rgba(1, 6, 4, 0.92);
  box-shadow: 12px 18px 34px rgba(0, 0, 0, 0.36);
  font: italic 1.18rem/1.56 var(--serif);
  transform: rotate(-0.7deg);
}

.operation-footer {
  position: absolute;
  right: 28px;
  bottom: 30px;
  left: 28px;
  display: flex;
  justify-content: flex-end;
  gap: 38px;
  color: var(--green);
  font: 800 0.58rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.operation-footer a {
  color: var(--red-light);
  text-decoration: none;
}

.operation-footer a:hover,
.operation-footer a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.route-progress {
  position: fixed;
  top: 50%;
  right: 18px;
  z-index: 20;
  display: grid;
  gap: 13px;
  transform: translateY(-50%);
}

.route-progress::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  z-index: -1;
  content: "";
  border-left: 1px dashed rgba(207, 223, 208, 0.36);
}

.route-progress a {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(225, 235, 224, 0.73);
  background: var(--night);
  text-decoration: none;
  transform: rotate(45deg);
  transition:
    background 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.route-progress a span {
  position: absolute;
  top: -2px;
  right: 25px;
  width: 30px;
  color: transparent;
  font: 700 0.55rem/1 var(--mono);
  text-align: right;
  transform: rotate(-45deg);
  transition: color 150ms ease;
}

.route-progress a:hover,
.route-progress a:focus-visible,
.route-progress a.is-active {
  border-color: var(--red-light);
  background: var(--red);
  transform: rotate(45deg) scale(1.18);
}

.route-progress a:hover span,
.route-progress a:focus-visible span,
.route-progress a.is-active span {
  color: var(--green-bright);
}

.lightbox {
  width: min(1100px, calc(100% - 36px));
  max-width: none;
  max-height: calc(100vh - 36px);
  padding: 48px 18px 18px;
  border: 1px solid rgba(145, 182, 155, 0.66);
  color: var(--white);
  background: rgba(2, 7, 5, 0.97);
  box-shadow: 0 30px 100px #000;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
}

.lightbox figure {
  display: grid;
  place-items: center;
  margin: 0;
}

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
}

.lightbox figcaption {
  width: 100%;
  padding-top: 14px;
  color: rgba(237, 240, 233, 0.72);
  font: 600 0.68rem/1.45 var(--mono);
  letter-spacing: 0.05em;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(145, 182, 155, 0.55);
  color: var(--green-bright);
  background: transparent;
  font: 400 1.5rem/1 var(--mono);
  cursor: pointer;
}

@media (max-width: 1120px) {
  .operation-map {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 62px 80px;
    min-height: 0;
    padding: 54px 42px 90px;
  }

  .operation-map::after {
    position: absolute;
    top: 430px;
    bottom: 110px;
    left: 50%;
    z-index: -1;
    content: "";
    border-left: 2px dashed rgba(209, 225, 209, 0.38);
  }

  .route-trace {
    display: none;
  }

  .opening,
  .operation-profile-card,
  .map-file,
  .evidence,
  .operation-quote,
  .operation-footer {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none;
  }

  .opening {
    grid-column: 1;
    width: 100%;
  }

  .operation-profile-card {
    grid-column: 2;
    align-self: start;
  }

  .file-world {
    grid-column: 1;
  }

  .evidence-incursion {
    grid-column: 2;
    align-self: center;
  }

  .file-agents {
    grid-column: 2;
  }

  .operation-quote {
    grid-column: 1;
    align-self: center;
  }

  .file-method {
    grid-column: 1;
  }

  .evidence-aftermath {
    grid-column: 2;
    align-self: center;
  }

  .file-profile {
    grid-column: 2;
  }

  .evidence-cover {
    grid-column: 1;
    justify-self: center;
    width: min(270px, 100%);
  }

  .evidence-shadow {
    grid-column: 1;
    align-self: center;
  }

  .file-warning {
    grid-column: 2;
  }

  .operation-footer {
    grid-column: 1 / -1;
    padding-top: 20px;
  }

  .route-progress {
    display: none;
  }

  .background-artifacts {
    display: none;
  }
}

@media (max-width: 720px) {
  body::before {
    background-position: 48% top;
  }

  .case-header {
    grid-template-columns: 1fr auto;
    min-height: 50px;
    padding: 0 13px;
    font-size: 0.55rem;
  }

  .case-header p {
    display: none;
  }

  .case-identity {
    justify-self: end;
  }

  .case-identity h1 {
    font-size: 0.61rem;
  }

  .operation-map {
    display: block;
    width: 100%;
    padding: 30px 18px 76px 39px;
  }

  .operation-map::before {
    top: 270px;
    right: auto;
    left: 20px;
    width: 1px;
    border-left: 1px dashed rgba(219, 228, 218, 0.38);
    background: none;
  }

  .operation-map::after {
    display: none;
  }

  .opening,
  .operation-profile-card,
  .map-file,
  .operation-quote,
  .evidence,
  .operation-footer {
    width: 100%;
  }

  .opening,
  .operation-profile-card,
  .map-file,
  .operation-quote,
  .evidence {
    margin-bottom: 38px;
  }

  .opening {
    padding: 21px 4px 28px 18px;
  }

  .opening::before,
  .operation-profile-card::after,
  .map-file::after,
  .operation-quote::after,
  .evidence::after {
    position: absolute;
    top: 29px;
    left: -25px;
    width: 9px;
    height: 9px;
    content: "";
    border: 2px solid #dbe4da;
    background: #07120d;
    transform: rotate(45deg);
  }

  .opening h2 {
    font-size: clamp(2.6rem, 12.5vw, 3.35rem);
    line-height: 1;
  }

  .hook {
    font-size: 1.04rem;
  }

  .overline,
  .tags {
    font-size: 0.57rem;
  }

  .operation-profile-card {
    padding: 23px 21px 25px;
  }

  .operation-readout {
    gap: 7px;
  }

  .map-file {
    padding: 26px 24px 29px;
  }

  .map-file h2 {
    font-size: 1.65rem;
  }

  .map-file p,
  .map-file dd {
    font-size: 0.98rem;
    line-height: 1.66;
  }

  .operation-quote {
    padding: 23px 23px;
    font-size: 1.1rem;
  }

  .evidence {
    width: 86%;
    margin-left: auto;
  }

  .evidence:nth-of-type(even) {
    margin-right: auto;
    margin-left: 0;
  }

  .evidence img {
    height: 215px;
  }

  .evidence-cover {
    width: 72%;
    margin-right: auto;
    margin-left: 0;
  }

  .evidence-cover img {
    height: 330px;
  }

  .file-warning {
    margin-top: 8px;
  }

  .operation-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding-top: 22px;
    font-size: 0.51rem;
  }

  .operation-footer a {
    grid-column: 1 / -1;
  }

  .lightbox {
    width: calc(100% - 18px);
    padding: 46px 9px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .evidence,
  .route-progress a {
    transition: none;
  }
}

/* srodtytul: mniejszy stopien - tekst z MD bywa dlugi */
.opening h2 {
  max-width: 620px;
  font-size: clamp(1.7rem, 2.5vw, 2.4rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.02em !important;
}
@media (max-width: 900px) {
  .opening h2 { font-size: clamp(1.5rem, 5.5vw, 1.9rem) !important; }
}

/* srodtytul: Coda */
.opening h2 {
  font-family: "Coda", var(--serif) !important;
  font-weight: 400 !important;
}

/* ---- Logo gry: miedzy tytulem a karta profilu, czesciowo przykryte ---- */
.brand-logo {
  position: absolute;
  top: 40px;
  right: 4%;
  z-index: 2;                 /* nizej niz .opening (3) i karta profilu */
  width: min(560px, 44vw);
  height: auto;
  opacity: 0.42;
  mix-blend-mode: screen;
  pointer-events: none;
  filter: grayscale(0.25) contrast(1.05);
}
@media (max-width: 1100px) {
  .brand-logo { width: min(420px, 60vw); top: 24px; opacity: 0.3; }
}
@media (max-width: 760px) {
  .brand-logo { position: static; display: block; width: 82%; margin: 18px auto 0; opacity: 0.5; }
}

/* logo: wysrodkowane, mniejsze, wyzej - reszta tresci schodzi nizej */
.brand-logo {
  top: 0 !important;
  right: auto !important;
  left: 50% !important;
  transform: translateX(-50%);
  width: min(420px, 34vw) !important;
}
.opening { top: 200px !important; }
@media (max-width: 1100px) {
  .brand-logo { width: min(330px, 46vw) !important; }
  .opening { top: 170px !important; }
}
@media (max-width: 760px) {
  .brand-logo { transform: none; left: auto !important; }
  .opening { top: auto !important; }
}
