:root {
  --bg: #e6bd00;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body { background: var(--bg); overflow-x: hidden; }

/* ---- Top-right corner menu ----
   Sized relative to the 750x300 source asset (menu-background.gif);
   icon positions are percentages so they stay locked to the artwork
   if MENU_WIDTH is changed. Static layout for now -- entrance
   animation comes next. */
:root {
  --menu-width: 450px;
}

.menu {
  position: fixed;
  top: 16px;
  right: 16px;
  width: var(--menu-width);
  aspect-ratio: 750 / 300;
  z-index: 100;
}

.menu-bg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  mix-blend-mode: hard-light;
}

.menu-icon {
  position: absolute;
  width: 16.67%; /* 75px / 450px container width */
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  display: block;
}

.menu-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.hero {
  position: relative;
  min-height: 100vh;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Single flat element per layer: image + blend mode + scale animation.
   Parallax is driven via `margin` (set by JS on mousemove) rather than
   `transform`, because `transform` would create a new stacking context
   and cut mix-blend-mode off from the real .hero background behind it. */
.bg-layer {
  position: absolute;
  inset: -10%; /* extra bleed so parallax movement never shows an edge */
  background-repeat: no-repeat;
  background-position: center;
  mix-blend-mode: color-burn;
  opacity: 0;
  transition: opacity 0.8s ease-out;
  pointer-events: none;
  transform-origin: center;
}

.bg-layer.is-loaded {
  opacity: 0.5;
}

.bg-layer:nth-of-type(1) { z-index: 1; }  /* layer 1: below the logo */
.bg-layer:nth-of-type(2) { z-index: 15; } /* layer 2: above the logo */
.bg-layer:nth-of-type(3) { z-index: 16; } /* layer 3: above the logo */

@keyframes scale-1-to-1_5 {
  from { transform: scale(1); }
  to   { transform: scale(1.5); }
}

@keyframes scale-1-to-1_5667 {
  from { transform: scale(1); }
  to   { transform: scale(1.5667); }
}

@keyframes scale-1-to-2_35 {
  from { transform: scale(1); }
  to   { transform: scale(2.35); }
}

/* Layer 1: background-size 100% (static) + scale 1 -> 1.5   => visually 100% -> 150% */
.layer-1 {
  background-size: 100%;
  animation: scale-1-to-1_5 30s ease-in-out infinite alternate;
}

/* Layer 2: background-size 150% (static) + scale 1 -> 1.5667 => visually 150% -> 235% */
.layer-2 {
  background-size: 150%;
  animation: scale-1-to-1_5667 30s ease-in-out infinite alternate;
}

/* Layer 3: background-size 100% (static) + scale 1 -> 2.35   => visually 100% -> 235% */
.layer-3 {
  background-size: 100%;
  animation: scale-1-to-2_35 60s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 55%, black 100%);
  mask-image: radial-gradient(ellipse at center, transparent 55%, black 100%);
}

.logo-media {
  position: relative;
  z-index: 10;
  width: 500px;
  max-width: 70%;
  height: auto;
}

@media (prefers-reduced-motion: reduce) {
  .bg-layer { margin: 0 !important; animation: none !important; }
}
