:root {
  color-scheme: dark;
  --scene-background: #070b23;
  --text-color: #fff;
  --text-soft: rgba(255, 255, 255, .82);
  --glass-background: rgba(34, 35, 60, .19);
  --glass-border: rgba(255, 255, 255, .56);
  --focus-color: #fff;
  --scene-max-width: 1920px;
  --scene-duration: 550ms;
  --scene-easing: cubic-bezier(.22, .61, .36, 1);
  --font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --header-inline: 3.6%;
  --header-top: 5.8%;
  --headline-left: 6.4%;
  --headline-bottom: 11.7%;
  --nav-gap: clamp(20px, 2.1vw, 40px);
  --plane-width: max(100vw, 204.167vh);
  --plane-height: max(100vh, 48.98vw);
}
* { box-sizing: border-box; }
html { background: var(--scene-background); }
body { margin: 0; color: var(--text-color); font-family: var(--font-family); -webkit-text-size-adjust: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--focus-color); outline-offset: 7px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 18px; background: var(--scene-background); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.portfolio-scene { position: relative; z-index: 1; isolation: isolate; width: 100%; max-width: var(--scene-max-width); min-height: 100vh; min-height: 100dvh; height: 100vh; height: 100dvh; margin-inline: auto; overflow: hidden; background: var(--scene-background); }
.portfolio-scene.has-window-motion { background: transparent; }
.has-window-motion .scene-image { -webkit-mask-image: var(--room-mask); mask-image: var(--room-mask); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.scene-image--default { --room-mask: url("assets/studio-default-mask.svg"); }
.scene-image--work { --room-mask: url("assets/studio-work-mask.svg"); }
.scene-image--about { --room-mask: url("assets/studio-about-mask.svg"); }
.has-window-motion[data-depth-state="active"] .scene-image,
.has-window-motion[data-depth-state="leaving"] .scene-image { visibility: hidden; }
.scene-camera { position: absolute; inset: 0; z-index: -1; transform-origin: var(--camera-x, 50%) var(--camera-y, 50%); transition: transform var(--scene-duration) var(--scene-easing); }
.scene-images { position: absolute; width: var(--plane-width); height: var(--plane-height); left: 50%; top: 50%; transform: translate(-50%, -50%); }
.scene-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; pointer-events: none; }
.scene-image--default { opacity: 1; }
.scene-depth { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; display: block; opacity: 0; pointer-events: none; }
[data-depth-state="active"] .scene-depth, [data-depth-state="leaving"] .scene-depth { opacity: 1; }
.scene-image--work, .scene-image--about { opacity: 0; transition: opacity var(--scene-duration) ease; }
[data-state="work"] .scene-image--work.is-ready, [data-state="about"] .scene-image--about.is-ready { opacity: 1; }
.scene-hotspot { position: absolute; z-index: 2; display: block; cursor: pointer; }
.scene-hotspot--work { left: 40%; top: 44%; width: 21.5%; height: 37%; }
.scene-hotspot--about { left: 27%; top: 9%; width: 43%; height: 34%; }
.scene-hotspot:focus-visible { outline-offset: -10px; border-radius: 12px; }
.hotspot-label { position: absolute; display: grid; place-items: center; white-space: nowrap; border: 1px solid var(--glass-border); background: var(--glass-background); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--text-color); font-size: clamp(22px, 2.1vw, 40px); font-weight: 500; line-height: 1.3; letter-spacing: .04em; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); opacity: 0; transition: opacity 250ms ease; transform: translate(-50%, -50%); pointer-events: none; }
.scene-hotspot--work .hotspot-label { left: 49.77%; top: 40.54%; width: 84%; height: 37%; }
.scene-hotspot--about .hotspot-label { left: 57.44%; top: 38.24%; width: 28%; height: 32.9%; }
[data-state="work"] .scene-hotspot--work .hotspot-label, [data-state="about"] .scene-hotspot--about .hotspot-label, .scene-hotspot:focus-visible .hotspot-label { opacity: 1; }
.site-header { position: absolute; z-index: 2; top: max(var(--header-top), env(safe-area-inset-top)); left: max(var(--header-inline), env(safe-area-inset-left)); right: max(var(--header-inline), env(safe-area-inset-right)); display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; text-shadow: 0 1px 14px rgba(0, 0, 0, .5); }
.identity p { margin: 0; }
.identity-name { font-size: clamp(20px, 1.7vw, 32px); font-weight: 500; line-height: 1.35; letter-spacing: .12em; }
.identity-role { margin-top: 9px !important; font-size: clamp(8px, .65vw, 12px); font-weight: 400; line-height: 1.5; letter-spacing: .12em; }
.header-nav { display: flex; align-items: center; gap: var(--nav-gap); font-size: clamp(13px, .95vw, 18px); font-weight: 400; line-height: 1.5; }
.header-nav a, .sound-toggle { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 0; white-space: nowrap; }
.header-nav a { transition: opacity 180ms ease; }
.header-nav a:hover { opacity: .72; }
.sound-toggle { border: 0; background: transparent; cursor: pointer; }
.headline { position: absolute; left: var(--headline-left); bottom: var(--headline-bottom); z-index: 1; max-width: 40%; pointer-events: none; text-shadow: 0 2px 24px rgba(3, 5, 23, .42); }
.headline-summary { margin: 0 0 20px; color: var(--text-soft); font-size: clamp(13px, 1.15vw, 22px); font-weight: 400; line-height: 1.5; letter-spacing: .04em; white-space: nowrap; }
h1 { margin: 0; font-weight: 500; }
h1:focus { outline: none; }
.headline-year, .headline-title { display: block; }
.headline-year { font-family: Arial, sans-serif; font-size: clamp(64px, 7.25vw, 139px); font-weight: 400; line-height: 1; letter-spacing: -.055em; }
.headline-title { margin-top: 8px; font-size: clamp(74px, 8.35vw, 160px); font-weight: 500; line-height: 1.16; letter-spacing: .015em; }
.touch-instruction { display: none; position: absolute; bottom: max(14px, env(safe-area-inset-bottom)); left: 0; right: 0; margin: 0; color: var(--text-soft); font-size: 11px; line-height: 1.6; text-align: center; text-shadow: 0 1px 8px #050820; pointer-events: none; }
.asset-status { position: absolute; z-index: 4; left: 50%; bottom: 20px; transform: translateX(-50%); margin: 0; padding: 10px 16px; border-radius: 4px; background: rgba(7, 11, 35, .9); color: var(--text-color); font-size: 13px; text-align: center; }
.scene-fade { position: absolute; z-index: 5; inset: 0; background: var(--scene-background); opacity: 0; pointer-events: none; transition: opacity var(--scene-duration) ease; }
.is-leaving .scene-camera { transform: scale(1.6); }
.is-leaving .scene-fade { opacity: .94; }
.is-leaving .headline, .is-leaving .site-header, .is-leaving .touch-instruction { opacity: 0; transition: opacity 350ms ease; }
.is-resetting *, .is-resetting *::before, .is-resetting *::after { transition: none !important; }
@media (max-width: 900px) and (min-width: 601px) {
  :root { --headline-bottom: 8%; }
  .headline-summary { font-size: 11px; }
  .headline-year { font-size: 64px; }
  .headline-title { font-size: 76px; }
}
@media (min-width: 601px) and (max-width: 900px) and (max-aspect-ratio: 1/1) {
  :root { --headline-bottom: 6.8%; }
  .headline { max-width: 86%; }
  .headline-summary { margin-bottom: 10px; font-size: 11px; }
  .headline-year { font-size: 36px; }
  .headline-title { margin-top: 4px; font-size: 56px; line-height: 1.12; }
}
@media (max-width: 600px) {
  :root { --header-inline: 6%; --header-top: 4%; --nav-gap: 12px; --headline-left: 7%; --headline-bottom: 6.8%; }
  .site-header { gap: 10px; align-items: flex-start; }
  .identity-name { font-size: 19px; }
  .identity-role { max-width: 130px; margin-top: 5px !important; font-size: 7px; line-height: 1.6; letter-spacing: .065em; }
  .header-nav { gap: var(--nav-gap); font-size: 11px; }
  .header-nav a, .sound-toggle { min-height: 32px; }
  .headline { max-width: 86%; }
  .headline-summary { margin-bottom: 10px; font-size: clamp(9px, 2.6vw, 12px); letter-spacing: .015em; }
  .headline-year { font-size: clamp(30px, 8vw, 42px); }
  .headline-title { margin-top: 4px; font-size: clamp(48px, 13vw, 70px); line-height: 1.12; }
  .hotspot-label { font-size: clamp(18px, 5vw, 24px); }
  .scene-hotspot--work .hotspot-label { width: min(84%, 230px); height: 74px; }
  .scene-hotspot--about .hotspot-label { width: min(28%, 154px); height: 51.8px; }
  .touch-instruction { display: block; }
}
@media (hover: none), (pointer: coarse), (max-width: 600px) { .hotspot-label { opacity: 1; } }
@media (max-width: 360px) {
  :root { --nav-gap: 8px; --header-inline: 5%; }
  .identity-name { font-size: 17px; }
  .identity-role { max-width: 110px; font-size: 6px; }
  .header-nav { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .is-leaving .scene-camera { transform: none; }
}
