/* ============================================================
   Cinematic dust skin
   ------------------------------------------------------------
   Reference: fine warm dust drifting out of black, high contrast.
   Two fixed layers sit above the whole page, so they also cover the
   WebGL hero and every frame of the scroll sequence.

   Tune here:
     --fx-dust       dust strength     0 = off, .4 subtle, .8 heavy
     --fx-dust-blend screen | soft-light | overlay
     --fx-darken     global darkening  0 = none, .5 heavy
     --fx-vignette   edge darkening    0 = none, 1 = strong
   ============================================================ */

:root {
  --fx-dust: 0.06;
  --fx-dust-blend: screen;
  --fx-darken: 0.18;
  --fx-vignette: 0.55;
}

/* ---- dark grade + vignette, under the dust ---- */
html::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483645;
  pointer-events: none;
  background:
    radial-gradient(
      120% 100% at 50% 45%,
      rgba(0, 0, 0, 0) 30%,
      rgba(0, 0, 0, calc(var(--fx-vignette) * 0.55)) 68%,
      rgba(0, 0, 0, var(--fx-vignette)) 100%
    ),
    linear-gradient(rgba(0, 0, 0, var(--fx-darken)), rgba(0, 0, 0, var(--fx-darken)));
}

/* ---- warm dust plate, screened over everything ----
   screen keeps the blacks black and lifts only the lit particles, which is
   what gives the reference its contrast instead of a flat grey wash. */
html::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  pointer-events: none;
  background-image: url("/assets/textures/fx/dust-plate.jpg");
  background-repeat: no-repeat;
  background-position: 50% 100%;
  /* stretch, not cover: the plate's own black top edge must stay on screen,
     that is where the reference gets its hard falloff to black */
  background-size: 100% 100%;
  opacity: var(--fx-dust);
  mix-blend-mode: var(--fx-dust-blend);
  filter: contrast(1.9) brightness(0.95) saturate(0.85);
  /* scroll-driven parallax lives in skin.js (sets --fx-y) */
  transform: translate3d(0, var(--fx-y, 0px), 0) scale(1.08);
  transition: transform 0.08s ease-out;
  will-change: transform;
}

  /* slow parallax so the dust breathes with the scroll animation */
  /* (scroll-driven, see skin.js) */

@media (prefers-reduced-motion: reduce) {
  html::after { animation: none; }
}

/* ---- brand: once, in the hero, and nowhere else ----
   The raster wordmark is hidden (it is the old brand's artwork) and replaced
   with a type-set wordmark. skin.js sets data-fx-hero while the hero is on
   screen, so the name appears with the opening animation and is gone as soon
   as you scroll into the rest of the site. */
nav > button.group img,
nav > a.group img {
  display: none !important;
}

nav > button.group::after,
nav > a.group::after {
  content: "TALON";
  font-family: var(--font-geist-sans), Geist, ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
  transition: color 0.2s ease-out;
}

nav > button.group:hover::after,
nav > a.group:hover::after {
  color: rgba(255, 255, 255, 0.8);
}

/* ---- brand: visible in every section ---- */
/* (hero-only gating removed; the wordmark stays in the nav across the site) */

/* ---- no contact CTA ----
   Hidden, not deleted: React 19 aborts hydration when the server markup
   drops an element the RSC payload still describes. */
nav button.text-d-cta,
button[class*="md:max-w-55"] {
  display: none !important;
}

/* ---- the 3D globe / map section ----
   skin.js does the real removal (it also stops the WebGL loop). This is the
   fallback so the section cannot flash before that runs. */
[data-fx-removed="map"] {
  display: none !important;
}

/* ---- gallery (fills the space left by the removed map section) ---- */
.fx-gallery {
  width: 100%;
  max-width: 1280px;
  margin: 80px auto 120px;
  padding: 0 24px;
}

.fx-gallery-title {
  font-family: var(--font-geist-sans), Geist, ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
  text-align: center;
}

.fx-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.fx-gallery-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.4s ease, border-color 0.3s ease;
}

.fx-gallery-grid img:hover {
  transform: scale(1.03);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ---- footer note: original name + date ---- */
.fx-footer-note {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
  z-index: 2147483640;
  white-space: nowrap;
}
