/* ─────────────────────────────────────────────────────────────────────────
   ekisde.dev — dedsec.css
   DedSec look for the PUBLIC pages, after a black / white / grey halftone collage
   with torn red "404" tape, a terminal-code overlay, glitch static, pixel skulls and
   bombs, and classic OS windows. A skin on top of yorha.css: it overrides tokens and
   shapes, and applies when <html data-skin="dedsec"> (skins.py). Dark only.
   Pieces that need DOM (tape, corner, code, static) are made by static/js/dedsec.js.
   One red (--accent for text, --ds-red for big fills); everything else is grey.
   ───────────────────────────────────────────────────────────────────────── */

/* Self-hosted (OFL), latin subset: covers English and Spanish. */
@font-face {
  font-family: "Bebas Neue"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/bebas-neue-latin.woff2") format("woff2");
}

html[data-yorha][data-skin="dedsec"],
html[data-yorha][data-skin="dedsec"][data-theme="light"] {
  --bg:          #0a0a0a;
  --bg-elevated: #121212;
  --bg-soft:     #1b1b1b;
  --text:        #f2f2f2;
  --text-muted:  #c4c4c4;
  --text-faint:  #9e9e9e;
  --border:      #565656;
  --border-soft: #2e2e2e;
  --accent:      #ff2d3a;
  --accent-ink:  #ff7a84;
  --accent-soft: rgb(255 45 58 / 0.14);
  --ok:          #9be8b4;
  --warn:        #f0c040;
  --bad:         #ff7a84;
  --yo-ink:      #0a0a0a;
  --yo-fill:     #f2f2f2;
  --yo-line:     rgb(255 255 255 / 0.04);
  --yo-glow:     rgb(255 45 58 / 0.06);
  --ds-red:      #f1000b;                         /* big fills only (tape, corner), never text */
  --ds-titlebar: #6f6f6f;                         /* classic window title bar */
  --ds-lime:     #b8f23a;                         /* art only (shards, screens): never UI text */
  --ds-purple:   #6d1fa8;
  --font-serif:  "Bebas Neue", "Impact", "Arial Narrow", sans-serif;
  --font-sans:   "Share Tech Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}

/* one look, one mode */
[data-skin="dedsec"] .yo-theme { display: none; }
[data-skin="dedsec"] body { overflow-x: clip; }

/* ── Atmosphere ──────────────────────────────────────────────────────────── */

[data-skin="dedsec"] .yo-bg::before,
[data-skin="dedsec"][data-theme="light"] .yo-bg::before {
  background:
    repeating-linear-gradient(0deg, var(--yo-line) 0 1px, transparent 1px 4px),
    radial-gradient(ellipse at 50% 30%, transparent 35%, rgb(0 0 0 / 0.6) 100%);
}
[data-skin="dedsec"] body.yorha { font-size: 15px; line-height: 1.7; letter-spacing: 0.01em; }
[data-skin="dedsec"] body.yorha ::selection { background: var(--accent); color: var(--yo-ink); }

/* decoration layer, built by dedsec.js; sits under the page (.site-shell is z-index 1) */
.ds-deco { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

/* backgrounds (dedsec.js, chosen with the bg button): shared host + per-background pieces */
.ds-bg { position: absolute; inset: 0; overflow: hidden; }
.ds-cv { position: absolute; inset: 0; width: 100%; height: 100%; }
.ds-dither { image-rendering: pixelated; opacity: 0.3; }
/* static: a CCTV / VHS feed (noise, rolling bar, tears, dropouts, head-switching band, crop marks, REC overlay) */
.ds-noise { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; opacity: 0.05; mix-blend-mode: screen; animation: ds-flick 0.18s steps(2) infinite; }
@keyframes ds-flick { 50% { opacity: 0.062; } }
.ds-vhs { position: absolute; left: -10px; right: -10px; bottom: 5%; width: calc(100% + 20px); height: 26px; image-rendering: pixelated; opacity: 0.16; mix-blend-mode: screen; }
.ds-roll { position: absolute; left: 0; right: 0; height: 22%; top: -25%; background: linear-gradient(to bottom, transparent, rgb(255 255 255 / 0.05), transparent); animation: ds-roll 9s linear infinite; }
@keyframes ds-roll { to { transform: translateY(560%); } }
.ds-tear { position: absolute; left: 0; right: 0; background: rgb(255 255 255 / 0.07); box-shadow: 0 1px 0 rgb(255 45 58 / 0.5), 0 -1px 0 rgb(255 255 255 / 0.3); transition: transform 40ms steps(1); }
.ds-block { position: absolute; background: rgb(255 255 255 / 0.07); box-shadow: 3px 0 0 rgb(255 45 58 / 0.25), -3px 0 0 rgb(255 255 255 / 0.12); }
.ds-crop { position: absolute; width: 26px; height: 26px; border: 0 solid rgb(255 255 255 / 0.28); }
.ds-crop.tl { left: 14px; top: 14px; border-left-width: 2px; border-top-width: 2px; } .ds-crop.tr { right: 14px; top: 14px; border-right-width: 2px; border-top-width: 2px; }
.ds-crop.bl { left: 14px; bottom: 14px; border-left-width: 2px; border-bottom-width: 2px; } .ds-crop.br { right: 14px; bottom: 14px; border-right-width: 2px; border-bottom-width: 2px; }
.ds-rec { position: absolute; right: 5.5rem; top: 8.2rem; text-align: right; font: 0.68rem/1.55 var(--font-mono); letter-spacing: 0.12em; color: var(--text-faint); opacity: 0.8; }
.ds-rec b { font-weight: 400; color: var(--text-muted); }
.ds-rec i, .ds-rec u { font-style: normal; text-decoration: none; }
.ds-rec .dot { display: inline-block; width: 8px; height: 8px; margin-right: 0.5rem; background: var(--ds-red); animation: ds-blink 1.1s steps(2, jump-none) infinite; }
@keyframes ds-blink { 50% { opacity: 0.1; } }
@media (max-width: 1100px) { .ds-rec { right: 1rem; top: 7.2rem; } }
@media (prefers-reduced-motion: reduce) { .ds-roll, .ds-noise, .ds-rec .dot { animation: none; } }

/* the page's own source, as a terminal dump: only on the 404, where it is part of the picture */
.ds-code {
  position: absolute; left: 1.2rem; top: 1rem; width: min(46rem, 92vw); max-height: 100%; margin: 0; overflow: hidden;
  display: none; font: 11px/1.5 var(--font-mono); color: #fff; opacity: 0.06; white-space: pre;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

/* torn red corner with pixel skulls and bombs */
.ds-corner { display: none; position: absolute; left: 0; top: 0; width: 250px; height: 197px; background: url("../img/dedsec/corner.svg") 0 0 / 100% 100% no-repeat; }

/* red tape with repeating text, tilted, ragged edges */
.ds-tape {
  display: none; position: absolute; top: -12vh; height: 124vh; width: 58px; overflow: hidden; background: var(--ds-red); color: #0a0a0a;
  writing-mode: vertical-rl; font: 400 1rem/58px var(--font-mono); letter-spacing: 0.22em; white-space: nowrap; text-align: left;
  -webkit-text-stroke: 0.5px #0a0a0a;
  clip-path: polygon(4.1% 0%, 5% 3.6%, 8.3% 7.1%, 4.2% 10.7%, 4.6% 14.3%, 5.3% 17.9%, 1.7% 21.4%, 4.6% 25%, 5.7% 28.6%, 7.1% 32.1%, 0.8% 35.7%, 2.7% 39.3%, 0.8% 42.9%, 7.3% 46.4%, 6.2% 50%, 0.4% 53.6%, 8.8% 57.1%, 8.7% 60.7%, 5.9% 64.3%, 5.5% 67.9%, 1.4% 71.4%, 0.1% 75%, 4.8% 78.6%, 0.5% 82.1%, 1.7% 85.7%, 2.2% 89.3%, 0.3% 92.9%, 4.2% 96.4%, 4% 100%, 98.6% 100%, 95.7% 96.4%, 96.8% 92.9%, 95.5% 89.3%, 97% 85.7%, 95.1% 82.1%, 93.5% 78.6%, 100% 75%, 100% 71.4%, 98.6% 67.9%, 97.4% 64.3%, 93.8% 60.7%, 93.1% 57.1%, 93.6% 53.6%, 91.6% 50%, 97.9% 46.4%, 94.6% 42.9%, 98.6% 39.3%, 94.5% 35.7%, 99.6% 32.1%, 98.6% 28.6%, 91% 25%, 92.9% 21.4%, 99.2% 17.9%, 95.2% 14.3%, 99.8% 10.7%, 94.6% 7.1%, 91.7% 3.6%, 96.7% 0%);
}
.ds-tape-edge { right: 1.5vw; transform: rotate(7deg); transform-origin: 50% 50%; }
.ds-tape-a { left: 13%; width: 104px; line-height: 104px; font-size: 2rem; letter-spacing: 0.12em; transform: rotate(24deg); }
.ds-tape-b { left: 40%; width: 84px; line-height: 84px; font-size: 1.6rem; letter-spacing: 0.12em; transform: rotate(20deg); }
.ds-deco.is-404 .ds-tape-edge { width: 92px; line-height: 92px; font-size: 1.8rem; letter-spacing: 0.12em; right: -1vw; }

/* vertical glitch static along the bottom edge */
.ds-static {
  position: absolute; left: 0; right: 0; bottom: 0; height: 110px; opacity: 0.16;
  background:
    repeating-linear-gradient(90deg, rgb(255 255 255 / 0.55) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgb(255 255 255 / 0.3) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(90deg, rgb(150 150 150 / 0.5) 0 1px, transparent 1px 11px),
    repeating-linear-gradient(90deg, rgb(255 255 255 / 0.35) 0 3px, transparent 3px 19px);
  -webkit-mask-image: linear-gradient(to top, #000, transparent); mask-image: linear-gradient(to top, #000, transparent);
}
@media (min-width: 1100px) { .ds-corner { display: block; } }
/* Pakko has its own flush-left header: keep the corner and edge tape off it */
[data-skin="dedsec"] body.yorha:has(.logo-badge) .ds-deco .ds-corner, [data-skin="dedsec"] body.yorha:has(.logo-badge) .ds-deco .ds-tape-edge, [data-skin="dedsec"] body.yorha:has(.logo-badge) .ds-deco::before { display: none; }
@media (min-width: 1320px) { .ds-tape-edge { display: block; } }

/* ── Type: Bebas Neue poster headings, mono everywhere else ──────────────── */

[data-skin="dedsec"] body.yorha h1,
[data-skin="dedsec"] body.yorha h2,
[data-skin="dedsec"] body.yorha h3,
[data-skin="dedsec"] body.yorha h4 { font-weight: 400; letter-spacing: 0.04em; line-height: 1.02; }
[data-skin="dedsec"] body.yorha h1 { font-size: clamp(2.8rem, 6.6vw, 4.8rem); }
[data-skin="dedsec"] body.yorha h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); }
[data-skin="dedsec"] body.yorha h3 { font-size: 1.5rem; letter-spacing: 0.05em; }
[data-skin="dedsec"] body.yorha .log-item h3,
[data-skin="dedsec"] body.yorha .log-item h3 a,
[data-skin="dedsec"] body.yorha .prose h3 { font-weight: 400; font-size: 1.5rem; letter-spacing: 0.05em; }
[data-skin="dedsec"] body.yorha .contact-card h2,
[data-skin="dedsec"] body.yorha .footer-title { font-weight: 400; font-size: 1.3rem; letter-spacing: 0.08em; }
[data-skin="dedsec"] body.yorha .yo-g-val { font-family: var(--font-serif); font-weight: 400; font-size: 2.1rem; letter-spacing: 0.04em; }
[data-skin="dedsec"] body.yorha .mundial-score,
[data-skin="dedsec"] body.yorha .fun-score { font-family: var(--font-serif); font-weight: 400; letter-spacing: 0.04em; }
[data-skin="dedsec"] body.yorha h1 em,
[data-skin="dedsec"] body.yorha h1 .amp { color: var(--accent); }
[data-skin="dedsec"] body.yorha .hero-description { font-size: 1rem; line-height: 1.8; }

/* section labels are red tape stickers */
[data-skin="dedsec"] body.yorha .kicker {
  display: inline-block; background: var(--accent); color: var(--yo-ink); padding: 0.1rem 0.65rem; transform: rotate(-1.2deg);
}
[data-skin="dedsec"] body.yorha .kicker::before { content: ">_"; width: auto; height: auto; background: none; color: var(--yo-ink); margin-right: 0.55rem; vertical-align: baseline; }
[data-skin="dedsec"] .yo-doc h2::before { content: "//"; width: auto; height: auto; background: none; color: var(--accent); font-family: var(--font-mono); font-size: 0.6em; vertical-align: 0.2em; }

/* the hero title glitches for a moment every few seconds: red and white ghosts, sliced */
[data-skin="dedsec"] body.yorha main .hero h1 { animation: ds-split 7s steps(1, end) infinite; }
@keyframes ds-split {
  0%, 93%, 100% { text-shadow: none; transform: none; clip-path: none; }
  94% { text-shadow: -4px 0 var(--accent), 4px 0 rgb(255 255 255 / 0.55); transform: translateX(3px); clip-path: inset(0 0 55% 0); }
  95% { text-shadow: 4px 0 var(--accent), -4px 0 rgb(255 255 255 / 0.55); transform: translateX(-3px); clip-path: inset(40% 0 0 0); }
  97% { text-shadow: -2px 0 var(--accent); transform: none; clip-path: none; }
}
[data-skin="dedsec"] body.yorha h3 a:hover { color: var(--accent); }

/* ── Header / nav ────────────────────────────────────────────────────────── */

[data-skin="dedsec"] body.yorha .site-header { border-bottom: 2px solid var(--text); }
[data-skin="dedsec"] body.yorha .site-header::after { display: none; }
[data-skin="dedsec"] body.yorha .logo:hover { color: var(--accent); }
[data-skin="dedsec"] .yo-mark { outline: 1px solid var(--accent); outline-offset: 1px; }
@media (min-width: 721px) {
  [data-skin="dedsec"] body.yorha .site-nav a::before {
    content: "/"; width: auto; height: auto; border: 0; margin-right: 0.35rem; vertical-align: baseline; color: var(--accent);
  }
  [data-skin="dedsec"] body.yorha .site-nav a:hover::before,
  [data-skin="dedsec"] body.yorha .site-nav a:focus-visible::before,
  [data-skin="dedsec"] body.yorha .site-nav a[aria-current="page"]::before { background: none; color: var(--yo-ink); }
}
[data-skin="dedsec"] body.yorha .site-nav { border-top: 1px solid var(--border); }

/* ── Controls: classic bevelled OS buttons ───────────────────────────────── */

[data-skin="dedsec"] body.yorha .button {
  background: #d9d9d9; color: #0a0a0a; border: 2px solid; border-color: #fff #6b6b6b #6b6b6b #fff; box-shadow: 1px 1px 0 #000;
  padding-left: 1.55rem; transform: none;
}
[data-skin="dedsec"] body.yorha .button:hover,
[data-skin="dedsec"] body.yorha .button:focus-visible { background: #fff; color: #0a0a0a; border-color: #fff #6b6b6b #6b6b6b #fff; box-shadow: 1px 1px 0 #000, 4px 4px 0 var(--ds-red); }
[data-skin="dedsec"] body.yorha .button:active { border-color: #6b6b6b #fff #fff #6b6b6b; transform: translate(1px, 1px); }
[data-skin="dedsec"] body.yorha .button-primary { background: var(--ds-red); color: #fff; border-color: #ff7b82 #7a0006 #7a0006 #ff7b82; }
[data-skin="dedsec"] body.yorha .button-primary:hover,
[data-skin="dedsec"] body.yorha .button-primary:focus-visible { background: #ff1f2b; color: #fff; border-color: #ff7b82 #7a0006 #7a0006 #ff7b82; box-shadow: 1px 1px 0 #000, 4px 4px 0 #f2f2f2; }
[data-skin="dedsec"] .yo-skin { border-color: var(--accent); color: var(--accent); }
[data-skin="dedsec"] .yo-skin:hover, [data-skin="dedsec"] .yo-skin:focus-visible { background: var(--accent); color: var(--yo-ink); }
[data-skin="dedsec"] body.yorha input:focus,
[data-skin="dedsec"] body.yorha textarea:focus,
[data-skin="dedsec"] body.yorha select:focus { border-bottom-color: var(--accent); box-shadow: 0 2px 0 var(--accent); }
[data-skin="dedsec"] body.yorha :focus-visible { outline-color: var(--accent); }

/* ── Windows: cards, dialogs, search, feed get a grey title bar and a hard shadow ── */

[data-skin="dedsec"] body.yorha .card,
[data-skin="dedsec"] .yo-search-panel,
[data-skin="dedsec"] .yo-dialog-panel,
[data-skin="dedsec"] .yo-feed,
[data-skin="dedsec"] .yo-cover { border: 2px solid #000; outline: 1px solid var(--border); box-shadow: 7px 7px 0 var(--ds-red); }
[data-skin="dedsec"] body.yorha .card:hover, [data-skin="dedsec"] body.yorha .card:focus-within { border-color: #000; box-shadow: 7px 7px 0 var(--ds-red); }
[data-skin="dedsec"] body.yorha .card { padding-top: 3.2rem; }
[data-skin="dedsec"] .yo-dialog-panel { padding-top: 3.2rem; }
[data-skin="dedsec"] body.yorha .card::before, [data-skin="dedsec"] .yo-dialog-panel::before {
  content: "\2715  EKISDE.DEV"; position: absolute; left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 1.9rem; border: 0;
  background: var(--ds-titlebar) url("../img/dedsec/winbtns.svg") right 6px center / auto 15px no-repeat; image-rendering: pixelated;
  color: #fff; font: 0.74rem/1.9rem var(--font-mono); letter-spacing: 0.1em; padding: 0 0.7rem;
}
[data-skin="dedsec"] body.yorha .card::after, [data-skin="dedsec"] .yo-cover::before, [data-skin="dedsec"] .yo-cover::after { display: none; }
[data-skin="dedsec"] .yo-corner { display: none; }
[data-skin="dedsec"] .yo-search-head, [data-skin="dedsec"] .yo-feed-head { background: var(--ds-titlebar); color: #fff; border-bottom: 2px solid #000; }
[data-skin="dedsec"] .yo-search-close { color: #fff; border-color: #fff; }
[data-skin="dedsec"] .yo-search-close:hover { background: #fff; color: #000; }
[data-skin="dedsec"] .yo-rec::before { background: var(--accent); }

/* ── Rows, status, hero ──────────────────────────────────────────────────── */

[data-skin="dedsec"] body.yorha main section {                 /* dithered divider instead of a hairline */
  border-top: 0; background: repeating-linear-gradient(90deg, #3d3d3d 0 2px, transparent 2px 4px) top / 100% 4px no-repeat;
}
[data-skin="dedsec"] body.yorha { cursor: url("../img/dedsec/cursor.svg") 0 0, auto; }
[data-skin="dedsec"] body.yorha .log-item,
[data-skin="dedsec"] body.yorha .project-entry, [data-skin="dedsec"] body.yorha .file-entry, [data-skin="dedsec"] body.yorha .doc-entry { border-top-style: solid; border-top-color: var(--border-soft); }
[data-skin="dedsec"] body.yorha .log-item::before { border-color: var(--accent); }
[data-skin="dedsec"] body.yorha .log-item:hover, [data-skin="dedsec"] body.yorha .log-item:focus-within { box-shadow: inset 6px 0 0 var(--ds-red); }
[data-skin="dedsec"] body.yorha .hero .hero-inner::before { background: var(--ds-red); width: 5px; }
[data-skin="dedsec"] body.yorha .now-strip { border: 2px solid var(--text); }
[data-skin="dedsec"] .yo-status { border: 2px solid var(--text); }
[data-skin="dedsec"] .yo-bar i { background: repeating-linear-gradient(90deg, var(--yo-fill) 0 5px, transparent 5px 8px); }
[data-skin="dedsec"] .yo-bar.is-hot i { background: repeating-linear-gradient(90deg, var(--ds-red) 0 5px, transparent 5px 8px); }
[data-skin="dedsec"] .yo-boot-bar i, [data-skin="dedsec"] .yo-progress i { background: var(--ds-red); }
[data-skin="dedsec"] .yo-boot .ok { color: var(--accent); }
[data-skin="dedsec"] .yo-boot { background-image: radial-gradient(circle, rgb(255 255 255 / 0.1) 1.1px, transparent 1.7px); background-size: 7px 7px; }

/* ── Footer: a ragged strip of red tape ──────────────────────────────────── */

[data-skin="dedsec"] body.yorha .site-footer { border-top: 0; margin-top: 5rem; padding-top: 3.4rem; }
[data-skin="dedsec"] body.yorha .site-footer::before {
  content: "EKISDE.DEV // DEDSEC // SESSION CLOSED // EKISDE.DEV // DEDSEC // SESSION CLOSED // EKISDE.DEV // DEDSEC // SESSION CLOSED // EKISDE.DEV // DEDSEC // SESSION CLOSED // EKISDE.DEV // DEDSEC // SESSION CLOSED //";
  left: -3%; width: 106%; top: 0.7rem; transform: rotate(-1deg); padding: 0; height: 2.1rem; line-height: 2.1rem; overflow: hidden;
  background: var(--ds-red); color: #0a0a0a; font-size: 0.85rem; letter-spacing: 0.2em; -webkit-text-stroke: 0.4px #0a0a0a; text-align: left;
  clip-path: polygon(0% 12.5%, 2.9% 4.3%, 5.9% 1.4%, 8.8% 5.3%, 11.8% 15.4%, 14.7% 12.1%, 17.6% 1.9%, 20.6% 3.9%, 23.5% 1.6%, 26.5% 1%, 29.4% 12.8%, 32.4% 2.8%, 35.3% 8.9%, 38.2% 7.2%, 41.2% 3.1%, 44.1% 11.7%, 47.1% 2.1%, 50% 10.3%, 52.9% 1.9%, 55.9% 6.7%, 58.8% 3.4%, 61.8% 4.3%, 64.7% 15.5%, 67.6% 12.9%, 70.6% 4.9%, 73.5% 14.2%, 76.5% 3.4%, 79.4% 6.3%, 82.4% 13.7%, 85.3% 10.3%, 88.2% 1.6%, 91.2% 15.8%, 94.1% 3.4%, 97.1% 4.1%, 100% 12.4%, 100% 89.3%, 97.1% 88.7%, 94.1% 85.2%, 91.2% 85.4%, 88.2% 93.3%, 85.3% 87.9%, 82.4% 93.6%, 79.4% 89.9%, 76.5% 91.3%, 73.5% 99.3%, 70.6% 91.7%, 67.6% 93.2%, 64.7% 97.9%, 61.8% 86.9%, 58.8% 86.5%, 55.9% 98.5%, 52.9% 97.1%, 50% 88%, 47.1% 87%, 44.1% 95.8%, 41.2% 99%, 38.2% 87.1%, 35.3% 99.2%, 32.4% 98.1%, 29.4% 93.7%, 26.5% 90.7%, 23.5% 85.7%, 20.6% 84.6%, 17.6% 99.4%, 14.7% 87.8%, 11.8% 95.3%, 8.8% 88.1%, 5.9% 97.2%, 2.9% 93.5%, 0% 88.7%);
}

/* ── Page transition + glitch text ───────────────────────────────────────── */

[data-skin="dedsec"] .yo-wipe i {                      /* torn strips slam in from alternating sides (yorha-ui.js adds them and navigates after 270 ms) */
  background: #0a0a0a; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35); transform: translateX(-102%); transition: transform 150ms cubic-bezier(0.7, 0, 0.3, 1);
}
[data-skin="dedsec"] .yo-wipe i:nth-child(even) { transform: translateX(102%); }
[data-skin="dedsec"] .yo-wipe i:nth-child(5n+1) { background: var(--ds-red); }
[data-skin="dedsec"] .yo-wipe i:nth-child(5n+3) { background: #f2f2f2; }
html[data-skin="dedsec"].yo-leaving .yo-wipe i { transform: none; }
[data-skin="dedsec"] .yo-wipe::after {                 /* a red tape label flashes while the strips close */
  content: "ACCESSING //"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-3deg); padding: 0.1rem 1.1rem;
  background: var(--ds-red); color: #0a0a0a; font: 400 clamp(1.6rem, 5vw, 2.6rem)/1.1 var(--font-serif); letter-spacing: 0.1em; opacity: 0; transition: opacity 60ms 100ms;
}
html[data-skin="dedsec"].yo-leaving .yo-wipe::after { opacity: 1; }
/* and the new page glitches in: slices settle into place */
[data-skin="dedsec"] body.yorha .site-shell { animation: ds-arrive 360ms steps(1, end) both; }
@keyframes ds-arrive {
  0%   { opacity: 0; transform: translateX(-14px); clip-path: inset(0 0 72% 0); }
  18%  { opacity: 1; transform: translateX(10px) skewX(-2deg); clip-path: inset(34% 0 18% 0); }
  42%  { transform: translateX(-5px); clip-path: inset(0 0 40% 0); }
  68%  { transform: translateX(3px); clip-path: inset(18% 0 0 0); }
  100% { opacity: 1; transform: none; clip-path: none; }
}
[data-skin="dedsec"] .yo-glitch::before { color: var(--accent); }
[data-skin="dedsec"] .yo-glitch::after { color: var(--text); }

/* ── Code / docs ─────────────────────────────────────────────────────────── */

[data-skin="dedsec"] .yo-doc pre.yo-code { border: 2px solid #000; outline: 1px solid var(--border); }
[data-skin="dedsec"] .yo-doc blockquote { border-left-color: var(--ds-red); }
[data-skin="dedsec"] .yo-doc strong { font-weight: 400; color: #fff; }

/* ── 404: the whole collage, with an OS "ERROR 404" window ───────────────── */

.ds-deco.is-404 .ds-code { display: block; opacity: 0.16; font-size: 15px; top: 1.4rem; left: 1.4rem; -webkit-mask-image: none; mask-image: none; }
.ds-deco.is-404 .ds-corner, .ds-deco.is-404 .ds-tape { display: block; }
[data-skin="dedsec"] body.yorha:has(.yo-404) .site-nav a, [data-skin="dedsec"] body.yorha:has(.yo-404) .logo,
[data-skin="dedsec"] body.yorha:has(.yo-404) .header-tools > :not(.yo-menu) { background: var(--bg); }
.ds-deco.is-404 .ds-static { height: 38vh; opacity: 0.7; }
[data-skin="dedsec"] .yo-404 .container {
  --bg: #f2f2f2; --bg-elevated: #e4e4e4; --bg-soft: #d6d6d6; --text: #0a0a0a; --text-muted: #262626; --text-faint: #3d3d3d;
  --border: #7a7a7a; --border-soft: #9a9a9a; --accent: #b3000d; --bad: #b3000d; --yo-fill: #0a0a0a; --yo-ink: #f2f2f2;
  position: relative; width: min(580px, calc(100% - 2rem)); max-width: none; margin: 40vh auto 12vh; padding: 3.2rem 1.6rem 1.5rem;
  background: var(--bg); color: var(--text); border: 2px solid #000; box-shadow: 9px 9px 0 #000;
}
[data-skin="dedsec"] .yo-404 .container::before {
  content: "\2715  ERROR 404"; position: absolute; left: 0; right: 0; top: 0; height: 2rem; padding: 0 0.8rem;
  background: var(--ds-titlebar) url("../img/dedsec/winbtns.svg") right 8px center / auto 16px no-repeat; image-rendering: pixelated;
  color: #fff; font: 0.78rem/2rem var(--font-mono); letter-spacing: 0.08em;
}
[data-skin="dedsec"] .yo-404 .yo-404-code::before { content: "\2639  "; font-size: 1.4em; vertical-align: -0.1em; }
[data-skin="dedsec"] .yo-404 h1 { color: #0a0a0a; font-size: clamp(2.4rem, 7vw, 3.2rem); }
@media (min-width: 1000px) { [data-skin="dedsec"] .yo-404 .container { margin: max(32vh, 230px) 5vw 8vh auto; } }
[data-skin="dedsec"] .yo-404 .yo-glitch::before { color: #b3000d; }
[data-skin="dedsec"] .yo-404 .yo-glitch::after { color: #0a0a0a; }
[data-skin="dedsec"] .yo-404 .notfound-art { display: none; }                      /* the source overlay already prints the GET line */
[data-skin="dedsec"] .yo-404 p { color: #262626; }
[data-skin="dedsec"] .yo-404 .button-ghost { color: #0a0a0a; text-decoration-color: #0a0a0a; }


/* ── Pixel art: sprites, skeletons, dialogs, hero scenes ─────────────────── */

.ds-spr { display: inline-block; background: no-repeat 0 0 / 100% 100%; image-rendering: pixelated; }
.ds-alert  { width: 42px; height: 39px; background-image: url("../img/dedsec/alert.svg"); }
.ds-floppy { width: 56px; height: 52px; background-image: url("../img/dedsec/floppy.svg"); }
.ds-cursor { width: 36px; height: 51px; background-image: url("../img/dedsec/cursor.svg"); }

/* a skeleton in a DEDSEC shirt: two frames that swap, so it dances */
.ds-skel { position: relative; width: 120px; height: 156px; }
.ds-skel i { position: absolute; inset: 0; background: url("../img/dedsec/skeleton-a.svg") 0 0 / 100% 100% no-repeat; image-rendering: pixelated; animation: ds-bob-a 0.9s steps(1) infinite; }
.ds-skel i.b { background-image: url("../img/dedsec/skeleton-b.svg"); animation-name: ds-bob-b; }
@keyframes ds-bob-a { 0%, 49.9% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes ds-bob-b { 0%, 49.9% { opacity: 0; } 50%, 100% { opacity: 1; } }

/* classic grey dialogs */
.ds-dlg { position: absolute; width: 196px; background: #c8c8c8; color: #0a0a0a; border: 2px solid; border-color: #fff #3a3a3a #3a3a3a #fff; box-shadow: 4px 4px 0 #000; font: 0.68rem/1.35 var(--font-mono); letter-spacing: 0.04em; }
.ds-dlg-t { background: #555; color: #fff; padding: 0.15rem 0.45rem; margin: 2px; letter-spacing: 0.1em; background-image: url("../img/dedsec/winbtns.svg"); background-repeat: no-repeat; background-position: right 2px center; background-size: auto 11px; image-rendering: pixelated; }
.ds-dlg-b { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0.6rem 0.4rem; }
.ds-dlg-b .ds-alert { flex: none; width: 28px; height: 26px; }
[data-skin="dedsec"] body.yorha .ds-dlg-b p { margin: 0; color: #0a0a0a; font-size: 0.66rem; }
.ds-dlg-f { display: flex; gap: 0.45rem; justify-content: center; padding: 0.2rem 0.5rem 0.6rem; }
.ds-dlg-f b { font-weight: 400; min-width: 3.6rem; text-align: center; padding: 0.15rem 0.5rem; background: #d9d9d9; border: 2px solid; border-color: #fff #555 #555 #fff; box-shadow: 1px 1px 0 #000; }

/* hero scenes (wide screens only) */
[data-skin="dedsec"] .hero .container { position: relative; }
.ds-art { display: none; position: absolute; right: 0; top: 0.4rem; width: 270px; z-index: 1; border: 2px solid #000; outline: 1px solid var(--border); box-shadow: 6px 6px 0 var(--ds-red); overflow: hidden; }
@media (min-width: 1180px) {
  .ds-art { display: block; }
  [data-skin="dedsec"] .hero .hero-inner { max-width: 640px; }
  [data-skin="dedsec"] .hero .container:has(> .ds-art) { min-height: 300px; }     /* the panel never spills into the next section */
}
.ds-win-t { height: 1.7rem; padding: 0 0.6rem; background: var(--ds-titlebar) url("../img/dedsec/winbtns.svg") right 5px center / auto 15px no-repeat; image-rendering: pixelated; color: #fff; font: 0.72rem/1.7rem var(--font-mono); letter-spacing: 0.08em; }
.ds-win-b { height: 214px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; background: url("../img/dedsec/skulls-purple.svg") 0 0 / 144px 120px; image-rendering: pixelated; }
.ds-win-b .ds-skel { margin-bottom: -10px; }
.ds-win-f { background: #0a0a0a; color: #fff; font: 0.7rem/1.8rem var(--font-mono); text-align: center; letter-spacing: 0.22em; border-top: 2px solid #000; }

/* hero picture (static/img/dedsec/art/<page>-hero.webp) in a window frame */
.ds-art-img { width: 360px; background: #1b1b1b; }
.ds-img { position: relative; height: 225px; overflow: hidden; background: #1b1b1b; }
.ds-img i { position: absolute; inset: 0; background: center / cover no-repeat; }
.ds-img::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgb(0 0 0 / 0.16) 0 1px, transparent 1px 3px); }
/* quiet motion: the panel is scanned in once, the picture drifts very slowly, and a slice glitches every ~9 s */
.ds-art-img { animation: ds-scan-in 520ms steps(7, end) both; }
@keyframes ds-scan-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.ds-img-a { animation: ds-drift 26s ease-in-out infinite alternate; will-change: transform; }
@keyframes ds-drift { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.11) translate(-2.2%, -1.6%); } }
.ds-img-g { opacity: 0; animation: ds-slice 9s steps(1, end) infinite; }
@keyframes ds-slice {
  0%, 93%, 100% { opacity: 0; }
  93.5% { opacity: 1; clip-path: inset(24% 0 56% 0); transform: translateX(-7px); }
  95%   { opacity: 1; clip-path: inset(63% 0 15% 0); transform: translateX(6px); }
  96.5% { opacity: 1; clip-path: inset(8% 0 80% 0); transform: translateX(-4px); }
  97.5% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .ds-art-img, .ds-img-a, .ds-img-g { animation: none; } }
@media (min-width: 1180px) {
  [data-skin="dedsec"] .hero .container:has(> .ds-art-img) .hero-inner { max-width: 590px; }
  [data-skin="dedsec"] .hero .container:has(> .ds-art-img) { min-height: 310px; }
  /* Search's hero is one box that is both the container and the hero-inner: widen it and keep its text clear of the panel */
  [data-skin="dedsec"] .hero .container.hero-inner:has(> .ds-art) { width: min(100% - 2.5rem, 980px); max-width: none; padding-right: 400px; box-sizing: border-box; }
}

.ds-art-b { height: 250px; background: #151515 radial-gradient(circle, rgb(255 255 255 / 0.12) 1px, transparent 1.6px) 0 0 / 6px 6px; }
.ds-shard { position: absolute; background: var(--ds-lime); clip-path: polygon(0 15%, 8% 0, 16% 12%, 25% 2%, 35% 14%, 46% 0, 58% 11%, 70% 1%, 82% 13%, 92% 3%, 100% 12%, 100% 88%, 90% 100%, 80% 87%, 68% 99%, 55% 86%, 44% 100%, 33% 88%, 22% 99%, 11% 87%, 0 100%); }
.ds-shard.s1 { left: -24px; top: 26px; width: 230px; height: 96px; transform: rotate(-12deg); }
.ds-shard.s2 { right: -34px; bottom: 14px; width: 210px; height: 74px; transform: rotate(9deg); }
.ds-art-b .d1 { left: 14px; top: 44px; transform: rotate(-2deg); }
.ds-art-b .d2 { right: 8px; top: 132px; transform: rotate(1.5deg); }

.ds-art-c { height: 250px; background: var(--ds-purple) url("../img/dedsec/skulls-purple.svg") 0 0 / 144px 120px; image-rendering: pixelated; }
.ds-crt { position: absolute; left: 24px; top: 24px; width: 222px; height: 164px; padding: 14px; background: #2b2b2b; border: 3px solid #000; border-radius: 10px; box-shadow: inset 0 0 0 3px #4a4a4a, 4px 4px 0 #000; }
.ds-crt-screen { position: relative; height: 100%; display: grid; place-items: center; overflow: hidden; background: #6fd400; border-radius: 6px; box-shadow: inset 0 0 18px rgb(0 0 0 / 0.35); }
.ds-crt-screen::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgb(0 0 0 / 0.14) 0 1px, transparent 1px 3px); }
[data-skin="dedsec"] body.yorha .ds-crt-screen p { margin: 0; position: relative; z-index: 1; color: #2a0a45; font: 1.1rem/1.25 var(--font-mono); text-align: center; letter-spacing: 0.06em; text-shadow: 1px 1px 0 rgb(255 255 255 / 0.25); }
.ds-crt-led { position: absolute; right: 12px; bottom: 5px; width: 6px; height: 6px; background: var(--ds-red); }
.ds-art-c .c1 { position: absolute; left: 196px; top: 168px; }
.ds-art-c .f1 { position: absolute; left: 18px; bottom: 6px; width: 42px; height: 39px; transform: rotate(-8deg); }
.ds-art-c .f2 { position: absolute; left: 70px; bottom: 2px; width: 42px; height: 39px; transform: rotate(6deg); }

/* margin stickers (wide screens) */
.ds-stk { display: none; position: absolute; }
@media (min-width: 1320px) { .ds-stk { display: inline-block; } }
.ds-stk-1 { left: 2.2vw; top: 44%; transform: rotate(-9deg); }
.ds-stk-2 { left: 6vw; top: 62%; }
.ds-stk-3 { left: 1.6vw; top: 80%; width: 42px; height: 39px; transform: rotate(8deg); }

/* 404: an inked horror-comic collage fills the page; the error window sits in its calm lower-right corner */
.ds-art-bg { position: absolute; inset: 0; background: #1b1b1b url("../img/dedsec/art/404-collage.webp") 30% 0 / cover no-repeat; }
@media (max-width: 720px) { .ds-art-bg { background-size: auto 70vh; background-position: 24% 0; } .ds-deco.is-404 .ds-tape-b { display: none; } }
@media (prefers-reduced-motion: reduce) { .ds-skel i.b { display: none; } .ds-skel i { animation: none; } }


/* 404: ctOS shutting down (static/js/dedsec.js): terminal log, glitch, CRT collapse, then the page flickers in */
.ds-down { position: fixed; inset: 0; z-index: 2000; display: grid; place-content: center; cursor: pointer; background: #000; color: #f2f2f2; font: 0.82rem/1.9 var(--font-mono); letter-spacing: 0.08em; }
.ds-down::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgb(255 255 255 / 0.05) 0 1px, transparent 1px 3px); }
.ds-down-box { position: relative; width: min(380px, calc(100vw - 2.4rem)); }
.ds-down-skull { width: 56px; height: 52px; margin-bottom: 1rem; background: url("../img/dedsec/skull.svg") 0 0 / 100% 100% no-repeat; image-rendering: pixelated; visibility: hidden; }
.ds-down-skull.on { visibility: visible; animation: ds-skull-in 240ms steps(3) both; }
@keyframes ds-skull-in { 0% { opacity: 0; transform: translateX(-8px); } 50% { opacity: 1; transform: translateX(6px); } 100% { opacity: 1; transform: none; } }
.ds-down-row { display: flex; gap: 0.6rem; white-space: nowrap; animation: ds-row-in 120ms steps(2) both; }
@keyframes ds-row-in { from { opacity: 0; } to { opacity: 1; } }
.ds-down-row i { flex: 1; min-width: 1rem; border-bottom: 1px dotted #6a6a6a; transform: translateY(-0.5em); }
.ds-down-row b { font-weight: 400; color: #f2f2f2; }
.ds-down-row b.bad { color: var(--accent); }
.ds-down-bar { height: 9px; margin-top: 1rem; border: 1px solid #f2f2f2; padding: 1px; }
.ds-down-bar i { display: block; height: 100%; width: 0; background: var(--ds-red); transition: width 1000ms linear; }
.ds-down-skip { margin-top: 1rem; font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: #8a8a8a; }
.ds-down.is-glitch .ds-down-box { animation: ds-down-shake 400ms steps(2) both; }
@keyframes ds-down-shake {
  0%   { transform: none; }
  25%  { transform: translate(-7px, 2px); text-shadow: 3px 0 var(--accent), -3px 0 rgb(255 255 255 / 0.6); clip-path: inset(0 0 60% 0); }
  50%  { transform: translate(6px, -3px) skewX(-6deg); text-shadow: -3px 0 var(--accent), 3px 0 rgb(255 255 255 / 0.6); clip-path: inset(35% 0 0 0); }
  75%  { transform: translate(-3px, 1px); text-shadow: 2px 0 var(--accent); clip-path: none; }
  100% { transform: none; }
}
.ds-down.is-off { animation: ds-crt-off 650ms cubic-bezier(0.6, 0, 0.8, 0.4) forwards; }
@keyframes ds-crt-off {
  0%   { transform: scale(1, 1); background: #000; }
  35%  { transform: scale(1, 0.012); background: #fff; filter: brightness(1.6); }
  75%  { transform: scale(0.02, 0.012); background: #fff; filter: brightness(2); }
  100% { transform: scale(0, 0); background: #fff; opacity: 0; }
}
.ds-boot-in { animation: ds-boot-in 520ms steps(1) both; }
@keyframes ds-boot-in { 0% { opacity: 0; } 15% { opacity: 1; } 28% { opacity: 0.15; } 42% { opacity: 1; } 55% { opacity: 0.5; } 70% { opacity: 1; } 100% { opacity: 1; } }
/* the illustration jitters now and then, like a failing feed */
.ds-deco.is-404 .ds-art-bg { animation: ds-feed 9s steps(1) infinite; }
@keyframes ds-feed { 0%, 92%, 100% { transform: none; filter: none; } 93% { transform: translateX(-4px); filter: contrast(1.3); } 94% { transform: translateX(5px); } 95% { transform: translate(-2px, 1px); filter: brightness(1.25); } 96% { transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { .ds-deco.is-404 .ds-art-bg { animation: none; } .ds-boot-in { animation: none; } }


/* ── Cursor trail, click tags, "access denied" ───────────────────────────── */

.ds-fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 900; pointer-events: none; image-rendering: pixelated; }
.ds-tag {
  position: fixed; z-index: 905; pointer-events: none; padding: 0.12rem 0.55rem; background: var(--ds-red); color: #0a0a0a; font: 0.66rem/1.4 var(--font-mono); letter-spacing: 0.14em; white-space: nowrap;
  box-shadow: 3px 3px 0 #000; animation: ds-tag 900ms steps(1) both;
}
.ds-tag.bad { background: #f2f2f2; color: #b3000d; box-shadow: 3px 3px 0 var(--ds-red); }
@keyframes ds-tag { 0% { opacity: 0; transform: translate(-6px, 4px); } 12% { opacity: 1; transform: translate(3px, -2px); } 24% { transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); } }
[data-skin="dedsec"] .ds-denied { animation: ds-shake 480ms steps(2) both; outline: 2px solid var(--ds-red); outline-offset: 3px; }
@keyframes ds-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

/* ── Hidden takeover (type "dedsec" or the Konami code) ──────────────────── */

.ds-hack { position: fixed; inset: 0; z-index: 2500; background: rgb(0 0 0 / 0.88); overflow: hidden; cursor: pointer; animation: ds-hack-in 260ms steps(3) both; }
.ds-hack.out { animation: ds-hack-out 380ms steps(4) forwards; }
@keyframes ds-hack-in { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
@keyframes ds-hack-out { to { opacity: 0; transform: scaleY(0.02); } }
.ds-hack::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgb(255 255 255 / 0.05) 0 1px, transparent 1px 3px); }
.ds-hack-tape { position: absolute; left: -10%; width: 130%; height: 3.2rem; background: var(--ds-red); color: #0a0a0a; font: 1.15rem/3.2rem var(--font-mono); letter-spacing: 0.22em; white-space: nowrap; overflow: hidden; -webkit-text-stroke: 0.5px #0a0a0a; }
.ds-hack-tape.a { top: 14%; transform: rotate(-6deg); animation: ds-tape-l 14s linear infinite; }
.ds-hack-tape.b { top: 52%; transform: rotate(5deg); animation: ds-tape-r 12s linear infinite; }
.ds-hack-tape.c { bottom: 8%; transform: rotate(-3deg); animation: ds-tape-l 18s linear infinite; }
.ds-hack-tape span { display: inline-block; }
@keyframes ds-tape-l { to { transform: rotate(var(--r, 0deg)) translateX(-30%); } }
.ds-hack-tape.a { --r: -6deg; } .ds-hack-tape.b { --r: 5deg; animation-name: ds-tape-r; } .ds-hack-tape.c { --r: -3deg; }
@keyframes ds-tape-r { from { transform: rotate(var(--r, 0deg)) translateX(-30%); } to { transform: rotate(var(--r, 0deg)) translateX(0); } }
.ds-hack-skel { position: absolute; right: 12vw; bottom: 10vh; transform: scale(2.6); transform-origin: 50% 100%; }
.ds-hack-log { position: absolute; left: 8vw; top: 30vh; margin: 0; font: 0.95rem/2 var(--font-mono); color: #f2f2f2; letter-spacing: 0.08em; text-shadow: 2px 0 var(--ds-red); }
.ds-hack-skip { position: absolute; left: 0; right: 0; bottom: 1.5rem; text-align: center; font: 0.62rem var(--font-mono); letter-spacing: 0.24em; text-transform: uppercase; color: #8a8a8a; }
@media (max-width: 720px) { .ds-hack-skel { right: 4vw; transform: scale(1.7); } .ds-hack-log { left: 5vw; font-size: 0.78rem; } }

/* ── Contact / Docs terminal ─────────────────────────────────────────────── */

.ds-term { margin: 1.4rem 0 0; max-width: 560px; border: 2px solid #000; outline: 1px solid var(--border); background: #0d0d0d; box-shadow: 5px 5px 0 var(--ds-red); }
.ds-term-t { background: var(--ds-titlebar) url("../img/dedsec/winbtns.svg") right 5px center / auto 13px no-repeat; image-rendering: pixelated; color: #fff; padding: 0 0.6rem; font: 0.68rem/1.7rem var(--font-mono); letter-spacing: 0.08em; }
.ds-term-b { padding: 0.7rem 0.8rem; min-height: 6.5rem; font: 0.8rem/1.75 var(--font-mono); color: var(--text); }
.ds-term-l { white-space: pre-wrap; overflow-wrap: anywhere; }
.ds-term-l .p { color: var(--accent); }
.ds-term-l.o { padding-left: 1.2rem; color: var(--text-muted); }
.ds-term-l.o a { color: var(--text); text-decoration: none; border-bottom: 1px dotted var(--text-faint); }
.ds-term-l.o a:hover { background: var(--yo-fill); color: var(--yo-ink); border-bottom-color: transparent; }
.ds-term-l .cur { animation: ds-blink 1s steps(2, jump-none) infinite; }
@media (prefers-reduced-motion: reduce) { .ds-term-l .cur { animation: none; } }

/* ── About: redaction bars that open ─────────────────────────────────────── */

[data-skin="dedsec"] .ds-redact { position: relative; }
[data-skin="dedsec"] .ds-redact::after {
  content: ""; position: absolute; inset: -0.05em -0.3em; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(180deg, #2c2c2c 0, #2c2c2c 1.25em, transparent 1.25em, transparent 1.8em); border-left: 3px solid var(--ds-red);
  transform-origin: right center; transition: transform 520ms steps(8, end);
}
[data-skin="dedsec"] .ds-redact.is-open::after { transform: scaleX(0); }
[data-skin="dedsec"] .about-stack dd.ds-redact::after { background: #2c2c2c; }

/* ── "ACCESSING //" screen on heavy pages ────────────────────────────────── */

html[data-skin="dedsec"].ds-loading::before { content: ""; position: fixed; inset: 0; z-index: 3000; background: #0a0a0a; animation: ds-load-timeout 0.01s 4.7s forwards; }
html[data-skin="dedsec"].ds-loading::after {
  content: "ACCESSING //"; position: fixed; left: 50%; top: 50%; z-index: 3001; transform: translate(-50%, -50%) rotate(-3deg); padding: 0.1rem 1.4rem; background: var(--ds-red); color: #0a0a0a;
  font: 400 clamp(2rem, 7vw, 3.6rem)/1.1 var(--font-serif); letter-spacing: 0.1em; box-shadow: 6px 6px 0 #f2f2f2; animation: ds-load-blink 700ms steps(2, jump-none) infinite, ds-load-timeout 0.01s 4.7s forwards;
}
html[data-skin="dedsec"].ds-loading.ds-loaded::before, html[data-skin="dedsec"].ds-loading.ds-loaded::after { opacity: 0; transition: opacity 340ms steps(4); }
@keyframes ds-load-timeout { to { opacity: 0; visibility: hidden; } }
@keyframes ds-load-blink { 50% { box-shadow: 6px 6px 0 var(--ds-red); } }
@media (prefers-reduced-motion: reduce) { html[data-skin="dedsec"].ds-loading::after { animation: none; } }

/* ── Threat Weather as a ctOS display (DedSec only) ──────────────────────── */

[data-skin="dedsec"] .yt { background: #0d0d0d; border: 2px solid #000; outline: 1px solid var(--border); box-shadow: 7px 7px 0 var(--ds-red); padding: 18px; }
[data-skin="dedsec"] .yt::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgb(255 255 255 / 0.03) 0 1px, transparent 1px 3px); }
[data-skin="dedsec"] .yt-head { margin: -18px -18px 12px; padding: 0.35rem 0.8rem; background: var(--ds-titlebar); border-bottom: 2px solid #000; color: #fff; }
[data-skin="dedsec"] .yt-head span:first-child::before { content: "ctOS // "; }
[data-skin="dedsec"] .yt-head span:last-child { color: #fff; }
[data-skin="dedsec"] .yt-stale { border-color: var(--ds-red); background: rgb(255 45 58 / 0.1); }
[data-skin="dedsec"] .yt-kpis { border: 2px solid #000; outline: 1px solid var(--border); }
[data-skin="dedsec"] .yt-kpi { border-right: 1px solid var(--border-soft); position: relative; }
[data-skin="dedsec"] .yt-kpi::before { content: ""; position: absolute; left: 0; top: 0.8rem; bottom: 0.8rem; width: 3px; background: var(--ds-red); }
[data-skin="dedsec"] .yt-kpi small { padding-left: 0.4rem; }
[data-skin="dedsec"] .yt-kpi b { padding-left: 0.4rem; font-family: var(--font-serif); font-weight: 400; font-size: 2.6rem; line-height: 1.05; color: #fff; }
[data-skin="dedsec"] .yt-kpi b.ds-flash { animation: ds-kflash 700ms steps(1) both; }
@keyframes ds-kflash { 0% { color: var(--accent); text-shadow: 3px 0 var(--ds-red), -3px 0 #fff; transform: translateX(3px); } 30% { transform: translateX(-3px); } 60% { color: #fff; text-shadow: 2px 0 var(--ds-red); transform: none; } 100% { text-shadow: none; } }
[data-skin="dedsec"] .yt-pan { border: 1px solid var(--border); border-left: 3px solid var(--ds-red); background: rgb(0 0 0 / 0.25); }
[data-skin="dedsec"] .yt-pan h4 { color: var(--text-muted); }
[data-skin="dedsec"] .yt-pan h4::before { content: ">_ "; color: var(--accent); }
[data-skin="dedsec"] .yt-map {
  overflow: hidden; background: repeating-linear-gradient(90deg, rgb(255 255 255 / 0.05) 0 1px, transparent 1px 10%), repeating-linear-gradient(0deg, rgb(255 255 255 / 0.05) 0 1px, transparent 1px 12.5%); cursor: crosshair;
}
[data-skin="dedsec"] .yt-land { background: #cfcfcf; opacity: 0.3; }
[data-skin="dedsec"] .yt-map::after { content: ""; position: absolute; top: 0; bottom: 0; left: -22%; width: 22%; pointer-events: none; background: linear-gradient(90deg, transparent, rgb(255 45 58 / 0.2)); border-right: 1px solid rgb(255 45 58 / 0.7); animation: ds-radar 6.5s linear infinite; }
@keyframes ds-radar { to { transform: translateX(560%); } }
[data-skin="dedsec"] .yt-map .arc { stroke: var(--ds-red); opacity: 0.6; stroke-width: 0.45; }
[data-skin="dedsec"] .yt-map .dot { fill: var(--ds-red); opacity: 1; }
[data-skin="dedsec"] .yt-map .dot.top { fill: #fff; }
[data-skin="dedsec"] .yt-map .home { fill: #fff; }
.ds-ping { position: absolute; width: 0; height: 0; pointer-events: none; }
.ds-ping i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border: 1.5px solid var(--ds-red); border-radius: 50%; animation: ds-ping 1.5s ease-out both; }
.ds-ping b { position: absolute; left: 8px; top: -14px; font: 400 0.6rem var(--font-mono); letter-spacing: 0.1em; color: #fff; text-shadow: 0 0 3px #000; animation: ds-ping-t 1.6s steps(1) both; }
@keyframes ds-ping { 0% { transform: scale(0.4); opacity: 1; } 100% { transform: scale(7); opacity: 0; } }
@keyframes ds-ping-t { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
.ds-xh { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 120ms; }
.ds-xh.on { opacity: 1; }
.ds-xh .h { position: absolute; left: 0; right: 0; height: 1px; background: rgb(255 45 58 / 0.55); }
.ds-xh .v { position: absolute; top: 0; bottom: 0; width: 1px; background: rgb(255 45 58 / 0.55); }
.ds-xh b { position: absolute; font: 400 0.6rem var(--font-mono); letter-spacing: 0.1em; color: #fff; background: rgb(0 0 0 / 0.65); padding: 0 0.3rem; white-space: nowrap; }
.ds-tick { overflow: hidden; white-space: nowrap; margin: 0 0 0.9rem; padding: 0.3rem 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); font: 0.66rem/1.6 var(--font-mono); letter-spacing: 0.08em; color: var(--text-faint); }
.ds-tick-in { display: inline-block; animation: ds-marq 70s linear infinite; }
@keyframes ds-marq { to { transform: translateX(-50%); } }
[data-skin="dedsec"] .yt-feed div::before { content: "> "; color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .ds-tick-in, [data-skin="dedsec"] .yt-map::after { animation: none; } }

/* ── The ctOS eye (static/js/dedsec.js) ──────────────────────────────────── */

.ds-eye {
  position: fixed; right: 0.9rem; bottom: 0.9rem; z-index: 40; pointer-events: none;
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.15rem;
}
.ds-eye canvas { display: block; width: 104px; height: 64px; }
.ds-eye-tag {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-faint);
  background: var(--bg); padding: 0 0.3rem;
}
.ds-eye.is-scan .ds-eye-tag { color: var(--accent); }
@media (max-width: 720px) {
  .ds-eye canvas { width: 64px; height: 40px; }
  .ds-eye-tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  [data-skin="dedsec"] body.yorha main .hero h1 { animation: none; }
  [data-skin="dedsec"] body.yorha .site-shell { animation: none; }
}
