/* Neo‑brutalist palette */
:root {
  --vert-sapin: #0a4d3c;
  --rose: #ff5aa6;
  --orange: #ff8c00;
  --marron: #6b4423;
  --blanc: #f8f8f8;
  --noir: #0b0d10;
  --shadow: 8px 8px 0 rgba(0, 0, 0, 0.95);
  --border: 4px solid var(--noir);
}

/* Fullscreen container */
html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--noir);
  background: var(--blanc);
}

.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
}

/* Point & Click layer (background) */
.world {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(900px 600px at 15% 20%, rgba(255, 140, 0, 0.28), rgba(255, 140, 0, 0) 55%),
    radial-gradient(700px 520px at 85% 75%, rgba(255, 102, 163, 0.20), rgba(255, 102, 163, 0) 58%),
    linear-gradient(180deg, #ffffff, var(--blanc));
  user-select: none;
}

/* Hero title */
.hero {
  position: absolute;
  inset-inline: 24px;
  top: 20px;
  z-index: 2;
  padding: 18px 18px 12px;
  border: var(--border);
  box-shadow: var(--shadow);
  background: var(--blanc);
  max-width: 980px;
}

.hero__kicker {
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
}

.hero__title {
  margin: 6px 0 0;
  font-family: "Anton", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: clamp(34px, 5.2vw, 72px);
  line-height: 0.95;
}

/* Neo-brutal buttons layout */
.menu {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.neo-btn {
  position: absolute;
  width: clamp(160px, 18vw, 240px);
  height: clamp(160px, 18vw, 240px);
  border-radius: 22px;
  border: var(--border);
  box-shadow: var(--shadow);
  font-family: "Anton", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: clamp(18px, 2.4vw, 26px);
  cursor: pointer;
  transition: transform 180ms cubic-bezier(0.2, 1.6, 0.3, 1), box-shadow 180ms ease;
  will-change: transform;
}

.neo-btn:focus-visible {
  outline: 4px dashed var(--rose);
  outline-offset: 6px;
}

.neo-btn:hover {
  transform: translate(-3px, -3px) rotate(-1deg) scale(1.03);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.95);
}

.neo-btn:active {
  transform: translate(2px, 2px) rotate(0deg) scale(0.99);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.95);
}

.neo-btn--projects {
  left: 8vw;
  top: 56vh;
  background: var(--orange);
}

.neo-btn--about {
  left: 58vw;
  top: 22vh;
  background: var(--rose);
}

.neo-btn--contact {
  left: 70vw;
  top: 66vh;
  background: #7cf2d6;
}

/* Small bounce accent on hover */
@media (prefers-reduced-motion: no-preference) {
  .neo-btn:hover {
    animation: neo-bounce 500ms cubic-bezier(0.2, 1.6, 0.3, 1) both;
  }
}

@keyframes neo-bounce {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  55% {
    transform: translate(-4px, -4px) rotate(-1deg) scale(1.05);
  }
  85% {
    transform: translate(-2px, -2px) rotate(-0.5deg) scale(1.02);
  }
  100% {
    transform: translate(-3px, -3px) rotate(-1deg) scale(1.03);
  }
}

/* Scratch UI (logo + hint) */
.scratch-ui {
  position: absolute;
  inset: 0;
  z-index: 4; /* above canvas */
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 1;
  transition: opacity 220ms ease;
}

.scratch-ui__logo {
  font-family: "Anton", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(64px, 15vw, 220px);
  line-height: 0.85;
  text-transform: uppercase;
  color: var(--rose);
  letter-spacing: 0.02em;
  text-shadow: 6px 6px 0 rgba(0, 0, 0, 0.95);
}

.scratch-ui__hint {
  margin-top: 16px;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: clamp(12px, 1.2vw, 16px);
  color: var(--blanc);
  background: rgba(0, 0, 0, 0.22);
  border: 2px solid rgba(0, 0, 0, 0.5);
  padding: 10px 14px;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.95);
}

/* Scratch layer (foreground) */
.scratch {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none; /* critical for pointer events on mobile */
  opacity: 1;
  transition: opacity 350ms ease;
}

.scratch.is-fading {
  opacity: 0;
  cursor: default;
}

