/* AMSTERCODE — the sensor view (owner 14 Nov, via PM): the whole site seen through a targeting pod / drone camera.
   One fixed, viewport-wide layer under the header and the HUD (z 38; HUD 39-40, ticker 49, header 50), never clickable:
   a thin reticle with a gap where the content sits, corner brackets, a bearing tape on top, range ticks at the bottom
   and the right edge, two quiet blurred telemetry columns, static grain and a vignette. Nothing animates except the
   bearing tape, which follows the scroll on the GPU (transform only). Phones: smaller, fewer marks.
   Red night vision (html.dn-nv): an SVG colour matrix (#dn-red, injected by optic.js) maps the light of every pixel to
   red only; a top layer adds scanlines, a static grain and a darker vignette. Same parts as astorrex.com (dn-calm). */
.dn-op{position:fixed;inset:0;z-index:38;pointer-events:none;overflow:hidden;--op-c:rgba(191,230,223,.34);--op-f:rgba(191,230,223,.13);
  --op-top:calc(var(--cx-head,64px) + 46px);--op-bot:clamp(54px,9vh,84px);--op-side:clamp(14px,3vw,44px)}
.dn-op i,.dn-op span{position:absolute;display:block}
/* vignette + static grain */
.dn-op-vg{inset:0;background:radial-gradient(ellipse 92% 86% at 50% 50%,transparent 58%,rgba(3,6,7,.5) 100%)}
.dn-op-gr{inset:0;opacity:.045;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
/* reticle: hairlines through the centre with an open gap; a small centre mark with four short pips */
.dn-op-x.h{left:var(--op-side);right:var(--op-side);top:50%;height:1px;
  background:linear-gradient(90deg,transparent,var(--op-f) 12%,var(--op-f) 40%,transparent 40%,transparent 60%,var(--op-f) 60%,var(--op-f) 88%,transparent)}
.dn-op-x.v{top:var(--op-top);bottom:var(--op-bot);left:50%;width:1px;
  background:linear-gradient(180deg,transparent,var(--op-f) 12%,var(--op-f) 34%,transparent 34%,transparent 66%,var(--op-f) 66%,var(--op-f) 88%,transparent)}
.dn-op-c{left:50%;top:50%;width:44px;height:44px;margin:-22px 0 0 -22px;opacity:.55;
  background:linear-gradient(var(--op-c),var(--op-c)) 50% 0/1px 9px no-repeat,linear-gradient(var(--op-c),var(--op-c)) 50% 100%/1px 9px no-repeat,
             linear-gradient(var(--op-c),var(--op-c)) 0 50%/9px 1px no-repeat,linear-gradient(var(--op-c),var(--op-c)) 100% 50%/9px 1px no-repeat}
/* corner brackets of the field of view */
.dn-op-b{width:clamp(20px,2.6vw,38px);height:clamp(20px,2.6vw,38px);border:0 solid var(--op-c)}
.dn-op-b.tl{left:var(--op-side);top:var(--op-top);border-width:1px 0 0 1px}
.dn-op-b.tr{right:var(--op-side);top:var(--op-top);border-width:1px 1px 0 0}
.dn-op-b.bl{left:var(--op-side);bottom:var(--op-bot);border-width:0 0 1px 1px}
.dn-op-b.br{right:var(--op-side);bottom:var(--op-bot);border-width:0 1px 1px 0}
/* bearing tape along the top edge of the view: ticks every 5°, numbers every 30°, a caret in the middle */
.dn-op-brg{left:28%;right:28%;top:calc(var(--op-top) - 4px);height:22px;overflow:hidden;
  -webkit-mask:linear-gradient(90deg,transparent,#000 22%,#000 78%,transparent);mask:linear-gradient(90deg,transparent,#000 22%,#000 78%,transparent)}
.dn-op-brg .tape{position:absolute;left:0;top:0;height:22px;width:7200px;will-change:transform}
.dn-op-brg .tape b{position:absolute;top:0;width:1px;height:5px;background:var(--op-c)}
.dn-op-brg .tape b.m{height:8px}
.dn-op-brg .tape em{position:absolute;top:10px;transform:translateX(-50%);font:400 9px/1 var(--cx-mono,ui-monospace,monospace);letter-spacing:.12em;font-style:normal;color:var(--op-c)}
.dn-op-car{left:50%;top:calc(var(--op-top) + 20px);width:0;height:0;margin-left:-4px;border:4px solid transparent;border-top-color:var(--op-c);border-bottom:0}
/* range ticks: bottom edge and right edge */
.dn-op-t.b{left:30%;right:30%;bottom:calc(var(--op-bot) + 10px);height:6px;background:repeating-linear-gradient(90deg,var(--op-c) 0 1px,transparent 1px 36px);opacity:.7;
  -webkit-mask:linear-gradient(90deg,transparent,#000 22%,#000 78%,transparent);mask:linear-gradient(90deg,transparent,#000 22%,#000 78%,transparent)}
.dn-op-t.r{top:32%;bottom:32%;right:calc(var(--op-side) + 10px);width:6px;background:repeating-linear-gradient(180deg,var(--op-c) 0 1px,transparent 1px 28px);opacity:.7;
  -webkit-mask:linear-gradient(180deg,transparent,#000 22%,#000 78%,transparent);mask:linear-gradient(180deg,transparent,#000 22%,#000 78%,transparent)}
/* telemetry: texture, not content (low opacity, slightly blurred) */
/* telemetry: two quiet lines in the bearing-tape row, between the brackets and the tape (never over the content) */
.dn-op-tl,.dn-op-tr{top:calc(var(--op-top) + 4px);display:flex!important;gap:16px;
  font:400 9px/1.4 var(--cx-mono,ui-monospace,monospace);letter-spacing:.18em;text-transform:uppercase;color:rgba(191,230,223,.8);opacity:.32;filter:blur(.4px)}
.dn-op-tl{left:calc(var(--op-side) + 34px)}
.dn-op-tr{right:calc(var(--op-side) + 34px)}
@media (max-width:1599px){.dn-op-tl b:nth-child(n+3),.dn-op-tr b:nth-child(n+3){display:none}}
.dn-op-tl b,.dn-op-tr b{font-weight:400;white-space:nowrap}
/* the day display: the same marks in ink */
html.dn-day .dn-op{--op-c:rgba(3,6,7,.32);--op-f:rgba(3,6,7,.1)}
html.dn-day .dn-op-vg{background:radial-gradient(ellipse 92% 86% at 50% 50%,transparent 62%,rgba(3,6,7,.12) 100%)}
html.dn-day .dn-op-tl,html.dn-day .dn-op-tr{color:#030607}
/* phones: fewer marks, no side telemetry, no right tape; the brackets stay */
@media (max-width:760px){
  .dn-op{--op-top:calc(var(--cx-head,56px) + 40px);--op-bot:64px;--op-side:10px}
  .dn-op-tl,.dn-op-tr,.dn-op-t.r{display:none!important}
  .dn-op-brg{left:18%;right:18%}
  .dn-op-t.b{left:22%;right:22%}
  .dn-op-c{width:34px;height:34px;margin:-17px 0 0 -17px}
}
@media print{.dn-op,.dn-nv-fx{display:none!important}}

/* ---------- red night vision ---------- */
html.dn-nv{filter:url(#dn-red)}
.dn-nv-fx{position:fixed;inset:0;z-index:2147482000;pointer-events:none;display:none}
html.dn-nv .dn-nv-fx{display:block}
.dn-nv-fx:before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(0deg,rgba(0,0,0,.16) 0 1px,transparent 1px 3px)}
/* static grain (no animation: owner/PM performance rule) */
.dn-nv-fx:after{content:"";position:absolute;inset:0;opacity:.08;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
.dn-nv-fx i{position:absolute;inset:0;background:radial-gradient(ellipse 80% 74% at 50% 50%,transparent 60%,rgba(0,0,0,.62) 100%)}
/* in red the sensor marks read a little stronger */
html.dn-nv .dn-op{--op-c:rgba(223,229,230,.42);--op-f:rgba(223,229,230,.16)}
html.dn-nv .dn-op-tl,html.dn-nv .dn-op-tr{opacity:.4}
/* the toggle (in the HUD next to Sound / Night) */
.dn-btn .nv{width:9px;height:9px;border:1px solid currentColor;border-radius:50%;position:relative}
.dn-btn .nv:after{content:"";position:absolute;inset:2px;border-radius:50%;background:currentColor;opacity:0;transition:opacity .25s}
.dn-btn[aria-pressed="true"] .nv:after{opacity:1}
html.dn-nv .dn-btn[data-dn-mode="nv"]{color:var(--dn-bone,#dfe5e6)}
/* the footer's single call to action (only on pages that do not show the three paths themselves): an open line, no box */
.dn-con-cta{margin:28px 0 8px}
.dn-con-cta a{display:inline-flex;align-items:center;gap:12px;font:400 12px/1.4 var(--cx-mono,ui-monospace,monospace);letter-spacing:.22em;text-transform:uppercase;
  color:var(--dn-bone,#dfe5e6);text-decoration:none;padding-bottom:8px;background:linear-gradient(90deg,rgba(127,184,176,.6),transparent) left bottom/100% 1px no-repeat}
.dn-con-cta a:hover,.dn-con-cta a:focus-visible{color:#bfe6df}
.dn-con-cta svg{width:16px;height:16px}

/* ---------- the footer wordmark, military grade (owner 14 Nov) ----------
   The same face and spacing as AMSTERCODE in the header (mono, 500, .42em), solid and sharp-edged instead of a faint
   outline. particles.js draws it from particles; once they have gathered the real text takes over (.dn-crisp) and the
   particles fade, so what stays on screen is crisp type, never a dotted cloud. */
.dn-con-word{font:500 clamp(19px,5.3vw,96px)/1 var(--cx-mono,ui-monospace,monospace);letter-spacing:.42em;color:var(--bone);-webkit-text-stroke:0;
  -webkit-font-smoothing:antialiased;text-rendering:geometricPrecision}
.dn-con-word>span{margin-right:-.42em} /* the last letter carries no trailing space, so the word sits true to the mark */
@media (max-width:640px){.dn-con-word{font-size:clamp(17px,5.3vw,34px)}}
.dn-pcv{transition:opacity .45s ease}
.dn-con-word>.dn-pt.dn-crisp,.dn-con-word>.dn-pt.dn-crisp .dn-pw{color:var(--bone)!important;transition:color .45s ease}
.dn-con-word>.dn-pt .dn-pw{transition:color .2s ease}
.dn-con-word>.dn-crisp>.dn-pcv{opacity:0}
