/* Management philosophy only. Content stays visible without JavaScript. */
#panel-philosophy {
    --philosophy-top:80px;
    --philosophy-serif:"Noto Serif KR", "Batang", "Yu Mincho", serif;
    background:var(--paper, #faf8f5);
    font-family:"Noto Serif KR", serif;
}
#panel-philosophy .philosophy-intro {
    min-height:66svh;
    padding:100px 24px 112px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    color:#302b25;
}
#panel-philosophy .philosophy-heart {
    font-family:var(--philosophy-serif);
    font-size:clamp(80px,7vw,100px);
    font-weight:500;
    line-height:1.2;
    margin-bottom:32px;
    color:#785638;
}
#panel-philosophy .philosophy-intro h2 {
    margin:0;
    font-weight:500;
    word-break:keep-all;
}
#panel-philosophy .philosophy-intro h2>span {
    display:block;
    font-size:clamp(19px,2vw,25px);
    line-height:1.7;
}
#panel-philosophy .philosophy-intro strong {
    display:block;
    margin-top:14px;
    font-size:clamp(40px,4.5vw,60px);
    font-weight:600;
    line-height:1.4;
    letter-spacing:-.04em;
}

/* Full photo and readable copy are the default, including without JavaScript. */
#panel-philosophy .philosophy-scene {
    --panel-share:.60;
    --panel-alpha:.80;
    --panel-fade:48px;
    --copy-gutter:300px;
    position:relative;
    margin:0;
    color:#fff;
    background:#211b17;
}
#panel-philosophy .philosophy-scene--hapsim {--panel-alpha:.80;}
#panel-philosophy .philosophy-scene--hapsim .philosophy-shade {
    background:linear-gradient(to right,
        rgba(0,0,0,.80) 0,
        rgba(0,0,0,.80) calc(100% - var(--panel-fade)),
        transparent 100%);
}
#panel-philosophy .philosophy-stage {position:relative; isolation:isolate;}
#panel-philosophy .philosophy-photo {display:block;}
#panel-philosophy .philosophy-photo img {display:block; width:100%; height:auto;}
#panel-philosophy .philosophy-copy {
    position:relative;
    z-index:1;
    isolation:isolate;
    width:min(720px, calc(100% - 48px));
    margin-inline:auto;
    padding-block:36px 48px;
    display:flex;
    flex-direction:column;
    gap:24px;
    text-align:left;
}
#panel-philosophy .philosophy-shade {display:none; pointer-events:none;}
#panel-philosophy .philosophy-value {display:flex; flex-direction:column; gap:8px;}
#panel-philosophy .philosophy-value>span:first-child {
    font-family:var(--philosophy-serif);
    font-size:54px;
    font-weight:500;
    line-height:1.15;
    letter-spacing:.02em;
}
#panel-philosophy .philosophy-value>span:last-child {font-size:16px; font-weight:500; letter-spacing:.15em;}
#panel-philosophy .philosophy-message {min-width:0;}
#panel-philosophy .philosophy-message h3 {
    margin:0 0 20px;
    font-size:26px;
    font-weight:600;
    line-height:1.5;
    letter-spacing:-.03em;
    word-break:keep-all;
}
#panel-philosophy .philosophy-description {
    font-size:16px;
    line-height:1.8;
    font-weight:400;
    word-break:keep-all;
    overflow-wrap:break-word;
}
#panel-philosophy .philosophy-description p {margin:0;}
@media(min-width:768px) and (min-height:600px) {
    #panel-philosophy .philosophy-value>span:first-child {font-size:clamp(64px, 4.5vw, 80px);}
    #panel-philosophy .philosophy-value>span:last-child {font-size:17px;}
    #panel-philosophy .philosophy-message h3 {font-size:30px; white-space:normal;}
    #panel-philosophy .philosophy-description {font-size:17px;}
    /* Desktop composition is always photo first with copy over its left side. */
    #panel-philosophy .philosophy-stage {height:calc(100svh - var(--philosophy-top)); min-height:600px;}
    #panel-philosophy .philosophy-photo {position:absolute; inset:0; overflow:hidden;}
    #panel-philosophy .philosophy-photo img {
        position:absolute;
        inset:0;
        width:100%;
        max-width:100%;
        height:100%;
        object-fit:cover;
    }
    #panel-philosophy .philosophy-scene--yangsim .philosophy-photo img {object-position:50% 46%;}
    #panel-philosophy .philosophy-scene--jinsim .philosophy-photo img {object-position:50% 54%;}
    #panel-philosophy .philosophy-scene--hapsim .philosophy-photo img {object-position:75% 50%;}
    #panel-philosophy .philosophy-copy {
        position:absolute;
        left:0;
        top:55%;
        transform:translateY(-50%);
        left:0!important;
        right:auto!important;
        width:min(60vw, 950px)!important;
        margin:0;
        padding:calc(36px + 5svh) calc(var(--panel-fade) + 16px) calc(40px + 5svh) var(--copy-gutter);
        gap:24px;
        align-items:stretch;
        text-align:left!important;
    }
    #panel-philosophy .philosophy-value,
    #panel-philosophy .philosophy-message {width:100%; text-align:left;}
    #panel-philosophy .philosophy-message {max-width:560px;}
    #panel-philosophy .philosophy-shade {
        display:block;
        position:absolute;
        inset:0;
        z-index:-1;
        background:linear-gradient(to right,
            rgba(0,0,0,var(--panel-alpha)) 0,
            rgba(0,0,0,var(--panel-alpha)) calc(100% - var(--panel-fade)),
            transparent 100%);
        opacity:1;
    }
    #panel-philosophy.is-scroll-ready .philosophy-scene {height:calc(100svh - var(--philosophy-top) + 100svh);}
    #panel-philosophy.is-scroll-ready .philosophy-stage {position:sticky; top:var(--philosophy-top);}
    #panel-philosophy.is-scroll-ready .philosophy-shade {opacity:var(--panel-reveal, 0);}
    #panel-philosophy.is-scroll-ready .philosophy-scene [data-scene-heading],
    #panel-philosophy.is-scroll-ready .philosophy-scene [data-scene-description] {
        opacity:var(--reveal, 1);
        transform:translateY(calc((1 - var(--reveal, 1)) * 20px));
    }
}
/* A desktop scene also falls back when text and the subject cannot coexist. */
#panel-philosophy.is-mobile-ready .philosophy-scene:not(.has-panel) [data-scene-heading],
#panel-philosophy.is-mobile-ready .philosophy-scene:not(.has-panel) [data-scene-description] {transition:opacity .55s ease, transform .55s ease;}
#panel-philosophy.is-mobile-ready .philosophy-scene:not(.has-panel):not(.is-revealed) [data-scene-heading],
#panel-philosophy.is-mobile-ready .philosophy-scene:not(.has-panel):not(.is-revealed) [data-scene-description] {opacity:0; transform:translateY(20px);}
#panel-philosophy.is-mobile-ready .philosophy-scene.is-revealed [data-scene-description] {transition-delay:.14s;}
/* Preserve the introduction's existing responsive treatment. */
@media(max-width:767px), (max-height:599px) {
    #panel-philosophy .philosophy-intro {min-height:0; padding:72px 24px 80px;}
    #panel-philosophy .philosophy-heart {font-size:72px; margin-bottom:28px;}
}
@media(prefers-reduced-motion:reduce) {
    #panel-philosophy .philosophy-scene {height:auto!important;}
    #panel-philosophy .philosophy-stage {position:relative!important; top:auto!important;}
    #panel-philosophy [data-scene-heading], #panel-philosophy [data-scene-description] {opacity:1!important; transform:none!important; transition:none!important;}
}
