/* The moving edge is the actual reveal boundary of the existing brand mark.
   Colors and typography come from Studio; the symbol is the original OSMO mark. */
.studio-opening #studio-intro{
 display:grid;grid-template-rows:auto 1fr auto;position:fixed;inset:0;z-index:6;
 pointer-events:none;overflow:hidden;background:#20281f;color:#f1f3e8;
 padding:max(clamp(18px,4.1vw,54px),env(safe-area-inset-top)) max(clamp(18px,4.1vw,62px),env(safe-area-inset-right)) max(clamp(18px,4.1vw,54px),env(safe-area-inset-bottom)) max(clamp(18px,4.1vw,62px),env(safe-area-inset-left));
 contain:layout paint;
}
.studio-intro-top{display:flex;align-items:center;justify-content:space-between;align-self:start;padding-bottom:13px;border-bottom:1px solid #ced8c236;font:500 clamp(13px,1.3vw,17px)/1.3 Instrument,Arial,sans-serif}
.studio-intro-location,.studio-intro-foot{font:9px/1.5 Plex,monospace;letter-spacing:.09em;color:#c1ccb7}
.studio-intro-body{position:relative;justify-self:center;align-self:center;display:grid;justify-items:center;row-gap:clamp(7px,2dvh,18px);width:min(100%,470px)}
/* One aperture. The rule and the logo clipping boundary share duration, easing
   and positions; they never trail or cross another decorative shape. */
.studio-intro-aperture{position:relative;width:clamp(92px,17dvh,144px);aspect-ratio:1;--mark-duration:1060ms;--mark-ease:cubic-bezier(.37,.02,.24,1)}
.studio-intro-mask{position:absolute;inset:0;animation:studio-mark-aperture var(--mark-duration) var(--mark-ease) both}
.studio-intro-mark{display:block;width:100%;height:100%;object-fit:contain;filter:invert(1)}
.studio-intro-edge{position:absolute;left:13%;right:13%;top:85%;height:1px;transform:translateY(-.5px);background:linear-gradient(90deg,transparent,#b9c9a3 21%,#e0e8ce 50%,#b9c9a3 79%,transparent);animation:studio-aperture-edge var(--mark-duration) var(--mark-ease) both,studio-edge-release 200ms ease 935ms both}
.studio-intro-name{margin:0;display:flex;align-items:baseline;gap:.22em;min-height:1.2em;white-space:nowrap;font:400 clamp(30px,7.15vw,70px)/1.06 Instrument,Arial,sans-serif;letter-spacing:-.06em}
.studio-intro-words{display:inline-grid;overflow:hidden;color:#d3dfc3;padding-bottom:.1em}
.studio-intro-words>span{grid-area:1/1}
.studio-intro-words .first{animation:studio-word-out 580ms cubic-bezier(.22,.68,.18,1) 680ms both}
.studio-intro-words .final{animation:studio-word-in 650ms cubic-bezier(.22,.68,.18,1) 700ms both}
.studio-intro-foot{align-self:end;margin:0}
.studio-opening-out #studio-intro{animation:studio-curtain-out 460ms cubic-bezier(.22,.68,.18,1) both}
/* Bounds (21–85%) follow the original PNG's opaque silhouette, not its padding. */
@keyframes studio-mark-aperture{from{clip-path:inset(85% 0 0)}to{clip-path:inset(20% 0 0)}}
@keyframes studio-aperture-edge{from{top:85%}to{top:20%}}
@keyframes studio-edge-release{from{opacity:.8}to{opacity:0}}
@keyframes studio-word-out{0%{opacity:1;transform:none}100%{opacity:0;transform:translateY(-.86em)}}
@keyframes studio-word-in{0%{opacity:0;transform:translateY(.86em)}100%{opacity:1;transform:none}}
@keyframes studio-curtain-out{from{clip-path:inset(0 0 0);opacity:1}to{clip-path:inset(0 0 100%);opacity:.84}}
@media(max-height:370px){.studio-intro-aperture{width:78px}.studio-intro-name{font-size:clamp(28px,6.5vw,43px)}}
@media(prefers-reduced-motion:reduce){#studio-intro{display:none!important}}

/* Both copies are present from the first HTML parse. The synchronous head locale
   chooses one before paint; no deferred text replacement or ID flash for EN. */
#studio-intro [data-intro-lang]{display:none}
:root:not([lang="en"]) #studio-intro [data-intro-lang="id"],
:root[lang="en"] #studio-intro [data-intro-lang="en"]{display:inline}
:root:not([lang="en"]) #studio-intro .studio-intro-words[data-intro-lang="id"],
:root[lang="en"] #studio-intro .studio-intro-words[data-intro-lang="en"]{display:inline-grid}
