/* Landing page — falling logo frames */
:root {
  --bg: #ffffff;
  --ink: #0b0b0b;
  --muted: #6d6d6d;
  --gutter: clamp(16px, 3vw, 40px);
  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0d0d0d;
  --ink: #f0eee8;
  --muted: #9b9b9b;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: fixed; inset: 0;
  display: block; overflow: hidden;
  cursor: none; touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.stage::before {
  content: "lukasmasak";
  position: absolute; left: 50%; top: 46%;
  transform: translate(-50%, -50%);
  font-size: clamp(56px, 15vw, 260px); font-weight: 800; letter-spacing: -0.06em; line-height: 1;
  color: #ffffff; mix-blend-mode: difference; z-index: 2; white-space: nowrap; pointer-events: none;
}

.frame {
  position: absolute; left: 0; top: 0;
  border: 1.5px solid var(--ink); border-radius: 14px; overflow: hidden;
  background: #0e0e0e;
  pointer-events: none; will-change: transform;
}
.frame--light { background: #efefef; }
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* static fallback (no JS physics / reduced motion) */
.frame--still {
  left: 50%; top: 50%; width: min(70vw, 420px); aspect-ratio: 1000 / 460; height: auto;
  transform: translate(-50%, -50%) rotate(-4deg);
}

.cursor {
  position: fixed; left: 0; top: 0; z-index: 5;
  border: 1.5px solid var(--ink); border-radius: 50%;
  background: transparent;
  pointer-events: none; opacity: 0; transition: opacity .2s ease;
}
.cursor.is-on { opacity: 1; }

.hint {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin: 0; padding: 16px var(--gutter);
  font-size: 15px; font-weight: 500; pointer-events: none;
}
.hint__brand { font-weight: 700; letter-spacing: -0.03em; font-size: 18px; }
.hint a { pointer-events: auto; color: inherit; text-decoration: none; border-bottom: 1.5px solid; }

@media (hover: none) {
  .stage { cursor: pointer; }
}

@media (max-width: 560px) {
  .hint { flex-wrap: wrap; justify-content: center; }
  .hint__brand { display: none; }
}
