/* ============================================================
   NIKOMEDIA APPS — Dark Neon Workshop
   Modern redesign: aurora background, custom cursor, 3D tilt
   cards, scroll reveals, glassmorphism.
   ============================================================ */

:root {
  --bg: #07070d;
  --bg-2: #0b0c15;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f4f8;
  --muted: #9aa0b5;
  --orange: #ff5b35;
  --orange-hot: #ff7a1a;
  --lime: #c8ff3d;
  --violet: #7c5cff;
  --grad: linear-gradient(100deg, var(--orange), var(--orange-hot) 45%, var(--lime));
  --radius: 20px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --z-bg: -1;
  --z-header: 50;
  --z-cursor: 200;
  --z-dialog: 100;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Archivo", Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
::selection { color: #101010; background: var(--lime); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 300;
  padding: 0.75rem 1.1rem; border-radius: 999px;
  color: #101010; background: var(--lime); font-weight: 700; text-decoration: none;
  transform: translateY(-160%); transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Background scene ---------- */
.bg-scene { position: fixed; inset: 0; z-index: var(--z-bg); overflow: hidden; pointer-events: none; }
.aurora { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; will-change: transform; }
.aurora-one {
  width: 55vmax; height: 55vmax; left: -18vmax; top: -20vmax;
  background: radial-gradient(circle at 35% 35%, rgba(255, 91, 53, 0.5), transparent 62%);
  animation: drift-one 34s ease-in-out infinite alternate;
}
.aurora-two {
  width: 48vmax; height: 48vmax; right: -16vmax; top: 8vh;
  background: radial-gradient(circle at 60% 40%, rgba(124, 92, 255, 0.42), transparent 60%);
  animation: drift-two 40s ease-in-out infinite alternate;
}
.aurora-three {
  width: 42vmax; height: 42vmax; left: 22vw; bottom: -24vmax;
  background: radial-gradient(circle at 50% 50%, rgba(200, 255, 61, 0.16), transparent 60%);
  animation: drift-three 30s ease-in-out infinite alternate;
}
@keyframes drift-one { to { transform: translate(12vmax, 9vmax) scale(1.15); } }
@keyframes drift-two { to { transform: translate(-10vmax, 12vmax) scale(0.9); } }
@keyframes drift-three { to { transform: translate(9vmax, -8vmax) scale(1.2); } }

.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
}
/* Hex Float: WebGL-Kachelraster, das um den Cursor rippelt.
   Der Canvas bleibt unsichtbar, bis hex-float.js ihn aktiviert
   (kein WebGL2 / reduced-motion / Touch -> bleibt leer). */
.hex-float {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block; pointer-events: none;
  opacity: 0; transition: opacity 1.2s var(--ease);
}
.hex-float.is-active { opacity: 1; }

/* Ein/Aus-Schalter fuer den Hintergrundeffekt.
   Der Button wird von hex-float.js erzeugt und erscheint nur,
   wenn der Effekt auf diesem Geraet ueberhaupt laufen kann. */
.hex-toggle {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.95rem; border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(11, 12, 21, 0.72);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--muted);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.01em;
  cursor: pointer;
  transition: color 0.28s var(--ease), border-color 0.28s var(--ease),
              background-color 0.28s var(--ease), transform 0.28s var(--ease);
}
.hex-toggle:hover {
  color: var(--text);
  border-color: rgba(200, 255, 61, 0.45);
  background: rgba(16, 18, 30, 0.82);
  transform: translateY(-2px);
}
.hex-toggle:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.hex-toggle[hidden] { display: none; }
.hex-toggle-icon {
  width: 15px; height: 15px; flex: none; fill: var(--lime);
  transition: fill 0.28s var(--ease), opacity 0.28s var(--ease);
}
.hex-toggle.is-off .hex-toggle-icon { fill: var(--muted); opacity: 0.55; }

.bg-noise {
  position: absolute; inset: 0; opacity: 0.5; mix-blend-mode: overlay;
  background-image: 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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.34'/%3E%3C/svg%3E");
}

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: var(--z-cursor); pointer-events: none; border-radius: 50%; opacity: 0; }
.cursor-dot { width: 7px; height: 7px; background: var(--lime); transform: translate(-50%, -50%); }
.cursor-ring {
  width: 38px; height: 38px; border: 1.5px solid rgba(200, 255, 61, 0.65);
  transform: translate(-50%, -50%);
  transition: width 0.28s var(--ease), height 0.28s var(--ease), border-color 0.28s, background-color 0.28s, border-radius 0.28s;
}
html.cursor-on, html.cursor-on * { cursor: none !important; }
html.cursor-on .cursor-dot, html.cursor-on .cursor-ring { opacity: 1; }
.cursor-ring.is-hover { width: 62px; height: 62px; background: rgba(200, 255, 61, 0.1); border-color: var(--lime); }
.cursor-ring.is-text { width: 4px; height: 30px; border-radius: 3px; background: var(--lime); border-color: var(--lime); }
.cursor-ring.is-down { width: 26px; height: 26px; }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: calc(var(--z-header) + 1); background: transparent; }
.scroll-progress span { display: block; height: 100%; width: 0; background: var(--grad); box-shadow: 0 0 12px rgba(255, 122, 26, 0.6); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header);
  height: 84px; padding: 0 clamp(1.2rem, 4vw, 4.5rem);
  display: flex; align-items: center; justify-content: space-between;
  transition: height 0.4s var(--ease), background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  height: 64px;
  background: rgba(7, 7, 13, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; font-weight: 650; letter-spacing: -0.02em; text-decoration: none; }
.brand b { font-weight: 850; }
.brand-mark {
  display: grid; place-items: center; width: 2.15rem; height: 2.15rem; border-radius: 10px;
  color: #101010; background: var(--grad);
  font-family: "Archivo Black", sans-serif;
  transition: transform 0.6s var(--ease);
  box-shadow: 0 4px 22px rgba(255, 91, 53, 0.35);
}
.brand:hover .brand-mark { transform: rotate(360deg) scale(1.06); }
.site-header nav { display: flex; gap: clamp(1rem, 3vw, 2.4rem); align-items: center; }
.site-header nav a { position: relative; font-size: 0.9rem; font-weight: 650; text-decoration: none; color: var(--muted); transition: color 0.3s; }
.site-header nav a:hover { color: var(--text); }
.nav-link::after {
  content: ""; position: absolute; height: 2px; inset: auto 0 -0.4rem; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-admin {
  padding: 0.55rem 1.1rem; border-radius: 999px; color: var(--text) !important;
  border: 1px solid var(--line-strong); background: var(--panel);
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease) !important;
}
.nav-admin:hover { background: var(--panel-strong); border-color: rgba(255, 255, 255, 0.3); }
.language-switch {
  display: inline-flex; align-items: center; padding: 0.2rem; border: 1px solid var(--line-strong);
  border-radius: 999px; background: rgba(255, 255, 255, 0.035);
}
.language-option {
  min-width: 2rem; min-height: 1.8rem; padding: 0.25rem 0.45rem; border: 0; border-radius: 999px;
  color: var(--muted); background: transparent; cursor: pointer; font: inherit; font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.04em; transition: color 0.25s, background-color 0.25s, box-shadow 0.25s;
}
.language-option:hover { color: var(--text); }
.language-option[aria-pressed="true"] {
  color: #101010; background: var(--lime); box-shadow: 0 3px 12px rgba(200, 255, 61, 0.22);
}
.language-option:focus-visible { outline: 2px solid var(--orange-hot); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.button {
  position: relative; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 1rem;
  padding: 0.85rem 1.5rem; border: 0; border-radius: 999px; cursor: pointer;
  font-weight: 750; text-decoration: none; overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, background-color 0.35s, color 0.35s, border-color 0.35s;
}
.button-icon { font-size: 1.25em; transition: transform 0.35s var(--ease); }
.button:hover .button-icon { transform: translate(3px, 3px); }
.button-primary {
  color: #101010; background: var(--grad); background-size: 160% 100%;
  box-shadow: 0 8px 30px rgba(255, 91, 53, 0.35);
}
.button-primary:hover { box-shadow: 0 12px 42px rgba(255, 122, 26, 0.5); background-position: 80% 0; }
.button-ghost { color: var(--text); background: var(--panel); border: 1px solid var(--line-strong); backdrop-filter: blur(8px); }
.button-ghost:hover { background: var(--panel-strong); border-color: rgba(255, 255, 255, 0.32); }

/* ---------- Reveal system ---------- */
.reveal { opacity: 0; transform: translateY(30px); filter: blur(8px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.revealed { opacity: 1; transform: none; filter: blur(0); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  padding: clamp(7rem, 14vh, 10rem) clamp(1.2rem, 5.8vw, 7rem) 5rem;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center; gap: 4vw;
}
.hero-copy { max-width: 920px; position: relative; z-index: 2; }
.hero-note { display: flex; align-items: center; gap: 0.7rem; margin: 0 0 clamp(1.6rem, 4vh, 3rem); color: var(--muted); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; --d: 0.05s; }
.note-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(200, 255, 61, 0.4); animation: note-pulse 2.4s ease-out infinite; }
@keyframes note-pulse { 70% { box-shadow: 0 0 0 10px rgba(200, 255, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 255, 61, 0); } }

.hero h1 {
  margin: 0; font-family: "Archivo Black", sans-serif;
  font-size: clamp(3.2rem, 7.4vw, 6.4rem); line-height: 0.96; letter-spacing: -0.035em;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.24em; margin-bottom: -0.24em; }
.hero h1 .line-inner { display: inline-block; transform: translateY(115%); animation: line-up 1.1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) .line-inner { animation-delay: 0.12s; }
.hero h1 .line:nth-child(3) .line-inner { animation-delay: 0.24s; }
@keyframes line-up { to { transform: translateY(0); } }
.hero h1 em {
  font-style: normal;
  background: var(--grad); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: grad-slide 6s ease-in-out infinite alternate;
}
@keyframes grad-slide { to { background-position: 100% 0; } }

.rotator { display: inline-grid; vertical-align: bottom; overflow: hidden; }
.rotator-word { grid-area: 1 / 1; display: inline-block; padding-bottom: 0.08em; margin-bottom: -0.08em; transition: transform 0.55s var(--ease), opacity 0.55s, filter 0.55s; }
.rotator-word.out { transform: translateY(-110%); opacity: 0; filter: blur(6px); }
.rotator-word.in { transform: translateY(110%); opacity: 0; filter: blur(6px); transition: none; }

.hero-lead { max-width: 58ch; margin: clamp(1.6rem, 4vh, 2.6rem) 0 0; color: var(--muted); font-size: clamp(1.02rem, 1.3vw, 1.22rem); font-weight: 500; line-height: 1.65; text-wrap: pretty; --d: 0.35s; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; margin-top: 2.1rem; --d: 0.45s; }

.hero-stats { display: flex; gap: clamp(1.6rem, 3.5vw, 3.2rem); margin: clamp(2.2rem, 5vh, 3.4rem) 0 0; padding: 1.4rem 0 0; border-top: 1px solid var(--line); --d: 0.55s; }
.hero-stats div { display: grid; gap: 0.15rem; }
.hero-stats dt { font-family: "Archivo Black", sans-serif; font-size: clamp(1.7rem, 2.6vw, 2.4rem); letter-spacing: -0.02em; }
.hero-stats dt i { font-style: normal; color: var(--orange-hot); }
.hero-stats dd { margin: 0; color: var(--muted); font-size: 0.78rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; }

/* Hero stage — orbit + floating cards */
.hero-stage { position: relative; display: grid; place-items: center; min-height: 560px; perspective: 1100px; }
.orbit-system { position: relative; width: clamp(300px, 30vw, 460px); aspect-ratio: 1; display: grid; place-items: center; transform-style: preserve-3d; }
.orbit-glow { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 91, 53, 0.22), transparent 65%); filter: blur(24px); animation: glow-breathe 5s ease-in-out infinite alternate; }
@keyframes glow-breathe { to { opacity: 0.55; transform: scale(1.12); } }
.orbit-ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.14); }
.ring-one { inset: 0; animation: spin 46s linear infinite; }
.ring-two { inset: 15%; border-style: solid; border-color: rgba(255, 255, 255, 0.08); animation: spin 34s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-spinner { position: absolute; inset: 0; animation: spin 26s linear infinite; }
.orbit-spinner:hover, .orbit-spinner:hover .orbit-chip { animation-play-state: paused; }
.orbit-chip {
  position: absolute; z-index: 5; padding: 0.5rem 1rem; border-radius: 999px;
  border: 1px solid var(--line-strong); translate: -50% -50%;
  font-family: "Archivo Black", sans-serif; font-size: clamp(0.78rem, 1.15vw, 1.02rem);
  letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap;
  color: var(--chip-color, var(--lime));
  background: rgba(12, 13, 21, 0.88); backdrop-filter: blur(6px);
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  animation: spin 26s linear infinite reverse;
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s, color 0.3s;
}
.orbit-chip:hover { border-color: var(--chip-color, var(--lime)); box-shadow: 0 0 22px color-mix(in oklch, var(--chip-color, var(--lime)) 45%, transparent); }
.orbit-chip.active { color: #101010; background: var(--chip-color, var(--lime)); border-color: var(--chip-color, var(--lime)); box-shadow: 0 0 26px color-mix(in oklch, var(--chip-color, var(--lime)) 55%, transparent); }
.orbit-chip:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.orbit-core {
  position: relative; z-index: 2; width: 46%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.14), rgba(12, 13, 21, 0.92) 60%);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), inset 0 0 40px rgba(255, 91, 53, 0.12);
  backdrop-filter: blur(10px);
}
.core-number { font-family: "Archivo Black", sans-serif; font-size: clamp(2.6rem, 4.6vw, 4.4rem); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.orbit-core small { margin-top: 0.4rem; color: var(--muted); font-size: 0.62rem; font-weight: 750; letter-spacing: 0.28em; }

.float-card {
  position: absolute; z-index: 3; width: clamp(120px, 11.5vw, 180px); aspect-ratio: 8 / 5;
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
  will-change: transform;
}
.float-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05); }
.float-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), transparent 45%); }
.float-one { top: 4%; left: -4%; animation: floaty 7s ease-in-out infinite alternate; }
.float-two { bottom: 8%; right: -3%; animation: floaty 8.5s 0.8s ease-in-out infinite alternate; }
.float-three { bottom: -2%; left: 6%; width: clamp(100px, 9vw, 150px); animation: floaty 6s 0.4s ease-in-out infinite alternate; }
@keyframes floaty { from { margin-top: -10px; } to { margin-top: 12px; } }

/* Glas-Icon-Tiles statt App-Thumbnails */
.float-icon {
  width: clamp(66px, 6.6vw, 98px); aspect-ratio: 1; border-radius: 24px;
  display: grid; place-items: center; overflow: visible;
  background: rgba(12, 13, 21, 0.78);
  backdrop-filter: blur(10px);
}
.float-icon::after { content: none; }
.float-icon::before {
  content: ""; position: absolute; inset: -32%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklch, var(--tile-color, var(--lime)) 30%, transparent), transparent 70%);
  filter: blur(12px);
}
.float-icon svg {
  width: 52%; height: 52%; fill: none;
  stroke: var(--tile-color, var(--lime)); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 9px color-mix(in oklch, var(--tile-color, var(--lime)) 65%, transparent));
}
.float-icon.float-one { --tile-color: var(--lime); }
.float-icon.float-two { --tile-color: var(--orange-hot); }
.float-icon.float-three { --tile-color: var(--violet); width: clamp(58px, 5.6vw, 84px); }

.scroll-cue { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); width: 26px; height: 44px; border: 1.5px solid var(--line-strong); border-radius: 999px; display: grid; justify-items: center; padding-top: 8px; }
.scroll-cue span { width: 4px; height: 9px; border-radius: 4px; background: var(--lime); animation: cue-drop 1.8s var(--ease) infinite; }
@keyframes cue-drop { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(16px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }

/* ---------- Ticker ---------- */
.ticker { position: relative; overflow: hidden; padding: 1.05rem 0; border-block: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); backdrop-filter: blur(6px); }
.ticker-track { width: max-content; display: flex; align-items: center; gap: 2.2rem; font-family: "Archivo Black", sans-serif; font-size: clamp(0.95rem, 1.7vw, 1.4rem); letter-spacing: 0.04em; text-transform: uppercase; animation: ticker 32s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.45); transition: color 0.3s; white-space: nowrap; }
.ticker-track span:hover { color: var(--lime); -webkit-text-stroke-color: transparent; }
.ticker i { color: var(--orange); font-style: normal; font-size: 0.8em; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Collection ---------- */
.collection { position: relative; padding: clamp(5rem, 10vw, 9rem) clamp(1.2rem, 5.8vw, 7rem); }
.collection-head { max-width: 1460px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: 1.3fr 0.7fr; align-items: end; gap: 3rem; }
.section-index { display: flex; align-items: center; gap: 0.8rem; margin: 0 0 1.2rem; color: var(--muted); font-size: 0.8rem; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; }
.section-index .section-number { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 8px; color: var(--lime); background: rgba(200, 255, 61, 0.08); border: 1px solid rgba(200, 255, 61, 0.25); font-size: 0.72rem; }
.collection h2, .idea-pitch h2 { margin: 0; font-family: "Archivo Black", sans-serif; font-size: clamp(2.6rem, 5.6vw, 5rem); line-height: 0.98; letter-spacing: -0.035em; --d: 0.1s; }
.collection h2 em, .idea-pitch h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.collection-intro { max-width: 42ch; margin: 0; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.18rem); line-height: 1.6; --d: 0.2s; }

.tool-controls {
  position: sticky; top: 76px; z-index: 30;
  max-width: 1460px; margin: 0 auto; padding: 0.9rem 1.1rem;
  display: flex; gap: 1.4rem; align-items: center; justify-content: space-between;
  border: 1px solid var(--line); border-radius: 18px;
  background: rgba(9, 10, 16, 0.78); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.search-box { width: min(100%, 34rem); display: flex; align-items: center; gap: 0.8rem; padding: 0 0.4rem; }
.search-box svg { width: 1.15rem; flex: none; fill: none; stroke: var(--orange-hot); stroke-width: 2; }
.search-box input { width: 100%; padding: 0.7rem 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 0.95rem; }
.search-box input::placeholder { color: var(--muted); opacity: 1; }
.filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.45rem; }
.filter {
  padding: 0.5rem 0.95rem; border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); background: transparent; cursor: pointer;
  font-size: 0.84rem; font-weight: 700;
  transition: color 0.3s, background-color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.filter:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-2px); }
.filter.active { color: #101010; background: var(--lime); border-color: var(--lime); box-shadow: 0 4px 18px rgba(200, 255, 61, 0.3); }

.results-count { max-width: 1460px; margin: 1.6rem auto 1rem; color: var(--muted); font-size: 0.82rem; scroll-margin-top: 7rem; }

.app-grid { max-width: 1460px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 1.6vw, 1.5rem); perspective: 1400px; }

.app-card {
  position: relative; display: flex; flex-direction: column; height: 380px;
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02) 55%), var(--bg-2);
  border: 1px solid var(--line);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0));
  transition: border-color 0.35s, box-shadow 0.35s, opacity 0.7s var(--ease), filter 0.7s var(--ease), translate 0.7s var(--ease);
  transition-delay: var(--d, 0s);
  opacity: 0; translate: 0 34px; filter: blur(6px);
  will-change: transform;
}
.app-card.revealed { opacity: 1; translate: 0 0; filter: blur(0); }
.app-card:hover { border-color: rgba(255, 122, 26, 0.55); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 122, 26, 0.25), 0 0 60px rgba(255, 91, 53, 0.12); }
.card-hit { position: absolute; inset: 0; z-index: 4; border: 0; background: transparent; cursor: pointer; }
.card-hit:focus-visible { outline: 3px solid var(--lime); outline-offset: -6px; border-radius: var(--radius); }
.card-shine {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.12), transparent 45%);
  transition: opacity 0.4s;
}
.app-card:hover .card-shine { opacity: 1; }
.card-media { position: relative; height: 190px; min-height: 190px; overflow: hidden; background: #10121c; border-bottom: 1px solid var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) contrast(1.05); transition: transform 0.8s var(--ease), filter 0.5s; }
.app-card:hover .card-media img { transform: scale(1.07); filter: saturate(1.1) contrast(1.02); }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7, 7, 13, 0.55)); }
.card-copy { position: relative; z-index: 3; flex: 1; min-width: 0; padding: 1.1rem 1.2rem 1.15rem; display: flex; flex-direction: column; }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--muted); font-size: 0.72rem; font-weight: 750; }
.card-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 0.45rem; }
.card-category { padding: 0.28rem 0.6rem; border-radius: 999px; color: var(--orange-hot); background: rgba(255, 91, 53, 0.1); border: 1px solid rgba(255, 91, 53, 0.3); letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.66rem; }
.card-apk-badge { width: 2.1rem; height: 1.5rem; display: inline-grid; place-items: center; padding: 0.1rem 0.26rem; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--panel); }
.card-apk-badge img { width: 100%; height: 100%; object-fit: contain; }
.card-apk-badge[hidden] { display: none; }
.card-number { font-family: "Archivo Black", sans-serif; color: rgba(255, 255, 255, 0.22); font-size: 0.95rem; }
.card-copy h3 { margin: 0.75rem 0 0.4rem; font-family: "Archivo Black", sans-serif; font-size: clamp(1.2rem, 1.6vw, 1.55rem); line-height: 1.05; letter-spacing: -0.02em; }
.card-copy p { max-width: 46ch; margin: 0 0 0.8rem; color: var(--muted); font-size: 0.85rem; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.card-open { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 0.85rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; font-weight: 750; transition: color 0.3s; }
.card-open b { font-size: 1.25rem; transition: transform 0.35s var(--ease); }
.app-card:hover .card-open { color: var(--lime); }
.app-card:hover .card-open b { transform: translate(4px, -4px); }

/* Pagination */
.app-pagination { max-width: 1460px; margin: 2rem auto 0; padding-top: 1.4rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; border-top: 1px solid var(--line); }
.app-pagination[hidden] { display: none; }
.pagination-buttons { display: flex; gap: 0.5rem; }
.pagination-buttons:last-child { justify-content: flex-end; }
.page-button {
  min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem;
  padding: 0.65rem 1.05rem; border: 1px solid var(--line); border-radius: 999px;
  color: var(--text); background: var(--panel); cursor: pointer;
  transition: color 0.25s, background-color 0.25s, border-color 0.25s, transform 0.3s var(--ease), box-shadow 0.25s;
}
.page-button:hover:not(:disabled) { color: #101010; background: var(--lime); border-color: var(--lime); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200, 255, 61, 0.28); }
.page-button:focus-visible { outline: 3px solid var(--orange-hot); outline-offset: 3px; }
.page-button:disabled { opacity: 0.35; cursor: not-allowed; }
.page-button b { font-size: 0.8rem; }
.page-button span { font-weight: 850; }
.page-status { min-width: 9rem; margin: 0; color: var(--muted); font-size: 0.86rem; font-weight: 750; text-align: center; }

.empty-state { max-width: 1460px; margin: 2rem auto 0; padding: 4.5rem 1.5rem; text-align: center; border-radius: var(--radius-lg); border: 1px dashed var(--line-strong); background: var(--panel); }
.empty-state[hidden] { display: none; }
.empty-state strong { display: block; font-family: "Archivo Black", sans-serif; font-size: 2rem; margin-bottom: 0.6rem; }
.empty-state p { color: var(--muted); margin: 0 0 1.6rem; }

/* ---------- Manifesto ---------- */
.manifesto { position: relative; min-height: 90vh; padding: clamp(6rem, 12vw, 11rem) clamp(1.2rem, 5.8vw, 7rem); display: grid; grid-template-columns: minmax(60px, 0.28fr) 1.72fr; align-items: center; gap: 5vw; }
.manifesto-side { justify-self: start; writing-mode: vertical-rl; transform: rotate(180deg); color: var(--muted); font-size: 0.72rem; font-weight: 750; letter-spacing: 0.22em; }
.manifesto-body { max-width: 1150px; }
.manifesto-text { margin: 0; font-family: "Archivo Black", sans-serif; font-size: clamp(2.4rem, 5.6vw, 5.4rem); line-height: 1.02; letter-spacing: -0.03em; }
.manifesto-text .mw { opacity: 0.14; transition: opacity 0.45s var(--ease-out), color 0.45s; }
.manifesto-text .mw.on { opacity: 1; }
.manifesto-text .mw.accent.on { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.manifesto-sub { max-width: 58ch; margin: 2.2rem 0; color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.22rem); line-height: 1.65; }
.text-link { display: inline-flex; align-items: center; gap: 0.9rem; padding-bottom: 0.4rem; font-weight: 800; text-decoration: none; background: linear-gradient(var(--lime), var(--lime)) left bottom / 100% 2px no-repeat; transition: background-size 0.4s var(--ease), color 0.3s; }
.text-link:hover { color: var(--lime); background-size: 35% 2px; }
.text-link span { transition: transform 0.35s var(--ease); }
.text-link:hover span { transform: translateY(4px); }

/* ---------- Idea section ---------- */
.idea-section { position: relative; padding: clamp(5rem, 9vw, 9rem) clamp(1.2rem, 5.8vw, 7rem); }
.idea-layout { max-width: 1460px; margin: 0 auto; display: grid; grid-template-columns: minmax(280px, 0.72fr) minmax(520px, 1.28fr); gap: clamp(3rem, 6vw, 7rem); align-items: start; }
.idea-pitch { position: sticky; top: 7rem; }
.idea-pitch h2 { max-width: 10ch; }
.idea-pitch > p { max-width: 44ch; margin: 1.8rem 0; color: var(--muted); font-size: 1.04rem; line-height: 1.65; text-wrap: pretty; --d: 0.15s; }
.idea-points { display: flex; flex-wrap: wrap; gap: 0.5rem; --d: 0.25s; }
.idea-points span { padding: 0.5rem 0.85rem; border-radius: 999px; color: var(--text); background: var(--panel); border: 1px solid var(--line-strong); font-size: 0.8rem; font-weight: 700; }
.estimate-note { display: grid; gap: 0.5rem; margin-top: 1.5rem; padding: 1.2rem 1.3rem; border-radius: 18px; border: 1px solid rgba(200, 255, 61, 0.28); background: rgba(200, 255, 61, 0.05); --d: 0.35s; }
.estimate-note strong { color: var(--lime); font-family: "Archivo Black", sans-serif; font-size: 1rem; letter-spacing: -0.01em; }
.estimate-note span { max-width: 40ch; color: var(--muted); font-size: 0.88rem; line-height: 1.55; }

.idea-form {
  position: relative; padding: clamp(1.6rem, 3.5vw, 3rem); border-radius: var(--radius-lg);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02) 60%), var(--bg-2);
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
  overflow: hidden; --d: 0.2s;
}
.idea-form::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--form-angle, 0deg), transparent 12%, rgba(255, 122, 26, 0.8), rgba(200, 255, 61, 0.7), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.6s;
  animation: form-border-spin 5s linear infinite;
}
.idea-form:focus-within::before { opacity: 1; }
@keyframes form-border-spin { to { --form-angle: 360deg; } }
@property --form-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

.idea-form-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.idea-form-head h3 { margin: 0; font-family: "Archivo Black", sans-serif; font-size: clamp(1.7rem, 2.8vw, 2.4rem); letter-spacing: -0.03em; }
.idea-form-head p { margin: 0; color: var(--muted); font-size: 0.78rem; }
.idea-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem 1.2rem; }
.idea-field { display: grid; gap: 0.5rem; }
.idea-field-wide { grid-column: 1 / -1; }
.idea-field > span { color: var(--muted); font-size: 0.78rem; font-weight: 750; letter-spacing: 0.02em; }
.idea-field input, .idea-field textarea, .idea-field select {
  width: 100%; min-height: 50px; padding: 0.78rem 1rem;
  border: 1px solid var(--line); border-radius: 14px;
  color: var(--text); background: rgba(255, 255, 255, 0.035);
  outline: none; resize: vertical;
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}
.idea-field textarea { min-height: 96px; line-height: 1.55; }
.idea-field input::placeholder, .idea-field textarea::placeholder { color: rgba(154, 160, 181, 0.6); opacity: 1; }
.idea-field input:focus, .idea-field textarea:focus, .idea-field select:focus { border-color: var(--orange-hot); box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.16); background: rgba(255, 255, 255, 0.055); }
.idea-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239aa0b5' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.idea-field select option { color: #101010; background: #fff; }
.idea-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.idea-submit-row p { max-width: 34ch; margin: 0; color: var(--muted); font-size: 0.78rem; }
.idea-submit {
  min-height: 54px; padding: 0.85rem 1.5rem; display: inline-flex; align-items: center; gap: 1.4rem;
  border: 0; border-radius: 999px; color: #101010; background: var(--grad); background-size: 160% 100%;
  cursor: pointer; font-weight: 800; box-shadow: 0 8px 30px rgba(255, 91, 53, 0.35);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background-position 0.4s, opacity 0.3s;
}
.idea-submit:hover { box-shadow: 0 12px 42px rgba(255, 122, 26, 0.5); background-position: 80% 0; }
.idea-submit:hover .button-icon { transform: translateX(4px); }
.idea-submit .button-icon { transition: transform 0.3s var(--ease); }
.idea-submit:disabled { opacity: 0.6; cursor: wait; }
.idea-status { min-height: 1.5rem; margin-top: 0.9rem; font-size: 0.86rem; font-weight: 700; }
.idea-status.success { color: var(--lime); }
.idea-status.error { color: #ff7d6b; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
footer { padding: 2.4rem clamp(1.2rem, 5.8vw, 7rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.84rem; background: rgba(7, 7, 13, 0.6); }
footer p { margin: 0; }
footer > div { display: flex; gap: 1.4rem; align-items: center; }
footer a, .footer-link { color: var(--muted); text-decoration: none; transition: color 0.3s; }
.footer-link { padding: 0; border: 0; background: transparent; cursor: pointer; font-size: inherit; }
footer a:hover, .footer-link:hover { color: var(--lime); }

/* ---------- Dialogs ---------- */
dialog { color: var(--text); }
dialog::backdrop { background: rgba(4, 4, 8, 0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
dialog[open] { animation: dialog-pop 0.5s var(--ease); }
@keyframes dialog-pop { from { opacity: 0; transform: translateY(26px) scale(0.965); } to { opacity: 1; transform: none; } }

.app-dialog {
  width: min(1080px, calc(100% - 2rem)); max-height: calc(100vh - 2rem); padding: 0;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015) 55%), #0c0d17;
  box-shadow: 0 60px 140px rgba(0, 0, 0, 0.7); overflow: auto;
}
.dialog-close {
  position: fixed; z-index: 5; margin: 1rem 0 0 calc(min(1080px, 100vw - 2rem) - 4rem);
  width: 2.8rem; height: 2.8rem; border: 1px solid var(--line-strong); border-radius: 50%;
  color: var(--text); background: rgba(12, 13, 21, 0.85); backdrop-filter: blur(8px);
  cursor: pointer; font-size: 1.5rem; transition: background-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.dialog-close:hover { color: #101010; background: var(--lime); transform: rotate(90deg); }
.dialog-layout { display: grid; grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr); min-height: 560px; align-items: start; }
.dialog-media { position: sticky; top: 0; height: 560px; min-height: 380px; background: #10121c; }
.dialog-media img, .dialog-media video, .dialog-media iframe { width: 100%; height: 100%; min-height: 380px; object-fit: cover; border: 0; }
.dialog-copy { padding: clamp(2rem, 4vw, 3.6rem); display: flex; flex-direction: column; justify-content: center; }
.dialog-meta-line { display: flex; align-items: center; flex-wrap: wrap; gap: 0.65rem; }
.dialog-category { padding: 0.32rem 0.7rem; border-radius: 999px; color: var(--orange-hot); background: rgba(255, 91, 53, 0.1); border: 1px solid rgba(255, 91, 53, 0.32); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.dialog-apk-badge { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.34rem 0.65rem; border-radius: 999px; color: var(--text); background: var(--panel); border: 1px solid var(--line-strong); font-size: 0.72rem; font-weight: 750; }
.dialog-apk-badge img { width: 1.7rem; height: 1.15rem; object-fit: contain; }
.dialog-copy h2 { margin: 1.1rem 0 1.3rem; font-family: "Archivo Black", sans-serif; font-size: clamp(2.1rem, 3.8vw, 3.4rem); line-height: 0.98; letter-spacing: -0.035em; overflow-wrap: anywhere; }
.dialog-description { max-width: 58ch; color: var(--muted); font-size: 1rem; line-height: 1.65; overflow-wrap: anywhere; }
.dialog-description p, .dialog-description div { margin: 0 0 0.8rem; }
.dialog-description ul, .dialog-description ol { margin: 0.7rem 0; padding-left: 1.3rem; }
.dialog-description a { color: var(--lime); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.dialog-description a:hover { color: var(--text); }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.video-toggle { color: var(--text); background: var(--panel); border: 1px solid var(--line-strong); }
.video-toggle:hover { background: var(--panel-strong); }
.dialog-gallery { margin-top: 1.6rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.dialog-gallery h3 { margin: 0 0 0.85rem; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.dialog-thumbnails { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.dialog-thumbnail { position: relative; aspect-ratio: 16 / 10; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: #10121c; cursor: zoom-in; overflow: hidden; transition: border-color 0.3s, transform 0.3s var(--ease); }
.dialog-thumbnail:hover { border-color: var(--orange-hot); transform: translateY(-3px); }
.dialog-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease), filter 0.35s; }
.dialog-thumbnail:hover img { transform: scale(1.06); filter: saturate(1.1); }
.dialog-thumbnail:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

.screenshot-lightbox {
  width: calc(100% - 2rem); height: calc(100% - 2rem); max-width: none; max-height: none;
  padding: clamp(3.5rem, 6vw, 5rem) clamp(3.5rem, 7vw, 7rem) 2.5rem;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: rgba(7, 7, 13, 0.94); overflow: hidden;
}
.screenshot-lightbox figure { width: 100%; height: 100%; margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 1rem; place-items: center; }
.screenshot-lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 12px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6); }
.screenshot-lightbox figcaption { min-height: 1.5rem; color: var(--muted); font-size: 0.82rem; font-weight: 700; text-align: center; }
.lightbox-close, .lightbox-arrow { border: 1px solid var(--line-strong); color: var(--text); background: var(--panel); backdrop-filter: blur(8px); cursor: pointer; transition: background-color 0.3s, color 0.3s, transform 0.3s var(--ease); }
.lightbox-close { position: absolute; z-index: 2; top: 1rem; right: 1rem; width: 2.9rem; height: 2.9rem; border-radius: 50%; font-size: 1.6rem; }
.lightbox-arrow { position: absolute; z-index: 2; top: 50%; width: 3.1rem; height: 3.7rem; border-radius: 14px; font-size: 1.4rem; transform: translateY(-50%); }
.lightbox-arrow:hover, .lightbox-close:hover { color: #101010; background: var(--lime); }
.lightbox-arrow:disabled { opacity: 0.3; cursor: default; }
.lightbox-previous { left: 1rem; }
.lightbox-next { right: 1rem; }

.contact-dialog {
  width: min(760px, calc(100% - 2rem)); max-height: calc(100vh - 2rem); padding: 0;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015) 55%), #0c0d17;
  box-shadow: 0 60px 140px rgba(0, 0, 0, 0.7); overflow: auto;
}
.contact-close { position: absolute; top: 1rem; right: 1rem; z-index: 2; width: 2.8rem; height: 2.8rem; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--text); background: rgba(12, 13, 21, 0.85); cursor: pointer; font-size: 1.5rem; transition: background-color 0.3s, color 0.3s, transform 0.3s var(--ease); }
.contact-close:hover { color: #101010; background: var(--lime); transform: rotate(90deg); }
.contact-close:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.contact-head { padding: clamp(2rem, 5vw, 3.2rem); padding-right: 5rem; border-bottom: 1px solid var(--line); background: radial-gradient(120% 160% at 0% 0%, rgba(255, 91, 53, 0.18), transparent 55%); }
.contact-head > span { color: var(--orange-hot); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-head h2 { margin: 0.75rem 0 1rem; font-family: "Archivo Black", sans-serif; font-size: clamp(2.4rem, 6.5vw, 4.2rem); line-height: 0.95; letter-spacing: -0.035em; }
.contact-head p { max-width: 48ch; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.6; text-wrap: pretty; }
.contact-form { padding: clamp(1.5rem, 5vw, 3rem); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem 1.2rem; }
.contact-wide { grid-column: 1 / -1; }
.contact-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.contact-submit-row p { max-width: 35ch; margin: 0; color: var(--muted); font-size: 0.78rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .idea-layout { grid-template-columns: 1fr; }
  .idea-pitch { position: static; }
  .idea-pitch h2 { max-width: 14ch; }
}

@media (max-width: 980px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 8rem; gap: 3rem; }
  .hero-stage { min-height: 480px; }
  .collection-head { grid-template-columns: 1fr; align-items: start; }
  .tool-controls { position: static; flex-direction: column; align-items: stretch; }
  .filters { justify-content: flex-start; }
  .manifesto { min-height: auto; }
}

@media (max-width: 680px) {
  .site-header { height: 68px; padding-inline: 0.75rem; }
  .site-header nav { gap: 0.45rem; }
  .site-header .brand { gap: 0.5rem; }
  .site-header .brand-word { font-size: 0.9rem; }
  .nav-admin { padding: 0.48rem 0.7rem; }
  .language-switch { padding: 0.15rem; }
  .language-option { min-width: 1.8rem; padding-inline: 0.35rem; }
  .site-header nav a:not(.nav-admin) { display: none; }
  .hero { padding-inline: 1.2rem; padding-top: 7rem; }
  .hero h1 { font-size: clamp(2.7rem, 13.5vw, 4rem); }
  .hero-stats { flex-wrap: wrap; gap: 1.4rem 2rem; }
  .hero-stage { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; min-height: 0; padding-bottom: 0.5rem; }
  .orbit-system { width: min(76vw, 380px); flex: none; }
  .float-card { display: none; }
  .scroll-cue { display: none; }
  .collection, .manifesto, .idea-section { padding-inline: 1.2rem; }
  .app-grid { grid-template-columns: 1fr; }
  .app-card { height: 360px; }
  .manifesto { grid-template-columns: 1fr; }
  .manifesto-side { writing-mode: initial; transform: none; margin: 0 0 1rem; }
  .idea-form-grid { grid-template-columns: 1fr; }
  .idea-field-wide { grid-column: auto; }
  .idea-form-head, .idea-submit-row, .contact-submit-row { align-items: stretch; flex-direction: column; }
  .idea-submit { justify-content: space-between; }
  .app-pagination { grid-template-columns: 1fr auto 1fr; gap: 0.55rem; }
  .pagination-buttons { gap: 0.35rem; }
  .page-button { min-width: 44px; padding: 0.6rem; }
  .page-button b { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .page-status { min-width: 6.5rem; font-size: 0.78rem; }
  footer { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .dialog-layout { grid-template-columns: 1fr; }
  .dialog-media { position: static; height: 250px; min-height: 250px; }
  .dialog-media img, .dialog-media video, .dialog-media iframe { min-height: 250px; max-height: 42vh; }
  .dialog-close { position: absolute; top: 0; right: 0; margin: 0.8rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-wide { grid-column: auto; }
  .dialog-thumbnails { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screenshot-lightbox { width: 100%; height: 100%; padding: 4.5rem 1rem 1.5rem; border-radius: 0; }
  .lightbox-arrow { top: auto; bottom: 1rem; transform: none; }
  .lightbox-previous { left: 1rem; }
  .lightbox-next { right: 1rem; }
}

@media (max-width: 350px) {
  .site-header .brand-word { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal, .app-card { opacity: 1 !important; transform: none !important; filter: none !important; translate: 0 0 !important; }
  .hero h1 .line-inner { transform: none; animation: none; }
  .manifesto-text .mw { opacity: 1; }
  .cursor-dot, .cursor-ring { display: none; }
  html.cursor-on, html.cursor-on * { cursor: auto !important; }
  .hex-float, .hex-toggle { display: none; }
}

/* Auf schmalen Viewports und Touch-Geraeten bleibt der Effekt aus
   (die JS-Seite startet dort gar nicht erst). */
@media (max-width: 680px) {
  .hex-float, .hex-toggle { display: none; }
}
