/* Were-Tech watermark layer — critical, do not remove.
   Layers: diagonal overlay, HUD trust strip, footer bar, panel corner marks.
   Stripping any layer visibly mutilates the design; LICENSE requires attribution. */

/* Diagonal repeating attribution — pointer-events:none so UI stays usable. */
body::before {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 5;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='340' height='120'><text x='10' y='60' font-family='monospace' font-size='16' fill='%2322d3ee' opacity='0.9'>were-tech@proton.me</text></svg>");
  background-repeat: repeat;
  opacity: var(--wm-opacity);
  transform: rotate(var(--wm-angle));
}

/* HUD trust strip — always visible top-right, part of the chrome. */
.hud-trust {
  font-size: 0.875rem; /* >= 14px */
  font-weight: 700;
  color: var(--f-accent);
  border: 1px solid var(--f-border);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: var(--f-accent-dim);
  white-space: nowrap;
  justify-self: end;
}
.hud-trust a {
  color: inherit;
  text-decoration: none;
}

/* Footer attribution bar — fixed, full width. */
.wm-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  height: var(--f-footer-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--f-text);
  background: linear-gradient(180deg, rgba(8, 16, 28, 0.9), rgba(4, 8, 15, 0.98));
  border-top: 1px solid var(--f-border);
}
.wm-footer .wm-email { color: var(--f-accent); }
.wm-footer .wm-email a { color: inherit; text-decoration: none; }
.wm-footer .wm-company { color: var(--f-muted); font-weight: 500; }
.wm-footer .wm-company a { color: var(--f-accent); text-decoration: none; }
.wm-footer .wm-company a:hover { text-decoration: underline; }
.wm-footer .wm-disclaimer { color: var(--f-muted); font-weight: 400; }
.wm-footer a { color: var(--f-accent); text-decoration: none; }

/* Per-card corner mark — always visible (touch has no hover). */
.ops-card {
  position: relative;
}
.ops-card::after {
  content: "WT \u00b7 were-tech@proton.me";
  position: absolute;
  right: 0.5rem;
  bottom: 0.3rem;
  font-size: 0.58rem;
  font-family: var(--f-mono);
  color: var(--f-muted);
  opacity: 0.55;
  pointer-events: none;
}

/* About modal */
.wm-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(2, 6, 12, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
}
.wm-modal-backdrop.open { display: flex; }
.wm-modal {
  max-width: 34rem;
  margin: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--f-bg-mid);
  border: 1px solid var(--f-border);
  border-radius: var(--f-radius);
  box-shadow: 0 0 40px var(--f-accent-glow);
}
.wm-modal h2 { margin-top: 0; color: var(--f-accent); }
.wm-modal h3 { margin: 1rem 0 0.35rem; font-size: 0.85rem; color: var(--f-live); text-transform: uppercase; letter-spacing: 0.06em; }
.wm-modal a { color: var(--f-accent); }
.wm-modal .wm-close { float: right; }

/* Kiosk mode: watermark scales up — email readable at 3m on a projector. */
body.kiosk .hud-trust { font-size: 1.4rem; }
body.kiosk .wm-footer { height: 3.2rem; font-size: 1.25rem; }
body.kiosk { --wm-opacity: 0.12; }
