/* ============================================================
   Landing Opener — Eddie and the family, held ~5s on a dark suede
   backdrop inside a gold frame, then a slow (~1.5s) fade into the page.
   Built per Craig's spec, task-board.md "landing page opener spec from
   Craig", 2026-09-24 17:51 PDT. Tap/click anywhere skips it.

   Reuses the real photoscanned suede/walnut recipe already built for
   shop/index.html's .suede-frame (same texture files, same blend-mode
   recipe, copied to this repo's assets/textures/ so this page doesn't
   reach into shop/) rather than a re-derived design. Gold tones match
   this page's own :root tokens (--gold/--gold-bright/--gold-deep).

   prefers-reduced-motion: the hold time is unchanged (it's real
   content, not an animation), but the closing transition is instant
   (0s) instead of the 1.5s fade.
   ============================================================ */

#opener {
  position: fixed;
  inset: 0;
  z-index: 20000; /* above expand-image.css's 9999 overlay */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right))
           max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  cursor: pointer;
  background: radial-gradient(1200px 700px at 50% -10%, rgba(217, 169, 77, 0.14), transparent), #0d0b08;
  opacity: 1;
  transition: opacity 1.5s ease;
}

#opener[data-hiding="true"] {
  opacity: 0;
  pointer-events: none;
}

#opener[hidden] {
  display: none;
}

body.opener-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  #opener {
    transition: none;
  }
}

.opener-frame {
  position: relative;
  max-width: min(92vw, 460px);
  max-height: 78vh;
  padding: 14px;
  background: linear-gradient(155deg, #a97b2e, #d9a94d, #a97b2e);
  border-radius: 14px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85), 0 0 110px -20px rgba(240, 199, 116, 0.45);
}

.opener-frame::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  height: 9px;
  background-image: url("textures/walnut-veneer.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 6px 6px 0 0;
  box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.55);
  z-index: 2;
  pointer-events: none;
}

.opener-inner {
  position: relative;
  background-image: linear-gradient(rgba(217, 169, 77, 0.3), rgba(217, 169, 77, 0.3)),
    url("textures/suede-velour-black.jpg");
  background-blend-mode: color;
  background-size: cover;
  background-position: center;
  border: 1px solid #000;
  border-radius: 6px;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.opener-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(85% 70% at 24% 10%, rgba(255, 246, 225, 0.14), rgba(255, 246, 225, 0.05) 45%, transparent 72%);
  mix-blend-mode: soft-light;
}

.opener-img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: calc(78vh - 90px);
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 3px;
}

/* Ceramic-lacquer pill, real .ignite-btn recipe copied verbatim from
   C:\Users\User\toolbox-central\app\globals.css (lines ~1868-1962).
   Craig's locked rule: "It's always got to be that ceramic lacquer
   look." This page has no --color-gold-bright/--color-glow-rgb token
   system, so the two variables are substituted with their real default
   (gold accent) literal values -- #f0c774 and 240,199,116 -- exactly as
   they resolve in the live app today, not approximated. */
.opener-audio-pill {
  position: relative;
  z-index: 10;
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "Segoe UI", Calibri, system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f0c774;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.75);
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.6);
  background: radial-gradient(
    150% 190% at 34% -25%,
    rgba(240, 199, 116, 0.6) 0%,
    rgba(240, 199, 116, 0.34) 30%,
    rgba(22, 16, 10, 0.96) 68%,
    rgba(9, 7, 5, 0.98) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 -9px 13px -6px rgba(0, 0, 0, 0.7) inset,
    0 1.5px 0 rgba(0, 0, 0, 0.85),
    0 9px 16px -8px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(0, 0, 0, 0.3);
  transition: filter 0.2s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.opener-audio-pill[hidden] {
  display: none;
}

.opener-audio-pill:hover:not(:disabled) {
  filter: brightness(1.1);
}

.opener-audio-pill:active {
  transform: translateY(1px);
  filter: brightness(0.96);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 -4px 9px -4px rgba(0, 0, 0, 0.8) inset,
    0 1px 0 rgba(0, 0, 0, 0.85),
    0 3px 7px -4px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(0, 0, 0, 0.3);
}

.opener-audio-pill:focus-visible {
  outline: 2px solid #f0c774;
  outline-offset: 2px;
}

.opener-skip-hint {
  position: relative;
  z-index: 10;
  margin-top: 14px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(243, 234, 214, 0.55);
  text-align: center;
}

@media (max-width: 480px) {
  .opener-frame {
    padding: 10px;
    max-width: 94vw;
  }
  .opener-inner {
    padding: 12px;
  }
}

/* ============================================================
   Family portrait — persistent, on-page copy of the same canonical
   image, wired with the LOCKED expand-on-hover/tap module
   (feedback_hover_expand_full_page_bars_slide_standard_2026-09-24).
   ============================================================ */
.family-portrait {
  margin: 1.8rem auto 0;
  max-width: 260px;
  text-align: center;
}
.family-portrait img {
  width: 100%;
  display: block;
  border-radius: 14px;
  border: 1px solid #352c1d;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}
.family-portrait figcaption {
  margin-top: 0.5rem;
  font-size: 0.76rem;
  color: #7d715a;
}
