/* ============================================================
   YJ SITE — Header global (always visible)
   Glide-in animation on load, sticky, full navigation
============================================================ */

.yj-header{
    position:sticky;
    top:0;
    left:0;
    right:0;
    z-index:90;
    padding:18px 5% 0;
    pointer-events:none;
    /* Hidden by default until JS adds .is-loaded */
    opacity:0;
    transform:translateY(-100%);
    transition:opacity .7s var(--yj-ease), transform .8s var(--yj-ease-out);
}
.yj-header.is-loaded{
    opacity:1;
    transform:translateY(0);
}

.yj-header__inner{
    max-width:1400px;
    margin:0 auto;
    display:flex;
    align-items:center;
    gap:24px;
    padding:12px 22px;
    background:rgba(255,255,255,.86);
    backdrop-filter:blur(18px) saturate(1.5);
    -webkit-backdrop-filter:blur(18px) saturate(1.5);
    border:1px solid rgba(255,255,255,.5);
    border-radius:14px;
    box-shadow:
        0 20px 40px -20px rgba(27,94,61,.22),
        inset 0 1px 0 rgba(255,255,255,.6);
    pointer-events:auto;
}

/* ============ BRAND ============ */
.yj-header__brand{
    display:flex;
    align-items:baseline;
    gap:12px;
    cursor:pointer;
    background:none;
    border:none;
    padding:0;
    font-family:inherit;
    color:inherit;
    text-align:left;
    transition:transform .4s var(--yj-ease);
    flex-shrink:0;
}
.yj-header__brand:hover{ transform:translateX(2px); }

.yj-header__name{
    font-family:var(--yj-display);
    font-size:20px;
    font-weight:900;
    line-height:1;
    letter-spacing:-.02em;
    color:var(--yj-ink);
    position:relative;
}
.yj-header__name::after{
    content:"";
    position:absolute;
    left:0;right:0;
    bottom:-3px;
    height:2px;
    background:var(--yj-terracotta);
    border-radius:2px;
    transform:scaleX(.4);
    transform-origin:left center;
    transition:transform .5s var(--yj-ease-out);
}
.yj-header__brand:hover .yj-header__name::after{ transform:scaleX(1); }

.yj-header__sep{
    width:1px;
    height:14px;
    background:rgba(0,0,0,.15);
    align-self:center;
}

.yj-header__role{
    font-family:var(--yj-body);
    font-size:13px;
    font-weight:400;
    color:var(--yj-muted);
    letter-spacing:.005em;
}

/* ============ NAV (Desktop) ============ */
.yj-header__nav{
    flex:1;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:4px;
    flex-wrap:nowrap;
}

.yj-header__link{
    position:relative;
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:9px 14px;
    font-family:var(--yj-body);
    font-size:13px;
    font-weight:500;
    letter-spacing:.005em;
    color:var(--yj-ink);
    text-decoration:none;
    border-radius:6px;
    background:none;
    border:none;
    cursor:pointer;
    white-space:nowrap;
    transition:color .35s var(--yj-ease), transform .35s var(--yj-ease);
    overflow:hidden;
    z-index:1;
}
.yj-header__link::before{
    content:"";
    position:absolute;
    inset:0;
    background:var(--yj-green-deep);
    border-radius:6px;
    transform:scale(.6);
    opacity:0;
    transition:transform .4s var(--yj-ease-out), opacity .35s var(--yj-ease);
    z-index:-1;
}
.yj-header__link:hover,
.yj-header__link.is-active{
    color:#fff;
    transform:translateY(-1px);
}
.yj-header__link:hover::before,
.yj-header__link.is-active::before{
    transform:scale(1);
    opacity:1;
}
.yj-header__link.is-active{ transform:translateY(0); }
.yj-header__link--external svg{
    width:11px;height:11px;
    opacity:.6;
    transition:opacity .3s var(--yj-ease), transform .3s var(--yj-ease);
}
.yj-header__link--external:hover svg{
    opacity:1;
    transform:translate(2px,-2px);
}

/* ============ BURGER ============ */
.yj-header__burger{
    display:none;
    width:38px;height:38px;
    border-radius:6px;
    border:none;
    background:transparent;
    cursor:pointer;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:5px;
    flex-shrink:0;
    transition:background .3s var(--yj-ease);
}
.yj-header__burger:hover{
    background:rgba(27,94,61,.08);
}
.yj-header__burger span{
    display:block;
    width:20px;height:2px;
    background:var(--yj-ink);
    border-radius:2px;
    transition:transform .35s var(--yj-ease), opacity .25s var(--yj-ease);
}
.yj-header__burger.is-open span:nth-child(1){
    transform:translateY(7px) rotate(45deg);
}
.yj-header__burger.is-open span:nth-child(2){ opacity:0; }
.yj-header__burger.is-open span:nth-child(3){
    transform:translateY(-7px) rotate(-45deg);
}

/* ============ DRAWER (Mobile) ============ */
.yj-drawer{
    position:fixed;
    inset:0;
    z-index:100;
    pointer-events:none;
    visibility:hidden;
    opacity:0;
    transition:opacity .35s var(--yj-ease), visibility .35s var(--yj-ease);
}
.yj-drawer.is-open{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
}
.yj-drawer__backdrop{
    position:absolute;inset:0;
    background:rgba(14,59,42,.45);
    backdrop-filter:blur(4px);
    -webkit-backdrop-filter:blur(4px);
}
.yj-drawer__panel{
    position:absolute;
    top:0;right:0;bottom:0;
    width:min(360px, 88vw);
    background:#fff;
    box-shadow:-20px 0 40px -10px rgba(0,0,0,.25);
    padding:30px 26px;
    display:flex;
    flex-direction:column;
    gap:20px;
    transform:translateX(100%);
    transition:transform .45s var(--yj-ease-out);
    overflow-y:auto;
}
.yj-drawer.is-open .yj-drawer__panel{
    transform:translateX(0);
}
.yj-drawer__close{
    position:absolute;
    top:18px;right:18px;
    width:36px;height:36px;
    border-radius:6px;
    border:none;
    background:transparent;
    color:var(--yj-muted);
    font-size:22px;
    cursor:pointer;
    display:flex;align-items:center;justify-content:center;
    transition:all .3s var(--yj-ease);
}
.yj-drawer__close:hover{
    background:rgba(199,93,58,.12);
    color:var(--yj-terracotta);
    transform:rotate(90deg);
}
.yj-drawer__brand{
    margin-top:20px;
    padding-bottom:18px;
    border-bottom:1px solid var(--yj-line);
}
.yj-drawer__name{
    display:block;
    font-family:var(--yj-display);
    font-size:24px;
    font-weight:900;
    letter-spacing:-.02em;
    color:var(--yj-ink);
    line-height:1;
    margin-bottom:6px;
}
.yj-drawer__role{
    font-family:var(--yj-body);
    font-size:13px;
    color:var(--yj-muted);
}
.yj-drawer__list{
    list-style:none;
    margin:0;padding:0;
    display:flex;
    flex-direction:column;
    gap:2px;
}
.yj-drawer__link{
    display:flex;
    align-items:center;
    gap:8px;
    width:100%;
    padding:14px 16px;
    background:transparent;
    border:none;
    border-radius:6px;
    text-align:left;
    font-family:var(--yj-body);
    font-size:15px;
    font-weight:500;
    color:var(--yj-ink);
    text-decoration:none;
    cursor:pointer;
    transition:all .3s var(--yj-ease);
}
.yj-drawer__link:hover{
    background:var(--yj-green-deep);
    color:#fff;
    transform:translateX(4px);
}
.yj-drawer__link svg{ width:13px;height:13px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px){
    .yj-header__link{ padding:8px 11px; font-size:12.5px; }
    .yj-header__inner{ gap:14px; }
}
@media (max-width: 900px){
    .yj-header__nav{ display:none; }
    .yj-header__burger{ display:flex; }
    .yj-header__role{ display:none; }
    .yj-header__sep{ display:none; }
    .yj-header__inner{ padding:10px 16px; gap:12px; }
    .yj-header__name{ font-size:18px; }
}
@media (max-width: 480px){
    .yj-header{ padding:12px 4% 0; }
    .yj-header__inner{ padding:9px 14px; gap:10px; border-radius:10px; }
    .yj-header__name{ font-size:16px; }
}
