/*
  M.E.S.S. ecosystem shared style
  Typography: Orbitron only for brand, heroes, headlines, and labels.
  Body and all running text: Inter (system-ui fallback) for readability.
*/

/* Fonts: self-hosted from mess.engineering. Lokal testen: font/ im Projekt anlegen, .ttf rein, unten relative URLs verwenden. */
@font-face {
  font-family: Orbitron;
  src: url("https://mess.engineering/font/Orbitron-VariableFont_wght.ttf") format("truetype");
  /* Lokal: url("font/Orbitron-VariableFont_wght.ttf") */
  font-weight: 100 900;
  font-display: swap;
}

/* Inter: Variable Font (Achsen opsz + wght). */
@font-face {
  font-family: Inter;
  src: url("https://mess.engineering/font/Inter-VariableFont_opsz,wght.ttf") format("truetype");
  /* Lokal: url("font/Inter-VariableFont_opsz,wght.ttf") */
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0b0f14;
  --bg-soft: #111720;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.12);

  --text: #f4f7fb;
  --muted: #98a4b3;

  --dampf: #00fff2;
  --keim: #9ccc65;
  --wolke: #ffffff;
  --blitz: #ff5a4f;

  --radius: 24px;
  --radius-sm: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --maxw: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-color: var(--dampf) #0a0e13;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px;
  background: #0a0e13;
}

::-webkit-scrollbar-track {
  background: #0a0e13;
  border-left: 1px solid rgba(0, 255, 242, 0.1);
}

::-webkit-scrollbar-thumb {
  background: var(--dampf);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--dampf);
  border: 2px solid #0a0e13;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--wolke);
  box-shadow: 0 0 15px var(--wolke);
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  height: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: visible;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(0, 255, 242, 0.07), transparent 26%),
    radial-gradient(circle at top right, rgba(255, 90, 79, 0.06), transparent 24%),
    linear-gradient(180deg, #0a0e13 0%, #0b0f14 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(calc(100% - 32px), var(--maxw));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11, 15, 20, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.topbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Orbitron: brand only */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Orbitron, sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(0,255,242,0.15), rgba(255,90,79,0.15));
  box-shadow: var(--shadow);
  font-size: 0.92rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition: 0.2s ease;
  white-space: nowrap;
}

.nav a:hover,
.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-strong);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(0,255,242,0.13), rgba(255,90,79,0.13));
  border-color: rgba(255, 255, 255, 0.14);
}

.hero {
  padding: 72px 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.92rem;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dampf), var(--blitz));
  box-shadow: 0 0 16px rgba(0,255,242,0.45);
}

.hero-grid {
  display: block;
}

/* Orbitron: hero headline only */
.hero h1 {
  margin: 0 0 18px;
  max-width: 10ch;
  font-family: Orbitron, sans-serif;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: 0.08em;
}

.hero p.lead {
  margin: 0 0 24px;
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero .pipeline-catch {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--text);
}

/* Orbitron: pipeline label line + links */
.hero .pipeline-catch,
.hero .pipeline-catch a {
  font-family: Orbitron, sans-serif;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.hero .pipeline-catch a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  text-underline-offset: 2px;
}

.hero .pipeline-catch a:hover {
  color: var(--dampf);
  border-bottom-color: var(--dampf);
}

.hero-pipeline-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-pipeline-row .pipeline-catch {
  margin-bottom: 0;
}

.hero-talk {
  margin: 0;
  flex-shrink: 0;
}

.hero-talk a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero-talk a:hover {
  color: var(--text);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.meta-card,
.side-card,
.tool-card,
.pipeline-shell {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.meta-card {
  padding: 18px;
  border-radius: var(--radius-sm);
}

.meta-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.1rem;
}

.meta-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

.side-card {
  padding: 22px;
  border-radius: var(--radius);
}

/* Orbitron: card title only */
.side-card h2 {
  margin: 0 0 12px;
  font-family: Orbitron, sans-serif;
  font-weight: 500;
  letter-spacing: 0.06em;
  font-size: 1.08rem;
}

.side-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: #dce4ec;
  font-size: 0.9rem;
}

.section {
  padding: 14px 0 18px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 18px;
}

/* Orbitron: section headline only */
.section-header h2 {
  margin: 0;
  font-family: Orbitron, sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: 0.06em;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  max-width: 760px;
}

.section-meta {
  margin: 0;
  flex-shrink: 0;
}

.section-meta a {
  color: var(--muted);
  font-size: 0.95rem;
}

.section-meta a:hover {
  color: var(--text);
}


.pipeline-foot {
  margin-top: 24px;
  max-width: 640px;
}

.pipeline-desc {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.98rem;
}

.pipeline-foot .tag-row {
  margin-bottom: 14px;
}

.pipeline-readme {
  margin: 0;
  font-size: 0.95rem;
}

.pipeline-readme a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pipeline-readme a:hover {
  color: var(--text);
}

.pipeline-shell {
  padding: 18px;
  border-radius: 32px;
}

.pipeline-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #0d1219;
}

.pipeline-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hotspot {
  position: absolute;
  display: block;
  border-radius: 18px;
  background: transparent;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.hs-dampf {
  border: 2px solid var(--dampf);
}

.hs-keim {
  border: 2px solid var(--keim);
}

.hs-wolke {
  border: 2px solid var(--wolke);
}

.hs-blitz {
  border: 2px solid var(--blitz);
}

/* Orbitron: hotspot label only */
.hotspot::after {
  content: attr(data-label);
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 10px;
  border-radius: 999px;
  font-family: Orbitron, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(6px);
  transition: 0.2s ease;
  pointer-events: none;
  color: white;
  background: rgba(11, 15, 20, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hotspot:hover::after,
.hotspot:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.hotspot:hover,
.hotspot:focus-visible {
  outline: none;
  transform: scale(1.012);
}

.hs-dampf:hover,
.hs-dampf:focus-visible {
  background: rgba(0, 255, 242, 0.10);
  border-color: rgba(0, 255, 242, 0.80);
  box-shadow: 0 0 0 1px rgba(0,255,242,0.26), 0 0 26px rgba(0,255,242,0.18);
}

.hs-keim:hover,
.hs-keim:focus-visible {
  background: rgba(156, 204, 101, 0.10);
  border-color: rgba(156, 204, 101, 0.82);
  box-shadow: 0 0 0 1px rgba(156,204,101,0.24), 0 0 26px rgba(156,204,101,0.18);
}

.hs-wolke:hover,
.hs-wolke:focus-visible {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.90);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18), 0 0 26px rgba(255,255,255,0.16);
}

.hs-blitz:hover,
.hs-blitz:focus-visible {
  background: rgba(255, 90, 79, 0.10);
  border-color: rgba(255, 90, 79, 0.84);
  box-shadow: 0 0 0 1px rgba(255,90,79,0.24), 0 0 26px rgba(255,90,79,0.18);
}

.tools {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tool-card {
  display: block;
  padding: 20px;
  border-radius: 22px;
  transition: 0.2s ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  background: var(--panel-strong);
  border-color: var(--line-strong);
}

.tool-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

/* Orbitron: module name only */
.tool-name {
  margin: 0;
  font-family: Orbitron, sans-serif;
  font-weight: 500;
  font-size: 1.18rem;
  letter-spacing: 0.08em;
}

.tool-pill {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.tool-card p {
  margin: 0 0 18px;
  min-height: 72px;
  color: var(--muted);
}

.accent-dampf {
  box-shadow: inset 0 1px 0 rgba(0, 255, 242, 0.12), var(--shadow);
}

.accent-keim {
  box-shadow: inset 0 1px 0 rgba(156, 204, 101, 0.12), var(--shadow);
}

.accent-wolke {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), var(--shadow);
}

.accent-blitz {
  box-shadow: inset 0 1px 0 rgba(255, 90, 79, 0.12), var(--shadow);
}

.footer {
  padding: 38px 0 56px;
  color: var(--muted);
}

.footer-box {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.footer small {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer a:hover {
  color: var(--text);
}

/* ==========================================================================
   Legal Pages (Impressum, Datenschutz) – body.legal
   ========================================================================== */
html:has(body.legal) {
  height: auto;
  overflow: auto;
}

body.legal {
  height: auto;
  min-height: 100vh;
  overflow: visible;
  width: auto;
  max-width: 700px;
  margin: 3em auto;
  padding: 2em;
  background: #010c12;
  color: var(--dampf);
  border-radius: 1em;
  box-shadow: 0 0 22px rgba(0, 255, 242, 0.27);
  font-family: Inter, system-ui, sans-serif;
}

body.legal h1 {
  color: var(--dampf);
}

body.legal h2 {
  color: var(--dampf);
  margin-top: 1.5em;
}

body.legal a {
  color: #f6ffff;
}

body.legal .small {
  font-size: 0.95em;
  color: rgba(0, 255, 242, 0.85);
  margin-top: 1.2em;
}

/* ==========================================================================
   Homepage / Landing (index.html)
   ========================================================================== */
#center-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  flex: 1;
  width: 100%;
  max-width: 100vw;
  text-align: center;
  pointer-events: none;
  flex-wrap: nowrap;
  padding-top: clamp(1.5em, 3vh, 3em);
  font-family: Orbitron, Arial, sans-serif;
}

#services-section {
  position: relative;
  z-index: 20;
  width: 95%;
  max-width: 1200px;
  margin: clamp(1rem, 2.5vh, 2rem) auto 0 auto;
  padding: 1.5em 1.5em;
  color: var(--text);
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 0.95fr));
  gap: 2em;
  width: 100%;
}

#cta-terminal {
  display: flex;
  justify-content: center;
  margin-top: clamp(0.8em, 1.5vh, 1.2em);
  margin-bottom: clamp(0.6em, 1.2vh, 1em);
  position: relative;
  z-index: 1000;
}

#identity-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: clamp(14px, 2vw, 22px);
  margin-top: clamp(1em, 1.5vh, 2em);
  margin-bottom: clamp(1em, 1.5vh, 2em);
  position: relative;
  z-index: 1000;
}

#coord-system {
  position: relative;
  width: fit-content;
  min-width: 3em;
  min-height: 3.5em;
  margin: 0 auto 0.5em auto;
  pointer-events: none;
  padding: 0 1.6em;
}

.axis-x, .axis-y {
  position: absolute;
  opacity: 0.8;
  z-index: 1;
  border-radius: 3px;
}

.axis-x {
  left: -2.6em; right: -2.6em;
  top: 86%;
  height: 0.5em;
  background: linear-gradient(90deg, transparent 0 10%, var(--dampf) 20% 50%, transparent 90% 100%);
  opacity: 0.7;
}

.axis-y {
  top: -2.0em; bottom: -2.0em;
  left: 27.5%;
  width: 0.5em;
  transform: translateX(-50%);
  background: linear-gradient(transparent 0 13%, var(--dampf) 50% 90%, transparent 98% 100%);
  opacity: 0.7;
}

.origin-zero {
  position: absolute;
  font-family: Orbitron, sans-serif;
  font-weight: 700;
  font-size: 1.2em;
  color: var(--dampf);
  left: 30%; top: 100%;
  opacity: 0.7;
  user-select: none;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.axis-x.hidden, .axis-y.hidden, .origin-zero.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.4s;
}

.quad-row {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.16em;
  z-index: 2;
}

.quad {
  font-family: Orbitron, sans-serif;
  font-weight: 900;
  font-size: clamp(3em, 16vw, 16em);
  color: #f6ffff;
  text-shadow: 0 0 14px var(--dampf), 0 0 4px var(--dampf), 2px 4px 0 #012, 4px 8px 0 #023, 6px 12px 0 #034;
  user-select: none;
  pointer-events: none;
  letter-spacing: 0.12em;
}

#subtitle {
  font-size: clamp(1.1em, 2.6vw, 3em);
  margin-top: clamp(1em, 1.5vh, 1.75em);
  letter-spacing: 0.09em;
  color: #f6ffff;
  font-weight: 900;
  text-align: center;
  opacity: 0.96;
  z-index: 5;
}

#slogan {
  font-size: clamp(1em, 1.6vw, 1.6em);
  margin-top: clamp(1em, 1.5vh, 1.75em);
  color: var(--dampf);
  letter-spacing: 0.06em;
  opacity: 0.91;
  font-family: inherit;
  text-align: center;
  font-weight: 900;
  z-index: 5;
}

.service-card {
  backdrop-filter: blur(4px);
  border-radius: 1em;
  padding: 1.5em;
  text-align: left;
  cursor: none;
  user-select: none;
  transition: transform 0.3s, box-shadow 0.3s;
  pointer-events: none;
  box-shadow: none;
  border: 1px solid rgba(0, 255, 242, 0.25);
  background: rgba(0, 0, 0, 0.35);
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-size: clamp(0.75em, 3.5vw, 1.1em);
  color: var(--dampf);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0, 255, 242, 0.5);
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-card li {
  font-family: Orbitron, monospace;
  font-size: clamp(0.55em, 2.5vw, 0.9em);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  padding-left: 1.2em;
  position: relative;
}

.service-card li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--dampf);
  font-weight: bold;
}

#slogan .smart-button {
  display: inline-block;
  padding: 0.13em 0.32em;
  border: 1.6px solid rgba(0, 255, 255, 0.7);
  border-radius: 0.3em;
  cursor: none;
  transition: box-shadow 0.22s, border-color 0.22s, background 0.2s, filter 0.18s;
  pointer-events: auto;
  background: rgba(0, 255, 255, 0.16);
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.13), 0 0 1px rgba(255, 255, 255, 0.13);
  color: #0ff;
  font-weight: 900;
  margin: 0 0.13em;
}

#slogan .smart-button.toggle-active {
  background: rgba(54, 236, 9, 0.8);
  border-color: rgb(11, 248, 42);
  color: var(--keim);
  box-shadow: 0 0 30px rgba(0, 255, 242, 0.4), 0 0 12px rgba(255, 255, 255, 0.2) inset;
}

#slogan .smart-button.trigger {
  border-color: #f0f;
  color: #fff;
  background: rgba(255, 0, 255, 0.16);
  box-shadow: 0 0 14px rgba(255, 0, 255, 0.13);
}

#slogan .smart-button.trigger:active {
  background: rgba(255, 0, 255, 0.32);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.47), 0 0 10px rgba(255, 0, 255, 0.5);
}

#slogan .smart-button:active,
#slogan .smart-button:focus {
  outline: none;
  filter: brightness(1.25);
}

#slogan .smart-button:hover,
#slogan .smart-button:focus-visible {
  box-shadow: 0 0 24px rgba(0, 255, 255, 0.75), 0 0 8px rgba(255, 255, 255, 0.47), 0 0 1px rgba(255, 255, 255, 0.13);
  filter: brightness(1.35);
  z-index: 1;
}

#slogan .smart-button.trigger:hover,
#slogan .smart-button.trigger:focus-visible {
  box-shadow: 0 0 32px rgba(255, 0, 255, 0.75), 0 0 12px rgba(255, 255, 255, 0.47), 0 0 1px rgba(255, 255, 255, 0.13);
  filter: brightness(1.35);
  z-index: 1;
}

.identity-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: clamp(100px, 14vw, 180px);
  padding: clamp(8px, 1vw, 12px) clamp(10px, 1.4vw, 14px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0 1px, transparent 1px 4px),
    rgba(0, 0, 0, 0.22);
  color: #fff;
  text-decoration: none;
  pointer-events: auto;
}

.identity-label {
  font-family: Orbitron, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.04em;
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.identity-source {
  font: 600 clamp(0.72rem, 0.9vw, 0.85rem)/1.2 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.identity-link:hover {
  border-color: rgba(0, 234, 255, 0.6);
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.06) 0 1px, transparent 1px 4px),
    rgba(0, 234, 255, 0.1);
}

.identity-link:focus { outline: none; }
.identity-link:focus-visible {
  box-shadow: 0 0 0 2px rgba(0, 255, 242, 0.6);
  border-color: rgba(0, 255, 242, 0.8);
}

.identity-link.identity-link--cta {
  width: min(560px, 92vw);
  border-radius: 12px;
  align-items: center;
  text-align: center;
  padding: 14px 18px;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.identity-link--cta .identity-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: normal;
}

.identity-link--cta .identity-source {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 500;
  opacity: 0.75;
}

.identity-link.identity-link--cta:hover {
  border-color: rgba(0, 255, 242, 0.85);
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.08) 0 1px, transparent 1px 4px),
    rgba(0, 255, 242, 0.14);
  transform: translateY(-2px);
}

#fluidCanvas, #crosshairCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  display: block;
}

#crosshairCanvas {
  z-index: 1;
  pointer-events: none;
}

#fluidCanvas {
  background: var(--bg) !important;
  z-index: 0;
  pointer-events: auto;
  touch-action: pan-y;
  cursor: none;
}

#canvas-fade {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 2;
  background: var(--bg);
  opacity: 1;
  pointer-events: none;
  transition: opacity 1.6s cubic-bezier(0.66, 0, 0.22, 1);
}
#canvas-fade.fadeout { opacity: 0; }

#canvas-led-cursor {
  position: fixed;
  z-index: 199999;
  width: 36px; height: 36px;
  pointer-events: none;
  left: 0; top: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--dampf) 60%, rgba(0, 216, 255, 0.27) 90%, transparent 100%);
  box-shadow: 0 0 18px 6px rgba(0, 255, 242, 0.4), 0 0 0 3px rgba(0, 255, 242, 0.13);
  opacity: 0.86;
  animation: pulse-cursor 3.2s infinite cubic-bezier(0.4, 0, 0.6, 1);
  transition: opacity 0.14s;
  will-change: transform, opacity;
  display: none;
}

@keyframes pulse-cursor {
  0%, 100% { box-shadow: 0 0 18px 6px rgba(0, 255, 242, 0.4), 0 0 0 3px rgba(0, 255, 242, 0.13); opacity: 0.86; }
  50% { box-shadow: 0 0 28px 14px rgba(0, 255, 242, 0.6), 0 0 0 6px rgba(0, 255, 242, 0.13); opacity: 1; }
}

.cursor { animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

#fps-info {
  position: fixed;
  top: 1.1em; left: 1.5em;
  color: var(--dampf);
  font-family: Orbitron, monospace;
  font-size: 1.2em;
  background: rgba(11, 15, 20, 0.55);
  border-radius: 0.4em;
  padding: 0.2em 0.9em;
  z-index: 88888;
  pointer-events: none;
  letter-spacing: 0.02em;
  text-shadow: 0 0 8px rgba(0, 255, 242, 0.5);
}

.nerd-menu-corner {
  position: fixed;
  left: 0; right: 1em; bottom: 1em;
  z-index: 188888;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}

.nerd-menu-corner > * {
  pointer-events: auto;
}

#nerd-menu-toggle {
  font-size: 1.5em;
  padding: 0.12em 0.6em;
  line-height: 1;
  background: rgba(11, 31, 41, 0.88);
  border: 2.5px solid rgba(0, 255, 242, 0.5);
  border-radius: 0.53em;
  box-shadow: 0 0 8px rgba(0, 255, 242, 0.27);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  outline: none;
  transition: background 0.18s, box-shadow 0.18s;
}

#nerd-menu-toggle:focus,
#nerd-menu-toggle:hover {
  background: rgba(0, 255, 242, 0.13);
  box-shadow: 0 0 15px rgba(0, 255, 242, 0.75);
}

#nerd-menu-list {
  display: none;
  background: rgba(11, 15, 24, 0.95);
  color: var(--dampf);
  border: 1.4px solid var(--dampf);
  border-radius: 0.6em;
  font-family: Orbitron, monospace;
  font-size: 1.04em;
  margin-top: 0.35em;
  padding: 1em 1.6em;
  min-width: 15em;
  text-align: left;
  box-shadow: 0 2px 16px rgba(0, 255, 242, 0.13);
  letter-spacing: 0.03em;
}

#nerd-menu-list code {
  background: rgba(0, 255, 242, 0.1);
  border-radius: 0.18em;
  padding: 0.05em 0.23em;
  font-size: 1em;
  color: var(--text);
  margin-right: 0.7em;
}

#footer-bar {
  position: relative;
  margin-top: auto;
  width: 100%;
  background: rgba(0, 16, 32, 0.8);
  backdrop-filter: blur(5px);
  color: var(--dampf);
  font-family: Orbitron, Arial, monospace;
  font-size: 1em;
  letter-spacing: 0.01em;
  text-align: center;
  padding: 0.42em 1.2em 0.22em 1.2em;
  box-sizing: border-box;
  z-index: 100002;
  box-shadow: 0 0 22px rgba(0, 255, 255, 0.2);
  pointer-events: auto;
  cursor: none;
}

.footer-link {
  color: var(--dampf);
  text-decoration: none;
  margin: 0 0.7em;
  font-weight: 500;
  opacity: 0.97;
  transition: color 0.16s;
}

.footer-link:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-sep {
  color: rgba(0, 255, 255, 0.5);
  opacity: 0.77;
  margin: 0 0.18em;
  font-size: 1.08em;
}

.footer-hint {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95em;
  margin-top: 0.13em;
  letter-spacing: 0.03em;
}

@media (pointer: coarse), (max-width: 650px) {
  .nerd-menu-corner { display: none !important; }
}

@media (max-width: 700px), (max-height: 500px) {
  .axis-x {
    top: auto; bottom: -0.3em;
    left: -1.2em; right: -1.2em;
    height: 0.28em;
  }
  .axis-y {
    top: -1.2em; bottom: -1.8em;
    left: 29%;
    width: 0.28em;
  }
  .origin-zero {
    bottom: 0.2em; left: 32.25%;
    font-size: 0.66em;
  }
  .quad { font-size: clamp(2.5em, 15vw, 6em); }
  #subtitle {
    margin-top: 1em; margin-bottom: 0.5em;
    font-size: clamp(0.5em, 4vw, 1.5em);
    line-height: 1.2;
  }
  #slogan {
    margin-top: 0.5em;
    font-size: clamp(0.6em, 3.5vw, 1.2em);
    line-height: 1.3;
  }
  #center-wrapper {
    min-width: 85vw;
    max-width: 98vw;
    top: auto;
    transform: none;
    padding-top: 0.2em;
    margin-bottom: 2em;
  }
  .footer-hint { font-size: 0.8em; margin-top: 0.2em; }
  .footer-link { font-size: 0.9em; margin: 0 0.5em; }
  .footer-sep { font-size: 0.8em; margin: 0 0.2em; }
}

@media (max-height: 850px) {
  #center-wrapper {
    padding-top: clamp(1em, 2vw, 2em);
  }
  #services-section {
    margin-top: 1rem;
    padding-top: 1em; padding-bottom: 1em;
  }
  #cta-terminal {
    margin-top: 1em; margin-bottom: 1em;
  }
  #identity-links {
    margin-top: 1em; margin-bottom: 1.5em;
  }
  #subtitle {
    margin-top: 1em;
  }
  #slogan {
    margin-top: 1em;
  }
}

@media (max-width: 1024px) {
  .tools {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .section-header,
  .footer-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .tools,
  .hero-meta {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 44px;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(calc(100% - 20px), var(--maxw));
  }

  .nav a,
  .btn {
    width: 100%;
  }

  .hero h1 {
    max-width: none;
  }

  .pipeline-shell {
    padding: 10px;
    border-radius: 22px;
  }

  .pipeline-stage {
    border-radius: 18px;
  }
}
