/*
 * replica.css
 * Replica-only styles. Nothing in this file exists on the live site.
 * It styles the stand-ins for things an artifact cannot load: embedded YouTube players
 * and the SAM3 interactive prototype frame. Each stand-in fills the box the frame had.
 */
.rp-frame {
  background-color: #0b0b0b;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
a.rp-yt {
  position: absolute;
  inset: 0;
  display: block;
}
.rp-demo {
  position: relative;
}
.rp-frame .rp-note {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.62);
  color: #ededed;
  font: 500 11px/1.2 "IBM Plex Mono", "Cousine", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}
/* play glyph only when there is no still behind it */
.rp-frame .rp-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.rp-frame .rp-play::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 20px;
  border-style: solid;
  border-width: 12px 0 12px 18px;
  border-color: transparent transparent transparent #ededed;
}
.rp-frame[style*="background-image"] .rp-play,
a.rp-yt[style*="background-image"] .rp-note {
  display: none;
}

/* The live site draws a play icon (images/frontend/video/play.svg) over a paused video block.
   That file was not in the saved pages, so this is a plain stand-in of the same size (80px). */
.fc-video.hide-controls:after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Ccircle cx='40' cy='40' r='38' fill='rgba(0,0,0,0.35)' stroke='white' stroke-width='2'/%3E%3Cpath d='M32 25l24 15-24 15z' fill='white'/%3E%3C/svg%3E");
}
/* a YouTube still replaced by the local copy of the video (when one is supplied) */
video.rp-inline-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

/* the YouTube player, in the box the live page gives it */
iframe.rp-yt-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

/* ---------- Top navigation: frameless glass (sandbox design change, 2026-12-01) ----------
   Full width behind "felix choi." and "work. about. cv.". No border, shadow or corner.
   Over the plain page colour (#151515) it should be all but invisible: blurring and saturating
   a flat grey leaves it unchanged. The reflection is a brightness lift, which scales with how
   bright the thing underneath already is, so the dark page moves by about 2 levels while images
   and video passing underneath get a clear sheen (stronger than the ask. bar's).
   Below the bar the glass fades out, so there is never a line where it ends. */
#navbar-top::before,
#navbar-top::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
/* the glass: blur and colour, fading out toward the lower edge */
/* The glass covers the whole bar (the text sits in the middle of it) and fades out in a short
   band just below the bar (13px), so the edge is soft but the glass does not end at the text. */
#navbar-top { overflow: visible; }
/* The bar is about 70% of its live height (79px to about 55px): the padding above and below the text
   goes from 1.444rem (26px) to 0.786rem (14px), so the text moves up by what came off the top
   and stays centred in the glass. Every page's own navbar rule uses 1.444rem; this one wins by order and weight. */
header #navbar-top.fc-navbar { padding-top: 0.786rem; padding-bottom: 0.786rem; }
#navbar-top::before {
  bottom: -13px;
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
          backdrop-filter: blur(20px) saturate(1.8);
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 13px), transparent 100%);
          mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 13px), transparent 100%);
}
/* the reflection: brightest along the top edge, gone a little past the middle */
#navbar-top::after {
  -webkit-backdrop-filter: brightness(1.2);
          backdrop-filter: brightness(1.2);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.6) 0, rgba(0,0,0,.25) 30%, transparent 62%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,.6) 0, rgba(0,0,0,.25) 30%, transparent 62%);
}
@media (prefers-reduced-transparency: reduce) {
  #navbar-top::before { -webkit-backdrop-filter: none; backdrop-filter: none; background: #151515; }
  #navbar-top::after { display: none; }
}
