/* Revolver Systems coming-soon page.
   Look: matte black background with a glossy black logo on top
   (gloss-on-matte, like the Metallica "black album" cover). */

:root {
  --rv-lime: #DCF763;

  /* Darkness of the photo. 0 = untouched, 1 = solid black.
     Raise to hide more detail, lower to show more of the drone. */
  --shade: 0.86;

  /* Strength of the matte grain over the darkened photo (0 to ~0.2). */
  --grain: 0.09;

  /* Vertical position of the logo's center, to sit it over the fuselage. */
  --logo-y: 54%;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; background: #000; }

body {
  min-height: 100svh;
  overflow: hidden;
  font-family: "Avenir Next", "Poppins", system-ui, sans-serif;
  color: #AEB6B7;
}

/* --- Layer 1: the photo ------------------------------------------------ */
.bg {
  position: fixed; inset: 0;
  background: #000 url("/img/hero.jpg") center 45% / cover no-repeat;
  background-image: image-set(url("/img/hero.webp") type("image/webp"), url("/img/hero.jpg") type("image/jpeg"));
  filter: grayscale(1) contrast(1.05);
}

/* --- Layer 2: darkening gradient ---------------------------------------
   A flat black wash at --shade opacity, plus a vignette that pushes the
   edges fully black so the frame disappears into the page. */
.shade {
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 75% 70% at 50% 48%, transparent 30%, rgba(0,0,0,.85) 100%),
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 30%, transparent 70%, rgba(0,0,0,.6) 100%),
    rgba(0,0,0,var(--shade));
}

/* --- Layer 3: matte grain ----------------------------------------------
   Fine fractal noise kills the photo's smoothness so the background reads
   as a flat, non-reflective black. The logo sits above this, untouched. */
.matte {
  position: fixed; inset: -50%;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* --- Layer 4: the glossy black logo ------------------------------------ */
main {
  position: fixed; inset: 0;
  display: grid;
  place-items: center;
}

.logo-wrap {
  position: absolute;
  left: 50%; top: var(--logo-y);
  transform: translate(-50%, -50%);
  /* Width is capped by screen height too, so phones in landscape keep the
     logo clear of the contact line. */
  width: min(78vw, 980px, 110svh);
  /* Faint rim light: a hairline highlight on the top edge and a soft
     lift underneath, so black-on-black still reads. */
  filter:
    drop-shadow(0 -1px 0 rgba(255,255,255,.20))
    drop-shadow(0 1px 0 rgba(255,255,255,.05))
    drop-shadow(0 18px 30px rgba(0,0,0,.9));
}

.logo {
  display: block;
  width: 100%;
  aspect-ratio: 5769 / 1611;      /* the logo SVG's viewBox */
  -webkit-mask: url("/img/logo.svg") center / contain no-repeat;
          mask: url("/img/logo.svg") center / contain no-repeat;
  /* Gloss: a lit upper half that breaks sharply to deep black at the
     "horizon", then a weak floor reflection. Reads as lacquer, not paint. */
  background:
    linear-gradient(172deg,
      #3a3d3e 0%,
      #1b1d1e 30%,
      #0b0c0c 47%,
      #000 49%,
      #000 72%,
      #0e0f0f 88%,
      #1a1c1c 100%);
}

/* --- Contact ----------------------------------------------------------- */
footer {
  position: fixed;
  left: 0; right: 0; bottom: max(28px, env(safe-area-inset-bottom));
  text-align: center;
}

.contact {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: lowercase;
  color: var(--rv-lime);
  text-decoration: none;
  opacity: .75;
  transition: opacity .2s;
}
.contact:hover, .contact:focus-visible { opacity: 1; }

/* Phones in portrait: let the logo use more of the narrow width. */
@media (max-width: 600px) and (orientation: portrait) {
  .logo-wrap { width: 88vw; }
}
