/* ── 나우비 원 버튼 키트 (10-21) — 실제 홈 끝 화면의 흰 원 3개(ABOUT US · SERVICE · CONTACT)를 어디서나 그대로 쓰는 독립 부품
   정본은 홈(index.html + home.css · btn30.css · theme-white.css + home.js)이고, 이 파일은 그 끝 화면 설정을 그대로 옮긴 사본:
   data-btn=m3(검은 ABOUT · 흰 SERVICE · 크림슨 CONTACT, Montserrat) · data-blob=1 · data-float=1(궤도) · data-orb=2(자이로) · 흰 띠 끝 화면(어두운 방 위)
   쓰는 법: orbs-kit.js의 NaubiOrbs.mount(상자, { root: '../' }) → .show() / .hide(). 모든 규칙은 .nob 안에서만 ── */
.nob { --acc: #c4121c; --hi: #ff4a52; --ease: cubic-bezier(.16, 1, .3, 1);
       --orb: clamp(118px, min(12vw, 18.5svh), 190px);
       position: relative; width: calc(var(--orb) * 2.3); height: calc(var(--orb) * 3.1); pointer-events: none;
       font-family: "Pretendard Variable", Pretendard, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
.nob.nob-m { --orb: min(25vw, 128px); width: 100%; height: calc(var(--orb) * 1.75); }
.nob *, .nob *::before, .nob *::after { box-sizing: border-box; }
/* 원 묶음 뒤만 어둡고 흐리게 (스포트라이트) */
.nob::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: calc(var(--orb) * 5.4); height: calc(var(--orb) * 5); transform: translate(-50%, -50%); pointer-events: none;
               background: radial-gradient(closest-side, rgba(4, 4, 8, .74) 0%, rgba(4, 4, 8, .55) 48%, rgba(4, 4, 8, 0) 100%);
               -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
               -webkit-mask: radial-gradient(closest-side, #000 50%, transparent 100%); mask: radial-gradient(closest-side, #000 50%, transparent 100%);
               opacity: 0; transition: opacity 1.1s ease; }
.nob.nob-m::before { width: 140%; height: calc(var(--orb) * 3.4); }
.nob.ob-in::before { opacity: 1; }
.nob.nob-nospot::before { content: none; }
.nob .ob { position: relative; width: 100%; height: 100%; }
.nob .ob-list { list-style: none; margin: 0; padding: 0; }
.nob .ob li { position: absolute; z-index: 2; left: 0; top: 0; width: var(--orb); height: var(--orb); will-change: transform; --lit: 0; }
.nob .ob li.hot, .nob .ob li.grab { z-index: 3; }
/* 끌어서 놀 수 있음: 손 모양 · 글자 선택 · 기본 끌기(링크 그림) 끔 */
.nob .orb { display: block; width: 100%; height: 100%; border-radius: 50%; pointer-events: auto; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; color: inherit; text-decoration: none; outline: none; }
.nob:not(.ob-in) .orb { visibility: hidden; pointer-events: none; }
.nob .ob li.grab .orb { cursor: grabbing; }
.nob .ring { position: relative; width: 100%; height: 100%; border-radius: 50%; display: grid; place-content: center; justify-items: center; text-align: center;
             --ink: #111; --mk: #111; color: var(--ink); overflow: visible;
             background: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 0 46px rgba(255, 255, 255, .2), 0 18px 44px rgba(0, 0, 0, .55);
             opacity: 0; transform: scale(.55); transition: opacity .5s ease, transform .9s cubic-bezier(.2, 1.25, .36, 1), box-shadow .35s ease; }
.nob .ob li.in .ring { opacity: 1; transform: none; }
.nob.ob-fx .ring { transition: box-shadow .35s ease; }
/* 세 원의 바탕 (홈 data-btn=m3 + 홈 덧칠: ABOUT 검정 · SERVICE 흰색 · CONTACT 크림슨) */
.nob .o1 .ring { --ink: #fff; --mk: #fff; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 0 40px rgba(255, 255, 255, .16), 0 18px 44px rgba(0, 0, 0, .55); }
.nob .o2 .ring { --ink: #111; --mk: #111; background: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 18px 44px rgba(0, 0, 0, .55); }
.nob .o3 .ring { --ink: #fff; --mk: #fff; background: radial-gradient(circle at 35% 28%, #e8262f 0%, #c4121c 55%, #9d0d15 100%); box-shadow: 0 0 0 1px rgba(255, 120, 126, .5), 0 0 48px rgba(232, 32, 42, .4), 0 18px 44px rgba(0, 0, 0, .55); }
.nob .ob li.hot .ring { box-shadow: 0 0 0 1px rgba(255, 255, 255, .7), 0 0 70px rgba(255, 255, 255, .32), 0 22px 50px rgba(0, 0, 0, .6); }
.nob .ob li.hot.o3 .ring { box-shadow: 0 0 0 1px rgba(255, 140, 146, .8), 0 0 80px rgba(232, 32, 42, .6), 0 22px 50px rgba(0, 0, 0, .6); }
.nob .orb:focus-visible .ring { box-shadow: 0 0 0 3px #fff, 0 0 0 8px rgba(255, 255, 255, .3), 0 18px 44px rgba(0, 0, 0, .55); }
/* 글자 (btn30 r1 · r10 · r2) */
.nob .rx { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--orb) * .07); pointer-events: none;
           font-family: Montserrat, "Pretendard Variable", Pretendard, sans-serif; text-align: center; line-height: 1;
           transform: scale(calc(1 + var(--lit) * .08)); filter: drop-shadow(0 0 calc(var(--lit) * 5px) rgba(255, 255, 255, calc(var(--lit)))) drop-shadow(0 0 calc(var(--lit) * 16px) rgba(255, 255, 255, calc(var(--lit) * .85))); }
.nob .o2 .rx { filter: drop-shadow(0 0 calc(var(--lit) * 4px) rgba(196, 18, 28, calc(var(--lit) * .8))) drop-shadow(0 0 calc(var(--lit) * 13px) rgba(196, 18, 28, calc(var(--lit) * .55))); }
.nob .rx .t { position: relative; z-index: 1; display: block; font-size: calc(var(--orb) * .112); font-weight: 800; letter-spacing: .12em; padding-left: .12em; white-space: nowrap; }
.nob .o3 .rx .t { font-weight: 900; font-size: calc(var(--orb) * .118); letter-spacing: .1em; padding-left: .1em; }
.nob .rx .bm { position: relative; z-index: 1; display: block; font-style: normal; color: var(--mk); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.nob .rx .bm.a { font-size: calc(var(--orb) * .12); line-height: .6; font-family: "Pretendard Variable", Pretendard, sans-serif; font-weight: 600; }
.nob .rx .bm.lg { width: calc(var(--orb) * .26); height: auto; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2; }
.nob .ob li.hot .rx .bm, .nob .ob li.lift .rx .bm { transform: translateX(5px); }
/* 가리키면 글자 띠가 떠오르며 돔 · 맥박은 평소엔 한 줄씩 은은히(원마다 박자 다르게), 가리키면 빠르게 두 겹 */
.nob .band { position: absolute; inset: -26px; width: calc(100% + 52px); height: calc(100% + 52px); pointer-events: none; overflow: visible;
             opacity: 0; transform: scale(.92); transition: opacity .35s ease, transform .5s var(--ease); animation: nobSpin 18s linear infinite; }
.nob.nob-m .band { inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); }
.nob .band text { font: 700 5.6px "Pretendard Variable", Pretendard, sans-serif; fill: rgba(255, 255, 255, .78); }
.nob .o3 .band text { fill: var(--hi); }
.nob .o2 .band { animation-direction: reverse; }
.nob .ob li.hot .band, .nob .ob li.lift .band { opacity: 1; transform: none; }
@keyframes nobSpin { to { rotate: 1turn; } }
.nob .pulse { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.nob .pulse::before, .nob .pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .75); opacity: 0; }
.nob .o3 .pulse::before, .nob .o3 .pulse::after { border-color: rgba(255, 74, 82, .9); }
.nob.ob-live .ob li.in .pulse::before { animation: nobIdle 3.6s cubic-bezier(.25, .6, .3, 1) infinite; }
.nob.ob-live .ob li.o2 .pulse::before { animation-delay: 1.2s; }
.nob.ob-live .ob li.o3 .pulse::before { animation-delay: 2.4s; }
.nob .ob li.hot .pulse::before, .nob .ob li.hot .pulse::after { animation: nobPing 1.8s cubic-bezier(.2, .7, .3, 1) infinite !important; }
.nob .ob li.hot .pulse::after { animation-delay: .5s !important; }
.nob .ob li.ping .pulse::after { animation: nobPing 1.1s cubic-bezier(.2, .7, .3, 1) 1; }
@keyframes nobThud { 40% { transform: scale(1.07); } }
@keyframes nobIdle { 0% { transform: scale(1); opacity: .5; } 60% { opacity: 0; } 100% { transform: scale(1.32); opacity: 0; } }
@keyframes nobPing { 0% { transform: scale(1); opacity: .9; } 70% { opacity: 0; } 100% { transform: scale(1.5); opacity: 0; } }
/* 액체 원: 원마다 다른 아주 느린 박자로 가장자리 비율만 조금씩 흐름 */
.nob .ring { animation: nobBlob 17s cubic-bezier(.45, 0, .55, 1) infinite; }
.nob .o2 .ring { animation-duration: 21s; animation-delay: -7s; }
.nob .o3 .ring { animation-duration: 19s; animation-delay: -13s; }
@keyframes nobBlob {
  0%, 100% { border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; }
  17% { border-radius: 56% 44% 52% 48% / 47% 54% 46% 53%; }
  34% { border-radius: 47% 53% 44% 56% / 55% 45% 56% 44%; }
  51% { border-radius: 53% 47% 57% 43% / 44% 57% 43% 56%; }
  68% { border-radius: 44% 56% 49% 51% / 54% 46% 52% 48%; }
  85% { border-radius: 52% 48% 45% 55% / 48% 53% 47% 52%; }
}
.nob .ob li.ping .ring { animation: nobThud .5s cubic-bezier(.2, 1.4, .4, 1); }      /* 홈과 같이: '쿵' 한 번 뒤로는 그 원은 일렁임 없이 둥근 채로 */

/* ── 선 · 궤도 · 혜성 (SVG, orbs-kit.js가 매 장면 그림) ── */
.nob .ob-net { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; pointer-events: none; opacity: 0; transition: opacity .9s ease; }
.nob.ob-in .ob-net { opacity: 1; }
.nob .ob-ln, .nob .ob-cm { display: none; }      /* 예전 고정 선 두 줄 · 흐르는 빛 (액체 원에선 숨김) */
.nob .ob-zp { fill: none; stroke: #fff; stroke-linecap: round; opacity: 0; }    /* 던진 원으로 튀어가는 빛 */
.nob .ob-zp.z1 { stroke-width: 3; filter: drop-shadow(0 0 6px #fff); }
.nob .ob-zp.z2 { stroke-width: 1.6; stroke-opacity: .35; }
.nob .ob-end { fill: none; stroke: rgba(255, 74, 82, .75); stroke-width: 1.2; }
.nob .ob-lk { fill: none; stroke: rgba(255, 255, 255, .78); stroke-width: 1.2; stroke-linecap: round; stroke-dasharray: 1 1; opacity: 0; filter: drop-shadow(0 0 3px rgba(255, 255, 255, .55)); }
.nob .ob-orbit { display: none; }
.nob .ob-tr { fill: none; stroke: #fff; stroke-linecap: round; }
.nob .ob-tr.t0 { stroke-width: 2; stroke-opacity: .34; } .nob .ob-tr.t1 { stroke-width: 1.4; stroke-opacity: .16; } .nob .ob-tr.t2 { stroke-width: 1; stroke-opacity: .07; }
.nob .ob-spark { fill: #fff; filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 10px rgba(255, 90, 98, .8)); opacity: 0; }
.nob .ob-dz path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.nob .ob-og { stroke: #fff; stroke-width: 12; }
.nob .ob-oc { stroke: #fff; }
.nob .ob-km { stroke: #fff; }
.nob .ob-km.k0 { stroke-width: 2.4; stroke-opacity: .7; filter: drop-shadow(0 0 4px rgba(255, 255, 255, .6)); }
.nob .ob-km.k1 { stroke-width: 1.6; stroke-opacity: .28; }
.nob .ob-km.k2 { stroke-width: 1.2; stroke-opacity: .12; }
.nob .ob-kh { fill: #fff; opacity: 0; filter: drop-shadow(0 0 4px rgba(255, 255, 255, .8)) drop-shadow(0 0 9px rgba(255, 60, 70, .55)); }
.nob .ob-gy { stroke: #fff; stroke-width: 1; }
.nob .ob-gd { fill: #fff; opacity: 0; filter: drop-shadow(0 0 4px #fff); }
.nob .ob-ds { fill: #fff; opacity: 0; filter: drop-shadow(0 0 3px rgba(255, 255, 255, .9)); }

/* 누르면 그 원이 원 모양 그대로 화면을 채우며 다음 페이지로 */
.nob-wipe { position: fixed; inset: 0; z-index: 300; background: #c4121c; pointer-events: none; clip-path: circle(0 at 50% 50%); }
.nob-wipe[hidden] { display: none; }

/* 박자 맞추기(orbs-kit.js mount의 bpm · beat0 · clock): 평소 맥박을 CSS 시계 대신 음악 박에 — JS가 --ps(크기) · --po(진하기)를 매 장면 씀 */
.nob.nob-sync.ob-live .ob li.in .pulse::before { animation: none; transform: scale(var(--ps, 1)); opacity: var(--po, 0); }

@media (prefers-reduced-motion: reduce) {
  .nob .band { animation: none; }
  .nob .pulse::before, .nob .pulse::after { animation: none !important; }
  .nob.nob-sync .pulse::before { opacity: 0 !important; }
  .nob .ring { animation: none; }
}
