/* Stejong Studio RC60 | homepage-only refinement of RC59.
   No video recompression: original 1280x720 / 50fps hero MP4 is retained.
   530 refers to DESKTOP DISPLAY HEIGHT in CSS pixels, not video resolution. */

/* RC73: retain the approved 530px display height, but shift the VIDEO CROP
   downward by roughly 12 percentage points to reveal more of the speaker
   bottoms, headphones, desk and synthesizer. No media is re-encoded. */
.home-v25.hero {
  height:530px!important;
  min-height:530px!important;
  max-height:530px!important;
}
.home-v25.hero .hero-media--video>.hero-bg-video {
  object-position:50% 24%!important;
}
/* Wide monitors expose a smaller vertical slice when using object-fit:cover.
   Shift slightly farther on those screens so the lower edge of the left
   speaker remains in frame. */
@media (min-width:1500px){
  .home-v25.hero .hero-media--video>.hero-bg-video {object-position:50% 28%!important;}
}
@media (min-width:2000px){
  .home-v25.hero .hero-media--video>.hero-bg-video {object-position:50% 31%!important;}
}
@media (min-width:701px) and (max-width:900px){
  .home-v25.hero {height:450px!important;min-height:450px!important;max-height:450px!important;}
  .home-v25.hero .hero-media--video>.hero-bg-video {object-position:50% 24%!important;}
}
@media(max-width:700px){
  /* Fit the full landscape composition on narrow displays: both speakers
     remain visible; a soft poster fills the small surrounding letterbox. */
  .home-v25.hero {height:clamp(230px,70vw,310px)!important;min-height:0!important;max-height:none!important;}
  .home-v25.hero .hero-media--video {
    background:#07151c url('/assets/stejong-hero-rc52-firstframe.webp') center / cover no-repeat;
  }
  .home-v25.hero .hero-media--video>.hero-bg-video {
    object-fit:contain!important;object-position:50% 50%!important;
  }
  .home-v25.hero .hero-media--video::after{
    background:linear-gradient(180deg,rgba(7,21,28,.46),rgba(7,21,28,.06) 55%,rgba(7,21,28,.60));
  }
}

/* Contact links are genuinely secondary, but now readable and comfortable to tap. */
.stj-final-rc60 .stj-final-secondary {width:min(520px,100%);gap:16px;margin-top:26px;padding-top:22px;}
.stj-final-rc60 .stj-final-secondary-label {font-size:13px;color:#b9d0cb;letter-spacing:.025em;}
.stj-final-rc60 .stj-final-secondary-links {gap:14px;}
.stj-final-rc60 .stj-final-secondary-link {
  min-height:46px;
  padding:12px 20px;
  font-size:15px;
  font-weight:600;
  color:#f0f9f7;
  background:rgba(10,32,37,.72);
  border-color:rgba(126,221,215,.43);
  letter-spacing:.005em;
}
@media(max-width:700px){
 .stj-final-rc60 .stj-final-secondary{margin-top:22px;padding-top:19px;gap:14px;}
 .stj-final-rc60 .stj-final-secondary-label{font-size:12px;}
 .stj-final-rc60 .stj-final-secondary-links{gap:10px;}
 .stj-final-rc60 .stj-final-secondary-link{font-size:13.5px;min-height:44px;padding:10px 14px;}
}
@media(max-width:380px){
 .stj-final-rc60 .stj-final-secondary-link{font-size:12.5px;min-height:44px;padding:10px 12px;}
}


/* RC63: keep the Explore cue elegant, but give it more natural separation
   from the hero video using light-shaping rather than a visible panel. */
.home-v25.hero .hero-media--video{
  isolation:isolate;
}
.home-v25.hero .hero-media--video::before{
  content:"";
  position:absolute;
  left:50%;
  bottom:-10px;
  transform:translateX(-50%);
  width:min(470px,86vw);
  height:170px;
  border-radius:50%;
  background:radial-gradient(ellipse at center,
    rgba(4,12,16,.00) 0%,
    rgba(4,12,16,.10) 26%,
    rgba(4,12,16,.36) 58%,
    rgba(4,12,16,.58) 100%);
  z-index:1;
  pointer-events:none;
}
.home-v25.hero .hero-media--video::after{
  background:
    linear-gradient(180deg,rgba(7,21,28,.28) 0%,rgba(7,21,28,.04) 34%,rgba(7,21,28,.08) 62%,rgba(7,21,28,.52) 84%,rgba(7,21,28,.74) 100%),
    radial-gradient(ellipse 34% 18% at 50% 91%,rgba(7,21,28,.72),rgba(7,21,28,.00) 74%),
    radial-gradient(ellipse 78% 72% at 50% 48%,rgba(7,21,28,.08),rgba(7,21,28,.34));
}
.home-v25.hero .stj-rc61-explore {
  position:absolute;
  left:50%;bottom:15px;
  transform:translateX(-50%);
  z-index:20;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:7px;
  min-width:190px;min-height:64px;padding:4px 14px;
  text-decoration:none;
  color:#a4f1ea;
  text-shadow:0 1px 1px rgba(0,0,0,.72),0 2px 10px rgba(0,0,0,.96),0 0 18px rgba(0,0,0,.42);
  -webkit-tap-highlight-color:transparent;
  transition:color .22s ease, opacity .22s ease;
}
.stj-rc61-explore-label {
  display:block;
  font-family:var(--font-body,Arial,sans-serif);
  font-size:10px;font-weight:700;
  text-transform:uppercase;letter-spacing:.20em;line-height:1.4;
  white-space:nowrap;
}
.stj-rc61-explore svg {
  width:33px;height:27px;
  display:block;overflow:visible;
  filter:drop-shadow(0 2px 8px rgba(0,0,0,.65));
  animation:stj-rc61-point 3.1s ease-in-out infinite;
}
.stj-rc61-explore:hover {color:#d1fffa;}
.stj-rc61-explore:focus-visible {outline:2px solid #a9fcf2;outline-offset:3px;border-radius:9px;}
@keyframes stj-rc61-point {
  0%,100% {transform:translateY(0);opacity:.73;}
  48% {transform:translateY(6px);opacity:1;}
}
/* Exact section-edge landing: hero disappears completely on click. Move the
   section's own content below the fixed nav instead of exposing hero pixels. */
#selected-works {
  scroll-margin-top:0!important;
  padding-top:100px!important;
  padding-bottom:4px!important;
}
@media(max-width:700px){
  .home-v25.hero .hero-media--video::before{
    width:min(330px,92vw);
    height:118px;
    bottom:-8px;
  }
  .home-v25.hero .stj-rc61-explore{bottom:8px;min-height:59px;gap:4px;min-width:170px;}
  .stj-rc61-explore-label{font-size:9px;letter-spacing:.17em;}
  .stj-rc61-explore svg{width:29px;height:25px;}
  #selected-works{scroll-margin-top:0!important;padding-top:84px!important;padding-bottom:12px!important;}
}

/* Portrait is the persistent focal element. Text and CTA links appear as
   one unified reveal only after the section has been in view for 5 seconds.
   Invisible items keep their space: no layout shift and no moving portrait. */
html.stj-rc61-enhanced .stj-final-rc61 .stj-rc61-delayed {
  transition:opacity 1.1s ease,visibility 0s linear 0s;
}
html.stj-rc61-enhanced .stj-final-rc61:not(.stj-rc61-shown) .stj-rc61-delayed {
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}
/* An almost imperceptible living element in the ambient scene. */
.stj-final-rc61 .stj-final-portrait {
  animation:stj-rc61-portrait-float 8s ease-in-out infinite;
}
@keyframes stj-rc61-portrait-float {
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-3px)}
}
@media(prefers-reduced-motion:reduce){
  html.stj-rc61-enhanced .stj-final-rc61 .stj-rc61-delayed{
    opacity:1!important;visibility:visible!important;pointer-events:auto!important;
    transition:none!important;
  }
  .stj-final-rc61 .stj-final-portrait,
  .stj-rc61-explore svg {animation:none!important;}
}
