/* ========== Variables (later rules as truth) ========== */
:root{
  /* 오른쪽 컬럼/긴 버튼 폭 → 카드 좌우 패딩 자동 산출 */
  --right-col: 900px;
  --btn-long: 860px;
  --pad-inline: clamp(16px, calc((var(--right-col) - var(--btn-long)) / 2), 48px);

  /* 오른쪽 패널 고정 오프셋 */
  --card-top-offset: 140px;

  /* infoCore 내부 간격 */
  --gap-logo-kr: 14px;   /* logoWrap → krName */
  --gap-kr-hr: 18px;     /* krName → divide */
  --gap-hr-major: 12px;  }

/* ========== Reset & Base ========== */
* {margin: 0;    padding: 0;   box-sizing: border-box;}
ol, ul {list-style: none;}
a {text-decoration: none;    color: inherit;    cursor: url('../image/mousepointer.png') 16 16, auto;}
html,body{
  height:100%;
  background: #f6f6f6;
  font-family:"Pretendard",sans-serif;
  cursor:url('../image/mouse.png')16 16,auto;
  /* 왼쪽만 스크롤 구조를 위해 기본 잠금 */
  overflow:hidden;
}

/* ========== Header ========== */
header{
    background: #000;
    width: 100%;
    height: 70px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
}

header main{
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    justify-content: space-between;
}

header main .headerTitle{
    display: flex;
    align-items: center;
}

header main .headerTitle img{height: 25px;}

header main .menu_btn{display: none;}

header main .headerMenu{
    display: flex;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    list-style: none;
}

header main .headerMenu li{
    color: #808080;
    font-weight: 400;
    font-size: 18px;

    margin-left: 70px;
}

header main .headerMenu li:first-child{
    margin-left: 0;
}

header main .gsdd{
    margin-left: auto;
    display: flex;
    align-items: center;
}

header main .gsdd img{
    height: 22px;
}


/* 현재 페이지 강조(후행 선언 유지) */
header main .headerMenu .category3{
  color: #fff;
}

/* -header- */


main .mainheader{
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    top: 110px;
    margin-bottom: 50px;
}

main .mainheader ul{
    display: flex;
    align-items: center;
    color: #000;
    font-size: 20px;
    font-weight: 400;
    gap: 50px;
    list-style: none;
    padding: 0;
    margin: 0;
    position: fixed;
}

main .mainheader ul li{
    position: relative;
    padding: 5px 0;
}

main .mainheader ul li a{
    color: inherit;
    text-decoration: none;
    display: inline-block;
    padding: 2px 4px;
}

main .mainheader ul li::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #000;
    transition: width 0.3s ease;
}

main .mainheader ul li.active::after{
    width: 100%;
}

/* ========== Stage Layout ========== */
.designer-stage{
  display:grid; grid-template-columns:1fr 900px; gap:40px; width:100%;
  height:calc(100vh - 70px);           /* later rule */
  padding:110px 0 24px 50px;           /* 헤더 여유 + 좌 패딩 */
}

/* ========== Left Grid (scrolling column) ========== */
.leftPane{height:100%;overflow:auto;padding-right:8px;padding-bottom:80px}
.leftPane::-webkit-scrollbar{display:none}
.leftPane{scrollbar-width:none}

:root{
  --col: 200;     /* 카드(칼럼) 기본 폭(px). 280~360 권장 */
  --gutter: 10;   /* 가로 간격(px) */
  --v-gap: 0px;  /* 세로 간격(아래 마진) */
}

.grid{ 
  display: block !important; 
  margin: 0 auto;           /* 중앙 정렬 원치 않으면 지워도 됨 */
}

/* 칼럼 폭을 ‘픽셀 고정’ → 컨테이너 폭에 따라 열 수가 자동으로 증가/감소 */
.grid-sizer,
.grid article{
  width: calc(var(--col) * 1px);
}

.grid article{
  min-height:120px;
  display:flex; flex-direction:column; align-items:center; justify-content:flex-start;
  margin-bottom: var(--v-gap);   /* ← 세로 간격 */
  box-sizing: border-box;
}
.grid article img{
  width:100%;max-width:160px;height:auto;object-fit:contain;display:block;image-rendering:auto;
  cursor:url('../image/mousepointer.png')16 16,auto; 
}
.grid .cap{margin:100px 0 100px 0;font-weight:700;font-size:16px;text-align:center}


/* ========== Right Info Pane (fixed-like) ========== */
.infoPane{position:relative;overflow:clip}
.infoPane .card{
  position:sticky; top:var(--card-top-offset);
  max-height:calc(100vh - var(--card-top-offset));
  height:auto; overflow:visible;      /* 오른쪽 자체 스크롤 없음 */
  background:#f6f6f6; border:0; margin:0;

  /* later: 좌우 대칭 패딩 + 상단 90px로 보정 병합 */
  padding:90px var(--pad-inline) 24px var(--pad-inline);

  display:flex; flex-direction:column; gap:16px;
}
/* 컨텐츠는 위로, 배경은 아래로 */
.infoPane .card > * { position: relative; z-index: 1; }

.infoPane .cardBg{
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 50% auto;   /* 기존 50% auto 그대로 */
  pointer-events: none;
  z-index: 0;
  transform: translate(0, -140px); /* 기존 시각 오프셋 유지 */
}

/* ========== Right Info Contents ========== */
.logoWrap{height:64px;display:flex;align-items:center}
.nameLogo{height:40px;width:auto}
.krName{font-size:28px;}
.divide{border:none;border-top:2px solid #000;width:auto;}
.majorRow{display:flex;justify-content:space-between;align-items:center;font-size:20px;}
.enMajor,.krMajor{font-weight:700}
.contactRow{display:flex;justify-content:space-between;align-items:center;font-size:20px;margin-top:30px;}

/* infoCore 배치 + 개별 간격(토큰 기반) */
.infoCore{display:grid;grid-auto-rows:max-content; width: auto; padding: 0 100px;}
.infoCore>.logoWrap{margin-block-end:var(--gap-logo-kr)}
.infoCore>.krName{margin-block-end:var(--gap-kr-hr)}
.infoCore>.divide{margin-block:0 var(--gap-hr-major)}
.infoCore .logoWrap{align-items:center}
.infoCore .nameLogo{display:block}

/* 프로젝트 버튼 묶음: 중앙에서 픽셀 고정 */
.projBtns{
  display:flex; gap:0; align-items:center;
  width:max-content; margin-inline:auto;
  border:none; margin-top:130px;
}
.btn{
  width:430px; height:246px; flex:0 0 430px;   /* 픽셀 고정 */
  border:none; background:#111 center/cover no-repeat; position:relative;
  font-weight:700; letter-spacing:.04em; overflow:hidden;
  /* later 기준: 좌측 오프셋 제거 */
  transform:none;
}
.btn.long{width:860px;height:246px;flex:0 0 860px}
.btn::after{
  content:"";
  position:absolute; inset:0;
  background: var(--accent);
  opacity: 0;
  z-index: 0;            /* ← label(1) 아래 */
  transition: opacity .25s ease;
}
.btn:hover::after{ opacity: 1; }
.btn::before{
  content:""; position:absolute; top:0; right:0; width:50px; height:50px;
  background:
    linear-gradient(45deg,#f6f6f6 50%,transparent 50%),
    linear-gradient(225deg,#f6f6f6 50%,transparent 50%);
  z-index:2;
  margin-left:0; /* later */
}
.btn .label{
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);  /* 정확히 중앙 */
  z-index: 1;                        /* 오버레이 위 */
  pointer-events: none;

  color: #000;                       /* 요청: 검은색 */
  background: none;                  /* 배경 제거 */
  text-align: center;
  font-weight: 800;
  font-size: 22px;                   /* 필요시 조절 */
  line-height: 1.2;
  letter-spacing: .02em;

  width: 80%;                        /* 긴 제목도 줄바꿈 허용 */
  white-space: normal;
  word-break: keep-all;

  opacity: 0;
  transition: opacity .25s ease;
}
.btn:hover .label{ opacity: 1; }



/* ========== Footer (revealed at leftPane bottom) ========== */
footer{
    width: 100%;
    height: 70px;
    background: #808080;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 40px;

    position: fixed;
    bottom: 0;
    left: 0;

    margin-top: 800px;

    transform: translateY(100%);
    transition: transform 1s ease;
}

body.show-footer footer{transform:translateY(0)}

footer p{color:#fff; font-size:15px; font-weight:400; line-height:1.5}

footer .logo img{height:40px}

footer .logo .footertitle{margin-right:15px}




/*  햄버거 드롭다운 */

.menu-toggle {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 40px; /* 높이 조금 여유 */
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0;
  z-index: 110;
  overflow: visible; /* 혹시 모를 클리핑 방지 */
  display: none;
}

.menu-toggle .bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px; /* 가독성↑ */
  margin: 0;
  background: #f6f6f6;
  top: 50%;
  transform: translateY(-50%); /* 기본은 중앙선 */
  transition: transform 0.18s ease, top 0.18s ease, opacity 0.12s ease;
}

/* 세 줄의 정렬 위치(비활성) — 위/중앙/아래 */
.menu-toggle .bar:nth-child(1) {
  top: 10px;
}
.menu-toggle .bar:nth-child(2) {
  top: 50%;
}
.menu-toggle .bar:nth-child(3) {
  top: calc(100% - 10px);
}

/* 활성(X) — 세 줄 모두 중앙으로 모은 뒤 회전 */
.menu-toggle.active .bar:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}


header main .menu-toggle {display: none;}


/* ===== 공통: 변수 & 충돌 제거 ===== */
:root{
  --stage-pad-top: 110px;   /* header 아래 여백 */
  --card-h-min: 44vh;       /* 카드 최소 높이(“화면의 44% 이상”) */
}

/* 그리드 이미지: 칼럼폭 100% + 상한 제거 (max-width:160px 등 구규칙 덮어쓰기) */
.grid article{ position: relative; }  /* cap 기준점 */
.grid article img{
  width:100% !important; max-width:none !important; height:auto !important; object-fit:contain;
}

/* 캡션 cap: 이미지 중앙 고정 */
.grid .cap{
  position:absolute !important; inset:0;
  display:flex; align-items:center; justify-content:center;
  margin:0 !important; text-align:center; pointer-events:none; z-index:2;
}


@media (max-width:1500px)  and (min-width:1001px){

  
  :root{
  --col: 160;     /* 카드(칼럼) 기본 폭(px). 280~360 권장 */
  --gutter: 0;   /* 가로 간격(px) */
  --v-gap: 20px;  /* 세로 간격(아래 마진) */
}

.infoPane .card{
  padding:0px;
}
  .leftPane{
    width: 50vw;
    margin: 0;
    /* 화면 높이 - 헤더 여백 - 카드 최소 높이 */
    height: calc(100vh - var(--stage-pad-top) - var(--card-h-min));
    overflow-y: auto;
    /* 카드(하단 fixed)에 가리지 않도록 바닥 여유를 카드 높이만큼 */
    scrollbar-width: none;
    height:100%;
    overflow: auto;
  }

/* ========== Stage Layout ========== */
.designer-stage{
  display:grid; grid-template-columns:1fr 47vw; gap:20px; width:100%;
  height:calc(100vh - 70px);           /* later rule */
  padding:9vw 0 10px 1.5vw;           /* 헤더 여유 + 좌 패딩 */
}

/* ========== Left Grid (scrolling column) ========== */
.leftPane::-webkit-scrollbar{display:none}

.grid .cap{margin:100px 0 100px 0;font-weight:700;font-size:16px;text-align:center}


/* ========== Right Info Pane (fixed-like) ========== */
.infoPane{position:relative;overflow:clip}
.infoPane .card{
  position:sticky; top:200px;
  max-height:calc(100vh - var(--card-top-offset));
  height:auto; overflow:visible;      /* 오른쪽 자체 스크롤 없음 */
  background:#f6f6f6; border:0; margin:0;

  /* later: 좌우 대칭 패딩 + 상단 90px로 보정 병합 */
  padding:50px var(--pad-inline) 0px var(--pad-inline);

  display:flex; flex-direction:column; gap:16px;
}
/* 컨텐츠는 위로, 배경은 아래로 */
.infoPane .card > * { position: relative; z-index: 1; }

.infoPane .cardBg{
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 65% auto;   /* 기존 50% auto 그대로 */
  pointer-events: none;
  z-index: 0;
  transform: translate(0, -100px); /* 기존 시각 오프셋 유지 */
}

/* ========== Right Info Contents ========== */

.infoCore{display:grid;grid-auto-rows:max-content; width: auto; padding: 0 30px;}
.logoWrap{height:64px;display:flex;align-items:center}
.nameLogo{height:40px;width:auto}
.krName{font-size:28px}
.divide{border:none;border-top:2px solid #000;width:auto;}
.majorRow{display:flex;justify-content:space-between;align-items:center;font-size:20px;}
.enMajor,.krMajor{font-weight:700}
.contactRow{display:flex;justify-content:space-between;align-items:center;font-size:20px;margin-top:30px;}


/* 프로젝트 버튼 묶음: 중앙에서 픽셀 고정 */
.projBtns{
  display:flex; gap:0; align-items:center;
  width:max-content; margin-inline:auto;
  border:none; margin-top:100px;
}
.btn {
    width:21vw;
    height:auto;
    min-height:unset;        /* ← 필요시 해제 */
    flex:0 1 auto;           /* ← flex-basis 해제 */
    aspect-ratio: 16 / 9;    /* ← 원본 이미지 비율 맞추기 */
    background-size: cover;
  }

.btn.long {
    width:42vw;
    height:auto;
    min-height:unset;        /* ← 필요시 해제 */
    flex:0 1 auto;           /* ← flex-basis 해제 */
    aspect-ratio: 32 / 9;    /* ← 원본 이미지 비율 맞추기 */
    background-size: cover;
  }
.btn::before{
  content:""; position:absolute; top:0; right:0; width:3vw; height:3vw;
  background:
    linear-gradient(45deg,#f6f6f6 50%,transparent 50%),
    linear-gradient(225deg,#f6f6f6 50%,transparent 50%);
  z-index:2;
  margin-left:0; /* later */
}
.grid {
  margin: 0; /* auto 제거 */
}
.grid article {
  min-height: 140px; /* 예: 카드 최소 높이 */
}
}

@media (max-width:1000px) and (min-width:701px){
  

  /* ========== Stage Layout ========== */

.designer-stage{
  display:grid; grid-template-columns:1fr 45vw; gap:20px; width:100%;
  padding:0vw 0 24px 0px;           /* 헤더 여유 + 좌 패딩 */
}

:root{
  --col: 120;     /* 카드(칼럼) 기본 폭(px). 280~360 권장 */
  --gutter: 0;   /* 가로 간격(px) */
  --v-gap: 20px;  /* 세로 간격(아래 마진) */
}

  .leftPane{
    width: 53vw;
    /* 화면 높이 - 헤더 여백 - 카드 최소 높이 */
    overflow-y: auto;
    /* 카드(하단 fixed)에 가리지 않도록 바닥 여유를 카드 높이만큼 */
    padding: 0px;
    scrollbar-width: none;
    margin: 0 auto;
    height: 100%;
    overflow: auto;
    margin-top: 110px;
    padding-bottom: 100px;
    scrollbar-width: none;
  }

/* ========== Left Grid (scrolling column) ========== */
.leftPane::-webkit-scrollbar{display:none}

.infoCore{display:grid;grid-auto-rows:max-content; width: auto; padding: 0 30px;}

  /* ② 컨테이너 폭 = 3열 + 2개의 간격 (fitWidth + margin:auto로 중앙정렬) */
  .grid{
    width: 47vw;
    margin: 0 30px; /* 이미 있지만 안전하게 유지 */
  }

  .grid article{ margin-bottom: var(--v-gap); }

.grid .cap{margin:100px 0 100px 0;font-weight:700;font-size:16px;text-align:center}


/* ========== Right Info Pane (fixed-like) ========== */
.infoPane{position:relative;overflow:clip; width: 45vw;}
.infoPane .card{
  position:sticky; top:200px;
  max-height:calc(100vh - var(--card-top-offset));
  height:auto; overflow:visible;      /* 오른쪽 자체 스크롤 없음 */
  background:#f6f6f6; border:0; margin:0;

  /* later: 좌우 대칭 패딩 + 상단 90px로 보정 병합 */
  padding:5vw 1vw 0px 1vw;

  display:flex; flex-direction:column; gap:16px;
}
.infoPane .cardBg{
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60% auto;   /* 기존 50% auto 그대로 */
  pointer-events: none;
  z-index: 0;
  transform: translate(0, -100px); /* 기존 시각 오프셋 유지 */
}


.logoWrap{height:7vw;display:flex;align-items:center}
.nameLogo{height:4vw;width:auto}
.majorRow{display:flex;justify-content:space-between;align-items:center;font-size:2.2vw;}
.contactRow{font-size:2vw;margin-top:20px; font-weight: 600;}
.divide{border:none;border-top:2px solid #000;}

/* 프로젝트 버튼 묶음: 중앙에서 픽셀 고정 */
.projBtns{
  display:flex; gap:0; align-items:center;
  width:max-content; margin-inline:auto;
  border:none; margin-top:130px;
}

.btn {
    width:20vw;
    height:auto;
    min-height:unset;        /* ← 필요시 해제 */
    flex:0 1 auto;           /* ← flex-basis 해제 */
    aspect-ratio: 16 / 9;    /* ← 원본 이미지 비율 맞추기 */
    background-size: cover;
  }

.btn.long {
    width:40vw;
    height:auto;
    min-height:unset;        /* ← 필요시 해제 */
    flex:0 1 auto;           /* ← flex-basis 해제 */
    aspect-ratio: 32 / 9;    /* ← 원본 이미지 비율 맞추기 */
    background-size: cover;
  }
.btn::before{
  content:""; position:absolute; top:0; right:0; width:3vw; height:3vw;
  background:
    linear-gradient(45deg,#f6f6f6 50%,transparent 50%),
    linear-gradient(225deg,#f6f6f6 50%,transparent 50%);
  z-index:2;
  margin-left:0; /* later */
}

/* ========== Footer (revealed at leftPane bottom) ========== */
footer{
  position:fixed; left:0; right:0; bottom:0; z-index:9999;
  width:100%; height:70px; background:#808080; padding:0 40px;
  display:flex; justify-content:space-between; align-items:center;
  transform:translateY(100%); transition:transform 0.3s ease;
}
body.show-footer footer{transform:translateY(0)}
footer p{color:#fff;font-size:15px;font-weight:400;line-height:1.5}
footer .logo img{height:40px}
footer .logo .footertitle{margin-right:15px}  
}

@media (max-width: 1000px) and (min-width: 801px){
    header{height: 60px;}
    header main .headerMenu {display:flex !important;}
    header main .headerTitle img{height: 20px;}
    header main .headerMenu li{font-size: 15px; margin-left: 40px;}
    header main .gsdd img{height: 17px;}
    header main .mainheader.floating {height: 130px;    padding-bottom: 30px;}
}

@media (max-width: 800px){
  /*드롭다운 관련 내용들*/

    header{height: 60px;}

    header main .headerMenu.is-open {display: block;}

    .edge-nav {display: none;}

    header main{position: relative;}
    
    header main .headerTitle img{height: 20px;}

  /* 기본: 숨김 (햄버거 클릭 시 JS로 열림) */
    header main .headerMenu{
        top: 60px; /* header 높이에 맞게 조정 */
        transform: translateX(0%);
        left: 0%;
        right: 0;
        width: 100%; /* 원하는 폭으로 조절 */
        max-height: auto;
        background: #000;
        flex-direction: column; /* 가로 → 세로 */
        gap: 0;
        z-index: 105;
        text-align: right;
    }

    header main .headerMenu li{display: block; font-size: 15px; margin-left: 40px;}

    header main .headerMenu li:first-child{border-top: none;}

    header main .headerMenu a{
        display: block;
        padding: 10px 16px;
        color: #fff;
    }

    header main .headerMenu a:hover {
        background: #000;
        color: #fff;
    }

  /* 데스크톱 가로 메뉴 숨기기 + 햄버거 표시 + gsdd 숨김 */

    header main .menu-toggle{display: block;}

    header main .gsdd{display: none;}

    header main .mainheader {top: 90px; margin-bottom: 130px;}
    
    header main .mainheader ul {width: 200px;   font-size: 15px;}

    header main .headerTitle img {height: 20px;}

    footer{
        height: 50px;
        padding: 10px;
    }

    footer p{
        font-size: 8px;
        line-height: 1.8;
    }

    footer .logo .footertitle{
        margin-right: 5px;
    }
    
    footer .logo img{height: 20px;}
}



@media (max-width:700px){
  :root{
  --col: 150;     /* 카드(칼럼) 기본 폭(px). 280~360 권장 */
  --gutter: 4;    /* 가로 간격(px) */
  --v-gap: -30px;  /* 세로 간격(아래 마진) */
}
  
  /* 스테이지: 1열 스택(위: 그리드 / 아래: 카드) */
  .designer-stage{
    grid-template-columns:1fr;
    height:auto;                   /* 고정 높이 해제 */
    padding:110px 0 0 0;           /* 헤더 여백만 유지 */
  }
  
.grid-sizer,
.grid article{
  /* 컨테이너 100%에서 gap 3개(열-1)만큼 빼고 4등분 */
  width: calc( (100% - (3 * var(--gutter) * 1px)) / 4 ) !important;
}

.grid article img{
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  object-fit: contain;
}

  /* 카드: 하단 고정(최소 44vh 확보) + 내부 스크롤 */
  .infoPane{
    position:fixed; left:0; right:0; bottom:0;
    min-height:var(--card-h-min);
    background:#f6f6f6; z-index:20; overflow:hidden;
  }
  .infoPane .card{
    height:100%; display:flex; flex-direction:column;
    overflow:auto; -webkit-overflow-scrolling:touch;
    padding-bottom:max(16px, env(safe-area-inset-bottom)); /* 홈바 회피 */
    min-height:25vh; 
    font-size:clamp(12px, 1.2vw + 0.2rem, 16px);
    padding-top: 20px;
  }

  
.leftPane{height:calc(100vh - var(--stage-pad-top) - var(--card-h-min)); overflow:auto;padding-right:0px;padding-bottom:120px; scrollbar-width:none;}

  /* 카드 내부 타이포 전반 */
  .krName{font-size: 25px;}   /* ≈ 24px 주변 */
  .majorRow{ margin-bottom: 0; font-size: min(4.4vw, 20px);}  
     .grid .cap{ align-items:flex-start; padding-top:35%; font-size: min(3.5vw, 15px); font-weight: 600;  }
     .contactRow{font-size: min(4vw, 17px);margin-top:20px; font-weight: 600;}

.infoCore{display:grid;grid-auto-rows:max-content; width: auto; padding: 0 10px; margin-bottom: 20px;}
     .logoWrap, .krName, .contactRow{  min-width: 0; height: auto; /* 긴 텍스트 대응 */}

.nameLogo {
  max-width: 320px;
  max-height: 25px;
  height:6vw;width:auto 
}
.logoWrap{height:5vw;display:flex;align-items:center}


.projBtns{
  display:flex; gap:0; align-items:center;
  width:max-content; margin-inline:auto;
  border:none; margin-top:10px;
}


.btn {
    width:45vw;
    height:auto;
    min-height:unset;        /* ← 필요시 해제 */
    flex:0 1 auto;           /* ← flex-basis 해제 */
    aspect-ratio: 16 / 9;    /* ← 원본 이미지 비율 맞추기 */
    background-size: cover;
  }

.btn.long {
    width:90vw;
    height:auto;
    min-height:unset;        /* ← 필요시 해제 */
    flex:0 1 auto;           /* ← flex-basis 해제 */
    aspect-ratio: 32 / 9;    /* ← 원본 이미지 비율 맞추기 */
    background-size: cover;
  }

.btn::before{ width:5vw; height:5vw;}

  .infoPane .cardBg{
    background-size: 40% auto;   /* 기존 50% auto 그대로 */
  pointer-events: none;
  z-index: 0;
  transform: translate(0, -13vw); /* 기존 시각 오프셋 유지 */
}

  .btn::before{
  content:""; position:absolute; top:0; right:0; 
  background:
    linear-gradient(45deg,#f6f6f6 50%,transparent 50%),
    linear-gradient(225deg,#f6f6f6 50%,transparent 50%);
  z-index:2;
  margin-left:0; /* later */
  }
}

@media (max-width: 500px){
    main .mainheader{
        top: 90px;
        margin-bottom: 130px;
    }
    
    main .mainheader ul{
        gap: 30px;
        font-size: 15px;
    }

    .designer-stage {
      padding: 0;
    }
    
    footer{
        height: 50px;
        padding: 10px;
    }

    footer p{
        font-size: 8px;
        line-height: 1.8;
    }

    footer .logo .footertitle{
        margin-right: 5px;
    }
    
    footer .logo img{height: 20px;}
}

@media (max-width:360px){

  :root{
  --col: 150;     /* 카드(칼럼) 기본 폭(px). 280~360 권장 */
  --gutter: 0;   /* 가로 간격(px) */
  --v-gap: -30px;  /* 세로 간격(아래 마진) */
}


  /* 스테이지: 1열 스택(위: 그리드 / 아래: 카드) */
  .designer-stage{
    grid-template-columns:1fr;
    height:auto;                   /* 고정 높이 해제 */
    padding: 0;           /* 헤더 여백만 유지 */
  }
  
.grid article img{
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  object-fit: contain;
}


.infoPane .card{
  padding:40px 20px 20px 20px;
}

  .leftPane{
    width: 360px;
    /* 화면 높이 - 헤더 여백 - 카드 최소 높이 */
    height: calc(100vh - var(--stage-pad-top) - var(--card-h-min));
    overflow-y: auto;
    /* 카드(하단 fixed)에 가리지 않도록 바닥 여유를 카드 높이만큼 */
    padding: 5px;
    padding-bottom:120px;
    scrollbar-width: none;
    margin: 0 auto;
  }

/* 칼럼 폭을 ‘픽셀 고정’ → 컨테이너 폭에 따라 열 수가 자동으로 증가/감소 */
.grid-sizer,
.grid article{
  width: calc(var(--col) * 1px);
}

.grid .cap{font-size:13px;}

.btn {width: 160px;}
.btn.long {width: 320px;}
.btn::before{ width:20px; height:20px;}
  .infoPane .cardBg{
  transform: translate(0, -45px); /* 기존 시각 오프셋 유지 */
}
.majorRow {margin-bottom: 0; font-size:15px;}
.nameLogo { max-height: 20px;}
  
.contactRow{font-size:13px;margin-top:20px;max-width:600px; font-weight: 600;}

}



/* ===== Isotope fitWidth Debug ===== */
.grid.debug {
  outline: 2px dashed rgba(255, 0, 0, 0.6); /* 실제 .grid 경계 */
  position: relative;
}

.grid.debug::after {
  content: attr(data-info); /* JS에서 주입되는 width 정보 표시 */
  position: absolute;
  top: -24px;
  left: 0;
  font: 12px/1.3 monospace;
  color: #c00;
  background: rgba(255,255,255,0.8);
  border: 1px solid #c00;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 10000;
}
