/* 360 · VR · AR page */

/* ---------- sphere (rules mirrored from the home page so the shared module looks the same) ---------- */
.stage.sphere { position: relative; width: 100%; aspect-ratio: 21 / 9; max-height: 76vh; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: pan-y; color: #fff; }
.stage.sphere[data-mode='inside'], .stage.sphere[data-mode='planet'] { cursor: grab; touch-action: none; }
.stage.sphere.dragging { cursor: grabbing; }
.stage.sphere canvas, .s360-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.stage.sphere.is-fs { position: fixed; inset: 0; z-index: 160; max-height: none; aspect-ratio: auto; border-radius: 0; border: 0; height: 100vh; height: 100dvh; }
.stage.sphere:fullscreen { max-height: none; aspect-ratio: auto; border-radius: 0; border: 0; }
.stage.sphere .ov { position: absolute; pointer-events: none; transition: opacity 0.35s, transform 0.35s; z-index: 2; }
.stage.sphere .ov[hidden] { display: none; }
.stage.sphere .ov.off { opacity: 0; }
.stage.sphere .enter { inset: auto 0 clamp(16px, 4%, 28px) 0; display: flex; justify-content: center; }
.stage.sphere .enter .btn { pointer-events: auto; }
.stage.sphere .tag-equi { top: 12px; left: 12px; font-size: 11px; letter-spacing: 0.06em; color: rgba(255,255,255,.8); background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 4px 10px; }
.stage.sphere .chip { left: 50%; bottom: clamp(16px, 5%, 32px); transform: translateX(-50%); font-size: 14px; font-weight: 500; padding: 9px 16px; border-radius: 999px; white-space: nowrap; background: rgba(11,11,12,.6); border: 1px solid rgba(255,255,255,.18); }
.stage.sphere .chip.off { transform: translate(-50%, 8px); }
.stage.sphere .compass { left: 12px; bottom: 12px; display: flex; gap: 10px; align-items: center; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 6px 12px 6px 6px; }
.stage.sphere .compass svg { width: 46px; height: 46px; display: block; }
.stage.sphere .compass .read { font-size: 11px; line-height: 1.45; color: rgba(255,255,255,.82); min-width: 9.5ch; }
.stage.sphere .compass .read b { color: #fff; font-weight: 500; font-size: 13px; }
.stage.sphere .tools { top: 12px; right: 12px; display: flex; gap: 8px; }
.stage.sphere .ibtn { pointer-events: auto; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; cursor: pointer; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.18); color: #fff; }
.stage.sphere .ibtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.stage.sphere .ibtn[hidden] { display: none; }
.stage.sphere .ibtn[aria-pressed='true'] { background: #fff; color: #000; }
.stage.sphere .loading { top: 14px; left: 50%; transform: translateX(-50%); font-size: 12px; color: rgba(255,255,255,.85); display: flex; gap: 8px; align-items: center; background: rgba(0,0,0,.5); border-radius: 999px; padding: 5px 12px 5px 8px; }
.stage.sphere .spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; animation: s360spin 0.9s linear infinite; }
@keyframes s360spin { to { transform: rotate(360deg); } }
.imm-ctl { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 14px; }
.imm-ctl .seg button { font-size: 13.5px; padding: 8px 14px; min-height: 40px; }
.imm-clips { display: flex; gap: 8px; flex-wrap: wrap; }
.imm-clips .clip { display: flex; gap: 10px; align-items: center; text-align: left; padding: 6px 14px 6px 6px; border-radius: 999px; cursor: pointer; background: var(--surface); border: 1px solid var(--line); min-height: 48px; transition: border-color 0.15s; }
.imm-clips .clip:hover { border-color: var(--line-strong); }
.imm-clips .clip[aria-pressed='true'] { border-color: var(--text); }
.imm-clips .clip img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; transition: transform 0.6s; }
.imm-clips .clip:hover img { transform: rotate(-30deg); }
.imm-clips .t { display: block; font-weight: 600; font-size: 13px; line-height: 1.2; }
.imm-clips .s { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.25; }
.imm-credit { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- AR mirror ---------- */
.mir-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 88px); align-items: center; }
.mir-copy .sec-h { font-size: clamp(40px, 6vw, 96px); margin-bottom: 22px; }
.mir-copy p { color: var(--muted); max-width: 46ch; font-size: clamp(15px, 1.1vw, 17px); }
.mir-facts { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 10px; }
.mir-facts li { display: flex; gap: 12px; align-items: baseline; font-weight: 600; }
.mir-facts li::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: #5fc7d8; flex: none; transform: translateY(-1px); }
.mir-frame { display: grid; justify-items: center; gap: 12px; }
.mir-bezel {
  width: 100%; padding: 14px; border-radius: 28px;
  background: linear-gradient(160deg, #3a3a3e, #121214 40%, #2a2a2e 70%, #0c0c0d);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.mir-glass { position: relative; aspect-ratio: 16 / 11; border-radius: 16px; overflow: hidden; background: #050506; isolation: isolate; }
.mir-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; transform: scaleX(-1); filter: saturate(0.9) brightness(0.8); }
.mir-glass::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 28%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 0.06) 100%); }
.mir-hud { position: absolute; inset: 0; color: #8ff3ff; z-index: 2; pointer-events: none; }
.mir-hud .c { position: absolute; width: 26px; height: 26px; border: 2px solid currentColor; opacity: 0.85; }
.mir-hud .tl { left: 18px; top: 18px; border-right: 0; border-bottom: 0; }
.mir-hud .tr { right: 18px; top: 18px; border-left: 0; border-bottom: 0; }
.mir-hud .bl { left: 18px; bottom: 18px; border-right: 0; border-top: 0; }
.mir-hud .br { right: 18px; bottom: 18px; border-left: 0; border-top: 0; }
.mir-scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(143, 243, 255, 0.9), transparent); box-shadow: 0 0 18px rgba(143, 243, 255, 0.7); animation: mirscan 3.4s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
@keyframes mirscan { 0%, 100% { transform: translateY(30px); } 50% { transform: translateY(calc(min(760px, 90vw) * 0.6)); } }
.mir-start[hidden] { display: none; }
.mir-start { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 4; white-space: nowrap; }
.mir-start svg { width: 20px; height: 20px; }
.mir-glass.loading .mir-poster { filter: blur(6px) brightness(0.5); }
.mir-glass.live .mir-poster, .mir-glass.live .mir-hud { display: none; }
.mir-if { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; background: #050506; opacity: 0; transition: opacity 0.5s; }
.mir-glass.live .mir-if { opacity: 1; }
.mir-note { margin: 0; font-size: 11px; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }

/* ---------- projects ---------- */
.prj { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.prj li {
  position: relative; display: grid; grid-template-columns: 56px minmax(0, 4fr) minmax(0, 6fr) minmax(0, 2fr); gap: 8px 24px; align-items: baseline;
  padding: clamp(18px, 2.4vh, 26px) 6px; border-bottom: 1px solid var(--line); cursor: default; outline-offset: -2px;
  transition: background-color 0.25s, padding 0.4s var(--ease-out);
}
.prj li:hover, .prj li.open { background: color-mix(in oklab, var(--surface) 70%, transparent); padding-left: 16px; }
.prj .prj-n { font-size: 12px; color: var(--muted); }
.prj b { font-family: var(--f-display); font-weight: var(--display-w); font-variation-settings: var(--display-vs); letter-spacing: var(--display-ls); font-size: clamp(20px, 2.1vw, 32px); line-height: 1.1; }
.prj span:not(.prj-n) { color: var(--muted); font-size: 15px; }
.prj em { font-style: normal; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); justify-self: end; white-space: nowrap; }
.prj-inline { grid-column: 1 / -1; position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #050506; margin-top: 10px; }
.prj-inline img, .prj-inline video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.prj-inline video { opacity: 0; transition: opacity 0.3s; }
.prj-inline video.on { opacity: 1; }
.prj-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(60px, 18vw, 140px); font-weight: 600; color: rgba(255, 255, 255, 0.1); letter-spacing: -0.04em; background: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 14px, transparent 14px 28px), #0b0b0d; }
.prj-req { position: absolute; left: 14px; bottom: 12px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }
.prj-pop {
  position: fixed; left: 0; top: 0; z-index: 90; width: 320px; pointer-events: none; opacity: 0; transition: opacity 0.25s;
  will-change: transform;
}
.prj-pop.on { opacity: 1; }
.prj-pop-m { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #050506; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1); }
.prj-pop-m img, .prj-pop-m video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.prj-pop-m video { opacity: 0; transition: opacity 0.25s; }
.prj-pop-m video.on { opacity: 1; }
.prj-pop.empty .prj-pop-m { background: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 14px, transparent 14px 28px), #0b0b0d; }
.prj-pop-k { display: inline-block; margin-top: 8px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; background: var(--text); color: var(--bg); padding: 4px 9px; border-radius: 999px; }
.prj-pop.empty .prj-pop-m { display: grid; place-items: center; }
.prj-pop.empty .prj-pop-m::after { content: attr(data-kind); font-family: var(--f-display); font-size: 84px; font-weight: 600; letter-spacing: -0.04em; color: rgba(255, 255, 255, 0.12); }
.prj-pop.empty img, .prj-pop.empty video { display: none; }

@media (max-width: 900px) {
  .stage.sphere { aspect-ratio: 4 / 5; max-height: 70svh; }
  .imm-ctl { flex-direction: column; align-items: stretch; }
  .imm-ctl .seg { align-self: flex-start; }
  .imm-clips .s { display: none; }
  .mir-grid { grid-template-columns: minmax(0, 1fr); }
  .mir-bezel { padding: 10px; border-radius: 22px; }
  .prj li { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 4px 12px; cursor: pointer; }
  .prj li span:not(.prj-n) { grid-column: 2 / -1; grid-row: 2; font-size: 14px; }
  .prj em { grid-column: 3; grid-row: 1; }
  .prj-pop { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mir-scan, .stage.sphere .spin { animation: none; }
  .prj li { transition: none; }
}
