/* aion44.com: Dachseite. Ohne Build, ohne externe Dateien (CSP: alles von 'self'). Kaum Text, viel Punktfeld. */
:root {
  --navy: #0B1020;      /* Mitternacht: Grund */
  --panel: #111832;     /* Fläche */
  --light: #E9ECF5;     /* Hell: Text, leuchtende Punkte */
  --off: #1F2740;       /* Restpunkt: dunkle Punkte, Linien */
  --yellow: #FFF500;    /* Signalgelb: nur auf dunklem Grund */
  --muted: #8D97B5;     /* 6.5:1 auf Mitternacht */
  --display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --cut: 22px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--navy); scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  background: var(--navy); color: var(--light);
  font: 16px/1.5 var(--display); -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg, canvas { display: block; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 6px; }
::selection { background: var(--yellow); color: var(--navy); }
.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Kopf liegt über dem Punktfeld und lässt den Zeiger durch */
.top { position: absolute; inset: 0 0 auto; z-index: 2; padding: 26px var(--gutter); pointer-events: none; }
.brand { display: inline-flex; padding: 4px 0; pointer-events: auto; }
.brand img { height: 24px; width: auto; }

/* Einstieg */
.field {
  position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 50% 47%, #0F1630 0%, var(--navy) 70%);
  touch-action: pan-y;
}
.field-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.9s ease; }
.field-canvas.on { opacity: 1; }
.field-still { position: absolute; left: 50%; top: 47%; width: min(34vh, 56vw); transform: translate(-50%, -50%); }

.cue { position: absolute; left: 50%; bottom: 26px; width: 32px; height: 52px; margin-left: -16px; }
.cue::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 6px; width: 1px;
  background: linear-gradient(var(--off), transparent);
}
.cue span {
  position: absolute; left: 50%; top: 4px; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: var(--yellow); animation: cue 2.6s ease-in-out infinite;
}
@keyframes cue {
  0% { transform: translateY(0); opacity: 0; }
  25%, 70% { opacity: 1; }
  100% { transform: translateY(34px); opacity: 0; }
}

/* Projekte */
.works {
  width: min(1280px, 100%); margin: 0 auto;
  padding: clamp(72px, 14vh, 160px) var(--gutter) clamp(56px, 10vh, 120px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 48px);
}
@media (max-width: 760px) { .works { grid-template-columns: minmax(0, 1fr); } }

.work { display: block; text-decoration: none; }
.work:focus-visible { outline: none; }
.work:focus-visible .scene { box-shadow: inset 0 0 0 2px var(--yellow); }

.scene {
  position: relative; aspect-ratio: 640 / 352; overflow: hidden; background: var(--navy);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
  box-shadow: inset 0 0 0 1px var(--off);
  transition: box-shadow 0.35s ease;
}
/* Abgeschnittene Ecke wie das achteckige O der Wortmarke; beim Zeigen wird die Kante gelb */
.scene::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: var(--cut); height: var(--cut); z-index: 1;
  background: linear-gradient(to top left, transparent calc(50% - 1px), var(--edge, var(--off)) calc(50% - 1px), var(--edge, var(--off)) 50%, transparent 50%);
}
.scene img { width: 100%; height: 100%; }
.scene .art-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.6s ease; }
.scene .art-canvas.on { opacity: 1; }
.work:hover .scene { box-shadow: inset 0 0 0 1px #3A4468; --edge: var(--yellow); }

.cap { display: flex; align-items: baseline; gap: 14px; margin-top: 20px; }
.cap h2 { margin: 0; font: 600 clamp(22px, 2.3vw, 30px)/1.1 var(--display); letter-spacing: 0.01em; }
.kind { color: var(--muted); font: 600 12px/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; }
.go {
  margin-left: auto; width: 20px; height: 20px; flex: none; align-self: center; color: var(--yellow);
  opacity: 0; transform: translate(-6px, 6px); transition: opacity 0.3s ease, transform 0.3s ease;
}
.work:hover .go, .work:focus-visible .go { opacity: 1; transform: none; }
@media (hover: none) { .go { opacity: 1; transform: none; } }

footer {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 24px var(--gutter) 40px; color: var(--muted);
  font: 600 12px/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cue span { animation: none; opacity: 1; }
  .field-canvas, .scene .art-canvas, .scene, .go { transition: none; }
}
