/* motion-v2 (rev 2). Lapisan motion sementara, hanya di _motion_v2. Hapus link css, script inline, dan script js di index.html untuk kembali ke tampilan lama. */
:root{--v2-ease:cubic-bezier(0.16,1,0.3,1);--v2-red:#E23A42;--v2-fast:200ms;--v2-base:350ms}

@keyframes v2-rise{from{opacity:0;translate:0 36px}to{opacity:1;translate:0 0}}
@keyframes v2-fade{from{opacity:0}to{opacity:1}}
@keyframes v2-wipe{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
@keyframes v2-portrait{from{opacity:0;scale:1.06}to{opacity:1;scale:1}}

/* HERO: tunggu font dan foto siap, baru main (class v2-go dipasang oleh js) */
html.v2-wait .rc-eyebrow,html.v2-wait .rc-g,html.v2-wait .rc-name,html.v2-wait .rc-actions{opacity:0}
html.v2-js:not(.v2-img) .rc-portrait img{opacity:0}
html.v2-img .rc-portrait img{animation:v2-portrait 1600ms var(--v2-ease) both}
html.v2-go .rc-eyebrow{animation:v2-rise 900ms var(--v2-ease) both;animation-delay:250ms}
html.v2-go .rc-g1{animation:v2-rise 1100ms var(--v2-ease) both;animation-delay:400ms}
html.v2-go .rc-g2{animation:v2-rise 1100ms var(--v2-ease) both;animation-delay:750ms}
html.v2-go .rc-rule{animation:v2-wipe 1000ms var(--v2-ease) both;animation-delay:1150ms}
html.v2-go .rc-em{animation:v2-fade 900ms ease-out both;animation-delay:1350ms}
html.v2-go .rc-name{animation:v2-rise 900ms var(--v2-ease) both;animation-delay:1350ms}
html.v2-go .rc-signature img{animation:v2-wipe 1100ms cubic-bezier(0.4,0,0.2,1) both;animation-delay:1750ms}
html.v2-go .rc-actions{animation:v2-rise 900ms var(--v2-ease) both;animation-delay:1900ms}

/* BAWAH HERO: muncul sekali saat masuk layar (class dipasang oleh js) */
html.v2-js .v2-r{opacity:0;translate:0 44px}
html.v2-js .v2-r.v2-in{opacity:1;translate:0 0;transition:opacity 1000ms var(--v2-ease),translate 1000ms var(--v2-ease);transition-delay:calc(var(--d,0) * 1ms)}

/* HEADER: nempel di atas, dapat latar gelap setelah scroll */
.rc-header{position:fixed;transition:background-color var(--v2-base) ease,box-shadow var(--v2-base) ease}
html.v2-scrolled .rc-header{background-color:rgba(7,7,7,0.84);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 1px 0 rgba(238,237,232,0.1)}

/* HOVER: jelas, dua arah (masuk dan keluar), merah lebih terang */
.rc-nav > a{padding-bottom:5px;background-image:linear-gradient(var(--v2-red),var(--v2-red));background-repeat:no-repeat;background-position:0 100%;background-size:0 2px;transition:background-size var(--v2-base) var(--v2-ease),color var(--v2-fast) ease}
.rc-nav > a:hover,.rc-nav > a:focus-visible{background-size:100% 2px;color:#fff}
.rc-btn{transition:background-color var(--v2-fast) ease,color var(--v2-fast) ease,border-color var(--v2-fast) ease}

.wp::before{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--v2-red);clip-path:inset(0 100% 0 0);transition:clip-path 600ms var(--v2-ease);z-index:3;pointer-events:none}
.wp:hover::before,.wp:focus-within::before{clip-path:inset(0 0 0 0)}
.wp:not(.has-img){transition:background-color var(--v2-base) ease}
.wp:not(.has-img):hover{background-color:rgba(238,237,232,0.05)}
.wp-top{transition:color var(--v2-base) ease}
.wp:hover .wp-top{color:var(--v2-red)}
.wp-link{transition:border-color var(--v2-base) ease,letter-spacing var(--v2-base) var(--v2-ease)}
.wp:hover .wp-link{border-bottom-color:var(--v2-red);letter-spacing:0.06em}

.rc-do-item{position:relative;transition:background-color var(--v2-base) ease}
.rc-do-item::before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background:var(--v2-red);clip-path:inset(0 100% 0 0);transition:clip-path 600ms var(--v2-ease);pointer-events:none}
.rc-do-item:hover::before{clip-path:inset(0 0 0 0)}
.rc-do-item h3{transition:color var(--v2-base) ease}
.rc-do-item:hover h3{color:var(--v2-red)}

/* LEBAR: paragraf intro disamakan dengan lebar kolom (hanya di v2, asli tetap 30em) */
.rc-intro-text{max-width:none}

/* v2 rev3: Social, About gate, Work title, Contact lines */
.rc-social-btn{padding-bottom:5px;background-image:linear-gradient(var(--v2-red),var(--v2-red));background-repeat:no-repeat;background-position:0 100%;background-size:0 2px;transition:background-size var(--v2-fast) var(--v2-ease),color var(--v2-fast),opacity var(--v2-fast)}
.rc-social-btn:hover,.rc-social-btn:focus-visible,.rc-social-btn[aria-expanded="true"]{background-size:100% 2px;color:#fff;opacity:1}
.rc-social-menu a{background-image:linear-gradient(var(--v2-red),var(--v2-red));background-repeat:no-repeat;background-position:0 100%;background-size:0 2px;transition:background-size var(--v2-fast) var(--v2-ease),color var(--v2-fast),background-color var(--v2-fast)}
.rc-social-menu a:hover,.rc-social-menu a:focus-visible{background-size:100% 2px;color:#fff}
.ab-copy{transition:opacity 900ms var(--v2-ease)}
html.v2-about-wait .ab-copy{opacity:0}
@media (min-width:900px){.wk-title--long{max-width:26ch}.wk-lead{max-width:none;white-space:nowrap}}
.ct-lead{max-width:none}
.ct-l{display:block}

/* v2 rev4: mobile header, footer, logos, About panel, Contact columns */
.v2-burger{display:none;width:44px;height:44px;margin-right:-10px;padding:0;background:none;border:0;color:inherit;cursor:pointer;flex-direction:column;justify-content:center;align-items:center;gap:6px}
.v2-burger span{display:block;width:24px;height:2px;background:currentColor;transition:translate var(--v2-fast) var(--v2-ease),rotate var(--v2-fast) var(--v2-ease)}
html.v2-menu .v2-burger span:first-child{translate:0 4px;rotate:45deg}
html.v2-menu .v2-burger span:last-child{translate:0 -4px;rotate:-45deg}
.ct-cols{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:760px){
.rc-header{align-items:center}
.rc-brand{font-size:1.05rem;letter-spacing:.3em;white-space:nowrap;flex:1}
.v2-burger{display:flex}
.rc-nav{display:none;position:absolute;top:100%;left:0;right:0;flex-direction:column;align-items:flex-start;gap:0;padding:.3rem 20px 1.2rem;background:rgba(7,7,7,.97);border-bottom:1px solid rgba(238,237,232,.14);font-size:1rem;color:#eeede8}
html.v2-menu .rc-nav{display:flex}
.rc-nav > a,.rc-social-btn{display:block;width:100%;padding:.95rem 0;text-align:left;background-position:0 calc(100% - .55rem)}
.rc-social{width:100%}
.rc-social-menu{position:static;margin:.2rem 0 0;min-width:0;width:100%}
.rc-footer{border-top:0}
.wk-name{flex-direction:column;align-items:center;text-align:center;gap:1rem}
.wk-logo-card{width:auto;height:auto;min-width:0;padding:.8rem 1rem}
.wk-logo{width:auto;height:3.6rem;max-width:8.5rem;max-height:none;object-fit:contain}
.cs-aside .wk-logo-card{width:auto;height:auto}
.panel{display:grid}
.panel .era{display:grid;grid-area:1/1;opacity:0;visibility:hidden}
.panel .era.is-active{opacity:1;visibility:visible}
}
@media (max-width:760px){.rc-nav{background:#070707}}
/* v2 rev5 */
html.v2-scrolled .rc-header{box-shadow:none}
@media (max-width:760px){
.rc-nav{border-bottom:0}
.panel{margin-top:8px}
.panel .era{align-content:start;row-gap:10px}
.era-title{font-size:clamp(1.9rem,8.6vw,2.3rem)}
.era-narrative p{font-size:.9rem;line-height:1.5;margin-bottom:.55rem}
.era-reflection{margin-top:.2rem;padding-left:.9rem;font-size:1.2rem;line-height:1.15}
}
@media (max-width:760px){
.stage .arc{height:104px}
.stage .controls{margin-top:0}
.era-narrative p{font-size:.88rem;margin-bottom:.45rem}
}
