  /* ───────────────────────────────────────────────────────────────
     DIAMOND → PROJECTOR REEL.
     The masthead diamond becomes a clickable affordance. On click,
     a 16:9 reel "projects out" from its exact origin, scaling up
     to ~75% viewport. Plays an uploaded video/image (admin) or a
     restrained default placeholder (public).
     ─────────────────────────────────────────────────────────────── */

  /* clickable diamond + subtle invite cue */
  .masthead-mark {
    cursor: pointer;
    transition: filter .35s var(--ease), transform .35s var(--ease);
  }
  .masthead-mark:hover {
    filter: drop-shadow(0 0 28px rgba(204,174,108,0.32)) !important;
    transform: scale(1.04);
  }
  .masthead-mark:focus-visible {
    outline: 1px solid var(--gold);
    outline-offset: 8px;
  }
  /* heartbeat — applied to the wrapper and disabled for reduced-motion users. */
  .masthead-mark {
    animation: asterHeartbeat 2.4s ease-in-out infinite !important;
    animation-iteration-count: infinite !important;
    transform-origin: center center;
    will-change: transform, filter;
  }
  .masthead-mark:hover { animation-play-state: paused !important; }
  @keyframes asterHeartbeat {
    0%   { transform: scale(1);    filter: none; }
    12%  { transform: scale(1.075); filter: drop-shadow(0 0 16px rgba(204,174,108,0.55)); }
    24%  { transform: scale(1);    filter: none; }
    36%  { transform: scale(1.045); filter: drop-shadow(0 0 10px rgba(204,174,108,0.34)); }
    48%  { transform: scale(1);    filter: none; }
    100% { transform: scale(1);    filter: none; }
  }
  .nav-shell.masthead-nav.scrolled .masthead-mark {
    animation-duration: 2.8s !important;
  }
  @media (prefers-reduced-motion: reduce) {
    .masthead-mark { animation: none !important; will-change: auto; }
  }
  /* tiny "play" hint pinned under the diamond — sits in the gap above the wordmark */
  .masthead-mark::after {
    content: "Play reel";
    position: absolute;
    top: calc(100% + 4px);
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0;
    transition: opacity .3s var(--ease);
    pointer-events: none;
    white-space: nowrap;
  }
  .masthead-mark:hover::after { opacity: 0.78; }
  .nav-shell.masthead-nav.scrolled .masthead-mark::after { display: none; }

  /* reel modal — fullscreen overlay with a centered 16:9 frame */
  .reel-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(4,4,5,0.94);
    backdrop-filter: blur(18px) saturate(120%);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 4vw, 56px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s var(--ease), visibility .45s var(--ease);
  }
  .reel-modal.is-open {
    opacity: 1;
    visibility: visible;
  }

  .reel-frame {
    position: relative;
    width: min(880px, 58vw);
    aspect-ratio: 16 / 9;
    background: #04050a;
    border: 1px solid rgba(204,174,108,0.55);
    box-shadow:
      0 0 0 1px rgba(241,235,221,0.04),
      0 60px 160px rgba(0,0,0,0.7),
      0 0 120px rgba(204,174,108,0.12);
    overflow: hidden;
    /* zoom-out animation: open from the diamond's exact origin AND its
       45° angle, then rotate to upright as it scales up */
    transform: scale(0.05) rotate(45deg);
    transform-origin: var(--reel-origin-x, 50%) var(--reel-origin-y, 24%);
    opacity: 0;
    transition: transform .68s cubic-bezier(.22,.7,.2,1), opacity .35s var(--ease);
  }
  .reel-modal.is-open .reel-frame {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  /* corner brackets on the reel frame — echoes the masthead diamond's geometry */
  .reel-frame::before,
  .reel-frame::after {
    content: "";
    position: absolute;
    width: 18px; height: 18px;
    border-color: var(--gold);
    border-style: solid;
    border-width: 0;
    z-index: 4;
    pointer-events: none;
  }
  .reel-frame::before {
    top: 10px; left: 10px;
    border-top-width: 1px; border-left-width: 1px;
  }
  .reel-frame::after {
    bottom: 10px; right: 10px;
    border-bottom-width: 1px; border-right-width: 1px;
  }
  /* a top-left slate ID strip, like a film loader card */
  .reel-frame__slate {
    position: absolute;
    top: 14px; left: 32px;
    z-index: 5;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .reel-frame__slate .rec {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
    animation: blink 2.4s ease-in-out infinite;
  }
  /* bottom-right runtime / format strip */
  .reel-frame__meta {
    position: absolute;
    bottom: 14px; right: 32px;
    z-index: 5;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(241,235,221,0.6);
  }

  .reel-frame__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #04050a;
    display: block;
  }

  /* default placeholder when no media uploaded */
  .reel-frame__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    font-family: var(--mono);
    color: rgba(241,235,221,0.55);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    font-size: 10px;
    padding: 32px;
  }
  .reel-frame__placeholder .ph-glyph {
    width: 38px; height: 38px;
    transform: rotate(45deg);
    border: 1px solid rgba(204,174,108,0.6);
    position: relative;
    margin-bottom: 6px;
  }
  .reel-frame__placeholder .ph-glyph::after {
    content: "";
    position: absolute;
    inset: 8px;
    background: rgba(204,174,108,0.5);
  }
  .reel-frame__placeholder .ph-title {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(18px, 2vw, 26px);
    letter-spacing: 0;
    text-transform: none;
    color: var(--bone);
    max-width: 22ch;
    line-height: 1.3;
  }
  .reel-frame.has-media .reel-frame__placeholder { display: none; }

  /* close button (top right of viewport, outside the frame) */
  .reel-close {
    position: absolute;
    top: clamp(20px, 3vw, 36px);
    right: clamp(20px, 3vw, 36px);
    z-index: 6;
    width: 44px;
    height: 44px;
    background: rgba(10,8,6,0.7);
    border: 1px solid rgba(204,174,108,0.4);
    color: var(--ivory);
    cursor: pointer;
    font-family: var(--mono);
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .25s, border-color .25s;
  }
  .reel-close:hover {
    background: rgba(204,174,108,0.18);
    border-color: var(--gold);
  }

  /* admin upload panel pinned to the bottom of the reel frame */
  .reel-admin {
    display: none;
    position: absolute;
    z-index: 5;
    bottom: 14px;
    left: 32px;
    align-items: center;
    gap: 8px;
  }
  body.aster-admin .reel-admin { display: inline-flex; }
  .reel-admin button {
    appearance: none;
    background: rgba(4,5,10,0.85);
    color: var(--ivory);
    border: 1px solid rgba(204,174,108,0.5);
    padding: 8px 12px;
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .25s, border-color .25s;
  }
  .reel-admin button:hover {
    background: rgba(204,174,108,0.16);
    border-color: var(--gold);
  }
  .reel-admin button.danger {
    border-color: rgba(217,119,87,0.45);
  }

  @media (max-width: 760px) {
    .reel-frame { width: 88vw; }
    .reel-frame__slate, .reel-frame__meta { font-size: 8px; left: 18px; right: 18px; }
    .reel-admin { left: 18px; gap: 6px; }
    .reel-admin button { font-size: 8.5px; padding: 7px 10px; }
    .reel-close { width: 40px; height: 40px; top: 14px; right: 14px; }
  }
