/* ==========================================================================
   서비스 노트 (bbs/board.php?bo_table=seo_board · assets/js/sx/seo.js) — 메인 캐러셀이 가리키는 글
   "복도 끝의 액자": 그림 뒤로 같은 틀이 겹겹이 물러나 깊이가 생기고, 마우스를 따라 틀이 살짝 기움 (강제 원근)
   ========================================================================== */
.sub--seo { --accent: var(--y); }

.sb { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--hd-h) + 48px) 0 80px; overflow: hidden; }
.sb::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 72% 50%, rgba(255, 225, 77, .07), transparent 70%); pointer-events: none; }
.sb__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.sb__text { display: grid; gap: 28px; align-content: center; }
.sb__title { margin: 0; font-family: var(--f-display); font-size: clamp(40px, 6vw, 88px); font-weight: 800; line-height: 1.02; letter-spacing: -.05em; word-break: keep-all; }
.sb__lead, .sb__body { max-width: 520px; font-size: var(--fs-md); line-height: 1.8; color: var(--fg-2); }
.sb__body img { max-width: 100%; height: auto; }
.sb__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.sb__acts { display: flex; flex-wrap: wrap; gap: 12px; }

/* 액자 + 뒤로 물러나는 틀 3겹 */
.sb__frame { position: relative; margin: 0; aspect-ratio: 1; perspective: 1100px; transform-style: preserve-3d; }
.sb__frame img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--line); box-shadow: 0 40px 100px rgba(0, 0, 0, .55);
  transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .9s var(--ease); }
.sb__depth { position: absolute; inset: 0; z-index: 1; transform-style: preserve-3d; pointer-events: none;
  transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .9s var(--ease); }
.sb__depth i { position: absolute; inset: 0; border: 1px solid rgba(255, 225, 77, calc(.5 - var(--n) * .12)); transform: translateZ(calc(var(--n) * -140px)) scale(calc(1 - var(--n) * .04)); }
.sb__depth i:nth-child(1) { --n: 1; } .sb__depth i:nth-child(2) { --n: 2; } .sb__depth i:nth-child(3) { --n: 3; }

/* 목록 페이지 */
.sb--list { min-height: 0; padding-bottom: 24px; }
.sb--list .wrap { display: grid; gap: 24px; }
.sb--list .sb__title { font-size: clamp(28px, 3.6vw, 52px); max-width: 900px; }

/* 다른 서비스 */
.sb-more { padding: clamp(64px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
.sb-more__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sb-more__list a { position: relative; display: grid; grid-template-columns: 64px 56px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); transition: color .3s; }
.sb-more__img { width: 64px; aspect-ratio: 1; overflow: hidden; background: var(--k3); perspective: 400px; }
.sb-more__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.sb-more__list b { font-family: var(--f-display); font-size: var(--fs-sm); color: var(--fg-2); }
.sb-more__t { font-family: var(--f-display); font-size: clamp(20px, 2.4vw, 32px); font-weight: 700; letter-spacing: -.03em; transition: transform .5s var(--ease); }
.sb-more__list .arr { font-size: var(--fs-lg); color: var(--fg-2); transition: transform .5s var(--ease), color .3s; }
.sb-more__list a:hover { color: var(--accent); }
.sb-more__list a:hover .sb-more__img img { transform: translateZ(-60px) scale(1.06); }
.sb-more__list a:hover .sb-more__t { transform: translateX(10px); }
.sb-more__list a:hover .arr { transform: translateX(6px); color: var(--accent); }

@media (max-width: 900px) {
  .sb { min-height: 0; padding-top: calc(var(--hd-h) + 32px); }
  .sb__in { grid-template-columns: 1fr; }
  .sb__frame { order: -1; max-width: 420px; }
  .sb-more__list a { grid-template-columns: 48px 32px minmax(0, 1fr) auto; gap: 12px; }
  .sb-more__img { width: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .sb__frame img, .sb__depth { transition: none; transform: none; }
}
