/* 올빔 360 홈 첫 화면(2026-11-22 시안 2 "포스터": 가운데 큰 제목). 뷰어 토큰을 그대로 쓰고 덮개 규칙은 #home 아래에만, 홈 단추는 body.has-home 아래에만 */
#home{--glass-home:rgba(18,20,24,.66);--edge-h:clamp(16px,3.2vw,48px);--ease-soft:cubic-bezier(.22,.61,.36,1);
  position:fixed;inset:0;z-index:30;color:var(--text);font-family:Pretendard,"Malgun Gothic","Apple SD Gothic Neo",system-ui,sans-serif;font-variant-numeric:tabular-nums;transition:opacity 520ms var(--ease-soft)}
#home[hidden]{display:none}
#home *{box-sizing:border-box;margin:0}
#home a{color:inherit;text-decoration:none}
#home button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
#home .i{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}
#home.h-out{opacity:0;pointer-events:none}
/* 사진(뷰어 캔버스): 홈일 때만 보정·들어올 때 연출 */
body.s-home #c{filter:brightness(.9) contrast(1.05) saturate(1.04);opacity:0;transform:scale(1.06);transition:opacity 1600ms cubic-bezier(.22,.61,.36,1),transform 2600ms cubic-bezier(.22,.61,.36,1),filter 600ms}
body.s-home.h-ready #c{opacity:1;transform:none}
body.s-home .ui,body.s-home .scrim-top,body.s-home .scrim-bot,body.s-home #pins,body.s-home #tlab,body.s-home #nums,body.s-home .here,body.s-home .movebar{opacity:0 !important;pointer-events:none !important}
/* 가운데 제목이 읽히게: 위 띠 + 가운데 둥근 그늘 + 아래 띠 */
#home .h-scrim{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(8,10,13,.55) 0,rgba(8,10,13,0) 22%),radial-gradient(60% 45% at 50% 42%,rgba(8,10,13,.72) 0,rgba(8,10,13,0) 100%),linear-gradient(0deg,rgba(8,10,13,.9) 0,rgba(8,10,13,.5) 30%,rgba(8,10,13,0) 60%)}
#home .h-dip{position:absolute;inset:0;background:var(--ink);opacity:0;pointer-events:none;transition:opacity 600ms var(--ease-soft);z-index:5}
#home .h-dip.on{opacity:1}
/* 윗줄: 표지 + 스캔 날짜(휴대폰은 평면·인형집 아이콘) */
#home .h-top{position:absolute;left:var(--edge-h);right:var(--edge-h);top:max(var(--edge-h),env(safe-area-inset-top));display:flex;justify-content:space-between;align-items:center;z-index:3}
#home .h-brand{display:flex;align-items:center;gap:10px;font-size:11.5px;font-weight:700;letter-spacing:.08em}
#home .h-brand .i{width:22px;height:22px}
#home .h-brand b{font-weight:400;color:var(--text-2)}
#home .h-ring{stroke-dasharray:44 9;stroke-dashoffset:44;animation:h-draw 900ms 200ms var(--ease) forwards}
@keyframes h-draw{to{stroke-dashoffset:0}}
#home .h-meta{font-size:12px;font-weight:600;color:var(--text-2);letter-spacing:.02em}
#home .h-modes{display:flex;gap:8px}
#home .h-mob{display:none}
#home .h-pill{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 16px;border-radius:var(--r-full);background:var(--glass);border:1px solid var(--line);backdrop-filter:var(--blur);-webkit-backdrop-filter:var(--blur);box-shadow:var(--shadow);font-size:13px;font-weight:600;color:var(--text-2);position:relative;transition:background 120ms var(--ease),color 120ms,transform 120ms}
#home .h-pill .i{width:18px;height:18px}
#home .h-pill:hover{background:var(--hover);color:var(--text)}
#home .h-pill:active{background:var(--press);transform:scale(.98)}
/* 가운데 무대 */
#home .h-stage{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:0 var(--edge-h) 150px;z-index:2;pointer-events:none}
#home .h-stage>*{pointer-events:auto}
#home .h-eye{font-size:12px;font-weight:700;letter-spacing:.2em;color:var(--text-2);margin-bottom:22px}
#home h1{font-size:clamp(34px,6.4vw,92px);font-weight:700;letter-spacing:-.04em;line-height:1.04;text-wrap:balance;word-break:keep-all;max-width:14em}
#home h1,#home .h-eye,#home .h-sub,#home .h-meta,#home .h-brand,#home .h-tab,#home .h-seg:not(.on){text-shadow:0 1px 18px rgba(0,0,0,.55),0 0 2px rgba(0,0,0,.35)}
#home h1{text-shadow:0 2px 40px rgba(0,0,0,.45),0 0 2px rgba(0,0,0,.3)}
#home .h-sub{margin-top:22px;font-size:clamp(13px,1.2vw,16px);color:var(--text-2);font-weight:500;display:flex;gap:14px;align-items:center;flex-wrap:wrap;justify-content:center}
#home .h-sub b{color:var(--text);font-weight:600}
#home .h-sub i{width:4px;height:4px;border-radius:50%;background:var(--text-3)}
#home .h-cta{display:inline-flex;align-items:center;justify-content:center;gap:10px;margin-top:34px;height:56px;padding:0 32px;border-radius:var(--r-full);background:var(--on);color:var(--on-ink);font-size:15px;font-weight:700;letter-spacing:-.01em;box-shadow:0 10px 30px rgba(0,0,0,.35);transition:transform 200ms var(--ease),box-shadow 200ms,background 120ms,opacity 700ms var(--ease-soft)}
#home .h-cta .i{width:18px;height:18px;transition:transform 200ms var(--ease)}
#home .h-cta:hover{box-shadow:0 14px 34px rgba(0,0,0,.42)}
#home .h-cta:hover .i{transform:translateX(3px)}
#home .h-cta:active{background:#e8eaed}
#home :focus-visible{outline:2px solid var(--here);outline-offset:2px}
/* 바로 가기 칩 줄(아래 막대 위) */
#home .h-spots{position:absolute;left:var(--edge-h);right:var(--edge-h);bottom:calc(max(var(--edge-h),env(safe-area-inset-bottom)) + 74px);display:flex;justify-content:safe center;gap:8px;z-index:3;overflow-x:auto;scrollbar-width:none;padding:2px}
#home .h-spots::-webkit-scrollbar{display:none}
#home .h-spots a{flex:none;position:relative;display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 15px;border-radius:var(--r-full);background:var(--glass);border:1px solid var(--line);backdrop-filter:var(--blur);-webkit-backdrop-filter:var(--blur);font-size:13px;font-weight:600;color:var(--text-2);transition:background 120ms,color 120ms,opacity 200ms}
#home .h-spots a em{font-style:normal;font-size:11.5px;color:var(--text-2);font-weight:600}
#home .h-spots a:hover{background:var(--hover);color:var(--text)}
#home .h-spots a:active{background:var(--press)}
#home .h-spots a.dim{opacity:.3}
/* 아랫줄: 층 알약 | 대표 시점 넘김 막대 | 평면·인형집 */
#home .h-bot{position:absolute;left:var(--edge-h);right:var(--edge-h);bottom:max(var(--edge-h),env(safe-area-inset-bottom));z-index:3;display:grid;grid-template-columns:1fr auto 1fr;align-items:end;gap:24px}
#home .h-l{display:flex;gap:8px;align-items:center}
#home .h-r{display:flex;gap:8px;justify-content:flex-end}
#home .h-floors{display:flex;gap:6px;flex-wrap:wrap}
#home .h-seg{height:32px;padding:0 13px;border-radius:var(--r-full);font-size:12.5px;font-weight:600;color:var(--text-2);transition:background 120ms,color 120ms}
#home .h-seg:hover{background:var(--hover);color:var(--text)}
#home .h-seg.on{background:var(--on);color:var(--on-ink)}
#home .h-reel{display:flex;gap:10px;width:min(560px,46vw)}
#home .h-reel:empty{width:0}
#home .h-tab{flex:1;min-width:0;text-align:left;padding:10px 0 0;position:relative;color:var(--text-2);font-size:12.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color 200ms}
#home .h-tab:hover,#home .h-tab.on{color:var(--text)}
#home .h-tab::before{content:"";position:absolute;left:0;right:0;top:0;height:2px;border-radius:2px;background:var(--line)}
#home .h-tab::after{content:"";position:absolute;left:0;top:0;height:2px;border-radius:2px;background:var(--on);width:0}
#home .h-tab.done::after{width:100%}
#home .h-tab.on::after{animation:h-fill var(--dur,9s) linear forwards}
@keyframes h-fill{to{width:100%}}
#home .h-tab small{display:block;font-size:11px;letter-spacing:.08em;font-weight:700;color:var(--text-2);margin-bottom:3px}
/* 들어올 때 */
#home .h-rise{opacity:0;transform:translateY(14px);transition:opacity 700ms var(--ease-soft),transform 700ms var(--ease-soft);transition-delay:calc(var(--d,0)*1ms + 400ms)}
#home .h-fade{opacity:0;transition:opacity 900ms var(--ease-soft);transition-delay:calc(var(--d,0)*1ms + 400ms)}
#home.h-ready .h-rise{opacity:1;transform:none}
#home.h-ready .h-fade{opacity:1}
#home.h-ready .h-cta:hover{transform:translateY(-1px);transition-delay:0ms}
#home.h-ready .h-cta:active{transform:scale(.98)}
/* 휴대폰·좁은 폭: 층 알약·아래 평면 단추 대신 위 오른쪽 아이콘, 막대는 한 줄 전체, 단추 넓게 */
@media (max-width:900px){
  #home .h-bot{grid-template-columns:1fr;gap:14px}
  #home .h-l,#home .h-r,#home .h-meta{display:none}
  #home .h-mob{display:flex}
  #home .h-reel{width:100%}
  #home .h-stage{padding-bottom:190px}
  #home h1{font-size:34px}
  #home .h-eye{letter-spacing:.16em;margin-bottom:16px}
  #home .h-sub{font-size:13px;gap:10px 12px;margin-top:18px}
  #home .h-cta{width:100%;max-width:340px;height:52px;margin-top:28px}
  #home .h-spots{bottom:calc(max(var(--edge-h),env(safe-area-inset-bottom)) + 66px);justify-content:flex-start;margin:0 calc(var(--edge-h)*-1);padding:2px var(--edge-h)}
  #home .h-spots a{height:36px;padding:0 14px;font-size:12.5px}
  #home .h-pill{width:36px;height:36px;padding:0;justify-content:center}
  #home .h-pill span{display:none}
  #home .h-pill::after,#home .h-spots a::after{content:"";position:absolute;left:50%;top:50%;width:max(100%,44px);height:44px;transform:translate(-50%,-50%)}
  #home .h-tab{min-height:44px}
}
@media (max-width:900px) and (min-width:601px){ #home h1{font-size:52px} }
@media (prefers-reduced-motion:reduce){
  body.s-home #c,#home .h-rise,#home .h-fade{transition:none;transform:none}
  #home .h-ring{animation:none;stroke-dashoffset:0}
  #home .h-tab.on::after{animation:none;width:100%}
}

/* ---------- 투어 중 홈 단추(home_data.js 가 있는 꾸러미만, home.js 가 body.has-home 을 붙임) ---------- */
body.has-home .brand{max-width:calc(100vw - var(--edge) * 2 - 8px)}
body.has-home .brand .hgo{pointer-events:auto;cursor:pointer}
body.has-home .brand .t.hgo{border-radius:var(--r-s);transition:opacity 120ms var(--ease)}
body.has-home .brand .t.hgo:hover{opacity:.82}
body.has-home .brand .t.hgo:focus-visible{outline:2px solid #fff;outline-offset:3px}
.brand .hhome{pointer-events:auto;position:relative;flex:none;width:32px;height:32px;margin-left:2px;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--r-full);background:var(--glass);border:1px solid var(--line);backdrop-filter:var(--blur);-webkit-backdrop-filter:var(--blur);box-shadow:var(--shadow);color:var(--text-2);padding:0;font:inherit;cursor:pointer;text-shadow:none;transition:background var(--t-base,180ms) var(--ease),color 120ms,transform 120ms}
.brand .hhome svg.i{width:17px;height:17px}
.brand .hhome:hover{background:var(--hover);color:var(--text)}
.brand .hhome:active{background:var(--press);transform:scale(.96)}
.brand .hhome:focus-visible{outline:2px solid #fff;outline-offset:1px}
/* 이름표: 단추 아래(위 가장자리라 아래로) */
.brand .hhome::after{content:attr(data-tip);position:absolute;top:calc(100% + 8px);left:50%;transform:translate(-50%,-4px);padding:4px 8px;border-radius:var(--r-s);background:rgba(12,14,17,.88);color:var(--text);font-size:12px;font-weight:500;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity 120ms var(--ease),transform 120ms var(--ease)}
.brand .hhome:hover::after{opacity:1;transform:translate(-50%,0);transition-delay:350ms}
@media (max-width:600px){
  /* 위 오른쪽 알약(재생·찾기·더보기)과 겹치지 않게 제목 묶음 폭을 줄이고 제목은 줄임표 */
  body.has-home .brand{max-width:calc(100vw - var(--edge) * 2 - 148px)}
  .brand .hhome{width:34px;height:34px}
  .brand .hhome::after{content:"";top:50%;left:50%;width:44px;height:44px;padding:0;background:none;transform:translate(-50%,-50%);opacity:0}
  .brand .hhome:hover::after{transform:translate(-50%,-50%)}
}
