/* Aimwright hero pieces: shared styles (placeholders, viewer, the hero slot).
   Concept & development by T.N. Smit · © 2026 · All rights reserved. */

/* The slot: exactly where the old sight animation sat. The text column is untouched. */
/* the text column's box reaches past its text, so only its links and buttons catch clicks */
.hero .wrap, .hero .hero-copy{pointer-events:none}
.hero .hero-copy a, .hero .hero-copy button{pointer-events:auto}
.hp{position:absolute; top:0; right:0; width:62%; height:100vh; height:100svh; z-index:1; overflow:hidden;
  -webkit-user-select:none; user-select:none; touch-action:pan-y;
  -webkit-mask-image:linear-gradient(90deg, transparent 0, #000 22%), linear-gradient(180deg, #000 62%, transparent 96%);
  -webkit-mask-composite:source-in;
  mask-image:linear-gradient(90deg, transparent 0, #000 22%), linear-gradient(180deg, #000 62%, transparent 96%);
  mask-composite:intersect}
@media (max-width:860px){
  .hp{order:2; position:relative; top:auto; right:auto; width:100%; height:440px; flex:none;
    -webkit-mask-image:linear-gradient(180deg, #000 80%, transparent 100%); mask-image:linear-gradient(180deg, #000 80%, transparent 100%)}
}

/* A frame (tile). Real media fills it; without media it shows a placeholder. */
.hp-tile{position:absolute; display:block; padding:0; margin:0; border:1px solid rgba(220,216,207,.12); border-radius:8px;
  overflow:hidden; background:#22201e; color:var(--text); font:inherit; cursor:pointer;
  box-shadow:0 34px 60px -34px rgba(0,0,0,.95), 0 0 0 1px rgba(0,0,0,.35)}
.hp-tile:focus-visible{outline:2px solid var(--amber); outline-offset:4px}
.hp-tile img, .hp-tile video{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block}
.hp-ph{position:absolute; inset:0;
  background:radial-gradient(120% 80% at 28% 18%, rgba(244,178,62,.09), transparent 60%), linear-gradient(160deg, #2c2a27 0%, #1b1a19 100%)}
/* viewfinder corners */
.hp-ph::before{content:""; position:absolute; inset:10px;
  background:
    linear-gradient(var(--c,#6f6b62),var(--c,#6f6b62)) left top/14px 1px no-repeat, linear-gradient(var(--c,#6f6b62),var(--c,#6f6b62)) left top/1px 14px no-repeat,
    linear-gradient(var(--c,#6f6b62),var(--c,#6f6b62)) right top/14px 1px no-repeat, linear-gradient(var(--c,#6f6b62),var(--c,#6f6b62)) right top/1px 14px no-repeat,
    linear-gradient(var(--c,#6f6b62),var(--c,#6f6b62)) left bottom/14px 1px no-repeat, linear-gradient(var(--c,#6f6b62),var(--c,#6f6b62)) left bottom/1px 14px no-repeat,
    linear-gradient(var(--c,#6f6b62),var(--c,#6f6b62)) right bottom/14px 1px no-repeat, linear-gradient(var(--c,#6f6b62),var(--c,#6f6b62)) right bottom/1px 14px no-repeat;
  opacity:.9}
.hp-ph .ic{position:absolute; left:50%; top:50%; width:44px; height:44px; margin:-22px 0 0 -22px; border-radius:50%;
  border:1px solid rgba(220,216,207,.28); display:flex; align-items:center; justify-content:center}
.hp-ph .ic svg{display:block}
.hp-ph .lb, .hp-ph .ar{position:absolute; font-family:var(--mono); font-size:9px; letter-spacing:.18em; text-transform:uppercase; color:var(--faint)}
.hp-ph .lb{left:16px; bottom:15px}
.hp-tile.sm .hp-ph .lb, .hp-tile.sm .hp-ph .ar{display:none}
.hp-tile.sm .hp-ph::before{inset:7px}
.hp-ph .ar{right:16px; top:15px}
.hp-tile .pv{position:absolute; left:16px; right:16px; bottom:9px; height:2px; background:rgba(220,216,207,.12); overflow:hidden; opacity:0; transition:opacity .3s}
.hp-tile .pv i{display:block; height:100%; width:100%; background:var(--amber); transform-origin:0 50%; transform:scaleX(0)}
.hp-tile.on .pv{opacity:1}
.hp-tile.on .pv i{animation:hpPv 4s linear infinite}
/* play mark on every video frame (2026-11-27); it steps aside while the clip plays */
.hp-tile .pm{position:absolute; left:9px; top:9px; width:26px; height:26px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:rgba(20,19,18,.72); border:1px solid rgba(220,216,207,.35); transition:opacity .3s; pointer-events:none}
.hp-tile .pm svg{display:block; margin-left:2px}
.hp-tile.sm .pm{left:6px; top:6px; width:20px; height:20px}
.hp-tile.on .pm{opacity:0}

/* "Tap a frame to watch" under the tunnel; fades once a frame has been opened */
.hp-hint{position:absolute; z-index:2; right:0; width:62%; bottom:5vh; margin:0; padding-left:16%; text-align:center; pointer-events:none;
  font-family:var(--mono); font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:var(--muted); transition:opacity .6s}
.hp-hint span{color:var(--amber); margin-right:4px}
.hp-hint.gone{opacity:0}
@media (max-width:860px){
  .hp-hint{order:3; position:relative; right:auto; bottom:auto; width:auto; padding:0 16px; margin:-34px 0 18px}
}
@keyframes hpPv{to{transform:scaleX(1)}}

/* The viewer (opens a photo or a video) */
.hp-lb{position:fixed; inset:0; z-index:90; display:flex; align-items:center; justify-content:center; padding:72px 64px;
  background:rgba(14,13,12,.86); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); opacity:0; transition:opacity .35s ease}
.hp-lb[hidden]{display:none}
.hp-lb.in{opacity:1}
.hp-lb-fig{position:relative; margin:0; height:min(78vh, 760px); max-width:100%; display:flex; flex-direction:column; align-items:center; gap:14px}
.hp-lb-media{position:relative; height:100%; border-radius:10px; overflow:hidden; background:#22201e; border:1px solid var(--line);
  box-shadow:0 50px 100px -40px rgba(0,0,0,.95); transform-origin:0 0; will-change:transform}
.hp-lb-media img, .hp-lb-media video{position:absolute; inset:0; width:100%; height:100%; object-fit:contain; background:#000}
.hp-lb-media .hp-ph .ic{width:64px; height:64px; margin:-32px 0 0 -32px}
.hp-lb-media .hp-ph .note{position:absolute; left:0; right:0; top:calc(50% + 48px); text-align:center; font-family:var(--mono); font-size:10px; letter-spacing:.18em; text-transform:uppercase; color:var(--muted)}
.hp-lb-cap{font-family:var(--mono); font-size:11px; letter-spacing:.18em; text-transform:uppercase; color:var(--muted)}
.hp-lb button{position:absolute; width:48px; height:48px; border-radius:50%; border:1px solid var(--line); background:rgba(33,31,30,.85);
  color:var(--text); font:inherit; font-size:20px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:border-color .2s, color .2s}
.hp-lb button:hover{border-color:var(--amber); color:var(--amber)}
.hp-lb button:focus-visible{outline:2px solid var(--amber); outline-offset:3px}
.hp-lb-x{top:18px; right:18px}
.hp-lb-prev{left:14px; top:50%; margin-top:-24px}
.hp-lb-next{right:14px; top:50%; margin-top:-24px}
@media (max-width:600px){
  .hp-lb{padding:64px 12px 84px}
  .hp-lb-fig{height:min(70vh, 640px)}
  .hp-lb-prev, .hp-lb-next{top:auto; bottom:18px; margin-top:0}
  .hp-lb-prev{left:calc(50% - 60px)} .hp-lb-next{right:calc(50% - 60px)}
}
@media (prefers-reduced-motion:reduce){ .hp-lb{transition:none} .hp-tile.on .pv i{animation:none; transform:scaleX(1)} }
